Papers › An Inverse Scaling Law for CLIP Training

An Inverse Scaling Law for CLIP Training

11 May 2023NeurIPS 2023 11arXiv:2305.07017archive 2025-07-28

Xianhang Li, Zeyu Wang, Cihang Xie

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.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2305.07017")

Code

Syntology Ran 0 of 11 code samples harvested from 1 repository linked to this paper; 11 have no recorded run.

By repository: official repository: 11 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

ucsc-vlaa/clipa officialmentioned in papermentioned on GitHubjaxApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

11 samples harvested; 0 ran; 0 honoured the contract we drafted; 11 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

11unverified

Licence: 0 of the 11 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from ucsc-vlaa/clipa. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

bidirectional_contrastive_loss ucsc-vlaa/clipa/clipa_jax/losses/common.py official repository unverified Apache-2.0 (permissive) · 687383b642d42364 · report
decode_variant UCSC-VLAA/CLIPA/clipa_jax/models/convnext.py official repository unverified Apache-2.0 (permissive) · 92c6112113ef833f · report
get UCSC-VLAA/CLIPA/clipa_jax/datasets/core.py official repository unverified Apache-2.0 (permissive) · da654725d3df8ece · report
get_posemb UCSC-VLAA/CLIPA/clipa_jax/models/text_transformer.py official repository unverified Apache-2.0 (permissive) · 1ededb122742f89c · report
get_posemb UCSC-VLAA/CLIPA/clipa_jax/models/vit.py official repository unverified Apache-2.0 (permissive) · ab73c5ea9b60c840 · report
posemb_sincos_1d UCSC-VLAA/CLIPA/clipa_jax/models/text_transformer.py official repository unverified Apache-2.0 (permissive) · b2b574d0ba793b32 · report
posemb_sincos_2d UCSC-VLAA/CLIPA/clipa_jax/models/common.py official repository unverified Apache-2.0 (permissive) · 3143c90644184650 · report
prepare_inputs_for_generation UCSC-VLAA/CLIPA/clipa_torch/open_clip/coca_model.py official repository unverified Apache-2.0 (permissive) · fb651d0a97fd4d3f · report
register_pooler UCSC-VLAA/CLIPA/clipa_torch/open_clip/hf_model.py official repository unverified Apache-2.0 (permissive) · 2a377da4a76a2d44 · report
resample_posemb UCSC-VLAA/CLIPA/clipa_jax/models/common.py official repository unverified Apache-2.0 (permissive) · 99118ca7ebcca7e2 · report
resample_posemb UCSC-VLAA/CLIPA/clipa_jax/models/convnext.py official repository unverified Apache-2.0 (permissive) · 140a126a24e733d8 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

CLIP

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections