Lune

ICML2022Top-tier venue

Perfectly Balanced: Improving Transfer and Robustness of Supervised Contrastive Learning

Mayee F. Chen, Daniel Y. Fu, Avanika Narayan, Michael Zhang, Zhao Song, Kayvon Fatahalian, Christopher Ré

Abstract

An ideal learned representation should display transferability and robustness. Supervised contrastive learning (SupCon) is a promising method for training accurate models, but produces representations that do not capture these properties due to class collapse -- when all points in a class map to the same representation. Recent work suggests that"spreading out"these representations improves them, but the precise mechanism is poorly understood. We argue that creating spread alone is insufficient for better representations, since spread is invariant to permutations within classes. Instead, both the correct degree of spread and a mechanism for breaking this invariance are necessary. We first prove that adding a weighted class-conditional InfoNCE loss to SupCon controls the degree of spread. Next, we study three mechanisms to break permutation invariance: using a constrained encoder, adding a class-conditional autoencoder, and using data augmentation. We show that the latter two encourage clustering of latent subclasses under more realistic conditions than the former. Using these insights, we show that adding a properly-weighted class-conditional InfoNCE loss and a class-conditional autoencoder to SupCon achieves 11.1 points of lift on coarse-to-fine transfer across 5 standard datasets and 4.7 points on worst-group robustness on 3 datasets, setting state-of-the-art on CelebA by 11.5 points.

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.

18 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

  • Which Features are Learnt by Contrastive Learning? On the Role of Simplicity Bias in Class Collapse and Feature Suppression cites Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
  • Which Features are Learnt by Contrastive Learning? On the Role of Simplicity Bias in Class Collapse and Feature Suppression cites A Simple Framework for Contrastive Learning of Visual Representations
  • Which Features are Learnt by Contrastive Learning? On the Role of Simplicity Bias in Class Collapse and Feature Suppression cites Supervised Contrastive 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
  • Unsupervised Learning of Visual Features by Contrasting Cluster Assignments cites Supervised Contrastive Learning
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale cites A Simple Framework for Contrastive Learning of Visual Representations
  • Benchmarking and Building Long-Context Retrieval Models with LoCo and M2-BERT cites Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
  • Investigating the Benefits of Projection Head for Representation Learning cites Which Features are Learnt by Contrastive Learning? On the Role of Simplicity Bias in Class Collapse and Feature Suppression
  • Investigating the Benefits of Projection Head for Representation Learning cites A Simple Framework for Contrastive Learning of Visual Representations
  • Investigating the Benefits of Projection Head for Representation Learning cites Supervised Contrastive Learning
  • Supervised Contrastive Learning cites Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
  • Supervised Contrastive Learning cites A Simple Framework for Contrastive Learning of Visual Representations
  • Contrastive Tuning: A Little Help to Make Masked Autoencoders Forget cites Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
  • Contrastive Tuning: A Little Help to Make Masked Autoencoders Forget cites Unsupervised Learning of Visual Features by Contrasting Cluster Assignments
  • Contrastive Tuning: A Little Help to Make Masked Autoencoders Forget cites A Simple Framework for Contrastive Learning of Visual Representations
  • Contrastive Tuning: A Little Help to Make Masked Autoencoders Forget cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers18

  1. Demystifying Structural Disparity in Graph Neural Networks: Can One Size Fit All?Haitao Mao, Zhikai Chen, Wei Jin, Haoyu Han et al.NeurIPS 2023 · 58 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. Contrastive Tuning: A Little Help to Make Masked Autoencoders ForgetJohannes Lehner, Benedikt Alkin, Andreas Fürst, Elisabeth Rumetshofer et al.AAAI 2024 · 28 citations
  4. Benchmarking and Building Long-Context Retrieval Models with LoCo and M2-BERTJon Saad-Falcon, Daniel Y. Fu, Simran Arora, Neel Guha et al.ICML 2024 · 24 citations
  5. Investigating the Benefits of Projection Head for Representation LearningYihao Xue, Eric Gan, Jiayi Ni, Siddharth Joshi et al.ICLR 2024 · 23 citations

Builds on22

  1. A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
  2. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  3. Supervised Contrastive LearningPrannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna et al.NeurIPS 2020 · 7,049 citations
  4. Unsupervised Learning of Visual Features by Contrasting Cluster AssignmentsMathilde Caron, Ishan Misra, Julien Mairal, Priya Goyal et al.NeurIPS 2020 · 5,249 citations
  5. Understanding Contrastive Representation Learning through Alignment and Uniformity on the HypersphereTongzhou Wang, Phillip IsolaICML 2020 · 2,360 citations

Related papers

  1. Unbiased Supervised Contrastive LearningCarlo Alberto Barbano, Benoit Dufumier, Enzo Tartaglione, Marco Grangetto et al.ICLR 2023 · 4 citations
  2. Fair Contrastive Learning for Facial Attribute ClassificationSungho Park, Jewook Lee, Pilhyeon Lee, Sunhee Hwang et al.CVPR 2022 · 61 citations
  3. Variational Supervised Contrastive LearningZiwen Wang, Jiajun Fan, Thao Nguyen, Heng Ji et al.NeurIPS 2025 · 7 citations
  4. Integrating Prior Knowledge in Contrastive Learning with KernelBenoit Dufumier, Carlo Alberto Barbano, Robin Louiset, Edouard Duchesnay et al.ICML 2023 · 11 citations
  5. Prototypical Contrastive Learning of Unsupervised RepresentationsJunnan Li, Pan Zhou, Caiming Xiong, Steven C. H. HoiICLR 2021 · 484 citations
Dusk over the sea between two cliffs drawn in fine vertical lines