CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classification

By Chun-Fu Chen, Quanfu Fan, Rameswar Panda. 2021

2,175 citations recorded by the source corpus.

The recently developed vision transformer (ViT) has achieved promising results on image classification compared to convolutional neural networks. Inspired by this, in this paper, we study how to learn multi-scale feature representations in transformer models for image classification. To this end, we propose a dual-branch transformer to com-bine image patches (i.e., tokens in a transformer) of different sizes to produce stronger image features. Our approach processes small-patch and large-patch tokens with two separate branches of different computational complexity and these tokens are then fused purely by attention multiple times to complement each other. Furthermore, to reduce computation, we develop a simple yet effective token fusion module based on cross attention, which uses a single token for each branch as a query to exchange information with other branches. Our proposed cross-attention only requires linear time for both computational and memory complexity instead of quadratic time otherwise. Extensive experiments demonstrate that our approach performs better than or on par with several concurrent works on vision transformer, in addition to efficient CNN models. For example, on the ImageNet1K dataset, with some architectural changes, our approach outperforms the recent DeiT by a large margin of 2% with a small to moderate increase in FLOPs and model parameters. Our source codes and models are available at https://github.com/IBM/CrossViT.

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. Dacheng Tao
  2. Luc Van Gool
  3. Jianfeng Gao
  4. Jiashi Feng
  5. Trevor Darrell
  6. Alan L. Yuille
  7. Xiaogang Wang
  8. Chen Change Loy

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Dacheng Tao
  3. Ming-Hsuan Yang
  4. Xiaogang Wang
  5. Trevor Darrell
  6. Chen Change Loy
  7. Jitendra Malik
  8. Yi Yang

In Model Architectures

  1. Christoph Feichtenhofer
  2. Luc Van Gool
  3. Jiashi Feng
  4. Jianfeng Gao
  5. Jianwei Yang
  6. Yanghao Li
  7. Hongsheng Li
  8. Jitendra Malik

Citations in the corpus