[Paper Review] Scaling Vision Transformers to 22 Billion Parameters
The paper presents ViT-22B, a 22B-parameter vision transformer with architectural changes for stability and efficiency, achieving state-of-the-art or competitive results across classification, zero-shot, dense prediction, video, and fairness/robustness benchmarks.
The scaling of Transformers has driven breakthrough capabilities for language models. At present, the largest large language models (LLMs) contain upwards of 100B parameters. Vision Transformers (ViT) have introduced the same architecture to image and video modelling, but these have not yet been successfully scaled to nearly the same degree; the largest dense ViT contains 4B parameters (Chen et al., 2022). We present a recipe for highly efficient and stable training of a 22B-parameter ViT (ViT-22B) and perform a wide variety of experiments on the resulting model. When evaluated on downstream tasks (often with a lightweight linear model on frozen features), ViT-22B demonstrates increasing performance with scale. We further observe other interesting benefits of scale, including an improved tradeoff between fairness and performance, state-of-the-art alignment to human visual perception in terms of shape/texture bias, and improved robustness. ViT-22B demonstrates the potential for "LLM-like" scaling in vision, and provides key steps towards getting there.
Motivation & Objective
- Demonstrate scalable training techniques enabling a 22B-parameter Vision Transformer (ViT-22B).
- Evaluate ViT-22B on diverse tasks: image classification, zero-shot transfer, dense prediction, and video.
- Analyze fairness, robustness, calibration, and human-alignment effects as model scale increases.
- Show that large-scale ViTs can serve as effective teachers through distillation to smaller backbones.
Proposed method
- Introduce parallel layers, QK normalization, and omission of biases to stabilize and accelerate training at scale.
- Use an asynchronous model-parallel approach with 2D mesh sharding over TPUv4 to maximize throughput (1.15k tokens/sec/core).
- Shard model parameters and activations to fit large models and batch sizes while overlapping computation and communication.
- Pre-train on a 4B-image JFT-derived dataset with 256 tokens per image and a 177k-step schedule.
- Evaluate using linear probing, locked-image tuning, and end-to-end fine-tuning across multiple downstream tasks.
Experimental results
Research questions
- RQ1Can ViT-scale training with architectural changes yield stable, efficient training for ViT-22B?
- RQ2How does ViT-22B perform on standard and out-of-distribution image classification tasks compared to prior ViTs and LiT-based methods?
- RQ3Does scaling up ViT improve zero-shot, transfer, and cross-domain robustness, fairness, and human-alignment metrics?
- RQ4Can ViT-22B provide strong feature representations for dense prediction and video tasks when used as a frozen backbone?
Key findings
- ViT-22B achieves strong ImageNet performance as a frozen feature extractor (89.5% accuracy) and 85.9% in zero-shot ImageNet with a matching text tower.
- Distilling ViT-22B into ViT-B/16 and ViT-L/16 yields state-of-the-art ImageNet accuracy for those smaller models (88.6% and 89.6%, respectively).
- Zero-shot results on ObjectNet improve with model size, setting new SOTA for ViT-22B in this challenging dataset.
- ViT-22B shows improved shape bias alignment to humans (87% shape bias) and better fairness/robustness tradeoffs across subgroups and calibration metrics.
- Dense prediction transfer (ADE20k few-shot) and monocular depth estimation benefit from ViT-22B features, outperforming ViT-L and ViT-G baselines.
- Video evaluation with a frozen ViT-22B backbone yields competitive results against prior 4B-parameter models, with room for full fine-tuning gains.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.