An Inverse Scaling Law for CLIP Training

Xianhang Li, Zeyu Wang, Cihang Xie
2/12/2026

No official code found. Best implementation: UCSC-VLAA/CLIPA (322 stars, Apache-2.0, PyTorch, last commit 2024-06-03).

Abstract

CLIP, one of the pioneering foundation models that connect images and text, has enabled many recent breakthroughs in computer vision. However, its associated training cost is prohibitively high, imposing a significant barrier to its widespread exploration. In this paper, we present a surprising finding that there exists an inverse scaling law for CLIP training, whereby the larger the image/text encoders used, the shorter the sequence length of image/text tokens that can be applied in training. Moreover, we showcase that the strategy for reducing image/text token length plays a crucial role in determining the quality of this scaling law. As a result of this finding, we are able to successfully train CLIP even with limited computational resources. For example, using 8 A100 GPUs, our CLIP models achieve zero-shot top-1 ImageNet-1k accuracies of 63.2% in ~2 days, 67.8% in ~3 days, and 69.3% in ~4 days. Our method also works well when scaling up -- with G/14, we register a new record of 83.0% ImageNet-1k zero-shot accuracy, and meanwhile accelerate the training by ~33x compared to its OpenCLIP counterpart. By reducing the computation barrier associated with CLIP, we hope to inspire more research in this field, particularly from academics. Our code is available at https://github.com/UCSC-VLAA/CLIPA.

View on arXivView PDF

Code Implementations(1)

UCSC-VLAA/CLIPACommunity100%
PyTorchApache-2.0

[NeurIPS 2023] This repository includes the official implementation of our paper "An Inverse Scaling Law for CLIP Training"

32214Shell, PythonApr 26, 20232 years agoApache-2.0
contrastive-learningdeep-learningfoundation-modelsmultimodal-learningneurips-2023+3 more

Similar Papers

Cite this paper

@article{li2026inverse,
  title  = {An Inverse Scaling Law for CLIP Training},
  author = {Xianhang Li and Zeyu Wang and Cihang Xie},
  year   = {2026},
  eprint = {2305.07017},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2305.07017},
  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.07017.svg)](https://codeofpaper.com/paper/2305.07017)

Discussion