Improving Out-of-Distribution Generalization by Adversarial Training with Structured Priors

Qixun Wang, Yifei Wang, Hong Zhu, Yisen Wang
10/13/2022
cs.LG

Official code: NOVAglow646/NIPS22-MAT-and-LDAT-for-OOD (9 stars, Python, last commit 2024-05-29).

Abstract

Deep models often fail to generalize well in test domains when the data distribution differs from that in the training domain. Among numerous approaches to address this Out-of-Distribution (OOD) generalization problem, there has been a growing surge of interest in exploiting Adversarial Training (AT) to improve OOD performance.

Show full abstract

Recent works have revealed that the robust model obtained by conducting sample-wise AT also retains transferability to biased test domains. In this paper, we empirically show that sample-wise AT has limited improvement on OOD performance. Specifically, we find that AT can only maintain performance at smaller scales of perturbation while Universal AT (UAT) is more robust to larger-scale perturbations. This provides us with clues that adversarial perturbations with universal (low dimensional) structures can enhance the robustness against large data distribution shifts that are common in OOD scenarios. Inspired by this, we propose two AT variants with low-rank structures to train OOD-robust models. Extensive experiments on DomainBed benchmark show that our proposed approaches outperform Empirical Risk Minimization (ERM) and sample-wise AT. Our code is available at https://github.com/NOVAglow646/NIPS22-MAT-and-LDAT-for-OOD.

View on arXivView PDF

Code Implementations(1)

Official code for NeurIPS 2022 paper "Improving Out-of-Distribution Generalization by Adversarial Training with Structured Priors"

90PythonOct 10, 20222 years ago

Similar Papers

Cite this paper

@article{wang2022improving,
  title  = {Improving Out-of-Distribution Generalization by Adversarial Training with Structured Priors},
  author = {Qixun Wang and Yifei Wang and Hong Zhu and Yisen Wang},
  year   = {2022},
  eprint = {2210.06807},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.06807}
}

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

Discussion