Mini-Batch Optimization of Contrastive Loss
Not on the map. Why?
Abstract (arXiv)
Contrastive learning has gained significant attention as a method for self-supervised learning. The contrastive loss function ensures that embeddings of positive sample pairs (e.g., different samples from the same class or different views of the same object) are similar, while embeddings of negative pairs are dissimilar. Practical constraints such as large memory requirements make it challenging to consider all possible positive and negative pairs, leading to the use of mini-batch optimization. In this paper, we investigate the theoretical aspects of mini-batch optimization in contrastive learning. We show that mini-batch optimization is equivalent to full-batch optimization if and only if all binomNB mini-batches are selected, while sub-optimality may arise when examining only a subset. We then demonstrate that utilizing high-loss mini-batches can speed up SGD convergence and propose a spectral clustering-based approach for identifying these high-loss mini-batches. Our experimental results validate our theoretical findings and demonstrate that our proposed algorithm outperforms vanilla SGD in practically relevant settings, providing a better understanding of mini-batch optimization in contrastive learning.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 57 of its 83 references that are in the map. First posted on arXiv 12 Jul 2023.
Builds on
57 of 83 references.
References · 57
- 2017Attention Is All You Needcited by 59,932
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
- 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,539
- 2020Bootstrap your own latent: A new approach to self-supervised Learningcited by 4,712
- 2021Zero-Shot Text-to-Image Generationcited by 4,276
- 2021Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervisioncited by 3,848
- 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,857
- 2015FaceNet: A Unified Embedding for Face Recognition and Clusteringcited by 2,833
38 more
- 2020Supervised Contrastive Learningcited by 2,803
- 2020Improved Baselines with Momentum Contrastive Learningcited by 2,282
- 2019Self-Supervised Learning of Pretext-Invariant Representationscited by 806
- 2019Learning Representations by Maximizing Mutual Information Across Viewscited by 733
- 2020Prevalence of Neural Collapse during the terminal phase of deep learning trainingcited by 713
- 2023DataComp: In search of the next generation of multimodal datasetscited by 635
- 2020Contrastive Learning with Hard Negative Samplescited by 619
- 2020A Survey on Contrastive Self-supervised Learningcited by 553
- 2017Large Batch Training of Convolutional Networkscited by 529
- 2020Hard Negative Mixing for Contrastive Learningcited by 399
- 2021Combined Scaling for Zero-shot Transfer Learningcited by 182
- 2018Stochastic model-based minimization of weakly convex functionscited by 157
- 2021Decoupled Contrastive Learningcited by 141
- 2019Understanding the Limitations of Variational Mutual Information Estimatorscited by 140
- 2022CyCLIP: Cyclic Contrastive Language-Image Pretrainingcited by 127
- 2015Online Batch Selection for Faster Training of Neural Networkscited by 121
- 2020Random Reshuffling: Simple Analysis with Vast Improvementscited by 112
- 2021Contrastive Learning with Stronger Augmentationscited by 100
- 2022On the Optimization Landscape of Neural Collapse under MSE Loss: Global Optimality with Unconstrained Featurescited by 97
- 2020AdCo: Adversarial Contrast for Efficient Learning of Unsupervised Representations from Self-Trained Negative Adversariescited by 90
- 2021An Unconstrained Layer-Peeled Perspective on Neural Collapsecited by 87
- 2015Why Random Reshuffling Beats Stochastic Gradient Descentcited by 78
- 2021CrossCLR: Cross-modal Contrastive Learning For Multi-modal Video Representationscited by 72
- 2020Sequence-to-Sequence Contrastive Learning for Text Recognitioncited by 70
- 2021ICE: Inter-instance Contrastive Encoding for Unsupervised Person Re-identificationcited by 69
- 2018Random Shuffling Beats SGD after Finite Epochscited by 66
- 2021Dissecting Supervised Contrastive Learningcited by 64
- 2019How Good is SGD with Random Shuffling?cited by 63
- 2019SGD without Replacement: Sharper Rates for General Smooth Convex Functionscited by 59
- 2020A Unified Convergence Analysis for Shuffling-Type Gradient Methodscited by 57
- 2020SGD with shuffling: optimal rates without component convexity and large epoch requirementscited by 57
- 2020Closing the convergence gap of SGD without replacementcited by 56
- 2021Positional Contrastive Learning for Volumetric Medical Image Segmentationcited by 56
- 2022UniCLIP: Unified Framework for Contrastive Language-Image Pre-trainingcited by 54
- 2020Neural Collapse with Cross-Entropy Losscited by 52
- 2019Ordered SGD: A New Stochastic Optimization Framework for Empirical Risk Minimizationcited by 51
- 2022Provable Stochastic Optimization for Global Contrastive Learning: Small Batch Does Not Harm Performancecited by 40
- 2021Understanding Hard Negatives in Noise Contrastive Estimationcited by 39
50 most cited of 57 All 57 (JSON)
Built on by
Citing papers per year: 2024: 5; 2025: 3.
8 papers.
- 2024Embedding And Clustering Your Data Can Improve Contrastive Pretrainingcited by 17
- 2025Multimodal Reasoning Agent for Zero-Shot Composed Image Retrievalcited by 7
- 2024Analysis of Using Sigmoid Loss for Contrastive Learningcited by 6
- 2024Bridging Mini-Batch and Asymptotic Analysis in Contrastive Learning: From InfoNCE to Kernel-Based Lossescited by 6
- 2025A Theoretical Framework for Preventing Class Collapse in Supervised Contrastive Learningcited by 2
- 2025On the Similarities of Embeddings in Contrastive Learningcited by 2
- 2024BioNCERE: Non-Contrastive Enhancement For Relation Extraction In Biomedical Textscited by 0
- 2024Learn More by Using Less: Distributed Learning with Energy-Constrained Devicescited by 0
- 2025On the Similarities of Embeddings in Contrastive Learning11 Jun 2025
- 2025Multimodal Reasoning Agent for Zero-Shot Composed Image Retrieval26 May 2025
- 2025A Theoretical Framework for Preventing Class Collapse in Supervised Contrastive Learning11 Mar 2025
- 2024Learn More by Using Less: Distributed Learning with Energy-Constrained Devices3 Dec 2024
- 2024BioNCERE: Non-Contrastive Enhancement For Relation Extraction In Biomedical Texts31 Oct 2024
- 2024Embedding And Clustering Your Data Can Improve Contrastive Pretraining26 Jul 2024
- 2024Bridging Mini-Batch and Asymptotic Analysis in Contrastive Learning: From InfoNCE to Kernel-Based Losses28 May 2024
- 2024Analysis of Using Sigmoid Loss for Contrastive Learning20 Feb 2024