Reassessing the Validity of Spurious Correlations Benchmarks

Samuel J. Bell, Diane Bouchacourt, Levent Sagun

TL;DR

This paper argues that many existing benchmarks for evaluating methods that combat spurious correlations in machine learning models are flawed, showing significant disagreement and failing to reliably measure performance. The authors propose three desiderata for valid benchmarks and introduce a new metric, the Bayes Factor (K), to quantify task difficulty due to spurious correlations, offering a more principled way to select appropriate mitigation methods.

What Problem Does This Paper Address?

Deep learning models often learn spurious correlations – patterns that hold true for specific subsets of data but not universally. This leads to failures in real-world applications, such as medical diagnoses or image recognition. To address this, researchers have developed numerous benchmarks to evaluate methods designed to mitigate these spurious correlations. However, the authors observe a critical problem: these benchmarks often disagree on which methods are best. This inconsistency makes it difficult for practitioners to choose the right mitigation strategy for their specific problem, as a method that performs well on one benchmark might perform poorly on another. The paper aims to understand why these benchmarks disagree and to establish criteria for what constitutes a valid benchmark for evaluating spurious correlation mitigation.

Methods

The core of the paper involves defining and evaluating benchmarks based on three proposed desiderata:

  1. ERM Failure: A valid benchmark should demonstrate that standard Empirical Risk Minimization (ERM) training leads to significant performance disparities across different groups within the data. This indicates the presence of a spurious correlation that ERM fails to handle.
  2. Discriminative Power: A benchmark must be able to differentiate between various mitigation methods, assigning them distinct scores. If all methods perform similarly, the benchmark cannot effectively rank them.
  3. Convergent Validity: Valid benchmarks that measure similar phenomena should agree on the relative performance of methods. This is assessed by examining how benchmark agreement changes with their "task difficulty due to spurious correlation."

To quantify this "task difficulty," the authors introduce a novel metric called the Bayes Factor (K). K is a model-dependent statistic that compares the performance of a model trained with a reweighted loss function (penalized for using spurious correlations) against a standard ERM-trained model. A higher K indicates that the spurious correlation significantly impacts task difficulty.

Datasets

The paper evaluates several existing benchmarks and introduces two new ones:

Existing Benchmarks: * Waterbirds * CelebA * ImageNetBG (ImageNet Backgrounds Challenge) * MetaShift * NICO++ * CheXpert * CivilComments * MultiNLI * Animals vs. Plants (AvP) - a new benchmark * Citybirds - a new variant of Waterbirds

Newly Introduced Benchmarks: * Citybirds: A variant of Waterbirds where confounding background scenes are replaced with urban or rural environments. This aims to create a benchmark with similar properties to Waterbirds but with different background contexts. * Animals vs. Plants (AvP): A binary image classification task with geographic regions (Asia/Europe) as the spurious attribute. The authors designed this to have low spurious correlation utility, serving as a control. * Dollar Street: Used as a real-world test case, this is a multiclass object classification task with geographic regions as group information.

Key Insights and Ideas

  • Benchmark Disagreement is Pervasive: The paper strongly demonstrates that existing spurious correlation benchmarks often disagree significantly, leading to contradictory conclusions about method effectiveness.
  • Not All Benchmarks are Created Equal: Many benchmarks fail to meet basic criteria for validity, either by not showing ERM failure or by not being able to discriminate between methods.
  • Task Difficulty (K) is Key: The authors propose that the "task difficulty due to spurious correlation" (quantified by K) is the most crucial factor for benchmark validity. Benchmarks with similar K values should exhibit convergent validity (agree on method rankings).
  • Method Robustness Varies Greatly: Only a small subset of mitigation methods consistently perform well across different benchmarks, suggesting many are not robust to varying spurious correlation characteristics.
  • A Practical Recipe for Practitioners: The paper offers a concrete approach for practitioners: calculate the K value for their own dataset and select the benchmark with the closest K to guide their choice of mitigation method.

Key Results

  • Benchmark Validity Scores: Table 1 provides detailed scores for nine benchmarks across the three desiderata (ERM Failure, Discriminative Power, Convergent Validity). Notably, ImageNetBG fails all three, while MultiNLI and AvP fail Convergent Validity.
  • K as a Measure of Difficulty: Experiments show that K accurately reflects synthetic changes in spurious correlation strength and noise levels, validating its utility.
  • Convergent Validity in Action: Figure 4 and 5 demonstrate that benchmarks with similar K values tend to agree more, while those with different K values show less agreement, supporting the convergent validity criterion.
  • Method Performance Varies: Figure 6 shows that methods like CRT, ReWeight, ReSample, and GroupDRO are more robust across benchmarks, exhibiting high performance and low variability.
  • Closest Benchmark Strategy Works: Table 2 shows that selecting a method based on the closest benchmark (in terms of K) leads to superior worst-group test accuracies for 5 out of 8 test datasets compared to averaging across all or only valid benchmarks.

Limitations and Future Work

  • Attribute Dependence: The authors acknowledge that their desiderata for ERM Failure and Discriminative Power, and their K metric, rely on well-defined group attributes. Benchmarks without such attributes are harder to evaluate with their current framework.
  • Model Dependence of K: While K is shown to be robust to hyperparameter choices, it is inherently model-dependent. This means K values from different model architectures (e.g., ResNet vs. BERT) cannot be directly compared.
  • Benchmark Acceptability: The paper raises ethical concerns about certain benchmarks, like CelebA, which may reinforce harmful stereotypes and should not be used for benchmarking.
  • Future Work: The authors suggest exploring spurious correlation benchmarks without explicit attributes and developing more nuanced methods for assessing validity beyond simple statistics. They also highlight the need for careful consideration of whether solving a benchmark truly corresponds to solving a real-world problem, especially for datasets with low spurious correlation difficulty.

Summary updated

Abstract

Neural networks can fail when the data contains spurious correlations. To understand this phenomenon, researchers have proposed numerous spurious correlations benchmarks upon which to evaluate mitigation methods. However, we observe that these benchmarks exhibit substantial disagreement, with the best methods on one benchmark performing poorly on another. We explore this disagreement, and examine benchmark validity by defining three desiderata that a benchmark should satisfy in order to meaningfully evaluate methods. Our results have implications for both benchmarks and mitigations: we find that certain benchmarks are not meaningful measures of method performance, and that several methods are not sufficiently robust for widespread use. We present a simple recipe for practitioners to choose methods using the most similar benchmark to their given problem.
BibTeX
@misc{bell2024reassessing,
  author = {Samuel J. Bell and Diane Bouchacourt and Levent Sagun},
  title = {{Reassessing the Validity of Spurious Correlations Benchmarks}},
  year = {2024},
  eprint = {2409.04188},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.04188},
}
Figure