Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Scaling Vision Transformers

About

Attention-based neural networks such as the Vision Transformer (ViT) have recently attained state-of-the-art results on many computer vision benchmarks. Scale is a primary ingredient in attaining excellent results, therefore, understanding a model's scaling properties is a key to designing future generations effectively. While the laws for scaling Transformer language models have been studied, it is unknown how Vision Transformers scale. To address this, we scale ViT models and data, both up and down, and characterize the relationships between error rate, data, and compute. Along the way, we refine the architecture and training of ViT, reducing memory consumption and increasing accuracy of the resulting models. As a result, we successfully train a ViT model with two billion parameters, which attains a new state-of-the-art on ImageNet of 90.45% top-1 accuracy. The model also performs well for few-shot transfer, for example, reaching 84.86% top-1 accuracy on ImageNet with only 10 examples per class.

Xiaohua Zhai, Alexander Kolesnikov, Neil Houlsby, Lucas Beyer• 2021

Related benchmarks

TaskDatasetResultRank
Semantic segmentationADE20K (val)
mIoU55.6
2731
ClassificationImageNet-1K 1.0 (val)
Top-1 Accuracy (%)90.45
1155
Image ClassificationImageNet 1k (test)
Top-1 Accuracy90.5
798
Image ClassificationImageNet-1k (val)
Top-1 Acc90.5
706
Image ClassificationImageNet A
Top-1 Acc86.95
553
Image ClassificationImageNet-1K
Top-1 Acc90.45
524
Image ClassificationImageNet-1k (val)
Top-1 Accuracy90.5
512
Image ClassificationImageNet V2
Top-1 Acc83.61
487
Image ClassificationImageNet-R
Top-1 Acc94.22
474
Image ClassificationImageNet ILSVRC-2012 (val)
Top-1 Accuracy90.45
405
Showing 10 of 33 rows

Other info

Code

Follow for update