Universal Adaptive Environment Discovery
Madi Matymov, Ba-Hien Tran, Maurizio Filippone
TL;DR
This work tackles generalization under distribution shift caused by spurious correlations. It introduces Universal Adaptive Environment Discovery (UAED), a framework that learns a distribution over data transformations to instantiate environments and optimizes robust objectives averaged over this distribution, unifying IRM, REx, GroupDRO, and CORAL without predefined groups. The authors provide PAC-Bayes guarantees and show robustness to environment shifts within KL-balls, alongside empirical validation on synthetic benchmarks and the Waterbirds dataset, where adaptive variants improve worst-case accuracy while maintaining competitive mean performance. The results demonstrate that making environments adaptive is a practical route to out-of-distribution generalization and that robustness objectives are effectively complemented by learned environments.
Abstract
An open problem in Machine Learning is how to avoid models to exploit spurious correlations in the data; a famous example is the background-label shortcut in the Waterbirds dataset. A common remedy is to train a model across multiple environments; in the Waterbirds dataset, this corresponds to training by randomizing the background. However, selecting the right environments is a challenging problem, given that these are rarely known a priori. We propose Universal Adaptive Environment Discovery (UAED), a unified framework that learns a distribution over data transformations that instantiate environments, and optimizes any robust objective averaged over this learned distribution. UAED yields adaptive variants of IRM, REx, GroupDRO, and CORAL without predefined groups or manual environment design. We provide a theoretical analysis by providing PAC-Bayes bounds and by showing robustness to test environment distributions under standard conditions. Empirically, UAED discovers interpretable environment distributions and improves worst-case accuracy on standard benchmarks, while remaining competitive on mean accuracy. Our results indicate that making environments adaptive is a practical route to out-of-distribution generalization.
