Lune

ICML2021Top-tier venue

Dissecting Supervised Constrastive Learning

Florian Graf, Christoph D. Hofer, Marc Niethammer, Roland Kwitt

Abstract

Minimizing cross-entropy over the softmax scores of a linear map composed with a high-capacity encoder is arguably the most popular choice for training neural networks on supervised learning tasks. However, recent works show that one can directly optimize the encoder instead, to obtain equally (or even more) discriminative representations via a supervised variant of a contrastive objective. In this work, we address the question whether there are fundamental differences in the sought-for representation geometry in the output space of the encoder at minimal loss. Specifically, we prove, under mild assumptions, that both losses attain their minimum once the representations of each class collapse to the vertices of a regular simplex, inscribed in a hypersphere. We provide empirical evidence that this configuration is attained in practice and that reaching a close-to-optimal state typically indicates good generalization performance. Yet, the two losses show remarkably different optimization behavior. The number of iterations required to perfectly fit to data scales superlinearly with the amount of randomly flipped labels for the supervised contrastive loss. This is in contrast to the approximately linear scaling previously reported for networks trained with cross-entropy.

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.

29 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

  • Self-supervised Co-Training for Video Representation Learning cites Data-Efficient Image Recognition with Contrastive Predictive Coding
  • Self-supervised Co-Training for Video Representation Learning cites Supervised Contrastive Learning
  • Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere cites Data-Efficient Image Recognition with Contrastive Predictive Coding
  • Inducing Neural Collapse in Imbalanced Learning: Do We Really Need a Learnable Classifier at the End of Deep Neural Network? cites Extended Unconstrained Features Model for Exploring Deep Neural Collapse
  • Inducing Neural Collapse in Imbalanced Learning: Do We Really Need a Learnable Classifier at the End of Deep Neural Network? cites On the Optimization Landscape of Neural Collapse under MSE Loss: Global Optimality with Unconstrained Features
  • Balanced Contrastive Learning for Long-Tailed Visual Recognition cites Self-supervised Co-Training for Video Representation Learning
  • Balanced Contrastive Learning for Long-Tailed Visual Recognition cites Targeted Supervised Contrastive Learning for Long-Tailed Recognition
  • Balanced Contrastive Learning for Long-Tailed Visual Recognition cites Supervised Contrastive Learning
  • Targeted Supervised Contrastive Learning for Long-Tailed Recognition cites Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
  • Targeted Supervised Contrastive Learning for Long-Tailed Recognition cites Supervised Contrastive Learning
  • Supervised Contrastive Learning cites Data-Efficient Image Recognition with Contrastive Predictive Coding
  • Supervised Contrastive Learning cites Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
  • Extended Unconstrained Features Model for Exploring Deep Neural Collapse cites On the Optimization Landscape of Neural Collapse under MSE Loss: Global Optimality with Unconstrained Features
  • On the Optimization Landscape of Neural Collapse under MSE Loss: Global Optimality with Unconstrained Features cites Extended Unconstrained Features Model for Exploring Deep Neural Collapse
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers29

  1. Targeted Supervised Contrastive Learning for Long-Tailed RecognitionTianhong Li, Peng Cao, Yuan Yuan, Lijie Fan et al.CVPR 2022 · 196 citations
  2. Balanced Contrastive Learning for Long-Tailed Visual RecognitionJianggang Zhu, Zheng Wang, Jingjing Chen, Yi-Ping Phoebe Chen et al.CVPR 2022 · 194 citations
  3. Inducing Neural Collapse in Imbalanced Learning: Do We Really Need a Learnable Classifier at the End of Deep Neural Network?Yibo Yang, Shixiang Chen, Xiangtai Li, Liang Xie et al.NeurIPS 2022 · 144 citations
  4. On the Optimization Landscape of Neural Collapse under MSE Loss: Global Optimality with Unconstrained FeaturesJinxin Zhou, Xiao Li, Tianyu Ding, Chong You et al.ICML 2022 · 122 citations
  5. Extended Unconstrained Features Model for Exploring Deep Neural CollapseTom Tirer, Joan BrunaICML 2022 · 118 citations

Builds on4

  1. Supervised Contrastive LearningPrannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna et al.NeurIPS 2020 · 7,049 citations
  2. Understanding Contrastive Representation Learning through Alignment and Uniformity on the HypersphereTongzhou Wang, Phillip IsolaICML 2020 · 2,360 citations
  3. Data-Efficient Image Recognition with Contrastive Predictive CodingOlivier J. HénaffICML 2020 · 1,553 citations
  4. Self-supervised Co-Training for Video Representation LearningTengda Han, Weidi Xie, Andrew ZissermanNeurIPS 2020 · 405 citations

Related papers

  1. Neural Collapse by Design: Learning Class Prototypes on the HyperspherePanagiotis Koromilas, Theodoros Giannakopoulos, Mihalis Nicolaou, Yannis PanagakisICML 2026
  2. Contrastive Classification and Representation Learning with Probabilistic InterpretationRahaf Aljundi, Yash Patel, Milan Sulc, Nikolay Chumerin et al.AAAI 2023 · 10 citations
  3. InfoNCE Induces Gaussian DistributionRoy Betser, Eyal Gofer, Meir Yossef Levi, Guy GilboaICLR 2026 · 17 citations
  4. Generalizing and Decoupling Neural Collapse via Hyperspherical Uniformity GapWeiyang Liu, Longhui Yu, Adrian Weller, Bernhard SchölkopfICLR 2023 · 3 citations
  5. Self-Supervised Contrastive Learning is Approximately Supervised Contrastive LearningAchleshwar Luthra, Tianbao Yang, Tomer GalantiNeurIPS 2025 · 7 citations
Dusk over the sea between two cliffs drawn in fine vertical lines