mlsanityData to 7 Oct 2026

Mini-Batch Optimization of Contrastive Loss

arXiv 2307.05906 ↗First posted 12 Jul 2023cs.LGcited by 8

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  3. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  4. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
  5. 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
  6. 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
  7. 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,539
  8. 2020Bootstrap your own latent: A new approach to self-supervised Learningcited by 4,712
  9. 2021Zero-Shot Text-to-Image Generationcited by 4,276
  10. 2021Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervisioncited by 3,848
  11. 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,857
  12. 2015FaceNet: A Unified Embedding for Face Recognition and Clusteringcited by 2,833
38 more
  1. 2020Supervised Contrastive Learningcited by 2,803
  2. 2020Improved Baselines with Momentum Contrastive Learningcited by 2,282
  3. 2019Self-Supervised Learning of Pretext-Invariant Representationscited by 806
  4. 2019Learning Representations by Maximizing Mutual Information Across Viewscited by 733
  5. 2020Prevalence of Neural Collapse during the terminal phase of deep learning trainingcited by 713
  6. 2023DataComp: In search of the next generation of multimodal datasetscited by 635
  7. 2020Contrastive Learning with Hard Negative Samplescited by 619
  8. 2020A Survey on Contrastive Self-supervised Learningcited by 553
  9. 2017Large Batch Training of Convolutional Networkscited by 529
  10. 2020Hard Negative Mixing for Contrastive Learningcited by 399
  11. 2021Combined Scaling for Zero-shot Transfer Learningcited by 182
  12. 2018Stochastic model-based minimization of weakly convex functionscited by 157
  13. 2021Decoupled Contrastive Learningcited by 141
  14. 2019Understanding the Limitations of Variational Mutual Information Estimatorscited by 140
  15. 2022CyCLIP: Cyclic Contrastive Language-Image Pretrainingcited by 127
  16. 2015Online Batch Selection for Faster Training of Neural Networkscited by 121
  17. 2020Random Reshuffling: Simple Analysis with Vast Improvementscited by 112
  18. 2021Contrastive Learning with Stronger Augmentationscited by 100
  19. 2022On the Optimization Landscape of Neural Collapse under MSE Loss: Global Optimality with Unconstrained Featurescited by 97
  20. 2020AdCo: Adversarial Contrast for Efficient Learning of Unsupervised Representations from Self-Trained Negative Adversariescited by 90
  21. 2021An Unconstrained Layer-Peeled Perspective on Neural Collapsecited by 87
  22. 2015Why Random Reshuffling Beats Stochastic Gradient Descentcited by 78
  23. 2021CrossCLR: Cross-modal Contrastive Learning For Multi-modal Video Representationscited by 72
  24. 2020Sequence-to-Sequence Contrastive Learning for Text Recognitioncited by 70
  25. 2021ICE: Inter-instance Contrastive Encoding for Unsupervised Person Re-identificationcited by 69
  26. 2018Random Shuffling Beats SGD after Finite Epochscited by 66
  27. 2021Dissecting Supervised Contrastive Learningcited by 64
  28. 2019How Good is SGD with Random Shuffling?cited by 63
  29. 2019SGD without Replacement: Sharper Rates for General Smooth Convex Functionscited by 59
  30. 2020A Unified Convergence Analysis for Shuffling-Type Gradient Methodscited by 57
  31. 2020SGD with shuffling: optimal rates without component convexity and large epoch requirementscited by 57
  32. 2020Closing the convergence gap of SGD without replacementcited by 56
  33. 2021Positional Contrastive Learning for Volumetric Medical Image Segmentationcited by 56
  34. 2022UniCLIP: Unified Framework for Contrastive Language-Image Pre-trainingcited by 54
  35. 2020Neural Collapse with Cross-Entropy Losscited by 52
  36. 2019Ordered SGD: A New Stochastic Optimization Framework for Empirical Risk Minimizationcited by 51
  37. 2022Provable Stochastic Optimization for Global Contrastive Learning: Small Batch Does Not Harm Performancecited by 40
  38. 2021Understanding Hard Negatives in Noise Contrastive Estimationcited by 39

50 most cited of 57 All 57 (JSON)

Built on by

Cited by year

Citing papers per year: 2024: 5; 2025: 3.

8 papers.