ResearchTrend.AI
  • Papers
  • Communities
  • Events
  • Blog
  • Pricing
Papers
Communities
Social Events
Terms and Conditions
Pricing
Parameter LabParameter LabTwitterGitHubLinkedInBlueskyYoutube

© 2025 ResearchTrend.AI, All rights reserved.

  1. Home
  2. Papers
  3. 2312.00379
32
5

Optimal Sample Complexity of Contrastive Learning

1 December 2023
Noga Alon
Dmitrii Avdiukhin
Dor Elboim
Orr Fischer
G. Yaroslavtsev
    SSL
ArXivPDFHTML
Abstract

Contrastive learning is a highly successful technique for learning representations of data from labeled tuples, specifying the distance relations within the tuple. We study the sample complexity of contrastive learning, i.e. the minimum number of labeled tuples sufficient for getting high generalization accuracy. We give tight bounds on the sample complexity in a variety of settings, focusing on arbitrary distance functions, both general ℓp\ell_pℓp​-distances, and tree metrics. Our main result is an (almost) optimal bound on the sample complexity of learning ℓp\ell_pℓp​-distances for integer ppp. For any p≥1p \ge 1p≥1 we show that Θ~(min⁡(nd,n2))\tilde \Theta(\min(nd,n^2))Θ~(min(nd,n2)) labeled tuples are necessary and sufficient for learning ddd-dimensional representations of nnn-point datasets. Our results hold for an arbitrary distribution of the input samples and are based on giving the corresponding bounds on the Vapnik-Chervonenkis/Natarajan dimension of the associated problems. We further show that the theoretical bounds on sample complexity obtained via VC/Natarajan dimension can have strong predictive power for experimental results, in contrast with the folklore belief about a substantial gap between the statistical learning theory and the practice of deep learning.

View on arXiv
Comments on this paper