Empirical or Invariant Risk Minimization? A Sample Complexity Perspective

Kartik Ahuja, Jun Wang, Amit Dhurandhar, Karthikeyan Shanmugam, Kush R. Varshney
10/30/2020
94 citations
cs.LGstat.ML

Official code: IBM/OoD (62 stars, Apache-2.0, last commit 2022-03-04).

Abstract

Recently, invariant risk minimization (IRM) was proposed as a promising solution to address out-of-distribution (OOD) generalization. However, it is unclear when IRM should be preferred over the widely-employed empirical risk minimization (ERM) framework.

Show full abstract

In this work, we analyze both these frameworks from the perspective of sample complexity, thus taking a firm step towards answering this important question. We find that depending on the type of data generation mechanism, the two approaches might have very different finite sample and asymptotic behavior. For example, in the covariate shift setting we see that the two approaches not only arrive at the same asymptotic solution, but also have similar finite sample behavior with no clear winner. For other distribution shifts such as those involving confounders or anti-causal variables, however, the two approaches arrive at different asymptotic solutions where IRM is guaranteed to be close to the desired OOD solutions in the finite sample regime, while ERM is biased even asymptotically. We further investigate how different factors -- the number of environments, complexity of the model, and IRM penalty weight -- impact the sample complexity of IRM in relation to its distance from the OOD solutions

View on arXivView PDF

Code Implementations(1)

IBM/OoDOfficial100%
Apache-2.0

Repository for theory and methods for Out-of-Distribution (OoD) generalization

6217Mar 12, 20204 years agoApache-2.0

Similar Papers

Cite this paper

@article{ahuja2020empirical,
  title  = {Empirical or Invariant Risk Minimization? A Sample Complexity Perspective},
  author = {Kartik Ahuja and Jun Wang and Amit Dhurandhar and Karthikeyan Shanmugam and Kush R. Varshney},
  year   = {2020},
  eprint = {2010.16412},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.16412}
}

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

Discussion