Abstract
The recent work CLIPA presents 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. This finding enables us to train high-performance CLIP models with significantly reduced computations. Building upon this work, we hereby present CLIPA-v2 with two key contributions. Technically, we find this inverse scaling law is also applicable in the finetuning stage, enabling further reduction in computational needs. Empirically, we explore CLIPA at scale, extending the experiments up to the H/14 model with ~13B image-text pairs seen during training. Our results are exciting -- by only allocating a budget of $10,000, our CLIP model achieves an impressive zero-shot ImageNet accuracy of 81.1%, surpassing the prior best CLIP model (from OpenCLIP, 80.1%) by 1.0% and meanwhile reducing the computational cost by ~39X. Moreover, with an additional investment of $4,000, we can further elevate the zero-shot ImageNet accuracy to 81.8%.
Introduction
Contrastive Language-Image Pre-training (CLIP) has become the bedrock of modern computer vision, enabling breakthroughs in zero-shot classification and generative modeling. However, the computational cost of training these models has created a "compute wall," with state-of-the-art models like OpenCLIP requiring hundreds of thousands of dollars in compute resources. CLIPA-v2 aims to democratize high-performance CLIP training by leveraging extreme computational efficiencies, proving that top-tier performance can be achieved on a significantly reduced budget.
Methodology: The Inverse Scaling Law
The foundation of CLIPA-v2 is the Inverse Scaling Law introduced in CLIPA-v1. This law posits that as the size of image and text encoders increases, the number of tokens (sequence length) required during training can be decreased without substantial performance loss.
CLIPA-v2 introduces two key technical advancements:
- Finetuning with Masking: The authors discovered that the inverse scaling law remains effective during the finetuning stage. By applying random masking to reduce input tokens even at full resolution, they further minimized computational overhead.
- Progressive Training: The training pipeline uses a multi-stage approach, starting with small image patches (e.g., 70x70) and high token masking, gradually increasing resolution and unmasking tokens only in the final stages.
Key Insights
A critical observation is that larger models are inherently more robust to token reduction. As illustrated in Figure 2, the performance drop for the H/14 model is minimal even when a large percentage of tokens are masked, compared to smaller models like S/16. This robustness allows the training process to focus on essential semantics at lower costs. Additionally, the choice of data source proved vital; transitioning to DataComp-1B provided significant performance gains, underscoring that data quality is as important as quantity.
Key Results
CLIPA-v2 achieves state-of-the-art (SOTA) results with unprecedented efficiency. The H/14 model reached 81.1% zero-shot ImageNet accuracy with a training budget of just $10,000. With an additional $4,000 investment, the accuracy improved to 81.8%, surpassing the best OpenCLIP model (80.1%) by 1.7%.
In terms of training speed, CLIPA-v2 is approximately 39x faster than the OpenCLIP regime. Furthermore, the model demonstrates exceptional robustness on out-of-distribution benchmarks, outperforming OpenCLIP G/14 on ImageNet-A (82.7% vs 69.4%) and ObjectNet (77.4% vs 73.0%). While a slight performance gap exists in zero-shot retrieval tasks, likely due to dataset characteristics, the overall efficiency-to-performance ratio represents a new benchmark for the field.
Conclusion
CLIPA-v2 demonstrates that massive budgets are not a prerequisite for training world-class CLIP models. By optimizing training through the inverse scaling law and progressive resolution strategies, the authors have made high-performance vision-language models accessible to a broader research community. The project's code and models have been open-sourced to facilitate further innovation in efficient large-scale training.
Summary updated