Lune

ICML2025Top-tier venue

Generalization Analysis for Supervised Contrastive Representation Learning under Non-IID Settings

Nong Minh Hieu, Antoine Ledent

Abstract

Contrastive Representation Learning (CRL) has achieved impressive success in various domains in recent years. Nevertheless, the theoretical understanding of the generalization behavior of CRL has remained limited. Moreover, to the best of our knowledge, the current literature only analyzes generalization bounds under the assumption that the data tuples used for contrastive learning are independently and identically distributed. However, in practice, we are often limited to a fixed pool of reusable labeled data points, making it inevitable to recycle data across tuples to create sufficiently large datasets. Therefore, the tuplewise independence condition imposed by previous works is invalidated. In this paper, we provide a generalization analysis for the CRL framework under non-i.i.d. settings that adheres to practice more realistically. Drawing inspiration from the literature on U-statistics, we derive generalization bounds which indicate that the required number of samples in each class scales as the logarithm of the covering number of the class of learnable feature representations associated to that class. Next, we apply our main results to derive excess risk bounds for common function classes such as linear maps and neural networks.

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.

6 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

  • Mitigating Spurious Features in Contrastive Learning with Spectral Regularization cites A Simple Framework for Contrastive Learning of Visual Representations
  • Contrastive Multi-View Representation Learning on Graphs cites A Simple Framework for Contrastive Learning of Visual Representations
  • Statistical Consistency and Generalization of Contrastive Representation Learning cites A Simple Framework for Contrastive Learning of Visual Representations
  • A Refined Generalization Analysis for Extreme Multi-class Supervised Contrastive Representation Learning cites Mitigating Spurious Features in Contrastive Learning with Spectral Regularization
  • A Refined Generalization Analysis for Extreme Multi-class Supervised Contrastive Representation Learning cites A Simple Framework for Contrastive Learning of Visual Representations
  • A Refined Generalization Analysis for Extreme Multi-class Supervised Contrastive Representation Learning cites Generalization Bounds for Rank-sparse Neural Networks
  • A Refined Generalization Analysis for Extreme Multi-class Supervised Contrastive Representation Learning cites Supervised Contrastive Learning
  • A Refined Generalization Analysis for Extreme Multi-class Supervised Contrastive Representation Learning cites Debiased Contrastive Learning
  • Generalization Bounds for Semi-supervised Matrix Completion with Distributional Side Information cites Mitigating Spurious Features in Contrastive Learning with Spectral Regularization
  • Supervised Contrastive Learning cites A Simple Framework for Contrastive Learning of Visual Representations
  • Debiased Contrastive Learning 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 papers6

  1. Mitigating Spurious Features in Contrastive Learning with Spectral RegularizationNaghmeh Ghanooni, Waleed Mustafa, Dennis Wagner, Sophie Fellenz et al.NeurIPS 2025 · 4 citations
  2. Generalization Bounds for Rank-sparse Neural NetworksAntoine Ledent, Rodrigo Alves, Yunwen LeiNeurIPS 2025 · 4 citations
  3. Statistical Consistency and Generalization of Contrastive Representation LearningYuanfan Li, Xiyuan Wei, Tianbao Yang, Yiming YingICML 2026 · 1 citation
  4. A Refined Generalization Analysis for Extreme Multi-class Supervised Contrastive Representation LearningMinh Hieu Nong, Antoine LedentICML 2026
  5. Generalization Bounds for Semi-supervised Matrix Completion with Distributional Side InformationAntoine Ledent, Mun Chong Soo, Nong Minh HieuAAAI 2026

Builds on21

  1. A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
  2. Supervised Contrastive LearningPrannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna et al.NeurIPS 2020 · 7,049 citations
  3. Contrastive Multi-View Representation Learning on GraphsKaveh Hassani, Amir Hosein Khas AhmadiICML 2020 · 1,663 citations
  4. Debiased Contrastive LearningChing-Yao Chuang, Joshua Robinson, Yen-Chen Lin, Antonio Torralba et al.NeurIPS 2020 · 761 citations
  5. A Time Series is Worth 64 Words: Long-term Forecasting with TransformersYuqi Nie, Nam H. Nguyen, Phanwadee Sinthong, Jayant KalagnanamICLR 2023 · 536 citations

Related papers

  1. Generalization Analysis for Deep Contrastive Representation LearningNong Minh Hieu, Antoine Ledent, Yunwen Lei, Cheng Yeaw KuAAAI 2025 · 1 citation
  2. Generalization Analysis for Contrastive Representation LearningYunwen Lei, Tianbao Yang, Yiming Ying, Ding-Xuan ZhouICML 2023 · 28 citations
  3. Optimal Sample Complexity of Contrastive LearningNoga Alon, Dmitrii Avdiukhin, Dor Elboim, Orr Fischer et al.ICLR 2024 · 15 citations
  4. Towards Generalization beyond Pointwise Learning: A Unified Information-theoretic PerspectiveYuxin Dong, Tieliang Gong, Hong Chen, Zhongjiang He et al.ICML 2024 · 4 citations
  5. Guarantees for Nonlinear Representation Learning: Non-identical Covariates, Dependent Data, Fewer SamplesThomas T. C. K. Zhang, Bruce D. Lee, Ingvar M. Ziemann, George J. Pappas et al.ICML 2024 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines