UniFormer: Unifying Convolution and Self-Attention for Visual Recognition

By Kunchang Li, Yali Wang, Junhao Zhang, Peng Gao, Guanglu Song, Yu Liu, Hongsheng Li, Yu Qiao. 2022

610 citations recorded by the source corpus.

It is a challenging task to learn discriminative representation from images and videos, due to large local redundancy and complex global dependency in these visual data. Convolution neural networks (CNNs) and vision transformers (ViTs) have been two dominant frameworks in the past few years. Though CNNs can efficiently decrease local redundancy by convolution within a small neighborhood, the limited receptive field makes it hard to capture global dependency. Alternatively, ViTs can effectively capture long-range dependency via self-attention, while blind similarity comparisons among all the tokens lead to high redundancy. To resolve these problems, we propose a novel Unified transFormer (UniFormer), which can seamlessly integrate the merits of convolution and self-attention in a concise transformer format. Different from the typical transformer blocks, the relation aggregators in our UniFormer block are equipped with local and global token affinity respectively in shallow and deep layers, allowing tackling both redundancy and dependency for efficient and effective representation learning. Finally, we flexibly stack our blocks into a new powerful backbone, and adopt it for various vision tasks from image to video domain, from classification to dense prediction. Without any extra training data, our UniFormer achieves <italic>86.3</italic> top-1 accuracy on ImageNet-1 K classification task. With only ImageNet-1 K pre-training, it can simply achieve state-of-the-art performance in a broad range of downstream tasks. It obtains <italic>82.9/84.8</italic> top-1 accuracy on Kinetics-400/600, <italic>60.9/71.2</italic> top-1 accuracy on Something-Something V1/V2 video classification tasks, <italic>53.8</italic> box AP and <italic>46.4</italic> mask AP on COCO object detection task, <italic>50.8</italic> mIoU on ADE20 K semantic segmentation task, and <italic>77.4</italic> AP on COCO pose estimation task. Moreover, we build an efficient UniFormer with a concise hourglass design of token shrinking and recovering, which achieves <bold>2-4</bold><inline-formula><tex-math notation="LaTeX">$\bm {\times }$</tex-math><alternatives><mml:math><mml:mo>×</mml:mo></mml:math><inline-graphic xlink:href="li-ieq1-3282631.gif"/></alternatives></inline-formula> higher throughput than the recent lightweight models.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Model Architectures

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Yu Qiao
  2. Hongsheng Li
  3. Peng Gao
  4. Renrui Zhang
  5. Bin Xiao
  6. Lu Yuan
  7. Jingdong Wang
  8. Ping Luo

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Yu Qiao
  3. Dacheng Tao
  4. Xiaogang Wang
  5. Hongsheng Li
  6. Ming-Hsuan Yang
  7. Chen Change Loy
  8. Yi Yang

In Model Architectures

  1. Lu Yuan
  2. Bin Xiao
  3. Hongsheng Li
  4. Ping Luo
  5. Jingdong Wang
  6. Noel C. F. Codella
  7. Yu Qiao
  8. Peng Gao

Citations in the corpus