CvT: Introducing Convolutions to Vision Transformers
Haiping Wu, Bin Xiao, Noel Codella, Mengchen Liu, Xiyang, Dai, Lu Yuan, Lei Zhang

TL;DR
CvT introduces convolutions into Vision Transformers, combining CNN properties with Transformer advantages to improve performance, efficiency, and flexibility in vision tasks, achieving state-of-the-art results on ImageNet.
Contribution
The paper proposes a novel CvT architecture that integrates convolutions into ViT, enhancing performance and efficiency while simplifying positional encoding.
Findings
Achieves state-of-the-art accuracy on ImageNet-1k
Uses fewer parameters and FLOPs than comparable models
Removes the need for positional encoding in the proposed model
Abstract
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 designs. 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 (\ie shift, scale, and distortion invariance) while maintaining the merits of Transformers (\ie 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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
- 🤗microsoft/cvt-13model· 7.1k dl· ♡ 177.1k dl♡ 17
- 🤗microsoft/cvt-13-384model· 52 dl52 dl
- 🤗microsoft/cvt-13-384-22kmodel· 61 dl61 dl
- 🤗microsoft/cvt-21-384-22kmodel· 113 dl· ♡ 3113 dl♡ 3
- 🤗microsoft/cvt-21-384model· 76 dl· ♡ 176 dl♡ 1
- 🤗microsoft/cvt-21model· 638 dl· ♡ 1638 dl♡ 1
- 🤗microsoft/cvt-w24-384-22kmodel· 103 dl103 dl
- 🤗ilyassmoummad/ProtoCLRmodel· 3 dl3 dl
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Neural Network Applications · CCD and CMOS Imaging Sensors · Advanced Memory and Neural Computing
MethodsLinear Layer · Absolute Position Encodings · Position-Wise Feed-Forward Layer · Pointwise Convolution · Convolution · Batch Normalization · Depthwise Convolution · Average Pooling · Depthwise Separable Convolution · Convolutional Vision Transformer
