Lune

NeurIPS2021Top-tier venue

Intriguing Properties of Contrastive Losses

Ting Chen, Calvin Luo, Lala Li

Abstract

Contrastive loss and its variants have become very popular recently for learning visual representations without supervision. In this work, we first generalize the standard contrastive loss based on cross entropy to a broader family of losses that share an abstract form of Lalignment+λLdistribution\mathcal{L}_{\text{alignment}} + \lambda \mathcal{L}_{\text{distribution}}, where hidden representations are encouraged to (1) be aligned under some transformations/augmentations, and (2) match a prior distribution of high entropy. We show that various instantiations of the generalized loss perform similarly under the presence of a multi-layer non-linear projection head, and the temperature scaling (τ\tau) widely used in the standard contrastive loss is (within a range) inversely related to the weighting (λ\lambda) between the two loss terms. We then study an intriguing phenomenon of feature suppression among competing features shared acros augmented views, such as "color distribution" vs "object class". We construct datasets with explicit and controllable competing features, and show that, for contrastive learning, a few bits of easy-to-learn shared features could suppress, and even fully prevent, the learning of other sets of competing features. Interestingly, this characteristic is much less detrimental in autoencoders based on a reconstruction loss. Existing contrastive learning methods critically rely on data augmentation to favor certain sets of features than others, while one may wish that a network would learn all competing features as much as its capacity allows.

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.

61 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Can contrastive learning avoid shortcut solutions? cites Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
  • Can contrastive learning avoid shortcut solutions? cites Unsupervised Learning of Visual Features by Contrasting Cluster Assignments
  • Can contrastive learning avoid shortcut solutions? cites A Simple Framework for Contrastive Learning of Visual Representations
  • Can contrastive learning avoid shortcut solutions? cites Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning
  • Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere cites A Simple Framework for Contrastive Learning of Visual Representations
  • Unsupervised Learning of Visual Features by Contrasting Cluster Assignments cites A Simple Framework for Contrastive Learning of Visual Representations
  • Self-Supervised Learning with Kernel Dependence Maximization cites Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
  • Self-Supervised Learning with Kernel Dependence Maximization cites Unsupervised Learning of Visual Features by Contrasting Cluster Assignments
  • Self-Supervised Learning with Kernel Dependence Maximization cites A Simple Framework for Contrastive Learning of Visual Representations
  • Self-Supervised Learning with Kernel Dependence Maximization cites Big Self-Supervised Models are Strong Semi-Supervised Learners
  • Self-Supervised Learning with Kernel Dependence Maximization cites Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning
  • Rethinking Semi-Supervised Medical Image Segmentation: A Variance-Reduction Perspective cites A Simple Framework for Contrastive Learning of Visual Representations
  • Rethinking Semi-Supervised Medical Image Segmentation: A Variance-Reduction Perspective cites Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning
  • Big Self-Supervised Models are Strong Semi-Supervised Learners cites A Simple Framework for Contrastive Learning of Visual Representations
  • Big Self-Supervised Models are Strong Semi-Supervised Learners cites Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning
  • Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning cites Big Self-Supervised Models are Strong Semi-Supervised Learners
  • Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning cites A Simple Framework for Contrastive Learning of Visual Representations
  • Understanding Contrastive Learning Requires Incorporating Inductive Biases cites Can contrastive learning avoid shortcut solutions?
  • Understanding Contrastive Learning Requires Incorporating Inductive Biases cites Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
  • Understanding Contrastive Learning Requires Incorporating Inductive Biases cites A Simple Framework for Contrastive Learning of Visual Representations
  • Understanding Contrastive Learning Requires Incorporating Inductive Biases cites Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning
  • A Geometric Analysis of Neural Collapse with Unconstrained Features cites Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
  • A Geometric Analysis of Neural Collapse with Unconstrained Features cites A Simple Framework for Contrastive Learning of Visual Representations
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers61

  1. A Geometric Analysis of Neural Collapse with Unconstrained FeaturesZhihui Zhu, Tianyu Ding, Jinxin Zhou, Xiao Li et al.NeurIPS 2021 · 303 citations
  2. Can contrastive learning avoid shortcut solutions?Joshua Robinson, Li Sun, Ke Yu, Kayhan Batmanghelich et al.NeurIPS 2021 · 185 citations
  3. Rethinking Semi-Supervised Medical Image Segmentation: A Variance-Reduction PerspectiveChenyu You, Weicheng Dai, Yifei Min, Fenglin Liu et al.NeurIPS 2023 · 147 citations
  4. Understanding Contrastive Learning Requires Incorporating Inductive BiasesNikunj Saunshi, Jordan T. Ash, Surbhi Goel, Dipendra Misra et al.ICML 2022 · 130 citations
  5. Self-Supervised Learning with Kernel Dependence MaximizationYazhe Li, Roman Pogodin, Danica J. Sutherland, Arthur GrettonNeurIPS 2021 · 107 citations

Builds on16

  1. A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
  2. Bootstrap Your Own Latent - A New Approach to Self-Supervised LearningJean-Bastien Grill, Florian Strub, Florent Altché, Corentin Tallec et al.NeurIPS 2020 · 9,171 citations
  3. Unsupervised Learning of Visual Features by Contrasting Cluster AssignmentsMathilde Caron, Ishan Misra, Julien Mairal, Priya Goyal et al.NeurIPS 2020 · 5,249 citations
  4. Big Self-Supervised Models are Strong Semi-Supervised LearnersTing Chen, Simon Kornblith, Kevin Swersky, Mohammad Norouzi et al.NeurIPS 2020 · 2,611 citations
  5. Understanding Contrastive Representation Learning through Alignment and Uniformity on the HypersphereTongzhou Wang, Phillip IsolaICML 2020 · 2,360 citations

Related papers

  1. Your contrastive learning problem is secretly a distribution alignment problemZihao Chen, Chi-Heng Lin, Ran Liu, Jingyun Xiao et al.NeurIPS 2024 · 14 citations
  2. Which Features are Learnt by Contrastive Learning? On the Role of Simplicity Bias in Class Collapse and Feature SuppressionYihao Xue, Siddharth Joshi, Eric Gan, Pin-Yu Chen et al.ICML 2023 · 36 citations
  3. Self-Weighted Contrastive Learning among Multiple Views for Mitigating Representation DegenerationJie Xu, Shuo Chen, Yazhou Ren, Xiaoshuang Shi et al.NeurIPS 2023 · 71 citations
  4. Understanding the Behaviour of Contrastive LossFeng Wang, Huaping LiuCVPR 2021
  5. Improving Transferability of Representations via Augmentation-Aware Self-SupervisionHankook Lee, Kibok Lee, Kimin Lee, Honglak Lee et al.NeurIPS 2021 · 66 citations
Dusk over the sea between two cliffs drawn in fine vertical lines