A Theory of Contrastive Learning with Natural Images
Antonio Torralba, Yair Weiss
摘要
Why does contrastive learning with simple images and augmentations yield useful representations for downstream tasks? We address this question by analytically computing the optimal representation in terms of the contrastive loss for a range of basic augmentations and any image dataset with stationary statistics. We show that for certain augmentations the optimum can be attained by a CNN whose first layer filters are sinusoids, followed by a pointwise nonlinearity, global average pooling, and a final linear layer that performs partial whitening. We also show that the optimal weights in such CNNs for more complicated augmentations are still sinusoids. The frequencies of the sinusoids and their weights can be computed using a simple "waterfilling" algorithm given the dataset's expected power spectrum. Experiments with different image datasets and augmentations show that such CNNs trained with SGD empirically learn sinusoids in their first layer and to perform partial whitening. Contrastive learning (CL) is a remarkably successful method for learning useful image representations without labeled data. While numerous variants have been suggested, almost all of them follow the recipe suggested by (Chen et al., 2020) . For each training image, an augmentation is applied, and the goal of learning is to find a representation where two augmentations of the same image are close, while augmentations of different images are far away. Although conceptually simple, when applied to large scale datasets, these approaches have paved the way for image representations that can then be used to solve a large number of computer vision tasks without requiring additional representation learning (e.g.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
脉络
- Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere 引用了 A Simple Framework for Contrastive Learning of Visual Representations
- VICReg: Variance-Invariance-Covariance Regularization for Self-Supervised Learning 引用了 A Simple Framework for Contrastive Learning of Visual Representations
- VICReg: Variance-Invariance-Covariance Regularization for Self-Supervised Learning 引用了 Barlow Twins: Self-Supervised Learning via Redundancy Reduction
- Supervised Contrastive Learning 引用了 Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
- Supervised Contrastive Learning 引用了 A Simple Framework for Contrastive Learning of Visual Representations
- Barlow Twins: Self-Supervised Learning via Redundancy Reduction 引用了 Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
- Barlow Twins: Self-Supervised Learning via Redundancy Reduction 引用了 A Simple Framework for Contrastive Learning of Visual Representations
它引用的 Paper14
- A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 次引用
- Supervised Contrastive LearningPrannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna 等NeurIPS 2020 · 7,049 次引用
- Barlow Twins: Self-Supervised Learning via Redundancy ReductionJure Zbontar, Li Jing, Ishan Misra, Yann LeCun 等ICML 2021 · 2,942 次引用
- Understanding Contrastive Representation Learning through Alignment and Uniformity on the HypersphereTongzhou Wang, Phillip IsolaICML 2020 · 2,360 次引用
- VICReg: Variance-Invariance-Covariance Regularization for Self-Supervised LearningAdrien Bardes, Jean Ponce, Yann LeCunICLR 2022 · 1,226 次引用
相关 Paper
- What do CNNs Learn in the First Layer and Why? A Linear Systems PerspectiveRhea Chowers, Yair WeissICML 2023 · 5 次引用
- A Statistical Theory of Contrastive Learning via Approximate Sufficient StatisticsLicong Lin, Song MeiNeurIPS 2025 · 4 次引用
- Toward Understanding the Feature Learning Process of Self-supervised Contrastive LearningZixin Wen, Yuanzhi LiICML 2021 · 162 次引用
- Integrating Prior Knowledge in Contrastive Learning with KernelBenoit Dufumier, Carlo Alberto Barbano, Robin Louiset, Edouard Duchesnay 等ICML 2023 · 11 次引用
- Whitening for Self-Supervised Representation LearningAleksandr Ermolov, Aliaksandr Siarohin, Enver Sangineto, Nicu SebeICML 2021 · 378 次引用
