mlsanityData to 14 Oct 2026

On the Similarities of Embeddings in Contrastive Learning

arXiv 2506.09781 ↗First posted 11 Jun 2025cs.LG stat.MLcited by 2

Not on the map. Why?

Abstract (arXiv)

Contrastive learning operates on a simple yet effective principle: Embeddings of positive pairs are pulled together, while those of negative pairs are pushed apart. In this paper, we propose a unified framework for understanding contrastive learning through the lens of cosine similarity, and present two key theoretical insights derived from this framework. First, in full-batch settings, we show that perfect alignment of positive pairs is unattainable when negative-pair similarities fall below a threshold, and this misalignment can be mitigated by incorporating within-view negative pairs into the objective. Second, in mini-batch settings, smaller batch sizes induce stronger separation among negative pairs in the embedding space, i.e., higher variance in their similarities, which in turn degrades the quality of learned representations compared to full-batch settings. To address this, we propose an auxiliary loss that reduces the variance of negative-pair similarities in mini-batch settings. Empirical results show that incorporating the proposed loss improves performance in small-batch settings.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 35 of its 45 references that are in the map. First posted on arXiv 11 Jun 2025.

Builds on

35 of 45 references.

References · 35

  1. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  2. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
  3. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
  4. 2018Representation Learning with Contrastive Predictive Codingcited by 7,777
  5. 2021Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervisioncited by 3,864
  6. 2023Sigmoid Loss for Language Image Pre-Trainingcited by 3,109
  7. 2020Exploring Simple Siamese Representation Learningcited by 2,866
  8. 2020Supervised Contrastive Learningcited by 2,829
  9. 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,173
  10. 2018Unsupervised Feature Learning via Non-Parametric Instance-level Discriminationcited by 1,845
  11. 2020Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hyperspherecited by 1,405
  12. 2019Contrastive Multiview Codingcited by 1,301
23 more
  1. 2018Learning deep representations by mutual information estimation and maximizationcited by 1,273
  2. 2020What Makes for Good Views for Contrastive Learning?cited by 846
  3. 2019Learning Representations by Maximizing Mutual Information Across Viewscited by 734
  4. 2020Prevalence of Neural Collapse during the terminal phase of deep learning trainingcited by 719
  5. 2018Do Better ImageNet Models Transfer Better?cited by 565
  6. 2020Understanding the Behaviour of Contrastive Losscited by 398
  7. 2020Spatiotemporal Contrastive Video Representation Learningcited by 372
  8. 2021Provable Guarantees for Self-Supervised Deep Learning with Spectral Contrastive Losscited by 313
  9. 2017NormFace: L2 Hypersphere Embedding for Face Verificationcited by 237
  10. 2020InfoXLM: An Information-Theoretic Framework for Cross-Lingual Language Model Pre-Trainingcited by 237
  11. 2021Contrastive Learning Inverts the Data Generating Processcited by 221
  12. 2021Combined Scaling for Zero-shot Transfer Learningcited by 182
  13. 2021Decoupled Contrastive Learningcited by 143
  14. 2021Solo-learn: A Library of Self-supervised Methods for Visual Representation Learningcited by 116
  15. 2021Self-Supervised Learning with Kernel Dependence Maximizationcited by 77
  16. 2021Improving Transferability of Representations via Augmentation-Aware Self-Supervisioncited by 49
  17. 2022Provable Stochastic Optimization for Global Contrastive Learning: Small Batch Does Not Harm Performancecited by 43
  18. 2024Investigating the Benefits of Projection Head for Representation Learningcited by 20
  19. 2023Mini-Batch Optimization of Contrastive Losscited by 8
  20. 2024Bridging Mini-Batch and Asymptotic Analysis in Contrastive Learning: From InfoNCE to Kernel-Based Lossescited by 7
  21. 2023Towards Understanding the Mechanism of Contrastive Learning via Similarity Structure: A Theoretical Analysiscited by 6
  22. 2024Analysis of Using Sigmoid Loss for Contrastive Learningcited by 6
  23. 2025A Theoretical Framework for Preventing Class Collapse in Supervised Contrastive Learningcited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.