Understanding Generalization in Adversarial Training via the Bias-Variance Decomposition

Yaodong Yu, Zitong Yang, Edgar Dobriban, Jacob Steinhardt, Yi MaarXiv 2021

Introduction

Adversarial training (AT) remains the most effective defense against adversarial perturbations—small, intentional changes to input data designed to mislead machine learning models. However, AT is characterized by a significant "robustness-accuracy tradeoff" and a substantial generalization gap. Models often achieve near-zero error on adversarial training sets but fail to generalize to clean or adversarial test samples. This paper investigates the root causes of this gap by applying the classic bias-variance decomposition to modern deep learning contexts.

Methodology: Decomposing the Generalization Gap

The authors extend the bias-variance decomposition, typically used for Mean Squared Error, to Cross-Entropy loss. This allows for a granular analysis of the expected error (risk) into two components:

  1. Bias: The error resulting from the average prediction's deviation from the true label.
  2. Variance: The error resulting from the model's sensitivity to specific training samples.

By systematically varying the adversarial perturbation radius ($\epsilon$), the researchers tracked how these components evolve across standard benchmarks like CIFAR-10, CIFAR-100, and ImageNet-10.

The Bias-Variance Dynamics

A central finding of the study is that bias is the dominant factor in the generalization gap. As the adversarial training radius $\epsilon$ increases, the model's bias grows monotonically. This suggests that AT acts as a strong implicit regularizer, preventing the model from capturing the true underlying data distribution in favor of robustness.

Bias, Variance, and Risk as a function of the adversarial perturbation radius. Bias increases monotonically, while variance exhibits a unimodal 'hump' shape.

In contrast to bias, variance follows a "unimodal" or hump-shaped trajectory. It increases as the model is forced to fit increasingly difficult adversarial examples, peaks at a specific point, and then decreases.

The Robust Interpolation Threshold

The peak of the variance curve is not arbitrary; it coincides exactly with the robust interpolation threshold. This is the point where the model can no longer perfectly fit the adversarial training data (i.e., when robust training error begins to rise above zero).

Robust and standard error rates across different perturbation radii. The dashed line indicates the robust interpolation threshold where training error begins to increase.

This phenomenon mirrors the "double descent" observed in model complexity studies, suggesting that the transition from a regime of perfect fitting (interpolation) to one of underfitting is a critical juncture for model variance.

High-Dimensionality and Practical Implications

The researchers emphasize that these dynamics—specifically the unimodal variance—are unique to high-dimensional settings. Simplified 2D visualizations often used to explain adversarial boundaries fail to capture this behavior.

To mitigate the generalization gap, the study evaluates several common techniques:

  • Early Stopping and Model Width: These primarily serve to reduce variance.
  • Pre-training and Unlabeled Data: These are identified as the most effective "scalable" solutions because they directly address the dominant component: bias.

Conclusion

By reframing the challenges of adversarial training through the lens of bias and variance, this work provides a clearer picture of why robust models struggle to generalize. The discovery of the unimodal variance hump and its link to the robust interpolation threshold offers a new theoretical anchor for understanding the complexity of robust deep learning. Future work may focus on designing architectures that can better accommodate the implicit regularization of AT to reduce bias without sacrificing robustness.

Summary updated

BibTeX
@misc{yu2021understanding,
  author = {Yaodong Yu and Zitong Yang and Edgar Dobriban and Jacob Steinhardt and Yi Ma},
  title = {{Understanding Generalization in Adversarial Training via the Bias-Variance Decomposition}},
  year = {2021},
  eprint = {2103.09947},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.09947},
}
Figure