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 about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 8f169b88-d0cc-48d8-9031-0edbc519526bCited 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
