Abstract
Domain Generalization (DG) algorithms are designed to learn invariant features that persist across different environments. However, recent benchmarks like DomainBed have shown that simple Empirical Risk Minimization (ERM) often performs as well as specialized DG methods. This paper investigates this phenomenon, revealing that the primary advantage of many DG algorithms is not just their search for invariance, but their implicit robustness to label noise. By preventing models from over-relying on simple spurious correlations to fit noisy data, these algorithms maintain better performance in specific distribution-shift scenarios.
Introduction
The central challenge in machine learning generalization is distinguishing between "invariant" features (e.g., the shape of an object) and "spurious" features (e.g., the background). Standard ERM training is prone to capturing spurious correlations if they provide a shortcut to minimizing training loss. While numerous DG algorithms have been proposed to mitigate this, their real-world superiority over ERM has remained inconsistent. This research explores the "when and why" of DG algorithm performance, specifically focusing on the interaction between label noise and spurious correlations.
The Mechanism of Failure: Noise and Spurious Correlations
The authors provide a theoretical foundation for why ERM fails under distribution shift using overparameterized linear models. They identify a "min-norm bias" in ERM: when faced with label noise (incorrectly labeled training data), the model attempts to "memorize" these noisy samples.
If the spurious features in a dataset are mathematically "simpler" (possessing a smaller norm) than the invariant features, the model will prioritize learning the spurious correlation to satisfy the noisy labels. This creates a dependency on features that will likely change in a test environment, leading to a total collapse in out-of-distribution (OOD) performance.
DG Algorithms as Noise Filters
Through a detailed gradient analysis of popular DG algorithms—specifically Invariant Risk Minimization (IRM) and V-REx—the study reveals a unique optimization property. These algorithms possess a gradient coefficient that becomes negative when the model becomes too confident on a potentially noisy sample.
This acts as an implicit "unlearning" or "noise-filtering" mechanism. While ERM continues to reinforce the memorization of noisy points via spurious shortcuts, IRM and V-REx penalize variance across environments, effectively purging the influence of noisy samples that do not conform to cross-domain patterns.
Empirical Validation and the "Complexity Gap"
The study tested these theories across a spectrum of synthetic and real-world benchmarks:
- Synthetic Shift (CMNIST): In the Colored MNIST environment, where color is a simple but spurious cue, the impact of noise was dramatic. With 25% label noise, IRM maintained ~73% accuracy, while ERM fell to ~39%. This confirms that DG algorithms provide a massive safety net when spurious features are significantly simpler than invariant ones.
- Real-World Shift: On datasets like Waterbirds, CelebA, and OfficeHome, the performance gap between specialized DG methods and ERM was much smaller.
The authors attribute this to the Complexity Gap. In synthetic sets like CMNIST, the spurious feature (color) is much easier to learn than the invariant feature (digit shape). In real-world data, spurious features (like complex backgrounds) are often just as computationally difficult to learn as the invariant features. This reduces the "shortcut" advantage for ERM, making it more resilient in practice than in idealized synthetic tests.
Conclusion
The "superpower" of many Domain Generalization algorithms is their inherent robustness to label noise. By resisting the urge to fit noisy data through simple spurious correlations, these methods provide stability in environments where shortcuts are tempting. However, the practical effectiveness of these methods is often mitigated in the real world by the complexity of natural features and the robustness provided by standard techniques like Mixup and pre-training. Future research should focus on bridging this complexity gap to design algorithms that target the specific ways real-world models fail.
Summary updated