Getting ViT in Shape: Scaling Laws for Compute-Optimal Model Design

Ibrahim M. Alabdulmohsin, Xiaohua Zhai, Alexander Kolesnikov, Lucas Beyer
2/12/2026

No official code found. Best implementation: google-research/big_vision (3,478 stars, Apache-2.0, last commit 2025-05-19).

Abstract

Scaling laws have been recently employed to derive compute-optimal model size (number of parameters) for a given compute duration. We advance and refine such methods to infer compute-optimal model shapes, such as width and depth, and successfully implement this in vision transformers. Our shape-optimized vision transformer, SoViT, achieves results competitive with models that exceed twice its size, despite being pre-trained with an equivalent amount of compute. For example, SoViT-400m/14 achieves 90.3% fine-tuning accuracy on ILSRCV2012, surpassing the much larger ViT-g/14 and approaching ViT-G/14 under identical settings, with also less than half the inference cost. We conduct a thorough evaluation across multiple tasks, such as image classification, captioning, VQA and zero-shot transfer, demonstrating the effectiveness of our model across a broad range of domains and identifying limitations. Overall, our findings challenge the prevailing approach of blindly scaling up vision models and pave a path for a more informed scaling.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Official codebase used to develop Vision Transformer, SigLIP, MLP-Mixer, LiT and more.

3,478222HTML, SCSSApr 4, 20221 years agoApache-2.0

Similar Papers

Cite this paper

@article{alabdulmohsin2026getting,
  title  = {Getting ViT in Shape: Scaling Laws for Compute-Optimal Model Design},
  author = {Ibrahim M. Alabdulmohsin and Xiaohua Zhai and Alexander Kolesnikov and Lucas Beyer},
  year   = {2026},
  eprint = {2305.13035},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2305.13035},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.13035.svg)](https://codeofpaper.com/paper/2305.13035)

Discussion