When Does Group Invariant Learning Survive Spurious Correlations?

Yimeng Chen, Ruibin Xiong, Zhi-Ming Ma, Yanyan Lan

Introduction

Machine learning models are notorious for taking "shortcuts." If a dataset of "cows" always features green grass and "camels" always feature yellow sand, a model might simply learn to identify the background color rather than the animal. This phenomenon is known as a spurious correlation.

Invariant Learning (IL) aims to fix this by training models across different "environments" (e.g., different lighting or locations) and forcing the model to find features that remain predictive across all of them. However, in the real world, we rarely have labels telling us which environment a data point came from.

Group Invariant Learning (group-IL) attempts to solve this by automatically partitioning the data into latent groups. The current state-of-the-art usually splits data into simple "majority" and "minority" groups. However, the authors of this paper point out a major gap: these simple splits often fail when spurious features are complex or multivariate. Without theoretical guidance on how to form these groups, group-IL frequently fails to generalize when spurious correlations change in the test set.

Theoretical Criteria for Group-IL

To address this gap, the authors propose two necessary conditions for group-IL to successfully ignore spurious correlations:

  1. Falsity Exposure Criterion: The inferred groups must be different enough that any spurious feature's correlation with the label varies across them. If a shortcut is "hidden" and stays consistent across all inferred groups, the model will still rely on it.
  2. Label Balance Criterion: The proportion of labels (e.g., the percentage of class A vs. class B) should be consistent across groups. If one group has a massive label bias, the model might satisfy the "invariance" penalty simply by latching onto that bias.

The SCILL Algorithm

To meet these criteria, the paper introduces SCILL (Spurious-Correlation-Strata Invariant Learning with Label-balancing). SCILL moves beyond simple binary splits using two key mechanisms:

  • Statistical Split: Instead of a simple majority/minority split, SCILL uses a biased "reference model" and performs statistical t-tests to partition the data into multiple "strata." This ensures that within each group, the spurious prediction is independent of the actual label, satisfying the Falsity Exposure criterion.
  • Reweighted Loss: SCILL attaches weights to each sample based on the label proportions within its group. This mathematically forces the training process to satisfy the Label Balance criterion.

Key Insights and Results

The authors evaluated SCILL on two main benchmarks: PC-MNIST (a new synthetic dataset with multivariate spurious correlations) and MNLI-HANS (a real-world Natural Language Inference task).

  • The "Majority/Minority" Trap: The popular strategy of splitting data into just two groups is insufficient for complex data. If there are multiple spurious features, a two-group split might expose one but leave others hidden.
  • Superior Performance: SCILL consistently outperformed the previous state-of-the-art (EIIL) and standard Empirical Risk Minimization (ERM). On the multivariate PC-MNIST challenge, SCILL achieved a test accuracy of ~67.5%, significantly higher than EIIL (~63.6%) and ERM (~54.5%). On the MNLI-HANS test set, SCILL reached ~71.2% accuracy, while EIIL lagged at ~66.4%.
  • Agnostic to Invariance Penalty: SCILL works regardless of the specific "invariance penalty" used (e.g., IRM, REx, or cMMD), proving that the improvement stems from the grouping strategy itself, not just a better loss function.

Limitations and Causal Assumptions

While SCILL provides a robust theoretical framework, its proofs rely on specific causal assumptions.

Causal graphs illustrating different data generation processes in invariant learning.

Specifically, the theoretical guarantees assume a causal graph where the invariant features and spurious features are conditionally independent given the label (similar to the anti-causal structures shown above). Real-world data might exhibit more tangled causal relationships, such as confounded or hybrid structures.

Furthermore, SCILL's performance depends on having a reference model that successfully captures the spurious correlations without inadvertently capturing the invariant features. Future work will need to explore how these criteria apply to broader Domain Generalization tasks under more complex causal structures where current independence assumptions do not hold.

Summary updated

BibTeX
@inproceedings{chen2022when,
  author = {Yimeng Chen and Ruibin Xiong and Zhi-Ming Ma and Yanyan Lan},
  title = {{When Does Group Invariant Learning Survive Spurious Correlations?}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=3nO1r1dGje},
}
Figure