A High Dimensional Statistical Model for Adversarial Training: Geometry and Trade-Offs

Kasimir Tanner, Matteo Vilucchio, Bruno Loureiro, Florent Krzakala

Abstract

This work investigates adversarial training in the context of margin-based linear classifiers in the high-dimensional regime where the dimension $d$ and the number of data points $n$ diverge with a fixed ratio $\alpha = n / d$. We introduce a tractable mathematical model where the interplay between the data and adversarial attacker geometries can be studied, while capturing the core phenomenology observed in the adversarial robustness literature. Our main theoretical contribution is an exact asymptotic description of the sufficient statistics for the adversarial empirical risk minimiser, under generic convex and non-increasing losses for a Block Feature Model. Our results allow us to precisely characterise which directions in the data are associated with a higher generalisation/robustness trade-off, as defined by a robustness and a usefulness metric. This goes beyond previous models in the literature, which fail to capture a difference in performance between adversarially trained models in the high sample complexity regime. In particular, we unveil the existence of directions which can be defended without penalising accuracy. Finally, we show the advantage of defending non-robust features during training, identifying a uniform protection as an inherently effective defence mechanism.

Introduction

Adversarial attacks—small, intentional perturbations designed to flip a model's prediction—remain a critical vulnerability in modern machine learning. While adversarial training (AT) is a standard defense, it often introduces a frustrating trade-off: increasing robustness typically degrades accuracy on clean data. Theoretical understanding of this trade-off has often been limited to "toy" models with unstructured data, which fail to explain why some datasets are harder to defend than others.

Presented at AISTATS 2025, this research provides a rigorous framework for understanding how data geometry dictates the robustness-accuracy trade-off. By analyzing a high-dimensional regime where the number of samples $n$ and dimensions $d$ scale together ($\alpha = n/d$), the authors demonstrate that this trade-off is not an inevitable law of nature but a consequence of how attacks align with useful features.

The Block Feature Model (BFM)

To capture real-world complexity, the authors introduce the Block Feature Model (BFM). Unlike standard Gaussian models, the BFM groups features into "blocks," each with distinct properties:

  • Usefulness: The degree of correlation with the target label.
  • Robustness: The sensitivity of the feature to adversarial perturbations.

Using tools from statistical physics—specifically the Replica Method and Generalized Approximate Message Passing (GAMP)—the authors reduce the $d$-dimensional optimization of adversarial training into a system of eight scalar equations. These equations exactly describe the model's asymptotic performance.

Geometry and the Trade-off

A key insight of the paper is that the "inevitable" trade-off only exists when an attack targets features that are critical for classification. If an attack targets "non-robust" directions that are orthogonal to the signal, they can be defended with minimal impact on clean accuracy. Conversely, the authors prove a "Single-Block Triviality" result: in simple models where all features share the same properties, AT provides no benefit in the large-sample limit, as adversarial error converges to a constant regardless of training strength.

Error rates ($E_{adv}$, $E_{gen}$, $E_{bnd}$) vs. sample complexity $\alpha$ across different feature geometries. The plots show how robustness and usefulness interact to determine performance.

As shown in Figure 1, the behavior of the adversarial error ($E_{adv}$) and generalization error ($E_{gen}$) varies significantly depending on the block's characteristics. In the high-sample regime (large $\alpha$), the model reveals that certain directions are "defendable for free," while others necessitate a performance penalty.

Defending the Weak: Optimal Strategies

The research challenges common intuitions about defense. A significant finding is that specifically defending non-robust features—those most vulnerable to attacks—is often more effective than protecting the most "useful" features.

Comparison of defense strategies: protecting robust features, uniform protection, and protecting non-robust features. Protecting non-robust features often yields the best balance.

The authors identify uniform protection as a surprisingly powerful baseline. By treating all directions equally or even prioritizing the defense of weak features (inverse to their variance), models can achieve lower adversarial error without the steep accuracy drops seen in standard approaches. This was validated both theoretically and on real-world datasets like CIFAR-10 and FashionMNIST, where PCA was used to identify feature blocks of varying robustness.

Adversarial Training as Regularization

The study also clarifies the mechanism of AT, showing it acts as a data-dependent regularization. It combines standard $\ell_2$ regularization with a "directional" term that penalizes sensitivity in specific attack directions. This explains why AT behaves differently than simple weight decay and why its effectiveness is so tied to the underlying data distribution.

Conclusion

While currently focused on linear classifiers, this work provides a foundational theoretical bridge between data geometry and adversarial robustness. It moves the conversation from "if" a trade-off exists to "where" it exists within the data structure. Future work aims to extend these high-dimensional asymptotics to multi-class classification and non-linear models to better capture the dynamics of deep neural networks.

Summary updated

BibTeX
@inproceedings{tanner2025high,
  author = {Kasimir Tanner and Matteo Vilucchio and Bruno Loureiro and Florent Krzakala},
  title = {{A High Dimensional Statistical Model for Adversarial Training: Geometry and Trade-Offs}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2025},
  url = {https://openreview.net/forum?id=UoFlLAUjDJ},
}
Figure