Abstract
Adversarial training (AT) is the primary defense against adversarial attacks, yet it frequently suffers from "robust overfitting," where test-set robustness degrades as training progresses. This paper explores whether the geometry of the robust loss landscape can explain this phenomenon. By developing scale-invariant metrics for flatness, the authors find a strong correlation between the flatness of minima and robust generalization. Their findings suggest that many effective adversarial training techniques—from TRADES to data augmentation—succeed primarily by encouraging the model to settle into flatter regions of the loss landscape.
The Challenge of Robust Overfitting
Deep learning models are highly susceptible to adversarial examples—small, intentional perturbations to inputs that cause misclassification. While Adversarial Training (AT) improves robustness, it introduces a unique failure mode: robust overfitting. Unlike standard training, where test performance typically plateaus, AT often sees a significant "robust generalization gap": the model continues to improve on training-set attacks while performing increasingly poorly on test-set attacks.
Quantifying Landscape Flatness
The authors investigate whether the geometry of the loss landscape can explain this gap. In standard training, "flat" minima—regions where the loss is stable under small weight perturbations—are known to generalize better. This paper asks if this intuition holds for robust loss (loss on adversarial examples).
To measure this, the authors propose two primary metrics:
- Average-Case Flatness: Measures the change in robust loss when weights are perturbed by random noise.
- Worst-Case Flatness: Measures the change in robust loss when weights are perturbed in the "worst possible" direction (adversarial weight perturbations).
A key innovation is the use of per-layer normalization to ensure scale invariance. Previous flatness measures could be "faked" by simply scaling weights; this new approach ensures metrics reflect the actual functional geometry of the model rather than weight magnitude.
Results: Flatness as a Unifying Property
The empirical study across dozens of models, including state-of-the-art variants like TRADES, MART, and AT-AWP, reveals a striking trend. Seemingly unrelated techniques—such as using unlabeled data, self-supervision, or specific activation functions—all converge on the same geometric result: they produce flatter minima in the robust loss landscape.
The authors found a strong Pearson correlation of 0.85 between average-case flatness and robust test loss. Key findings include:
- Flatness Explains Overfitting: Late in training, the robust loss landscape becomes significantly "sharper." Early stopping is effective because it catches the model while it is still in a relatively flat region.
- AT-AWP is the Flatness King: AT-AWP, which explicitly optimizes for flatness during training, consistently found the flattest minima and achieved superior robustness scores.
- Regularization Works: Simple techniques like weight decay and label noise improve robust generalization specifically by encouraging flatter minima.
Conclusion
This work provides a compelling geometric explanation for robust generalization. By demonstrating that flatness is a unifying property of successful adversarial defenses, it suggests that future research should focus on directly optimizing landscape geometry to overcome the challenges of robust overfitting.
Summary updated