NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

On the Effects of Adversarial Perturbations on Distribution Robustness

Yipei Wang, Zhaoying Pan, Xiaoqian Wang

TL;DR

Adversarial training is widely believed to inherently degrade a model's distribution robustness by forcing it to rely more heavily on spurious correlations. This paper challenges that assumption through a tractable theoretical framework, revealing that $\ell_\infty$ adversarial perturbations can actually improve distribution robustness under moderate data bias or when the core features are highly separable.

What Problem Does This Paper Address?

Machine learning models deployed in the real world face two major hurdles: adversarial attacks (small, malicious input perturbations that fool a model) and distribution shifts (changes in data distribution between training and testing). Often, distribution shifts involve spurious correlations—like a model classifying a "waterbird" based on the water background rather than the bird itself.

While both adversarial defense and distribution robustness aim to make models more reliable, recent literature has highlighted a frustrating tradeoff: defending against adversarial attacks can actually make a model more reliant on spurious features, tanking its performance on shifted test data. The authors of this paper tackle a fundamental question: Is this tradeoff an absolute law, or are there hidden regimes where adversarial perturbations can actually help mitigate spurious correlations?

Methods

To circumvent the notoriously difficult bi-level optimization problem of standard adversarial training, the authors introduce a two-stage proxy framework:

  1. Stage 1: Train a base linear classifier on clean data.
  2. Perturbation Generation: Use the gradients of this clean classifier to generate fixed adversarial perturbations under $\ell_2$ or $\ell_\infty$ constraints.
  3. Stage 2: Train a second classifier on the newly perturbed data and evaluate its distribution robustness on a balanced test set.

The authors model the data using Gaussian mixtures where features are explicitly split into invariant (core) attributes and spurious attributes. This allows them to mathematically define and manipulate feature separability (how easy a feature is to classify, denoted as $m_1$ for core and $m_2$ for spurious) and spurious correlation severity ($\zeta$).

Datasets

The paper relies entirely on synthetic Gaussian datasets designed to precisely match their theoretical framework. This setup gives the authors absolute control over feature dimensions, feature separability parameters ($m_1, m_2$), and the exact ratio of spurious correlations ($\zeta$) in the training distribution.

Key Insights and Ideas

  • The Tradeoff Isn't Absolute: Contrary to prevailing assumptions, adversarial training does not universally harm distribution robustness.
  • The Unique Benefit of $\ell_\infty$ Perturbations: Under $\ell_\infty$ constraints with moderate data bias, adversarial perturbations actively suppress the model's reliance on spurious features, acting as a form of regularization.
  • Feature Separability is the Deciding Factor: The impact of the perturbations depends heavily on the interplay between how easily the model can separate the core feature versus the spurious feature. If simplicity bias causes the model to favor an easily separable core feature ($m_1 > m_2$), distribution robustness improves even under extreme spurious correlation.
Figure 1: Examples of Distribution Robustness and Adversarial Perturbations. Groups are denoted by their two binary attributes. The left subplots show distribution robustness when training data contains spurious correlation (ζ = 0.95; 95% majority) and test data is balanced, leading to an accuracy drop under shift. The right subplots show training data perturbed with ℓ∞at varying feature separabilities and a large attack budget of 1 to highlight the effects. When the spurious feature is easier to classify, as m1 < m2, the classifier increasingly relies on the spurious feature (feature 2); conversely, m1 > m2 increases the reliance on the non-spurious feature.
  • Surrogate Validity: The authors demonstrate empirically that their simplified two-stage proxy framework yields results that closely match standard, step-by-step online adversarial training, proving its utility as a theoretical tool.

Key Results

  • The authors derive exact closed-form expressions for training accuracy and group accuracy under perturbed data (Theorem 6 & Corollary 7).
  • By plotting the theoretical accuracy gap between clean-trained and proxy-trained models, they identify clear "win-win" regimes (visualized as blue/red regions in their heatmaps) where $\ell_\infty$ perturbations boost distribution robustness.
Figure 2: Theoretical accuracy gap between proxy-trained and clean-trained models under ℓ2 perturbations.
  • Empirical simulations perfectly mirror the theoretical predictions: when the core feature is highly separable ($m_1 > m_2$), the classifier's reliance successfully shifts away from the background/spurious feature and toward the robust core feature.

Limitations and Future Work

  • Simplified Framework: The theoretical analysis relies on a two-stage proxy rather than full, multi-step online adversarial training, leaving a complete theoretical characterization of standard adversarial training open.
  • Linear and Gaussian Constraints: The proofs are restricted to linear classifiers and Gaussian mixture data models, which may not fully capture the complex, non-linear dynamics of deep neural networks operating on real-world data.
  • Quantifying Real-World Separability: Measuring "feature separability" in high-dimensional, complex real-world datasets remains incredibly challenging, meaning practitioners cannot easily predict which robustness regime their data currently occupies.

Summary updated

BibTeX
@inproceedings{wang2026effects,
  author = {Yipei Wang and Zhaoying Pan and Xiaoqian Wang},
  title = {{On the Effects of Adversarial Perturbations on Distribution Robustness}},
  booktitle = {Trustworthy AI @ ICLR},
  year = {2026},
  url = {https://openreview.net/forum?id=gb6j0B3c8d},
}
Figure