DisCo-CLIP: A Distributed Contrastive Loss for Memory Efficient CLIP Training
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
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
- 2022BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generationcited by 4,310
30 more
- 2022LAION-5B: An open large-scale dataset for training next generation image-text modelscited by 4,131
- 2021Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervisioncited by 3,848
- 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,842
- 2020Reformer: The Efficient Transformercited by 1,658
- 2021An Empirical Study of Training Self-Supervised Vision Transformerscited by 1,610
- 2021LAION-400M: Open Dataset of CLIP-Filtered 400 Million Image-Text Pairscited by 1,544
- 2019Do ImageNet Classifiers Generalize to ImageNet?cited by 1,507
- 2017Accurate, Large Minibatch SGD: Training ImageNet in 1 Hourcited by 1,479
- 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,278
- 2022CoCa: Contrastive Captioners are Image-Text Foundation Modelscited by 1,265
- 2021Conceptual 12M: Pushing Web-Scale Image-Text Pre-Training To Recognize Long-Tail Visual Conceptscited by 1,209
- 2021Grounded Language-Image Pre-trainingcited by 1,147
- 2019Learning Robust Global Representations by Penalizing Local Predictive Powercited by 1,010
- 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
- 2016Training Deep Nets with Sublinear Memory Costcited by 825
- 2021Florence: A New Foundation Model for Computer Visioncited by 802
- 2019Big Transfer (BiT): General Visual Representation Learningcited by 766
- 2019Large Batch Optimization for Deep Learning: Training BERT in 76 minutescited by 671
- 2021FILIP: Fine-grained Interactive Language-Image Pre-Trainingcited by 626
- 2021ImageNet-21K Pretraining for the Massescited by 607
- 2021LiT: Zero-Shot Transfer with Locked-image text Tuningcited by 572
- 2022GIT: A Generative Image-to-text Transformer for Vision and Languagecited by 536
- 2021WIT: Wikipedia-based Image Text Dataset for Multimodal Multilingual Machine Learningcited by 285
- 2021ZeRO-Infinity: Breaking the GPU Memory Wall for Extreme Scale Deep Learningcited by 253
- 2015YFCC100M: The New Data in Multimedia Researchcited by 234
- 2017The Reversible Residual Network: Backpropagation Without Storing Activationscited by 215
- 2021Scaling Deep Contrastive Learning Batch Size under Memory Limited Setupcited by 123
- 2021Colossal-AI: A Unified Deep Learning System For Large-Scale Parallel Trainingcited by 96
- 2022K-LITE: Learning Transferable Visual Models with External Knowledgecited by 79
- 2016Memory-Efficient Backpropagation Through Timecited by 78
Built on by
Citing papers per year: 2023: 1; 2024: 9; 2025: 2; 2026: 3.
15 papers.
Sort:
By area:
- 2024Arctic-Embed: Scalable, Efficient, and Accurate Text Embedding Modelscited by 60
- 2024CARZero: Cross-Attention Alignment for Radiology Zero-Shot Classificationcited by 40
- 2026CLAP: Contrastive Latent Action Pretraining for Learning Vision-Language-Action Models from Human Videoscited by 27
- 2024The Russian-focused embedders' exploration: ruMTEB benchmark and Russian embedding model designcited by 20
- 2024A3lign-DFER: Pioneering Comprehensive Dynamic Affective Alignment for Dynamic Facial Expression Recognition with CLIPcited by 14
- 2025Recurrence-Enhanced Vision-and-Language Transformers for Robust Multimodal Document Retrievalcited by 13
- 2024Sparse Concept Bottleneck Models: Gumbel Tricks in Contrastive Learningcited by 11
- 2024Taiyi-Diffusion-XL: Advancing Bilingual Text-to-Image Generation with Large Vision-Language Model Supportcited by 10
- 2024FastCLIP: A Suite of Optimization Techniques to Accelerate CLIP Training with Limited Resourcescited by 7
- 2023iDesigner: A High-Resolution and Complex-Prompt Following Text-to-Image Diffusion Model for Interior Designcited by 4
- 2024Breaking the Memory Barrier: Near Infinite Batch Size Scaling for Contrastive Losscited by 4
- 2024Spurious Feature Eraser: Stabilizing Test-Time Adaptation for Vision-Language Foundation Modelcited by 2
3 more
- 2025AmorLIP: Efficient Language-Image Pretraining via Amortizationcited by 2
- 2026Breaking the Limits of Open-Weight CLIP: An Optimization Framework for Self-supervised Fine-tuning of CLIPcited by 1
- 2026Concrete Jungle: Towards Concreteness Paved Contrastive Negative Mining for Compositional Understandingcited by 0
- 2026Concrete Jungle: Towards Concreteness Paved Contrastive Negative Mining for Compositional Understanding14 Apr 2026
- 2026Breaking the Limits of Open-Weight CLIP: An Optimization Framework for Self-supervised Fine-tuning of CLIP14 Jan 2026
- 2026CLAP: Contrastive Latent Action Pretraining for Learning Vision-Language-Action Models from Human Videos7 Jan 2026
- 2025AmorLIP: Efficient Language-Image Pretraining via Amortization25 May 2025
- 2025Recurrence-Enhanced Vision-and-Language Transformers for Robust Multimodal Document Retrieval3 Mar 2025
- 2024Breaking the Memory Barrier: Near Infinite Batch Size Scaling for Contrastive Loss22 Oct 2024
- 2024The Russian-focused embedders' exploration: ruMTEB benchmark and Russian embedding model design22 Aug 2024
- 2024FastCLIP: A Suite of Optimization Techniques to Accelerate CLIP Training with Limited Resources1 Jul 2024
- 2024Arctic-Embed: Scalable, Efficient, and Accurate Text Embedding Models8 May 2024
- 2024Sparse Concept Bottleneck Models: Gumbel Tricks in Contrastive Learning4 Apr 2024
- 2024A3lign-DFER: Pioneering Comprehensive Dynamic Affective Alignment for Dynamic Facial Expression Recognition with CLIP7 Mar 2024
- 2024Spurious Feature Eraser: Stabilizing Test-Time Adaptation for Vision-Language Foundation Model1 Mar 2024
3 more
- 2024CARZero: Cross-Attention Alignment for Radiology Zero-Shot Classification27 Feb 2024
- 2024Taiyi-Diffusion-XL: Advancing Bilingual Text-to-Image Generation with Large Vision-Language Model Support26 Jan 2024
- 2023iDesigner: A High-Resolution and Complex-Prompt Following Text-to-Image Diffusion Model for Interior Design7 Dec 2023
- 2025Recurrence-Enhanced Vision-and-Language Transformers for Robust Multimodal Document Retrievalcited by 13
- 2024Taiyi-Diffusion-XL: Advancing Bilingual Text-to-Image Generation with Large Vision-Language Model Supportcited by 10
- 2024Spurious Feature Eraser: Stabilizing Test-Time Adaptation for Vision-Language Foundation Modelcited by 2
- 2026Concrete Jungle: Towards Concreteness Paved Contrastive Negative Mining for Compositional Understandingcited by 0
- 2026Concrete Jungle: Towards Concreteness Paved Contrastive Negative Mining for Compositional Understanding14 Apr 2026
- 2025Recurrence-Enhanced Vision-and-Language Transformers for Robust Multimodal Document Retrieval3 Mar 2025
- 2024Spurious Feature Eraser: Stabilizing Test-Time Adaptation for Vision-Language Foundation Model1 Mar 2024
- 2024Taiyi-Diffusion-XL: Advancing Bilingual Text-to-Image Generation with Large Vision-Language Model Support26 Jan 2024
- 2024Arctic-Embed: Scalable, Efficient, and Accurate Text Embedding Modelscited by 60
- 2024CARZero: Cross-Attention Alignment for Radiology Zero-Shot Classificationcited by 40
- 2024The Russian-focused embedders' exploration: ruMTEB benchmark and Russian embedding model designcited by 20
- 2024A3lign-DFER: Pioneering Comprehensive Dynamic Affective Alignment for Dynamic Facial Expression Recognition with CLIPcited by 14
- 2024Sparse Concept Bottleneck Models: Gumbel Tricks in Contrastive Learningcited by 11
- 2024FastCLIP: A Suite of Optimization Techniques to Accelerate CLIP Training with Limited Resourcescited by 7
- 2024Breaking the Memory Barrier: Near Infinite Batch Size Scaling for Contrastive Losscited by 4
- 2025AmorLIP: Efficient Language-Image Pretraining via Amortizationcited by 2
- 2026Breaking the Limits of Open-Weight CLIP: An Optimization Framework for Self-supervised Fine-tuning of CLIPcited by 1
- 2026Breaking the Limits of Open-Weight CLIP: An Optimization Framework for Self-supervised Fine-tuning of CLIP14 Jan 2026
- 2025AmorLIP: Efficient Language-Image Pretraining via Amortization25 May 2025
- 2024Breaking the Memory Barrier: Near Infinite Batch Size Scaling for Contrastive Loss22 Oct 2024
- 2024The Russian-focused embedders' exploration: ruMTEB benchmark and Russian embedding model design22 Aug 2024
- 2024FastCLIP: A Suite of Optimization Techniques to Accelerate CLIP Training with Limited Resources1 Jul 2024
- 2024Arctic-Embed: Scalable, Efficient, and Accurate Text Embedding Models8 May 2024
- 2024Sparse Concept Bottleneck Models: Gumbel Tricks in Contrastive Learning4 Apr 2024
- 2024A3lign-DFER: Pioneering Comprehensive Dynamic Affective Alignment for Dynamic Facial Expression Recognition with CLIP7 Mar 2024
- 2024CARZero: Cross-Attention Alignment for Radiology Zero-Shot Classification27 Feb 2024