CvT: Introducing Convolutions to Vision Transformers

By Haiping Wu, Bin Xiao, Noel C. F. Codella, Mengchen Liu, Xiyang Dai, Lu Yuan, Lei Zhang. 2021

2,478 citations recorded by the source corpus.

We present in this paper a new architecture, named Convolutional vision Transformer (CvT), that improves Vision Transformer (ViT) in performance and efficiency by introducing convolutions into ViT to yield the best of both de-signs. This is accomplished through two primary modifications: a hierarchy of Transformers containing a new convolutional token embedding, and a convolutional Transformer block leveraging a convolutional projection. These changes introduce desirable properties of convolutional neural networks (CNNs) to the ViT architecture (i.e. shift, scale, and distortion invariance) while maintaining the merits of Transformers (i.e. dynamic attention, global context, and better generalization). We validate CvT by conducting extensive experiments, showing that this approach achieves state-of-the-art performance over other Vision Transformers and ResNets on ImageNet-1k, with fewer parameters and lower FLOPs. In addition, performance gains are maintained when pretrained on larger datasets (e.g. ImageNet-22k) and fine-tuned to downstream tasks. Pretrained on ImageNet-22k, our CvT-W24 obtains a top-1 accuracy of 87.7% on the ImageNet-1k val set. Finally, our results show that the positional encoding, a crucial component in existing Vision Transformers, can be safely re-moved in our model, simplifying the design for higher resolution vision tasks. Code will be released at https://github.com/microsoft/CvT.

Subfields: Computer Vision and Pattern Recognition, Electrical and Electronic Engineering, 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 Computer Vision and Pattern Recognition

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

In Electrical and Electronic Engineering

  1. Dacheng Tao
  2. Jianfeng Gao
  3. Jianwei Yang
  4. Jing Zhang
  5. Luke Melas-Kyriazi
  6. Lu Yuan
  7. Sachin Mehta
  8. Mohammad Rastegari

In Model Architectures

  1. Jianfeng Gao
  2. Jianwei Yang
  3. Quoc V. Le
  4. Lu Yuan
  5. Christoph Feichtenhofer
  6. Jiashi Feng
  7. Shuicheng Yan
  8. Dacheng Tao

Citations in the corpus