Understanding Generalization in Adversarial Training via the Bias-Variance Decomposition
Yaodong Yu, Zitong Yang, Edgar Dobriban, Jacob Steinhardt, Yi Ma
TL;DR
This paper investigates why adversarial training suffers a generalization gap on clean data by decomposing test risk into bias and variance across the adversarial perturbation radius $\varepsilon$. It discovers that bias increases monotonically with $\varepsilon$ and dominates risk, while variance is unimodal and peaks near the robust interpolation threshold, a pattern robust across datasets and defenses like randomized smoothing. These findings challenge explanations that predict monotone variance growth and demonstrate how bias-variance analysis can validate or refute conceptual models of adversarial training. The work also shows that reducing bias—via pre-training and unlabeled data—offers scalable routes to improve robustness, guiding future architecture and training strategy designs. Overall, the bias-variance lens provides two independent measurements to evaluate theories and suggests practical directions to narrow the adversarial generalization gap.
Abstract
Adversarially trained models exhibit a large generalization gap: they can interpolate the training set even for large perturbation radii, but at the cost of large test error on clean samples. To investigate this gap, we decompose the test risk into its bias and variance components and study their behavior as a function of adversarial training perturbation radii ($\varepsilon$). We find that the bias increases monotonically with $\varepsilon$ and is the dominant term in the risk. Meanwhile, the variance is unimodal as a function of $\varepsilon$, peaking near the interpolation threshold for the training set. This characteristic behavior occurs robustly across different datasets and also for other robust training procedures such as randomized smoothing. It thus provides a test for proposed explanations of the generalization gap. We find that some existing explanations fail this test--for instance, by predicting a monotonically increasing variance curve. This underscores the power of bias-variance decompositions in modern settings-by providing two measurements instead of one, they can rule out more explanations than test accuracy alone. We also show that bias and variance can provide useful guidance for scalably reducing the generalization gap, highlighting pre-training and unlabeled data as promising routes.
