Saved in:
Bibliographic Details
Main Authors: Zhang, Michael, Sohoni, Nimit S., Zhang, Hongyang R., Finn, Chelsea, Ré, Christopher
Format: Preprint
Published: 2022
Subjects:
Online Access:https://arxiv.org/abs/2203.01517
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912152398331904
author Zhang, Michael
Sohoni, Nimit S.
Zhang, Hongyang R.
Finn, Chelsea
Ré, Christopher
author_facet Zhang, Michael
Sohoni, Nimit S.
Zhang, Hongyang R.
Finn, Chelsea
Ré, Christopher
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2203_01517
institution arXiv
publishDate 2022
record_format arxiv
spellingShingle Correct-N-Contrast: A Contrastive Approach for Improving Robustness to Spurious Correlations
Zhang, Michael
Sohoni, Nimit S.
Zhang, Hongyang R.
Finn, Chelsea
Ré, Christopher
Machine Learning
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.
title Correct-N-Contrast: A Contrastive Approach for Improving Robustness to Spurious Correlations
topic Machine Learning
url https://arxiv.org/abs/2203.01517