mlsanityData to 14 Oct 2026

Hard-Negative Sampling for Contrastive Learning: Optimal Representation Geometry and Neural- vs Dimensional-Collapse

arXiv 2311.05139 ↗First posted 9 Nov 2023cs.LGcited by 6

Not on the map. Why?

Abstract (arXiv)

For a widely-studied data model and general loss and sample-hardening functions we prove that the losses of Supervised Contrastive Learning (SCL), Hard-SCL (HSCL), and Unsupervised Contrastive Learning (UCL) are minimized by representations that exhibit Neural-Collapse (NC), i.e., the class means form an Equiangular Tight Frame (ETF) and data from the same class are mapped to the same representation. We also prove that for any representation mapping, the HSCL and Hard-UCL (HUCL) losses are lower bounded by the corresponding SCL and UCL losses. In contrast to existing literature, our theoretical results for SCL do not require class-conditional independence of augmented views and work for a general loss function class that includes the widely used InfoNCE loss function. Moreover, our proofs are simpler, compact, and transparent. Similar to existing literature, our theoretical claims also hold for the practical scenario where batching is used for optimization. We empirically demonstrate, for the first time, that Adam optimization (with batching) of HSCL and HUCL losses with random initialization and suitable hardness levels can indeed converge to the NC-geometry if we incorporate unit-ball or unit-sphere feature normalization. Without incorporating hard-negatives or feature normalization, however, the representations learned via Adam suffer from Dimensional-Collapse (DC) and fail to attain the NC-geometry. These results exemplify the role of hard-negative sampling in contrastive representation learning and we conclude with several open theoretical problems for future work. The code can be found at https://github.com/rjiang03/HCL/tree/main

Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 28 of its 35 references that are in the map. First posted on arXiv 9 Nov 2023.

Builds on

28 of 35 references.

References · 28

  1. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  2. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
  3. 2018Representation Learning with Contrastive Predictive Codingcited by 7,777
  4. 2020Supervised Contrastive Learningcited by 2,829
  5. 2018Unsupervised Feature Learning via Non-Parametric Instance-level Discriminationcited by 1,845
  6. 2020Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hyperspherecited by 1,405
  7. 2020Prevalence of Neural Collapse during the terminal phase of deep learning trainingcited by 719
  8. 2020Contrastive Learning with Hard Negative Samplescited by 628
  9. 2019A Theoretical Analysis of Contrastive Unsupervised Representation Learningcited by 530
  10. 2015Deep Metric Learning via Lifted Structured Feature Embeddingcited by 449
  11. 2021Understanding Dimensional Collapse in Contrastive Self-supervised Learningcited by 378
  12. 2020Debiased Contrastive Learningcited by 356
16 more
  1. 2021Provable Guarantees for Self-Supervised Deep Learning with Spectral Contrastive Losscited by 313
  2. 2023A Cookbook of Self-Supervised Learningcited by 250
  3. 2020Predicting What You Already Know Helps: Provable Self-Supervised Learningcited by 152
  4. 2021Toward Understanding the Feature Learning Process of Self-supervised Contrastive Learningcited by 119
  5. 2022Chaos is a Ladder: A New Theoretical Understanding of Contrastive Learning via Augmentation Overlapcited by 105
  6. 2022On the Optimization Landscape of Neural Collapse under MSE Loss: Global Optimality with Unconstrained Featurescited by 97
  7. 2021Dissecting Supervised Contrastive Learningcited by 64
  8. 2020Conditional Negative Sampling for Contrastive Learning of Visual Representationscited by 57
  9. 2022Neural Collapse with Normalized Features: A Geometric Analysis over the Riemannian Manifoldcited by 50
  10. 2021A Primer on Contrastive Pretraining in Language Processing: Methods, Lessons Learned and Perspectivescited by 41
  11. 2023InfoNCE Loss Provably Learns Cluster-Preserving Representationscited by 37
  12. 2022What shapes the loss landscape of self-supervised learning?cited by 19
  13. 2022Supervised Contrastive Learning with Hard Negative Samplescited by 13
  14. 2021Hard Negative Sampling via Regularized Optimal Transport for Contrastive Representation Learningcited by 4
  15. 2023SINCERE: Supervised Information Noise-Contrastive Estimation REvisitedcited by 3
  16. 2023When hard negative sampling meets supervised contrastive learningcited by 2

Built on by

Cited by year (2026 to 14 Oct)

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

6 papers.