Internal Discrepancy for Contrastive Learning: Generalization Bounds and Downstream Behaviors

Jialiang Wang, Qing Ma, Xiong Zhou, Gangfeng Hu, Haoliang Li +1 more
10/23/2026
cs.LGcs.AI
contrastive-ssl

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wang2026internal,
  title  = {Internal Discrepancy for Contrastive Learning: Generalization Bounds and Downstream Behaviors},
  author = {Jialiang Wang and Qing Ma and Xiong Zhou and Gangfeng Hu and Haoliang Li and Xianming Liu},
  year   = {2026},
  eprint = {2610.32729},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.32729v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.32729.svg)](https://codeofpaper.com/paper/2610.32729)

Discussion