On the Connection between Invariant Learning and Adversarial Training for Out-of-Distribution Generalization

Authors

  • Shiji Xin Peking University
  • Yifei Wang Peking University
  • Jingtong Su New York University
  • Yisen Wang Peking University

DOI:

https://doi.org/10.1609/aaai.v37i9.26250

Keywords:

ML: Adversarial Learning & Robustness

Abstract

Despite impressive success in many tasks, deep learning models are shown to rely on spurious features, which will catastrophically fail when generalized to out-of-distribution (OOD) data. Invariant Risk Minimization (IRM) is proposed to alleviate this issue by extracting domain-invariant features for OOD generalization. Nevertheless, recent work shows that IRM is only effective for a certain type of distribution shift (e.g., correlation shift) while it fails for other cases (e.g., diversity shift). Meanwhile, another thread of method, Adversarial Training (AT), has shown better domain transfer performance, suggesting that it has the potential to be an effective candidate for extracting domain-invariant features. This paper investigates this possibility by exploring the similarity between the IRM and AT objectives. Inspired by this connection, we propose Domain-wise Adversarial Training (DAT), an AT-inspired method for alleviating distribution shift by domain-specific perturbations. Extensive experiments show that our proposed DAT can effectively remove domain-varying features and improve OOD generalization under both correlation shift and diversity shift.

Downloads

Published

2023-06-26

How to Cite

Xin, S., Wang, Y., Su, J., & Wang, Y. (2023). On the Connection between Invariant Learning and Adversarial Training for Out-of-Distribution Generalization. Proceedings of the AAAI Conference on Artificial Intelligence, 37(9), 10519–10527. https://doi.org/10.1609/aaai.v37i9.26250

Issue

Section

AAAI Technical Track on Machine Learning IV