mlsanityData to 7 Oct 2026

DisCo-CLIP: A Distributed Contrastive Loss for Memory Efficient CLIP Training

arXiv 2304.08480 ↗First posted 17 Apr 2023cs.CV cs.AI cs.CLcited by 15

Not on the map. Why?

Abstract (arXiv)

We propose DisCo-CLIP, a distributed memory-efficient CLIP training approach, to reduce the memory consumption of contrastive loss when training contrastive learning models. Our approach decomposes the contrastive loss and its gradient computation into two parts, one to calculate the intra-GPU gradients and the other to compute the inter-GPU gradients. According to our decomposition, only the intra-GPU gradients are computed on the current GPU, while the inter-GPU gradients are collected via allreduce from other GPUs instead of being repeatedly computed on every GPU. In this way, we can reduce the GPU memory consumption of contrastive loss computation from bigO(B2) to bigO(fracB2N), where B and N are the batch size and the number of GPUs used for training. Such a distributed solution is mathematically equivalent to the original non-distributed contrastive loss computation, without sacrificing any computation accuracy. It is particularly efficient for large-batch CLIP training. For instance, DisCo-CLIP can enable contrastive training of a ViT-B/32 model with a batch size of 32K or 196K using 8 or 64 A100 40GB GPUs, compared with the original CLIP solution which requires 128 A100 40GB GPUs to train a ViT-B/32 model with a batch size of 32K. The code will be released at https://github.com/IDEA-Research/DisCo-CLIP

Key facts. Cited by 15 papers in the map (data through 7 Oct 2026). Builds on 42 of its 53 references that are in the map. First posted on arXiv 17 Apr 2023.

Builds on

42 of 53 references.

References · 42

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  4. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  5. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  6. 2020Language Models are Few-Shot Learnerscited by 32,199
  7. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  8. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  9. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  10. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
  11. 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
  12. 2022BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generationcited by 4,310
30 more
  1. 2022LAION-5B: An open large-scale dataset for training next generation image-text modelscited by 4,131
  2. 2021Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervisioncited by 3,848
  3. 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,842
  4. 2020Reformer: The Efficient Transformercited by 1,658
  5. 2021An Empirical Study of Training Self-Supervised Vision Transformerscited by 1,610
  6. 2021LAION-400M: Open Dataset of CLIP-Filtered 400 Million Image-Text Pairscited by 1,544
  7. 2019Do ImageNet Classifiers Generalize to ImageNet?cited by 1,507
  8. 2017Accurate, Large Minibatch SGD: Training ImageNet in 1 Hourcited by 1,479
  9. 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,278
  10. 2022CoCa: Contrastive Captioners are Image-Text Foundation Modelscited by 1,265
  11. 2021Conceptual 12M: Pushing Web-Scale Image-Text Pre-Training To Recognize Long-Tail Visual Conceptscited by 1,209
  12. 2021Grounded Language-Image Pre-trainingcited by 1,147
  13. 2019Learning Robust Global Representations by Penalizing Local Predictive Powercited by 1,010
  14. 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
  15. 2016Training Deep Nets with Sublinear Memory Costcited by 825
  16. 2021Florence: A New Foundation Model for Computer Visioncited by 802
  17. 2019Big Transfer (BiT): General Visual Representation Learningcited by 766
  18. 2019Large Batch Optimization for Deep Learning: Training BERT in 76 minutescited by 671
  19. 2021FILIP: Fine-grained Interactive Language-Image Pre-Trainingcited by 626
  20. 2021ImageNet-21K Pretraining for the Massescited by 607
  21. 2021LiT: Zero-Shot Transfer with Locked-image text Tuningcited by 572
  22. 2022GIT: A Generative Image-to-text Transformer for Vision and Languagecited by 536
  23. 2021WIT: Wikipedia-based Image Text Dataset for Multimodal Multilingual Machine Learningcited by 285
  24. 2021ZeRO-Infinity: Breaking the GPU Memory Wall for Extreme Scale Deep Learningcited by 253
  25. 2015YFCC100M: The New Data in Multimedia Researchcited by 234
  26. 2017The Reversible Residual Network: Backpropagation Without Storing Activationscited by 215
  27. 2021Scaling Deep Contrastive Learning Batch Size under Memory Limited Setupcited by 123
  28. 2021Colossal-AI: A Unified Deep Learning System For Large-Scale Parallel Trainingcited by 96
  29. 2022K-LITE: Learning Transferable Visual Models with External Knowledgecited by 79
  30. 2016Memory-Efficient Backpropagation Through Timecited by 78

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 1; 2024: 9; 2025: 2; 2026: 3.

15 papers.

Sort:

By area:

  1. 2024Arctic-Embed: Scalable, Efficient, and Accurate Text Embedding Modelscited by 60
  2. 2024CARZero: Cross-Attention Alignment for Radiology Zero-Shot Classificationcited by 40
  3. 2026CLAP: Contrastive Latent Action Pretraining for Learning Vision-Language-Action Models from Human Videoscited by 27
  4. 2024The Russian-focused embedders' exploration: ruMTEB benchmark and Russian embedding model designcited by 20
  5. 2024A3lign-DFER: Pioneering Comprehensive Dynamic Affective Alignment for Dynamic Facial Expression Recognition with CLIPcited by 14
  6. 2025Recurrence-Enhanced Vision-and-Language Transformers for Robust Multimodal Document Retrievalcited by 13
  7. 2024Sparse Concept Bottleneck Models: Gumbel Tricks in Contrastive Learningcited by 11
  8. 2024Taiyi-Diffusion-XL: Advancing Bilingual Text-to-Image Generation with Large Vision-Language Model Supportcited by 10
  9. 2024FastCLIP: A Suite of Optimization Techniques to Accelerate CLIP Training with Limited Resourcescited by 7
  10. 2023iDesigner: A High-Resolution and Complex-Prompt Following Text-to-Image Diffusion Model for Interior Designcited by 4
  11. 2024Breaking the Memory Barrier: Near Infinite Batch Size Scaling for Contrastive Losscited by 4
  12. 2024Spurious Feature Eraser: Stabilizing Test-Time Adaptation for Vision-Language Foundation Modelcited by 2
3 more
  1. 2025AmorLIP: Efficient Language-Image Pretraining via Amortizationcited by 2
  2. 2026Breaking the Limits of Open-Weight CLIP: An Optimization Framework for Self-supervised Fine-tuning of CLIPcited by 1
  3. 2026Concrete Jungle: Towards Concreteness Paved Contrastive Negative Mining for Compositional Understandingcited by 0