Reproduce “An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer and 4 more

ViT turns images into sequences of fixed-size patches for a standard Transformer, replacing a CNN backbone. With large-scale pretraining, it can compete with CNNs, but may trail them on smaller datasets. On ImageNet, JFT-pretrained ViT-H/14 reaches 88.55 ± 0.04% accuracy versus 87.54 ± 0.02% for BiT-L, supporting a data-dependent result, not a universal CNN replacement.

Key insights

  • Large-scale pre-training data is crucial for ViT's performance, allowing it to overcome the lack of inherent image-specific inductive biases present in CNNs.
  • Vision Transformers achieve superior performance with significantly less pre-training compute compared to state-of-the-art CNNs.
  • The model implicitly learns spatial relationships between image patches, even with 1D position embeddings, demonstrating the power of self-attention.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.