How to train your ViT? Data, Augmentation, and Regularization in Vision Transformers
Andreas Steiner, Alexander Kolesnikov, Xiaohua Zhai, Ross Wightman,, Jakob Uszkoreit, Lucas Beyer

TL;DR
This paper systematically studies how data, augmentation, and regularization affect Vision Transformers (ViT), revealing that combining increased compute and AugReg can match or surpass larger datasets' performance.
Contribution
It provides a comprehensive empirical analysis of training strategies for ViT, demonstrating effective methods to improve performance without massive datasets.
Findings
Increased compute and AugReg can match larger datasets' performance.
ViT models trained on ImageNet-21k can outperform those trained on JFT-300M.
Systematic analysis of data, augmentation, and regularization effects.
Abstract
Vision Transformers (ViT) have been shown to attain highly competitive performance for a wide range of vision applications, such as image classification, object detection and semantic image segmentation. In comparison to convolutional neural networks, the Vision Transformer's weaker inductive bias is generally found to cause an increased reliance on model regularization or data augmentation ("AugReg" for short) when training on smaller training datasets. We conduct a systematic empirical study in order to better understand the interplay between the amount of training data, AugReg, model size and compute budget. As one result of this study we find that the combination of increased compute and AugReg can yield models with the same performance as models trained on an order of magnitude more training data: we train ViT models of various sizes on the public ImageNet-21k dataset which either…
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
- 🤗probing-vits/vit_b16_patch16_224_i1kmodel· ♡ 1♡ 1
- 🤗probing-vits/vit_b16_patch16_224_i21k_i1kmodel· ♡ 1♡ 1
- 🤗timm/vit_base_patch8_224.augreg2_in21k_ft_in1kmodel· 161k dl· ♡ 3161k dl♡ 3
- 🤗timm/vit_base_patch8_224.augreg_in21kmodel· 151 dl151 dl
- 🤗timm/vit_base_patch8_224.augreg_in21k_ft_in1kmodel· 57 dl57 dl
- 🤗timm/vit_base_patch16_224.augreg2_in21k_ft_in1kmodel· 840k dl· ♡ 13840k dl♡ 13
- 🤗timm/vit_base_patch16_224.augreg_in1kmodel· 6.1k dl· ♡ 26.1k dl♡ 2
- 🤗timm/vit_base_patch16_224.augreg_in21kmodel· 519k dl· ♡ 10519k dl♡ 10
- 🤗timm/vit_base_patch16_224.augreg_in21k_ft_in1kmodel· 21k dl21k dl
- 🤗timm/vit_base_patch16_384.augreg_in1kmodel· 195 dl195 dl
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Neural Network Applications · Domain Adaptation and Few-Shot Learning · COVID-19 diagnosis using AI
