Optimal VC Dimension of Contrastive Learning with Margin
Not on the map. Why?
Abstract (arXiv)
Contrastive learning is a successful paradigm for learning d-dimensional geometric representations from a collection of ``anchor--positive--negative'' triplets (i,j+,k-), indicating that ``item i is closer to j than to k.'' Despite its success, understanding why contrastive learning leads to representations of high textitgeneralization quality---beyond the often pessimistic predictions from PAC-learning---remains a central question. Recently, citet*alon2024optimal proved that, for PAC-learning d-dimensional Euclidean representations of n-point datasets, Theta(min(nd, n2)) triplets are necessary and sufficient, while they posed as an open question whether their VC dimension bounds for the more realistic setting of textitcontrastive learning with a margin can be improved. For a margin parameter α >0, a triplet (i,j+,k-)α is satisfied by the embedding φ:[n]rightarrow ℝd, if |φ(i)-φ(k)|2>(1+α)·|φ(i)-φ(j)|2. In this work, we resolve their question by proving that the VC dimension of contrastive learning under any margin α∈(0,1) is in fact O(n/α2), improving on the previous bound of O(nlog(n)/α2). We also establish that the bounds are optimal up to constant factors, by providing a matching lower bound of Omega(fracnα2) (the previously known lower bound was Omega(fracnα)), for α≥ max(n-1/2,d-1/2).
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 25 of its 49 references that are in the map. First posted on arXiv 30 Sep 2026.
Builds on
25 of 49 references.
References · 25
- 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
- 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,796
- 2015FaceNet: A Unified Embedding for Face Recognition and Clusteringcited by 2,849
- 2016node2vec: Scalable Feature Learning for Networkscited by 1,918
- 2020Contrastive Learning with Hard Negative Samplescited by 628
- 2019A Theoretical Analysis of Contrastive Unsupervised Representation Learningcited by 530
- 2021Provable Guarantees for Self-Supervised Deep Learning with Spectral Contrastive Losscited by 313
- 2022Matryoshka Representation Learningcited by 282
- 2022Understanding Contrastive Learning Requires Incorporating Inductive Biasescited by 96
- 2021A Theory of PAC Learnability of Partial Concept Classescited by 60
13 more
- 2022Do More Negative Samples Necessarily Hurt in Contrastive Learning?cited by 39
- 2023Generalization Analysis for Contrastive Representation Learningcited by 25
- 2023Optimal Sample Complexity of Contrastive Learningcited by 15
- 2019Insights into Ordinal Embedding Algorithms: A Systematic Evaluationcited by 10
- 2017Adaptive Hierarchical Clustering Using Ordinal Queriescited by 9
- 2018Foundations of Comparison-Based Hierarchical Clusteringcited by 7
- 2019Landmark Ordinal Embeddingcited by 6
- 2023Generalization Bounds for Adversarial Contrastive Learningcited by 6
- 2020Learning Lines with Ordinal Constraintscited by 3
- 2023Dimension-Accuracy Tradeoffs in Contrastive Embeddings for Triplets, Terminals & Top-k Nearest Neighborscited by 3
- 2023Tree Learning: Optimal Algorithms and Sample Complexitycited by 1
- 2025The Complexity of Finding Local Optima in Contrastive Learningcited by 1
- 2026Provable Accuracy Collapse in Embedding-Based Representations under Dimensionality Mismatchcited by 1
Built on by
Not cited yet.