Optimal VC Dimension of Contrastive Learning with Margin
Dionysis Arvanitakis, Vaggos Chatziafratis, Yiyuan Luo, Konstantin Makarychev
Abstract
Contrastive learning is a successful paradigm for learning -dimensional geometric representations from a collection of ``anchor--positive--negative'' triplets , indicating that ``item is closer to than to .'' Despite its success, understanding why contrastive learning leads to representations of high \textit{generalization} quality---beyond the often pessimistic predictions from PAC-learning---remains a central question. Recently, \citet*{alon2024optimal} proved that, for PAC-learning -dimensional Euclidean representations of -point datasets, triplets are necessary and sufficient, while they posed as an open question whether their VC dimension bounds for the more realistic setting of \textit{contrastive learning with a margin} can be improved. For a margin parameter , a triplet is satisfied by the embedding , if . In this work, we resolve their question by proving that the VC dimension of contrastive learning under any margin is in fact , improving on the previous bound of . We also establish that the bounds are optimal up to constant factors, by providing a matching lower bound of (the previously known lower bound was ), for .
Create a lesson
Metadata
- Categories
- cs.DS, cs.LG, stat.ML
- Comments
- Main result obtained in April 2026 without the use of AI
Related papers
Dimension-Free \ell_2^2-Sampling Algorithms for Eigenvalue Estimation
Shared title terminologycs.DSNicolas Menand, Erik Waingarten, David P. Woodruff
Near-Optimal Almost-Ramsey Spanning Tree Covers, via Layered Clusterings
Shared title terminologycs.DSMichael Elkin, Idan Shabat
Optimal Deterministic Matching of Reusable Resources
Shared title terminologycs.DSPratik Chowdhury
The optimality of FirstFit and CBIP online coloring on some graph classes in the random order model
Shared title terminologycs.DSYuechuan Xu, Xin Li, Yaqiao Li
Space-Optimal Spanning Tree Algorithms in Bounded-Deletion Streams
Shared title terminologycs.DSTsun-Ming Cheung, Yu Hsiang, Shang-En Huang et al.
Logarithmic Bounds for the Time-Optimal k-Server Problem on the Line with Cumulative Requests
Shared title terminologycs.DSHannah Schwede