The Risks of Invariant Risk Minimization
Elan Rosenfeld, Pradeep Ravikumar, Andrej Risteski
TL;DR
This paper provides the first formal analysis of Invariant Risk Minimization (IRM) for classification under a latent-variable SEM separating invariant and environment-dependent features. It establishes a sharp linear-regime threshold: when the number of training environments E exceeds the environmental dimension d_e, the invariant predictor is optimal; otherwise, non-invariant environmental features can dominate training performance, hindering generalization. In the non-linear regime, IRM can fail entirely unless the training environments adequately cover potential test distributions, often performing no better than ERM. Collectively, the results challenge the universal efficacy of IRM and related invariant objectives in high-dimensional, non-linear settings and highlight the need for stronger theoretical guarantees.
Abstract
Invariant Causal Prediction (Peters et al., 2016) is a technique for out-of-distribution generalization which assumes that some aspects of the data distribution vary across the training set but that the underlying causal mechanisms remain constant. Recently, Arjovsky et al. (2019) proposed Invariant Risk Minimization (IRM), an objective based on this idea for learning deep, invariant features of data which are a complex function of latent variables; many alternatives have subsequently been suggested. However, formal guarantees for all of these works are severely lacking. In this paper, we present the first analysis of classification under the IRM objective--as well as these recently proposed alternatives--under a fairly natural and general model. In the linear case, we show simple conditions under which the optimal solution succeeds or, more often, fails to recover the optimal invariant predictor. We furthermore present the very first results in the non-linear regime: we demonstrate that IRM can fail catastrophically unless the test data are sufficiently similar to the training distribution--this is precisely the issue that it was intended to solve. Thus, in this setting we find that IRM and its alternatives fundamentally do not improve over standard Empirical Risk Minimization.
