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

On the Effects of Adversarial Perturbations on Distribution Robustness

Yipei Wang, Zhaoying Pan, Xiaoqian Wang · DOI

TL;DR

While researchers often assume a fundamental tradeoff between adversarial robustness (resistance to noise) and distribution robustness (handling data shifts), this paper proves that the two can actually work together. By introducing a theoretical framework based on "feature separability," the authors demonstrate that $\ell_\infty$ adversarial perturbations can actually improve a model's ability to ignore spurious correlations and focus on core features.

What Problem Does This Paper Address?

Machine learning models are notoriously fragile. They can be fooled by "adversarial perturbations"—tiny, intentional changes to an image that are invisible to humans but catastrophic for AI. To fix this, researchers use Adversarial Training (AT), which involves training the model on these perturbed images.

However, a second problem exists: Distribution Shift. Models often cheat by learning "spurious features" (e.g., associating "water" with "duck" because most ducks in the training set are in ponds). If you show that model a duck on land, it fails. Previous studies suggested a "tradeoff": adversarial training might actually make models more reliant on these spurious shortcuts, hurting their performance on new distributions. This paper investigates exactly when this tradeoff happens and, more importantly, when it doesn't.

Methods

The authors move away from complex, "black-box" neural network analysis and instead use a two-stage theoretical proxy:

  1. Stage 1: Train a "base" linear classifier on clean data.
  2. Stage 2: Use the gradients of that base classifier to generate adversarial perturbations (using $\ell_2$ or $\ell_\infty$ constraints), then train a second classifier on this perturbed data.

They model the data using Gaussian mixtures, where features are categorized as either "invariant" (the core signal) or "spurious" (the shortcut). A key metric they introduce is feature separability ($m_n$), calculated via Mahalanobis distance, which quantifies how easy it is for a classifier to distinguish a specific feature. This allows them to derive closed-form mathematical expressions for the "Bayes-optimal" classifier's behavior under attack.

Datasets

  • Synthetic Gaussian Data: The primary evaluation is performed on synthetic datasets where the authors can precisely control the severity of spurious correlation ($\zeta$) and the separability of features ($m_1, m_2$).
  • Waterbirds (Reference): The paper cites the Waterbirds dataset (birds on water vs. land backgrounds) as the canonical real-world motivation for studying spurious correlations, though the core proofs rely on the controlled synthetic environment.

Key Insights and Ideas

  • The "Separability" Factor: The tradeoff isn't universal. The authors found that if the core feature is easier to classify than the spurious one (high feature separability), adversarial perturbations can actually push the model to rely less on the shortcut.
  • $\ell_\infty$ is a Secret Weapon: Unlike $\ell_2$ perturbations, $\ell_\infty$ perturbations (which limit the maximum change to any single pixel) are particularly effective at breaking the tradeoff. On moderately biased data, $\ell_\infty$ noise acts as a regularizer that mitigates reliance on spurious features.
  • Simplicity Bias: Models naturally prefer "simple" features. If the spurious feature is "simpler" (more separable) than the core feature, adversarial training hurts. If the core feature is simpler, adversarial training helps.
  • A Tractable Surrogate: The authors prove that their simplified two-stage framework is an effective proxy for the complex, iterative process of standard adversarial training, making theoretical analysis much more manageable.

Key Results

  • Theoretical Proof: The authors provide a fixed-point equation (Theorem 6) that characterizes how a model's weights shift when trained on perturbed data.
  • Robustness Gains: In "moderately biased" regimes, the authors visualized an increase in distribution robustness (shown as red regions in their heatmaps) when using $\ell_\infty$ perturbations.
  • Empirical Validation: Experiments on synthetic data closely matched the theoretical predictions. Specifically, when the core feature was more separable ($m_1 > m_2$), the accuracy on shifted (balanced) test data improved after adversarial training.

Limitations and Future Work

  • Linearity: The theoretical analysis is primarily focused on linear classifiers. While these provide deep insights, extending the proofs to multi-layer non-linear neural networks remains a challenge.
  • Measuring Separability: In the real world, we don't have a simple "separability score" for complex features like "texture" or "background." Developing ways to quantify feature separability in high-dimensional image data is a necessary next step.
  • Iterative AT: The two-stage proxy simplifies the "on-the-fly" nature of standard adversarial training. While the authors showed their proxy generalizes well, a full characterization of the multi-step training dynamics is still an open problem.

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