Invariant Risk Minimization Is A Total Variation Model
Zhao-Rong Lai, Weiwen Wang
TL;DR
The work reframes Invariant Risk Minimization (IRM) as a total variation problem in the classifier, showing IRM corresponds to a TV-$\ell_2$ objective over the environment-robust learning risk and proposing IRM-TV-$\ell_1$ to broaden admissible risk and feature spaces. It introduces a theoretical framework connecting IRM to TV theory, derives closed-form subgradients for the non-differentiable TV-$\ell_1$ penalty, and proves a coarea-based property that yields blocky, denoised learning risk for improved robustness. The authors extend the approach with a minimax formulation to handle environments without partitions and establish conditions under which TV-$\ell_1$ methods can attain out-of-distribution generalization, supported by extensive simulations and real-data experiments (House Prices, CelebA, Landcover, Adult). Overall, the paper provides a principled variational perspective that unifies IRM with TV theory, demonstrates practical benefits of TV-$\ell_1$ regularization for invariant feature learning, and outlines concrete directions for adaptive penalties and richer environment modeling.
Abstract
Invariant risk minimization (IRM) is an arising approach to generalize invariant features to different environments in machine learning. While most related works focus on new IRM settings or new application scenarios, the mathematical essence of IRM remains to be properly explained. We verify that IRM is essentially a total variation based on $L^2$ norm (TV-$\ell_2$) of the learning risk with respect to the classifier variable. Moreover, we propose a novel IRM framework based on the TV-$\ell_1$ model. It not only expands the classes of functions that can be used as the learning risk and the feature extractor, but also has robust performance in denoising and invariant feature preservation based on the coarea formula. We also illustrate some requirements for IRM-TV-$\ell_1$ to achieve out-of-distribution generalization. Experimental results show that the proposed framework achieves competitive performance in several benchmark machine learning scenarios.
