Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
Tongzhou Wang, Phillip Isola
Abstract
Contrastive representation learning has been outstandingly successful in practice. In this work, we identify two key properties related to the contrastive loss: (1) alignment (closeness) of features from positive pairs, and (2) uniformity of the induced distribution of the (normalized) features on the hypersphere. We prove that, asymptotically, the contrastive loss optimizes these properties, and analyze their positive effects on downstream tasks. Empirically, we introduce an optimizable metric to quantify each property. Extensive experiments on standard vision and language datasets confirm the strong agreement between both metrics and downstream task performance. Remarkably, directly optimizing for these two metrics leads to representations with comparable or better performance at downstream tasks than contrastive learning. Project Page: this https URL Code: this https URL , this https URL
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.
732 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
- Data-Efficient Image Recognition with Contrastive Predictive Coding cites Momentum Contrast for Unsupervised Visual Representation Learning
- Momentum Contrast for Unsupervised Visual Representation Learning cites Data-Efficient Image Recognition with Contrastive Predictive Coding
- A Simple Framework for Contrastive Learning of Visual Representations cites Data-Efficient Image Recognition with Contrastive Predictive Coding
- A Simple Framework for Contrastive Learning of Visual Representations cites Momentum Contrast for Unsupervised Visual Representation Learning
- Momentum Contrast for Unsupervised Visual Representation Learning cites A Simple Framework for Contrastive Learning of Visual Representations
- A Simple Framework for Contrastive Learning of Visual Representations cites On Mutual Information Maximization for Representation Learning
- Contrastive Learning with Hard Negative Samples cites Data-Efficient Image Recognition with Contrastive Predictive Coding
- Contrastive Learning with Hard Negative Samples cites A Simple Framework for Contrastive Learning of Visual Representations
- Contrastive Learning with Hard Negative Samples cites Momentum Contrast for Unsupervised Visual Representation Learning
- Supervised Contrastive Learning cites Data-Efficient Image Recognition with Contrastive Predictive Coding
- Supervised Contrastive Learning cites A Simple Framework for Contrastive Learning of Visual Representations
- Supervised Contrastive Learning cites Momentum Contrast for Unsupervised Visual Representation Learning
- Supervised Contrastive Learning cites On Mutual Information Maximization for Representation Learning
- SimCSE: Simple Contrastive Learning of Sentence Embeddings cites A Simple Framework for Contrastive Learning of Visual Representations
- On Mutual Information Maximization for Representation Learning cites Data-Efficient Image Recognition with Contrastive Predictive Coding
- Barlow Twins: Self-Supervised Learning via Redundancy Reduction cites Data-Efficient Image Recognition with Contrastive Predictive Coding
- Barlow Twins: Self-Supervised Learning via Redundancy Reduction cites A Simple Framework for Contrastive Learning of Visual Representations
- Barlow Twins: Self-Supervised Learning via Redundancy Reduction cites Momentum Contrast for Unsupervised Visual Representation Learning
Cited by top-tier papers732
- Supervised Contrastive LearningPrannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna et al.NeurIPS 2020 · 7,049 citations
- Barlow Twins: Self-Supervised Learning via Redundancy ReductionJure Zbontar, Li Jing, Ishan Misra, Yann LeCun et al.ICML 2021 · 2,942 citations
- SimCSE: Simple Contrastive Learning of Sentence EmbeddingsTianyu Gao, Xingcheng Yao, Danqi ChenEMNLP 2021 · 2,496 citations
- One Fits All: Power General Time Series Analysis by Pretrained LMTian Zhou, Peisong Niu, Xue Wang, Liang Sun et al.NeurIPS 2023 · 1,178 citations
- Contrastive Learning with Hard Negative SamplesJoshua David Robinson, Ching-Yao Chuang, Suvrit Sra, Stefanie JegelkaICLR 2021 · 999 citations
Builds on4
- A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
- Data-Efficient Image Recognition with Contrastive Predictive CodingOlivier J. HénaffICML 2020 · 1,553 citations
- On Mutual Information Maximization for Representation LearningMichael Tschannen, Josip Djolonga, Paul K. Rubenstein, Sylvain Gelly et al.ICLR 2020 · 559 citations
- Momentum Contrast for Unsupervised Visual Representation LearningKaiming He, Haoqi Fan, Yuxin Wu, Saining Xie et al.CVPR 2020
Related papers
- Bridging Mini-Batch and Asymptotic Analysis in Contrastive Learning: From InfoNCE to Kernel-Based LossesPanagiotis Koromilas, Giorgos Bouritsas, Theodoros Giannakopoulos, Mihalis Nicolaou et al.ICML 2024 · 7 citations
- On The Inadequacy of Optimizing Alignment and Uniformity in Contrastive Learning of Sentence RepresentationsZhijie Nie, Richong Zhang, Yongyi MaoICLR 2023
- Understanding the Behaviour of Contrastive LossFeng Wang, Huaping LiuCVPR 2021
- Dissecting Supervised Constrastive LearningFlorian Graf, Christoph D. Hofer, Marc Niethammer, Roland KwittICML 2021 · 73 citations
- On the Surrogate Gap between Contrastive and Supervised LossesHan Bao, Yoshihiro Nagano, Kento NozawaICML 2022 · 27 citations
