[Paper Review] EVA-CLIP: Improved Training Techniques for CLIP at Scale
EVA-CLIP presents a family of CLIP models with enhanced training efficiency and performance through EVA-based initialization, LAMB optimization, token masking, and flash attention, achieving state-of-the-art zero-shot accuracy at large scale with reduced training cost.
Contrastive language-image pre-training, CLIP for short, has gained increasing attention for its potential in various scenarios. In this paper, we propose EVA-CLIP, a series of models that significantly improve the efficiency and effectiveness of CLIP training. Our approach incorporates new techniques for representation learning, optimization, and augmentation, enabling EVA-CLIP to achieve superior performance compared to previous CLIP models with the same number of parameters but significantly smaller training costs. Notably, our largest 5.0B-parameter EVA-02-CLIP-E/14+ with only 9 billion seen samples achieves 82.0 zero-shot top-1 accuracy on ImageNet-1K val. A smaller EVA-02-CLIP-L/14+ with only 430 million parameters and 6 billion seen samples achieves 80.4 zero-shot top-1 accuracy on ImageNet-1K val. To facilitate open access and open research, we release the complete suite of EVA-CLIP to the community at https://github.com/baaivision/EVA/tree/master/EVA-CLIP.
Motivation & Objective
- Motivate scalable, efficient CLIP training that preserves or improves zero-shot performance.
- Leverage pre-trained EVA representations to initialize CLIP encoders for faster convergence.
- Reduce training costs and stabilize large-scale CLIP optimization through specialized techniques.
- Demonstrate strong zero-shot performance across ImageNet variants and auxiliary benchmarks with various model sizes.
Proposed method
- Initialize CLIP encoders with pre-trained EVA representations to improve feature quality and convergence.
- Use the LAMB optimizer to enable large-batch training for CLIP-scale models.
- Apply 50% random masking of image tokens (FLIP approach) to halve time complexity and enable larger effective batch sizes.
- Employ flash attention to accelerate attention computations during training.
- Train with DeepSpeed and ZeRO-1 for memory efficiency and scalable optimization.
- Report results across multiple EVA-CLIP configurations on ImageNet variants, 27 zero-shot image classification benchmarks, video benchmarks, and retrieval tasks.
Experimental results
Research questions
- RQ1Can EVA-based initialization, together with optimized training techniques, enable stable, scalable CLIP training at billions of seen samples?
- RQ2How do the proposed techniques affect zero-shot performance across ImageNet variants and other benchmarks?
- RQ3What are the trade-offs in training time, memory, and accuracy when applying token masking and large-batch optimization to CLIP?
- RQ4Do larger EVA-CLIP models maintain or improve zero-shot and retrieval performance with fewer training samples compared to prior CLIP models?
Key findings
- Largest EVA-02-CLIP-E/14+ (5.0B params, 9B seen) achieves 82.0% zero-shot top-1 on ImageNet-1K val.
- Smaller EVA-02-CLIP-L/14+ (430M params, 6B seen) achieves 80.4% zero-shot top-1 on ImageNet-1K val.
- EVA-CLIP models outperform CLIP and OpenCLIP baselines across zero-shot ImageNet variants and robustness benchmarks with similar or fewer parameters and data.
- Zero-shot averaged accuracy across 27 benchmarks reaches up to 80.9% for EVA-02-CLIP-E/14+ on ImageNet variants and ObjectNet.
- 50% image token masking yields a 2x speedup with minimal accuracy loss; flash attention further reduces training time.
- Training with DeepSpeed ZeRO-1 and fp16/bfloat16 (as needed) enables stable large-scale CLIP training with reduced resource usage.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.