Contrastive Learning is Spectral Clustering on Similarity Graph
Zhiquan Tan, Yifan Zhang, Jingqin Yang, Yang Yuan
Abstract
Contrastive learning is a powerful self-supervised learning method, but we have a limited theoretical understanding of how it works and why it works. In this paper, we prove that contrastive learning with the standard InfoNCE loss is equivalent to spectral clustering on the similarity graph. Using this equivalence as the building block, we extend our analysis to the CLIP model and rigorously characterize how similar multi-modal objects are embedded together. Motivated by our theoretical insights, we introduce the Kernel-InfoNCE loss, incorporating mixtures of kernel functions that outperform the standard Gaussian kernel on several vision datasets. The code is available at https://github.com/yifanzhang-pro/Kernel-InfoNCE.
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.
17 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Contrastive Multi-View Representation Learning on Graphs cites A Simple Framework for Contrastive Learning of Visual Representations
- Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere cites A Simple Framework for Contrastive Learning of Visual Representations
- Unifying Graph Convolution and Contrastive Learning in Collaborative Filtering cites Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
- Unifying Graph Convolution and Contrastive Learning in Collaborative Filtering cites A Simple Framework for Contrastive Learning of Visual Representations
- Unifying Graph Convolution and Contrastive Learning in Collaborative Filtering cites Learning Transferable Visual Models From Natural Language Supervision
- On the Power of Foundation Models cites A Simple Framework for Contrastive Learning of Visual Representations
- On the Power of Foundation Models cites Learning Transferable Visual Models From Natural Language Supervision
- Information Flow in Self-Supervised Learning cites Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
- Information Flow in Self-Supervised Learning cites A Simple Framework for Contrastive Learning of Visual Representations
- Information Flow in Self-Supervised Learning cites Matrix Information Theory for Self-Supervised Learning
- Matrix Information Theory for Self-Supervised Learning cites Information Flow in Self-Supervised Learning
- Matrix Information Theory for Self-Supervised Learning cites Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
- Matrix Information Theory for Self-Supervised Learning cites A Simple Framework for Contrastive Learning of Visual Representations
- Non-negative Contrastive Learning cites A Simple Framework for Contrastive Learning of Visual Representations
- Non-negative Contrastive Learning cites Learning Transferable Visual Models From Natural Language Supervision
- Learning Transferable Visual Models From Natural Language Supervision cites A Simple Framework for Contrastive Learning of Visual Representations
- Graph Contrastive Learning with Augmentations cites Contrastive Multi-View Representation Learning on Graphs
- Graph Contrastive Learning with Augmentations cites A Simple Framework for Contrastive Learning of Visual Representations
Cited by top-tier papers17
- On the Power of Foundation ModelsYang YuanICML 2023 · 55 citations
- Matrix Information Theory for Self-Supervised LearningYifan Zhang, Zhiquan Tan, Jingqin Yang, Weiran Huang et al.ICML 2024 · 26 citations
- Unifying Graph Convolution and Contrastive Learning in Collaborative FilteringYihong Wu, Le Zhang, Fengran Mo, Tianyu Zhu et al.KDD 2024 · 20 citations
- Information Flow in Self-Supervised LearningZhiquan Tan, Jingqin Yang, Weiran Huang, Yang Yuan et al.ICML 2024 · 18 citations
- Non-negative Contrastive LearningYifei Wang, Qi Zhang, Yaoyu Guo, Yisen WangICLR 2024 · 18 citations
Builds on16
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
- A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
- Graph Contrastive Learning with AugmentationsYuning You, Tianlong Chen, Yongduo Sui, Ting Chen et al.NeurIPS 2020 · 3,042 citations
- Understanding Contrastive Representation Learning through Alignment and Uniformity on the HypersphereTongzhou Wang, Phillip IsolaICML 2020 · 2,360 citations
- Contrastive Multi-View Representation Learning on GraphsKaveh Hassani, Amir Hosein Khas AhmadiICML 2020 · 1,663 citations
Related papers
- Understanding Contrastive Learning via Gaussian Mixture ModelsParikshit Bansal, Ali Kavis, Sujay SanghaviNeurIPS 2025 · 6 citations
- Weighted Point Set Embedding for Multimodal Contrastive Learning Toward Optimal Similarity MetricToshimitsu Uesaka, Taiji Suzuki, Yuhta Takida, Chieh-Hsin Lai et al.ICLR 2025
- Multi-modal contrastive learning adapts to intrinsic dimensions of shared latent variablesYu Gui, Cong Ma, Zongming MaNeurIPS 2025 · 9 citations
- Contrastive Learning Inverts the Data Generating ProcessRoland S. Zimmermann, Yash Sharma, Steffen Schneider, Matthias Bethge et al.ICML 2021 · 264 citations
- Does GCL Need a Large Number of Negative Samples? Enhancing Graph Contrastive Learning with Effective and Efficient Negative SamplingYongqi Huang, Jitao Zhao, Dongxiao He, Di Jin et al.AAAI 2025 · 11 citations
