atlas

Research map / Learning theory and algorithms / Sample complexity

Optimal Sample Complexity of Contrastive Learning

ICLR 2024 · Learning theory and algorithms › Sample complexity · approach: Sample complexity of learning distributions · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Gives tight PAC-style sample complexity bounds (via VC/Natarajan dimension) for contrastive learning with triplets under arbitrary distances, l_p distances, cosine similarity, tree metrics, and k negatives, and shows the bounds predict experiments on image datasets.

Problem

How many labeled contrastive triplets (anchor, positive, negative) are needed to learn a good distance function or embedding, for various distance families including l_p distances in R^d?

Approach

Frames contrastive learning as PAC learning of distance functions and characterizes sample complexity via VC/Natarajan dimension; for l_p distances, counts connected components of sign-pattern regions of degree-p polynomials (Milnor-Thom style bound) to get Theta~(min(nd, n^2)) with parity-dependent log factors.

Key results

Surprising findings

Limitations

Experimental setup

Datasets: CIFAR-10 CIFAR-100 MNIST Fashion-MNIST

Metrics: error rate

Baselines: ResNet18 contrastive training

Builds on: VC dimension Natarajan dimension

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy