Lune

ICML2023Top-tier venue

Generalization Analysis for Contrastive Representation Learning

Yunwen Lei, Tianbao Yang, Yiming Ying, Ding-Xuan Zhou

Abstract

Recently, contrastive learning has found impressive success in advancing the state of the art in solving various machine learning tasks. However, the existing generalization analysis is very limited or even not meaningful. In particular, the existing generalization error bounds depend linearly on the number kk of negative examples while it was widely shown in practice that choosing a large kk is necessary to guarantee good generalization of contrastive learning in downstream tasks. In this paper, we establish novel generalization bounds for contrastive learning which do not depend on kk, up to logarithmic terms. Our analysis uses structural results on empirical covering numbers and Rademacher complexities to exploit the Lipschitz continuity of loss functions. For self-bounding Lipschitz loss functions, we further improve our results by developing optimistic bounds which imply fast rates in a low noise condition. We apply our results to learning with both linear representation and nonlinear representation by deep neural networks, for both of which we derive Rademacher complexity bounds to get improved generalization bounds.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

16 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Unsupervised Learning of Visual Features by Contrasting Cluster Assignments cites A Simple Framework for Contrastive Learning of Visual Representations
  • Unsupervised Learning of Visual Features by Contrasting Cluster Assignments cites Supervised Contrastive Learning
  • Statistical Consistency and Generalization of Contrastive Representation Learning cites A Simple Framework for Contrastive Learning of Visual Representations
  • Statistical Consistency and Generalization of Contrastive Representation Learning cites Generalization Analysis for Deep Contrastive Representation Learning
  • Statistical Consistency and Generalization of Contrastive Representation Learning cites Learning Transferable Visual Models From Natural Language Supervision
  • Generalization Bounds for Rank-sparse Neural Networks cites Generalization Analysis for Deep Contrastive Representation Learning
  • Generalization Analysis for Deep Contrastive Representation Learning cites A Simple Framework for Contrastive Learning of Visual Representations
  • Generalization Analysis for Deep Contrastive Representation Learning cites Supervised Contrastive Learning
  • Supervised Contrastive Learning cites A Simple Framework for Contrastive Learning of Visual Representations
  • Learning Transferable Visual Models From Natural Language Supervision cites A Simple Framework for Contrastive Learning of Visual Representations
  • Learning Transferable Visual Models From Natural Language Supervision cites Language Models are Few-Shot Learners
  • Adv-SSL: Adversarial Self-Supervised Representation Learning with Theoretical Guarantees cites Unsupervised Learning of Visual Features by Contrasting Cluster Assignments
  • Adv-SSL: Adversarial Self-Supervised Representation Learning with Theoretical Guarantees cites A Simple Framework for Contrastive Learning of Visual Representations
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers16

  1. Generalization Bounds for Rank-sparse Neural NetworksAntoine Ledent, Rodrigo Alves, Yunwen LeiNeurIPS 2025 · 4 citations
  2. A Statistical Learning Perspective on Semi-dual Adversarial Neural Optimal Transport SolversRoman Tarasov, Petr Mokrov, Milena Gazdieva, Evgeny Burnaev et al.ICLR 2026 · 2 citations
  3. Statistical Consistency and Generalization of Contrastive Representation LearningYuanfan Li, Xiyuan Wei, Tianbao Yang, Yiming YingICML 2026 · 1 citation
  4. Generalization Analysis for Deep Contrastive Representation LearningNong Minh Hieu, Antoine Ledent, Yunwen Lei, Cheng Yeaw KuAAAI 2025 · 1 citation
  5. Adv-SSL: Adversarial Self-Supervised Representation Learning with Theoretical GuaranteesChenguang Duan, Yuling Jiao, Huazhen Lin, Wensen Ma et al.NeurIPS 2025 · 1 citation

Builds on15

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
  3. A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
  4. Supervised Contrastive LearningPrannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna et al.NeurIPS 2020 · 7,049 citations
  5. Unsupervised Learning of Visual Features by Contrasting Cluster AssignmentsMathilde Caron, Ishan Misra, Julien Mairal, Priya Goyal et al.NeurIPS 2020 · 5,249 citations

Related papers

  1. Generalization Analysis for Supervised Contrastive Representation Learning under Non-IID SettingsNong Minh Hieu, Antoine LedentICML 2025
  2. Nearly-tight Bounds for Deep Kernel LearningYifan Zhang, Min-Ling ZhangICML 2023 · 3 citations
  3. Relative Deviation Margin BoundsCorinna Cortes, Mehryar Mohri, Ananda Theertha SureshICML 2021 · 16 citations
  4. Tight and Fast Bounds for Multi-Label LearningYifan Zhang, Min-Ling ZhangICML 2025
  5. Optimistic Bounds for Multi-output LearningHenry W. J. Reeve, Ata KabánICML 2020 · 14 citations
Dusk over the sea between two cliffs drawn in fine vertical lines