about
An Image Is Worth 16x16 Words: Transformers for Image Recognition at Scale (arxiv.org)
8 points by doener on Apr 1, 2022 | hide | past | pdf | discuss on HN

In plain words: The image is cut into small square patches and fed to a plain text-style transformer as if they were words, skipping the usual scanning network. Trained on a huge pile of images, it matches the best scanning networks while needing far less computing power.

Abstract · An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale

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.

Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, Neil Houlsby
arXiv:2010.11929 · cs.CV, cs.AI, cs.LG · submitted Oct 22, 2020 · updated Jun 3, 2021
abstract · pdf · html · Fine-tuning code and pre-trained models are available at https://github.com/google-research/vision_transformer. ICLR camera-ready version with 2 small modifications: 1) Added a discussion of CLS vs GAP classifier in the appendix, 2) Fixed an error in exaFLOPs computation in Figure 5 and Table 6 (relative performance of models is basically not affected)

add comment on HN