Skip to main content
QUICK REVIEW

[Paper Review] Improving Out-of-Distribution Generalization by Adversarial Training with Structured Priors

Qixun Wang, Yifei Wang|arXiv (Cornell University)|Oct 13, 2022
Adversarial Robustness in Machine LearningComputer Science5 citations
TL;DR

This paper proposes two adversarial training methods—Matrix Adversarial Training (MAT) and Low-Rank Adversarial Training (LDAT)—that use structured, low-rank perturbations guided by domain-specific priors to improve out-of-distribution (OOD) generalization. By constraining perturbations to universal, low-dimensional structures across domains, the methods reduce reliance on spurious features and achieve state-of-the-art performance on the DomainBed benchmark, outperforming standard empirical risk minimization and sample-wise adversarial training.

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. 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.

Motivation & Objective

  • To address the poor OOD generalization performance of standard sample-wise adversarial training (AT), which fails under large-scale distribution shifts.
  • To investigate whether structured, low-rank perturbations can enhance robustness against spurious correlations in out-of-distribution settings.
  • To develop and validate new AT variants that explicitly incorporate domain-level priors to improve generalization beyond in-distribution performance.
  • To theoretically and empirically demonstrate that domain-wise, structured perturbations accelerate convergence to zero reliance on spurious features.

Proposed method

  • Proposes Matrix Adversarial Training (MAT), which learns a shared, low-rank perturbation matrix per domain to apply uniformly across samples in that domain.
  • Introduces Low-Rank Adversarial Training (LDAT), which uses a low-rank decomposition of domain-specific perturbations to reduce parameter complexity and improve generalization.
  • Applies adversarial training with structured perturbations that are universal across samples within a domain, contrasting with sample-wise AT that applies unique, high-dimensional perturbations per sample.
  • Uses gradient-based optimization to train the model and perturbation matrices jointly, with the perturbations constrained to low-rank structures to promote invariance to background and style.
  • Employs domain-level priors to guide the construction of perturbations, ensuring they capture meaningful, low-dimensional distribution shifts rather than random noise.
  • Theoretical analysis shows that structured perturbations in MAT and LDAT accelerate the convergence of reliance on spurious features to zero under finite-time gradient descent.

Experimental results

Research questions

  • RQ1Does sample-wise adversarial training generalize poorly to out-of-distribution data due to its inability to handle large-scale perturbations?
  • RQ2Can domain-wise, low-rank structured perturbations in adversarial training improve OOD generalization compared to standard AT?
  • RQ3How do structured perturbations affect model reliance on spurious features such as background and style?
  • RQ4What is the impact of the number of perturbations (k) and rank (l) on the performance of MAT and LDAT?
  • RQ5Can the proposed methods generalize across diverse OOD benchmarks without retraining?

Key findings

  • MAT and LDAT outperform standard Empirical Risk Minimization (ERM) and sample-wise adversarial training on all five datasets in the DomainBed benchmark.
  • On the PACS dataset, MAT achieves 82.3% accuracy and LDAT 82.6%, surpassing ERM (79.8%) and standard AT (73.0%) under OOD settings.
  • Visualizations using Grad-CAM show that MAT and LDAT focus on object regions, while ERM and AT rely heavily on background and spurious features.
  • Performance degrades significantly when the number of perturbations (k) or rank (l) is too small (e.g., 5) or too large (e.g., 1000), indicating an optimal intermediate range.
  • The optimal hyperparameters (k and l) selected on one dataset generalize well to others, suggesting robustness and transferability of the method across domains.
  • Theoretical analysis confirms that structured perturbations in MAT and LDAT accelerate convergence to zero reliance on spurious features under finite-time gradient descent.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.