Predict then Interpolate: A Simple Algorithm to Learn Stable Classifiers

Yujia Bao, Shiyu Chang, Regina Barzilay
5/26/2021
cs.LGcs.AIcs.CL

Official code: YujiaBao/Predict-then-Interpolate (17 stars, Python, MIT, last commit 2021-06-01).

Abstract

We propose Predict then Interpolate (PI), a simple algorithm for learning correlations that are stable across environments. The algorithm follows from the intuition that when using a classifier trained on one environment to make predictions on examples from another environment, its mistakes are informative as to which correlations are unstable.

Show full abstract

In this work, we prove that by interpolating the distributions of the correct predictions and the wrong predictions, we can uncover an oracle distribution where the unstable correlation vanishes. Since the oracle interpolation coefficients are not accessible, we use group distributionally robust optimization to minimize the worst-case risk across all such interpolations. We evaluate our method on both text classification and image classification. Empirical results demonstrate that our algorithm is able to learn robust classifiers (outperforms IRM by 23.85% on synthetic environments and 12.41% on natural environments). Our code and data are available at https://github.com/YujiaBao/Predict-then-Interpolate.

View on arXivView PDF

Code Implementations(1)

MIT

"Predict, then Interpolate: A Simple Algorithm to Learn Stable Classifiers" ICML 2021

171Python, ShellFeb 4, 20215 years agoMIT
icml-2021machine-learning

Similar Papers

Cite this paper

@article{bao2021predict,
  title  = {Predict then Interpolate: A Simple Algorithm to Learn Stable Classifiers},
  author = {Yujia Bao and Shiyu Chang and Regina Barzilay},
  year   = {2021},
  eprint = {2105.12628},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.12628}
}

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

Discussion