mlsanityData to 7 Oct 2026

FastCLIP: A Suite of Optimization Techniques to Accelerate CLIP Training with Limited Resources

arXiv 2407.01445 ↗First posted 1 Jul 2024cs.LG cs.CVcited by 7

Not on the map. Why?

Abstract (arXiv)

Existing studies of training state-of-the-art Contrastive Language-Image Pretraining (CLIP) models on large-scale data involve hundreds of or even thousands of GPUs due to the requirement of a large batch size. However, such a large amount of resources is not accessible to most people. While advanced compositional optimization techniques for optimizing global contrastive losses have been demonstrated effective for removing the requirement of large batch size, their performance on large-scale data remains underexplored and not optimized. To bridge the gap, this paper explores several aspects of CLIP training with limited resources (e.g., up to tens of GPUs). First, we introduce FastCLIP, a general CLIP training framework built on advanced compositional optimization techniques while designed and optimized for the distributed setting. Our framework is equipped with an efficient gradient reduction strategy to reduce communication overhead. Second, to further boost training efficiency, we investigate three components of the framework from an optimization perspective: the schedule of the inner learning rate, the update rules of the temperature parameter and the model parameters, respectively. Experiments on different strategies for each component shed light on how to conduct CLIP training more efficiently. Finally, we benchmark the performance of FastCLIP and the state-of-the-art training baseline (OpenCLIP) on different compute scales up to 32 GPUs on 8 nodes, and three data scales ranging from 2.7 million, 9.1 million to 315 million image-text pairs to demonstrate the significant improvement of FastCLIP in the resource-limited setting. We release the code of FastCLIP at https://github.com/Optimization-AI/fast_clip .

Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 52 of its 63 references that are in the map. First posted on arXiv 1 Jul 2024.

Builds on

52 of 63 references.

References · 52

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  5. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  6. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
  7. 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,539
  8. 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
  9. 2022BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generationcited by 4,310
  10. 2022LAION-5B: An open large-scale dataset for training next generation image-text modelscited by 4,131
  11. 2023Sigmoid Loss for Language Image Pre-Trainingcited by 3,048
  12. 2023InternVL: Scaling up Vision Foundation Models and Aligning for Generic Visual-Linguistic Taskscited by 2,534
38 more
  1. 2021CLIPScore: A Reference-free Evaluation Metric for Image Captioningcited by 2,388
  2. 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,842
  3. 2021LAION-400M: Open Dataset of CLIP-Filtered 400 Million Image-Text Pairscited by 1,544
  4. 2019Do ImageNet Classifiers Generalize to ImageNet?cited by 1,507
  5. 2015Microsoft COCO Captions: Data Collection and Evaluation Servercited by 1,447
  6. 2019Natural Adversarial Examplescited by 1,401
  7. 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,278
  8. 2022CoCa: Contrastive Captioners are Image-Text Foundation Modelscited by 1,265
  9. 2021Conceptual 12M: Pushing Web-Scale Image-Text Pre-Training To Recognize Long-Tail Visual Conceptscited by 1,209
  10. 2022Reproducible scaling laws for contrastive language-image learningcited by 1,163
  11. 2019Learning Robust Global Representations by Penalizing Local Predictive Powercited by 1,010
  12. 2023EVA-CLIP: Improved Training Techniques for CLIP at Scalecited by 786
  13. 2019Large Batch Optimization for Deep Learning: Training BERT in 76 minutescited by 671
  14. 2023DataComp: In search of the next generation of multimodal datasetscited by 635
  15. 2021ClipCap: CLIP Prefix for Image Captioningcited by 557
  16. 2021SLIP: Self-supervision meets Language-Image Pre-trainingcited by 434
  17. 2023Symbolic Discovery of Optimization Algorithmscited by 423
  18. 2022Scaling Language-Image Pre-training via Maskingcited by 317
  19. 2022VQGAN-CLIP: Open Domain Image Generation and Editing with Natural Language Guidancecited by 285
  20. 2023Data Filtering Networkscited by 247
  21. 2022CyCLIP: Cyclic Contrastive Language-Image Pretrainingcited by 127
  22. 2021LAFITE: Towards Language-Free Training for Text-to-Image Generationcited by 126
  23. 2024EVA-CLIP-18B: Scaling CLIP to 18 Billion Parameterscited by 99
  24. 2023TinyCLIP: CLIP Distillation via Affinity Mimicking and Weight Inheritancecited by 90
  25. 2021Compressing Visual-linguistic Model via Knowledge Distillationcited by 85
  26. 2023An Inverse Scaling Law for CLIP Trainingcited by 76
  27. 2023Stable and low-precision training for large-scale vision-language modelscited by 74
  28. 2022UniCLIP: Unified Framework for Contrastive Language-Image Pre-trainingcited by 54
  29. 2022Dual Temperature Helps Contrastive Learning Without Many Negative Samples: Towards Understanding and Simplifying MoCocited by 52
  30. 2023Temperature Schedules for Self-Supervised Contrastive Methods on Long-Tail Datacited by 44
  31. 2022Provable Stochastic Optimization for Global Contrastive Learning: Small Batch Does Not Harm Performancecited by 40
  32. 2022Democratizing Contrastive Language-Image Pre-training: A CLIP Benchmark of Data, Model, and Supervisioncited by 36
  33. 2023Distilling Large Vision-Language Model with Out-of-Distribution Generalizabilitycited by 33
  34. 2023S-CLIP: Semi-supervised Vision-Language Learning using Few Specialist Captionscited by 29
  35. 2022Finite-Sum Coupled Compositional Stochastic Optimization: Theory and Applicationscited by 27
  36. 2023Not All Semantics are Created Equal: Contrastive Self-supervised Learning with Automatic Temperature Individualizationcited by 25
  37. 2022NLIP: Noise-robust Language-Image Pre-trainingcited by 20
  38. 2023DisCo-CLIP: A Distributed Contrastive Loss for Memory Efficient CLIP Trainingcited by 15

50 most cited of 52 All 52 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 4; 2026: 3.

7 papers.