Skip to main content
QUICK REVIEW

[Paper Review] CLIPA-v2: Scaling CLIP Training with 81.1% Zero-shot ImageNet Accuracy within a \$10,000 Budget; An Extra \$4,000 Unlocks 81.8% Accuracy

Xianhang Li, Zeyu Wang|arXiv (Cornell University)|Jun 27, 2023
Digital Media Forensic DetectionComputer Science4 citations
TL;DR

CLIPA-v2 introduces an inverse scaling law applicable during both pretraining and fine-tuning, enabling efficient training of high-performance CLIP models. By leveraging this insight, the authors achieve 81.1% zero-shot ImageNet accuracy within a $10,000 budget using a H/14 model, surpassing prior bests by 1.0% and reducing training costs by ~39×, with an additional $4,000 investment boosting accuracy to 81.8%.

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%. Our code and models are available at https://github.com/UCSC-VLAA/CLIPA.

Motivation & Objective

  • To extend the inverse scaling law from pretraining to fine-tuning, reducing computational costs in CLIP training.
  • To scale CLIP training to larger models (up to H/14), larger datasets (up to DataComp-1B), and longer schedules (~13B samples seen).
  • To achieve state-of-the-art zero-shot ImageNet accuracy within a constrained $10,000 budget, enabling broader access to high-performance CLIP models.
  • To investigate the impact of masking strategies and progressive fine-tuning on model performance and efficiency.
  • To compare CLIPA-v2’s performance with OpenCLIP and other SOTA models across zero-shot classification, retrieval, and robustness benchmarks.

Proposed method

  • Apply the inverse scaling law to both pretraining and fine-tuning stages, allowing larger models to use fewer input tokens without performance degradation.
  • Use 30% random masking during fine-tuning with $224^2$ resolution for the first 512M samples and 40% masking with $336^2$ resolution for the final 128M samples in a progressive fine-tuning schedule.
  • Train the H/14 model on LAION-2B and DataComp-1B datasets, using image tokens of size $84^2$ during pretraining and $224^2$/$336^2$ during fine-tuning.
  • Optimize training efficiency by reducing sequence length in pretraining while maintaining high accuracy, leveraging the inverse scaling behavior.
  • Implement a two-stage fine-tuning strategy: first with lower resolution and masking, then with higher resolution and reduced learning rate.
  • Open-source trained models in both JAX and PyTorch to support reproducibility and further research.

Experimental results

Research questions

  • RQ1Can the inverse scaling law observed in CLIPA pretraining be extended to the fine-tuning stage to further reduce computational costs?
  • RQ2How does scaling model size (up to H/14), data (up to DataComp-1B), and training schedule (~13B samples) affect zero-shot ImageNet accuracy?
  • RQ3What is the optimal combination of masking strategy, resolution, and learning rate schedule during fine-tuning for maximizing accuracy and efficiency?
  • RQ4How does CLIPA-v2 compare to OpenCLIP and other SOTA models in terms of zero-shot accuracy, robustness, and training cost?
  • RQ5To what extent do data source (LAION-2B vs. DataComp-1B) and resolution progression influence retrieval and classification performance?

Key findings

  • CLIPA-v2 achieves 81.1% zero-shot ImageNet accuracy within a $10,000 budget using a H/14 model, surpassing OpenCLIP’s 80.1% by 1.0%.
  • The model reduces training cost by approximately 39× compared to the prior best CLIP model (OpenCLIP G/14).
  • An additional $4,000 investment increases zero-shot ImageNet accuracy to 81.8% through higher-resolution pretraining and progressive fine-tuning.
  • Progressive fine-tuning with $224^2$ and $336^2$ resolutions and 30%/40% masking ratios yields a 0.2% accuracy gain and 1.5× speedup over full-resolution fine-tuning.
  • The 81.8% H/14 model outperforms OpenCLIP’s 80.1% G/14 model on all robustness benchmarks: IN-V2 (+2.0%), IN-A (+13.3%), IN-R (+2.2%), ObjectNet (+4.4%), and IN-SK (+3.9%).
  • Despite superior zero-shot classification and robustness, OpenCLIP’s G/14 model still leads in zero-shot retrieval on COCO and Flickr30k, suggesting data distribution differences favor retrieval performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.