Out-of-Domain Robustness via Targeted Augmentations

Irena Gao, Shiori Sagawa, Pang Wei Koh, Tatsunori Hashimoto, Percy Liang
2/23/2023
cs.LGcs.CV

No official code found. Best implementation: i-gao/targeted-augs (14 stars, last commit 2023-02-25).

Abstract

Models trained on one set of domains often suffer performance drops on unseen domains, e.g., when wildlife monitoring models are deployed in new camera locations. In this work, we study principles for designing data augmentations for out-of-domain (OOD) generalization. In particular, we focus on real-world scenarios in which some domain-dependent features are robust, i.e., some features that vary across domains are predictive OOD. For example, in the wildlife monitoring application above, image backgrounds vary across camera locations but indicate habitat type, which helps predict the species of photographed animals. Motivated by theoretical analysis on a linear setting, we propose targeted augmentations, which selectively randomize spurious domain-dependent features while preserving robust ones. We prove that targeted augmentations improve OOD performance, allowing models to generalize better with fewer domains. In contrast, existing approaches such as generic augmentations, which fail to randomize domain-dependent features, and domain-invariant augmentations, which randomize all domain-dependent features, both perform poorly OOD. In experiments on three real-world datasets, we show that targeted augmentations set new states-of-the-art for OOD performance by 3.2-15.2 percentage points.

View on arXivView PDF

Code Implementations(1)

i-gao/targeted-augsCommunity100%

Code for paper "Out-of-Domain Robustness via Targeted Augmentations"

143PythonFeb 21, 20233 years ago

Similar Papers

Cite this paper

@article{gao2023outofdomain,
  title  = {Out-of-Domain Robustness via Targeted Augmentations},
  author = {Irena Gao and Shiori Sagawa and Pang Wei Koh and Tatsunori Hashimoto and Percy Liang},
  year   = {2023},
  eprint = {2302.11861},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.11861v3},
  journal = {ICML 2023 2023}
}

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

Discussion