TL;DR
Standard training via Empirical Risk Minimization (ERM) is often blamed for failing to learn "invariant" features, but this paper reveals a more nuanced truth: ERM learns both good and bad features, but it learns the bad ones faster. Because most specialized Out-of-Distribution (OOD) algorithms are surprisingly bad at discovering new features, the authors introduce Feature Augmented Training (FeAT)—an iterative strategy that forces models to move beyond easy shortcuts and build a much richer library of features.
The Out-of-Distribution Problem
Machine learning models are notoriously fragile. A model trained to recognize cows in green pastures might fail to see a cow on a sandy beach because it learned to associate the "green background" with "cow." This is the core of the Out-of-Distribution (OOD) generalization problem.
In the research community, there are two conflicting views on why this happens:
- The Failure View: ERM—the standard way we train models—fails because it only captures "spurious" features (like the grass) instead of "invariant" features (like the shape of the cow).
- The Hidden Success View: Recent studies suggest ERM does learn the right features, but the final classifier just ignores them in favor of easier shortcuts.
The authors bridge this gap by asking: What exactly does ERM learn, and why do our advanced OOD algorithms still struggle to fix it?
Methods: Overcoming the Feature Bottleneck
The authors first prove theoretically (using a two-layer CNN model) that ERM actually learns both spurious and invariant features simultaneously. However, if a spurious correlation is strong, the model learns it much faster, leaving the invariant features "under-learned."
Crucially, they find that popular OOD objectives (like Invariant Risk Minimization or IRM) are excellent at re-weighting existing features but rarely learn entirely new ones. If ERM didn't catch a feature during pre-training, the OOD algorithm probably won't either.
To fix this "feature bottleneck," they propose Feature Augmented Training (FeAT). It works in iterative rounds:
- Partitioning: The training data is split into a Retention set (samples the model already gets right) and an Augmentation set (samples it gets wrong).
- Learning: The model is forced to learn new features from the Augmentation set using Distributionally Robust Optimization (DRO) while simultaneously being penalized if it forgets the features it already learned in the Retention set.
- Iteration: This repeats until the model can no longer find new predictive features.
They also introduce a lightweight version, iFeAT, which only keeps the most recent subsets to save memory and compute.
Datasets
The authors validated FeAT on a mix of synthetic and massive real-world benchmarks:
- ColoredMNIST: A classic OOD test where digits are colored to create misleading correlations.
- WILDS Benchmark: A collection of real-world datasets including Camelyon17 (tumor detection), CivilComments (toxicity detection), FMoW (satellite imagery), iWildCam (wildlife photos), Amazon (product reviews), and RxRx1 (genetic treatments).
Key Insights
- The ERM Bottleneck: The quality of OOD generalization is capped by the "richness" of the features discovered during the initial ERM phase. If the feature isn't in the "library" ERM built, the OOD objective is essentially flying blind.
- OOD Objectives are "Feature-Lazy": The paper proves that algorithms like IRMv1 suppress spurious features but don't effectively go out and "hunt" for new invariant ones.
- Forced Exploration: By explicitly separating what the model knows from what it doesn't, FeAT prevents the model from "over-fitting" to the easiest available features.
Key Results
- Performance Boost: On ColoredMNIST, FeAT-trained representations allowed various OOD objectives (like IRM, V-REx, and Fishr) to achieve near-oracle performance, significantly outperforming standard ERM pre-training.
- Real-World Superiority: On the WILDS benchmark, FeAT consistently outperformed both standard ERM and previous state-of-the-art methods for rich feature learning. For example, on the difficult Camelyon17 dataset, FeAT improved average accuracy significantly over ERM.
- Visual Proof: Using GradCAM visualizations, the authors showed that ERM often focuses on irrelevant background "shortcuts," while FeAT-trained models consistently focus on the actual objects of interest.
Limitations and Future Work
The authors acknowledge a few key areas for growth:
- Theoretical Scope: The current proofs are based on a two-layer CNN. Extending this theory to deeper, more complex architectures remains an open challenge.
- Undesirable Features: There may be cases where we don't want the model to learn certain features (e.g., for privacy or fairness). FeAT is designed to learn all predictive features, so future work could look at how to "steer" this augmentation away from sensitive attributes.
- Computational Cost: While iFeAT is more efficient, iterative training still takes longer than a single ERM pass. Optimizing this for massive-scale foundation models is a promising next step.
Summary updated