Why are ViTs so popular? Because Large-Scale Pretraining Trumps Inductive Biases. [D]

Reddit r/MachineLearning Papers

Summary

The post explains why Vision Transformers dominate modern image recognition: large-scale pretraining (e.g., JFT-300M, ImageNet-21k) overcomes the lack of CNN inductive biases like translation equivariance and locality, citing the highly influential ViT paper and Masked Autoencoders work.

To begin, we note that SOTA performance on CIFAR-10 is a ViT. It is the pretrained ViT described in the paper quoted below. When trained on mid-sized datasets such as ImageNet without strong regularization, these models yield modest accuracies of a few percentage points below ResNets of comparable size. This seemingly discouraging outcome may be expected: Transformers lack some of the inductive biases inherent to CNNs, such as translation equivariance and locality, and therefore do not generalize well when trained on insufficient amounts of data. . However, the picture changes if the models are pre-trained on larger datasets (14M-300M images). ☝️We find that large scale training trumps inductive bias. Our Vision Transformer (ViT) attains excellent results when pre-trained at sufficient scale and transferred to tasks with fewer datapoints. When pre-trained on the public ImageNet-21k dataset or the in-house JFT-300M dataset, ViT approaches or beats state of the art on multiple image recognition benchmarks. In particular, the best model reaches the accuracy of 88.55% on ImageNet, 90.72% on ImageNet-ReaL, 94.55% on CIFAR-100, and 77.63% on the VTAB suite of 19 tasks The paper above has been cited in the literature no less than 113 thousand times. "AN IMAGE IS WORTH 16X16 WORDS: TRANSFORMERS FOR IMAGE RECOGNITION AT SCALE" Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, Neil Houlsby. Google Research; Brain Team; arXiv:2010.11929v2 [cs.CV] 3 Jun 2021 Images are broken into patches , such that patches are treated as "tokens" for a transformer to perform self-supervised prediction, and then regenerate the masked patches. The process is described intimately in "Masked Autoencoders Are Scalable Vision Learners". (Kaiming He, Xinlei Chen, Saining Xie, Yanghao Li Piotr Dollar, Ross Girshick). Facebook AI Research. arXiv:2111.06377v3 [cs.CV] 19 Dec 2021. This self-supervised token-izing methodology is substantively worse than traditional CNNs, or CNNS w/ attention. But at scale, the reverse is true. ping /u/terrrp
Original Article

Similar Articles

Why are ViTs so popular? [D]

Reddit r/MachineLearning

A discussion post questioning why vanilla Vision Transformers are so popular compared to CNN+attention hybrid models, arguing that convolutions' inductive biases and spatial downsampling make more sense—especially for edge deployment—and asking whether ViTs' dominance is partly historical accident.

TIPSv2: Advancing Vision-Language Pretraining with Enhanced Patch-Text Alignment

Hugging Face Daily Papers

TIPSv2 introduces enhanced vision-language pretraining techniques including patch-level distillation, an upgraded masked image objective (iBOT++), and improved caption sampling strategies to achieve superior dense patch-text alignment. The resulting family of image-text encoder models demonstrates strong performance across 9 tasks and 20 datasets.

ViT-Up: Faithful Feature Upsampling for Vision Transformers

Hugging Face Daily Papers

ViT-Up introduces a task-agnostic feature upsampler for Vision Transformers that predicts features at arbitrary continuous image coordinates, enabling dense feature maps at any resolution and improving dense prediction and semantic correspondence benchmarks. It outperforms prior state-of-the-art upsamplers, with gains of up to +2.07 mIoU on Cityscapes and +4.17 [email protected] on SPair-71k.