Invariance Principle Meets Information Bottleneck for Out-of-Distribution Generalization

Kartik Ahuja, Ethan Caballero, Dinghuai Zhang, Jean-Christophe Gagnon-Audet, Yoshua Bengio +2 more
6/11/2021
379 citations
cs.LGstat.ML

Official code: facebookresearch/DomainBed (1,630 stars, Python, MIT, last commit 2025-12-16). 1 more implementation below.

Abstract

The invariance principle from causality is at the heart of notable approaches such as invariant risk minimization (IRM) that seek to address out-of-distribution (OOD) generalization failures. Despite the promising theory, invariance principle-based approaches fail in common classification tasks, where invariant (causal) features capture all the information about the label.

Show full abstract

Are these failures due to the methods failing to capture the invariance? Or is the invariance principle itself insufficient? To answer these questions, we revisit the fundamental assumptions in linear regression tasks, where invariance-based approaches were shown to provably generalize OOD. In contrast to the linear regression tasks, we show that for linear classification tasks we need much stronger restrictions on the distribution shifts, or otherwise OOD generalization is impossible. Furthermore, even with appropriate restrictions on distribution shifts in place, we show that the invariance principle alone is insufficient. We prove that a form of the information bottleneck constraint along with invariance helps address key failures when invariant features capture all the information about the label and also retains the existing success when they do not. We propose an approach that incorporates both of these principles and demonstrate its effectiveness in several experiments.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
facebookresearch/DomainBedOfficial1,630PythonMIT2025-12-16
ahujak/IB-IRMOfficial32Jupyter Notebook–2021-10-13
MIT

DomainBed is a suite to test domain generalization algorithms

1,630332Python, TeXJun 29, 202011 months agoMIT
ahujak/IB-IRMOfficial100%
325Jupyter Notebook, PythonJun 9, 20215 years ago

Similar Papers

Cite this paper

@article{ahuja2021invariance,
  title  = {Invariance Principle Meets Information Bottleneck for Out-of-Distribution Generalization},
  author = {Kartik Ahuja and Ethan Caballero and Dinghuai Zhang and Jean-Christophe Gagnon-Audet and Yoshua Bengio and Ioannis Mitliagkas and Irina Rish},
  year   = {2021},
  eprint = {2106.06607},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.06607}
}

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/2106.06607.svg)](https://codeofpaper.com/paper/2106.06607)

Discussion