cs.LGOct 23, 2026

Internal Discrepancy for Contrastive Learning: Generalization Bounds and Downstream Behaviors

Authors: Jialiang Wang, Qing Ma, Xiong Zhou, Gangfeng Hu, Haoliang Li, Xianming Liu

Organizations: Harbin Institute of Technology, Harbin, China · City University of Hong Kong, Hong Kong, China

Abstract

Contrastive learning has emerged as a popular paradigm for training representation models. While prior studies pursue more practical and less restrictive assumptions to enhance theoretical understanding of contrastive learning, they essentially describe the interconnections among representations within the data or induced by the function class. To encapsulate these assumptions, we propose the measure of internal discrepancy that quantifies the difference between the mean representation of positive samples and latent cluster centers. We then prove an internal discrepancy-aware generalization bound for downstream supervised tasks following contrastive learning, without requiring additional assumptions. This generalization bound not only serves as a unifying framework connecting various assumptions but also motivates us to further reduce the internal discrepancy, thereby introducing the relaxed k-means loss as an approximation. Moreover, we investigate the downstream behaviors of contrastive learning from the perspective of contrastive learning-incurred supervised losses. In the presence of class imbalance, we shed light on why contrastive learning can facilitate imbalanced learning. Finally, we investigate the optimality of these incurred supervised losses, proving several intriguing properties.

Figures & tables

Appendix figures & tables2 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Optimal Representations for Generalized Contrastive Learning with Imbalanced Datasets

    May 11, 2026Thuan Nguyen, Shuchin Aeron, D. Richard Brown +1Class-Imbalanced LearningContrastive Learning

  2. Statistical Consistency and Generalization of Contrastive Representation Learning

    May 4, 2026Yuanfan Li, Xiyuan Wei, Tianbao Yang +1Contrastive LearningSupervised Contrastive Learning

  3. Rethinking Representation Geometry in Supervised Contrastive Learning under Long-Tailed Data

    Oct 23, 2026Joonhyeok Jeong, Jy-yong Sohn, Kibok LeeContrastive LearningSupervised Contrastive Learning