Lune

ICML2022Top-tier venue

Correct-N-Contrast: a Contrastive Approach for Improving Robustness to Spurious Correlations

Michael Zhang, Nimit Sharad Sohoni, Hongyang R. Zhang, Chelsea Finn, Christopher Ré

Abstract

Spurious correlations pose a major challenge for robust machine learning. Models trained with empirical risk minimization (ERM) may learn to rely on correlations between class labels and spurious attributes, leading to poor performance on data groups without these correlations. This is particularly challenging to address when spurious attribute labels are unavailable. To improve worst-group performance on spuriously correlated data without training attribute labels, we propose Correct-n-Contrast (CnC), a contrastive approach to directly learn representations robust to spurious correlations. As ERM models can be good spurious attribute predictors, CnC works by (1) using a trained ERM model's outputs to identify samples with the same class but dissimilar spurious features, and ( 2 ) training a robust model with contrastive learning to learn similar representations for same-class samples. To support CnC, we introduce new connections between worst-group error and a representation alignment loss that CnC aims to minimize. We empirically observe that worst-group error closely tracks with alignment loss, and prove that the alignment loss over a class helps upper-bound the class's worst-group vs. average error gap. On popular benchmarks, CnC reduces alignment loss drastically, and achieves state-of-the-art worst-group accuracy by 3.6% average absolute lift. CnC is also competitive with oracle methods that require group labels.

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.

83 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

  • Improving Out-of-Distribution Robustness via Selective Augmentation cites WILDS: A Benchmark of in-the-Wild Distribution Shifts
  • Contrastive Multi-View Representation Learning on Graphs cites A Simple Framework for Contrastive Learning of Visual Representations
  • Towards Last-layer Retraining for Group Robustness with Fewer Annotations cites On Feature Learning in the Presence of Spurious Correlations
  • Towards Last-layer Retraining for Group Robustness with Fewer Annotations cites WILDS: A Benchmark of in-the-Wild Distribution Shifts
  • Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere cites A Simple Framework for Contrastive Learning of Visual Representations
  • Contrastive Adapters for Foundation Model Group Robustness cites A Simple Framework for Contrastive Learning of Visual Representations
  • Contrastive Adapters for Foundation Model Group Robustness cites Supervised Contrastive Learning
  • Contrastive Adapters for Foundation Model Group Robustness cites WILDS: A Benchmark of in-the-Wild Distribution Shifts
  • On Feature Learning in the Presence of Spurious Correlations cites A Simple Framework for Contrastive Learning of Visual Representations
  • On Feature Learning in the Presence of Spurious Correlations cites WILDS: A Benchmark of in-the-Wild Distribution Shifts
  • Learning Causally Invariant Representations for Out-of-Distribution Generalization on Graphs cites Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
  • Learning Causally Invariant Representations for Out-of-Distribution Generalization on Graphs cites Supervised Contrastive Learning
  • Learning Causally Invariant Representations for Out-of-Distribution Generalization on Graphs cites WILDS: A Benchmark of in-the-Wild Distribution Shifts
  • 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
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers83

  1. Improving Out-of-Distribution Robustness via Selective AugmentationHuaxiu Yao, Yu Wang, Sai Li, Linjun Zhang et al.ICML 2022 · 275 citations
  2. Learning Causally Invariant Representations for Out-of-Distribution Generalization on GraphsYongqiang Chen, Yonggang Zhang, Yatao Bian, Han Yang et al.NeurIPS 2022 · 246 citations
  3. On Feature Learning in the Presence of Spurious CorrelationsPavel Izmailov, Polina Kirichenko, Nate Gruver, Andrew Gordon WilsonNeurIPS 2022 · 208 citations
  4. Contrastive Adapters for Foundation Model Group RobustnessMichael Zhang, Christopher RéNeurIPS 2022 · 94 citations
  5. Towards Last-layer Retraining for Group Robustness with Fewer AnnotationsTyler LaBonte, Vidya Muthukumar, Abhishek KumarNeurIPS 2023 · 73 citations

Builds on25

  1. A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
  2. Supervised Contrastive LearningPrannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna et al.NeurIPS 2020 · 7,049 citations
  3. Understanding Contrastive Representation Learning through Alignment and Uniformity on the HypersphereTongzhou Wang, Phillip IsolaICML 2020 · 2,360 citations
  4. WILDS: A Benchmark of in-the-Wild Distribution ShiftsPang Wei Koh, Shiori Sagawa, Henrik Marklund, Sang Michael Xie et al.ICML 2021 · 1,773 citations
  5. Contrastive Multi-View Representation Learning on GraphsKaveh Hassani, Amir Hosein Khas AhmadiICML 2020 · 1,663 citations

Related papers

  1. Improving Group Robustness on Spurious Correlation Requires Preciser Group InferenceYujin Han, Difan ZouICML 2024 · 13 citations
  2. Avoiding spurious correlations via logit correctionSheng Liu, Xu Zhang, Nitesh Sekhar, Yue Wu et al.ICLR 2023 · 3 citations
  3. Gradient Extrapolation for Debiased Representation LearningIhab Asaad, Maha Shadaydeh, Joachim DenzlerICCV 2025 · 4 citations
  4. Spurious Correlation-Aware Embedding Regularization for Worst-Group RobustnessSubeen Park, JOOWANG KIM, Hakyung Lee, Sunjae yoo et al.ICLR 2026 · 2 citations
  5. Label-Efficient Group Robustness via Out-of-Distribution Concept CurationYiwei Yang, Anthony Z. Liu, Robert Wolfe, Aylin Caliskan et al.CVPR 2024
Dusk over the sea between two cliffs drawn in fine vertical lines