[Paper Review] Understanding Generalization in Adversarial Training via the Bias-Variance Decomposition
This paper investigates the generalization gap in adversarially trained models using bias-variance decomposition, revealing that bias monotonically increases with adversarial perturbation radius ε while variance peaks near the robust interpolation threshold. The unimodal variance behavior—contrary to expectations—provides a critical diagnostic tool for evaluating theoretical explanations of adversarial robustness.
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.
Motivation & Objective
- To understand the origin of the large generalization gap in adversarially trained models, where models achieve near-zero robust training error but high test error on clean data.
- To analyze how bias and variance evolve as a function of the adversarial perturbation radius ε in adversarial training.
- To evaluate whether existing theoretical explanations of the generalization gap are consistent with the observed bias-variance dynamics.
- To identify conditions under which the observed bias-variance patterns hold or break down, to inform model design and generalization improvements.
Proposed method
- Empirically decomposes test risk into bias and variance components using cross-entropy loss and expected log-probability averaging over model weights.
- Computes bias as the expected divergence between true class probabilities and average predicted probabilities, and variance as the negative log-normalization of the expected log-probabilities.
- Applies the decomposition to models trained with ℓ∞-adversarial training and randomized smoothing across multiple datasets (e.g., CIFAR-10).
- Tests robustness of observed patterns by varying model type, data dimensionality, and noise injection strategy (e.g., fixed vs. adaptive noise).
- Uses the bias-variance behavior as a diagnostic criterion to validate or reject simplified conceptual models of adversarial training.
- Analyzes logistic regression and high-dimensional models to isolate the role of non-linearity, data dimensionality, and adaptive noise in shaping bias and variance.
Experimental results
Research questions
- RQ1How does the bias in adversarially trained models change as a function of the perturbation radius ε?
- RQ2How does the variance in adversarially trained models vary with ε, and does it exhibit a unimodal pattern?
- RQ3Does the peak in variance consistently occur near the robust interpolation threshold, where models stop robustly interpolating the training set?
- RQ4Are the observed bias-variance patterns robust across different datasets, model architectures, and robust training methods like randomized smoothing?
- RQ5Can the bias-variance decomposition serve as a diagnostic tool to evaluate the validity of theoretical explanations of the adversarial generalization gap?
Key findings
- Bias increases monotonically with the perturbation radius ε and dominates the test risk across all datasets and models studied.
- Variance is unimodal in ε, peaking near the robust interpolation threshold—the smallest ε for which the model no longer robustly interpolates the training data.
- The unimodal variance pattern is robust across multiple datasets and robust training methods, including randomized smoothing with independent Gaussian noise per minibatch.
- The pattern breaks when noise is fixed across epochs, indicating that the dynamic nature of the attack is essential to the observed behavior.
- The bias-variance patterns do not hold in low-dimensional models, suggesting that high-dimensional data geometry is critical to the phenomenon.
- The observed behavior invalidates some existing explanations—e.g., those predicting monotonically increasing variance—demonstrating the power of bias-variance decomposition as a diagnostic tool.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.