Hard-Negative Sampling for Contrastive Learning: Optimal Representation Geometry and Neural- vs Dimensional-Collapse
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
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,777
- 2020Supervised Contrastive Learningcited by 2,829
- 2018Unsupervised Feature Learning via Non-Parametric Instance-level Discriminationcited by 1,845
- 2020Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hyperspherecited by 1,405
- 2020Prevalence of Neural Collapse during the terminal phase of deep learning trainingcited by 719
- 2020Contrastive Learning with Hard Negative Samplescited by 628
- 2019A Theoretical Analysis of Contrastive Unsupervised Representation Learningcited by 530
- 2015Deep Metric Learning via Lifted Structured Feature Embeddingcited by 449
- 2021Understanding Dimensional Collapse in Contrastive Self-supervised Learningcited by 378
- 2020Debiased Contrastive Learningcited by 356
16 more
- 2021Provable Guarantees for Self-Supervised Deep Learning with Spectral Contrastive Losscited by 313
- 2023A Cookbook of Self-Supervised Learningcited by 250
- 2020Predicting What You Already Know Helps: Provable Self-Supervised Learningcited by 152
- 2021Toward Understanding the Feature Learning Process of Self-supervised Contrastive Learningcited by 119
- 2022Chaos is a Ladder: A New Theoretical Understanding of Contrastive Learning via Augmentation Overlapcited by 105
- 2022On the Optimization Landscape of Neural Collapse under MSE Loss: Global Optimality with Unconstrained Featurescited by 97
- 2021Dissecting Supervised Contrastive Learningcited by 64
- 2020Conditional Negative Sampling for Contrastive Learning of Visual Representationscited by 57
- 2022Neural Collapse with Normalized Features: A Geometric Analysis over the Riemannian Manifoldcited by 50
- 2021A Primer on Contrastive Pretraining in Language Processing: Methods, Lessons Learned and Perspectivescited by 41
- 2023InfoNCE Loss Provably Learns Cluster-Preserving Representationscited by 37
- 2022What shapes the loss landscape of self-supervised learning?cited by 19
- 2022Supervised Contrastive Learning with Hard Negative Samplescited by 13
- 2021Hard Negative Sampling via Regularized Optimal Transport for Contrastive Representation Learningcited by 4
- 2023SINCERE: Supervised Information Noise-Contrastive Estimation REvisitedcited by 3
- 2023When hard negative sampling meets supervised contrastive learningcited by 2
Built on by
Citing papers per year: 2024: 1; 2025: 1; 2026: 4.
6 papers.
- 2024SynCo: Synthetic Hard Negatives for Contrastive Visual Representation Learningcited by 5
- 2026Grounded Token Initialization for New Vocabulary in LMs for Generative Recommendationcited by 2
- 2025No Data Wasted: A Semi-supervised Generative Model for Incomplete Multi-view Data Integration with Missing Labelscited by 0
- 2026Optimal Representations for Generalized Contrastive Learning with Imbalanced Datasetscited by 0
- 2026CORA: A Protocol for Diagnosing Boundary Robustness in Text-to-Audio Retrieval under Query Reformulationscited by 0
- 2026Multi-Marginal Inverse Optimal Transport for Contrastive Learning Via Explicit Anchor-Positive-Negative Couplingcited by 0
- 2026Multi-Marginal Inverse Optimal Transport for Contrastive Learning Via Explicit Anchor-Positive-Negative Coupling27 Sep 2026
- 2026CORA: A Protocol for Diagnosing Boundary Robustness in Text-to-Audio Retrieval under Query Reformulations27 Sep 2026
- 2026Optimal Representations for Generalized Contrastive Learning with Imbalanced Datasets11 May 2026
- 2026Grounded Token Initialization for New Vocabulary in LMs for Generative Recommendation2 Apr 2026
- 2025No Data Wasted: A Semi-supervised Generative Model for Incomplete Multi-view Data Integration with Missing Labels15 Aug 2025
- 2024SynCo: Synthetic Hard Negatives for Contrastive Visual Representation Learning3 Oct 2024