Out-of-distribution Generalization for Total Variation based Invariant Risk Minimization

Yuanchao Wang, Zhao-Rong Lai, Tianqi Zhong
2/12/2026

No official code found. Best implementation: laizhr/OOD-TV-IRM (2 stars, last commit 2025-04-17).

Abstract

Invariant risk minimization is an important general machine learning framework that has recently been interpreted as a total variation model (IRM-TV). However, how to improve out-of-distribution (OOD) generalization in the IRM-TV setting remains unsolved. In this paper, we extend IRM-TV to a Lagrangian multiplier model named OOD-TV-IRM. We find that the autonomous TV penalty hyperparameter is exactly the Lagrangian multiplier. Thus OOD-TV-IRM is essentially a primal-dual optimization model, where the primal optimization minimizes the entire invariant risk and the dual optimization strengthens the TV penalty. The objective is to reach a semi-Nash equilibrium where the balance between the training loss and OOD generalization is maintained. We also develop a convergent primal-dual algorithm that facilitates an adversarial learning scheme. Experimental results show that OOD-TV-IRM outperforms IRM-TV in most situations.

View on arXivView PDF

Code Implementations(1)

laizhr/OOD-TV-IRMCommunity66%

Yuanchao Wang,Zhao-Rong Lai*, Tianqi Zhong,“Out-of-distribution Generalization for Total Variation based Invariant Risk Minimization”,the 13th International Conference on Learning Representations (ICLR, main track), 2025.

20Shell, PythonJan 26, 20251 years ago

Similar Papers

Cite this paper

@article{wang2026outofdistribution,
  title  = {Out-of-distribution Generalization for Total Variation based Invariant Risk Minimization},
  author = {Yuanchao Wang and Zhao-Rong Lai and Tianqi Zhong},
  year   = {2026},
  eprint = {2502.19665},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2502.19665},
  journal = {ICLR 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.19665.svg)](https://codeofpaper.com/paper/2502.19665)

Discussion