While the Transformer architecture has become the de-facto standard for natural language processing tasks, its applications to computer vision remain limited. In vision, attention is either applied in conjunction with convolutional networks, or used to replace certain components of convolutional networks while keeping their overall structure in place. We show that this reliance on CNNs is not necessary and a pure transformer applied directly to sequences of image patches can perform very well on image classification tasks. When pre-trained on large amounts of data and transferred to multiple mid-sized or small image recognition benchmarks (ImageNet, CIFAR-100, VTAB, etc.), Vision Transformer (ViT) attains excellent results compared to state-of-the-art convolutional networks while requiring substantially fewer computational resources to train.
核心贡献 · Key contributions
展示了将纯 Transformer 直接应用于图像块可实现强大的图像分类性能。 Shows pure Transformer applied to image patches achieves strong image classification performance.
证明了 Vision Transformer(ViT)在大规模预训练上匹配或超越最先进的 CNN。 Demonstrates Vision Transformer (ViT) matches or exceeds state-of-the-art CNNs on large-scale pre-training.
揭示了大规模训练克服了 ViT 中归纳偏置的缺乏。 Reveals large-scale training overcomes lack of inductive biases in ViT.
提供了受控的规模扩张研究,显示 ViT 有利的性能成本比。 Provides controlled scaling study showing ViT's favorable performance-to-cost ratio.
分析了 ViT 内部表示,展示了全局注意力和学习到的位置嵌入。 Analyzes ViT internal representations, showing global attention and learned position embeddings.
探索了 ViT 的自监督预训练,展示了未来改进的潜力。 Explores self-supervised pre-training for ViT, showing potential for future improvement.
局限 · Limitations
由于缺乏归纳偏置,ViT 在小型数据集上表现不如 CNN。 ViT underperforms CNNs on small datasets due to lack of inductive biases.