Introduction
Machine learning models are notorious for "shortcut learning"—relying on spurious correlations that happen to exist in the training data but fail in the real world. For example, if most photos of camels are in deserts, a model might learn that "sand" equals "camel." When deployed in a new environment (e.g., a camel in a zoo), the model fails.
Predict then Interpolate (PI) is a clever, three-stage algorithm designed to learn to ignore these spurious correlations without requiring humans to manually label the biases. By analyzing the systematic mistakes a biased classifier makes in a new environment, PI automatically identifies "unstable" features and trains a final model that is robust across diverse scenarios.
The Challenge of Spurious Correlations
Existing solutions to shortcut learning often fall short in practice. Distributionally Robust Optimization (DRO) can fix bias, but it usually requires human annotators to identify and label every potential bias in the dataset (e.g., labeling every photo for "sand" vs. "grass"), which is prohibitively expensive.
Alternative methods like Invariant Risk Minimization (IRM) attempt to find stable features automatically. However, they are notoriously difficult to tune and often fail if the validation data closely resembles the training data. PI aims to provide a simple, stable, and automated alternative that bridges the gap between these approaches.
Methods: The PI Algorithm
The PI algorithm operates in three distinct stages, leveraging the idea that a model's mistakes can automatically reveal spurious correlations.
- Stage 1: Train Biased Experts. The data is first split into different "environments" (e.g., data collected at different times, locations, or contexts). The authors train an individual classifier for each environment. These classifiers are intentionally "biased" because they are free to use any correlation—spurious or stable—available in their specific subset of data.
- Stage 2: Cross-Partitioning (Predict). In the "Predict" phase, the algorithm takes the classifier trained on Environment A and uses it to predict labels for Environment B. Environment B is then partitioned into two distinct groups: the examples the classifier got right and the examples it got wrong.
- Stage 3: Robust Optimization (Interpolate). The authors prove mathematically that if a feature is a spurious "bias," its correlation with the label will flip its sign in the "wrong" group compared to the "right" group. By using Group DRO to minimize the worst-case risk across all these partitions (and their interpolations), the final model is forced to ignore features that fluctuate. Instead, it learns to rely only on stable, causal features.
Key Insights
- Mistakes are Informative: The core insight of PI is that a model's errors are not just random noise; they are systematic. If a model relies on a spurious correlation that weakens in a new environment, its mistakes will specifically highlight the instances where that correlation fails.
- The Correlation Flip: The paper provides a theoretical proof showing that if unstable features are positively correlated with the label in the training set, that correlation becomes negative in the set of misclassified examples.
- Automatic Group Discovery: Unlike standard DRO, which needs "human-in-the-loop" bias labeling, PI discovers the "biased" and "anti-biased" groups automatically through its prediction-partitioning step.
- Validation Stability: PI is significantly more robust to the choice of validation set than IRM, making it much more practical for real-world deployment where perfectly "out-of-distribution" validation data might not be available.
Experimental Results
The authors evaluated PI on both synthetic and real-world benchmarks, including Colored-MNIST, BeerReview (sentiment analysis with artificial bias tokens), CelebA (predicting hair color while avoiding gender bias), and ASK2ME (predicting cancer risk from medical texts while avoiding correlations with unrelated diseases).
- Massive Gains over Baselines: On synthetic environments, PI outperformed IRM by 23.85% in absolute accuracy. On natural environments like CelebA and ASK2ME, it improved average worst-group accuracy by 12.41% over IRM.
- Closing the Oracle Gap: In many tests, PI performed nearly as well as an "Oracle" model that was given perfect, manual knowledge of what the biases were beforehand.
- Generalization: On the ASK2ME dataset, PI successfully reduced biases for 13 out of 15 attributes, even though those attributes were never explicitly flagged during training.
Limitations and Future Work
While highly effective, PI still requires data to be partitioned into discrete "environments" (like location or time). While this metadata is generally easier to obtain than fine-grained bias labels, it remains a prerequisite. Additionally, the main theorem relies on a conditional independence assumption between unstable and stable features given the label, which may not hold perfectly in highly complex, intertwined datasets. Future work may explore extending the partitioning logic—perhaps using loss thresholds—to adapt the PI framework for regression tasks.
Summary updated