Deep neural networks are notoriously fragile; a tiny, invisible perturbation to an image can trick a model into misclassifying it. To fix this, researchers use Adversarial Training (AT), where the model is trained on "adversarial examples" generated on the fly, usually via an algorithm called Projected Gradient Descent (PGD).
While AT makes models more robust, it introduces a major flaw: robust overfitting. Unlike standard training, where more data usually leads to better generalization, adversarially trained models often see their test-set performance plummet late in training. This paper provides a new theoretical explanation for this frustrating tendency. By introducing a property called expansiveness, the authors prove that the popular sign-based PGD attack is mathematically "too sensitive," causing the training process to become unstable and fail to generalize.
The Problem: Robust Overfitting
Previous theoretical attempts to explain robust overfitting either relied on unrealistic assumptions (like assuming we can find the perfect adversarial attack) or produced "non-vanishing" bounds—mathematical formulas that don't get better even if you have an infinite amount of data.
The authors tackle this using the lens of Algorithmic Stability. In simple terms, a stable algorithm is one where changing a single training point doesn't radically change the final model.
Methodology: Expansiveness and Stability
The core innovation of this paper is the definition of expansiveness. This metric measures how much an attack algorithm (like PGD) amplifies small differences in model parameters. If an attack is "expansive," a tiny change in the model's weights leads to a massive change in the adversarial example it generates.
The authors derive new generalization bounds that depend on:
- The expansiveness of the attack used during training.
- The expansiveness of the attack used for evaluation.
To test their theory, they experimented with replacing the standard, "sharp" sign function used in PGD with a smoother tanh approximation. By tuning the smoothness, they could directly control the expansiveness and observe its effect on the generalization gap across standard datasets like CIFAR-10, CIFAR-100, and SVHN.
Key Insights and Results
- The Sign Function is the Culprit: The standard PGD attack uses the
signof the gradient. The authors show that this choice leads to "bad" expansiveness. Because the sign function is non-smooth, it makes the training process highly sensitive to small fluctuations, directly leading to robust overfitting. - Vanishing Bounds: Unlike previous work, the authors' bounds actually vanish at a rate of $O(1/n)$. This means their theory correctly predicts that, given enough data and a well-behaved (low expansiveness) attack, the generalization gap should disappear.
- Smoothing Works: Experiments showed that as they made the PGD attack smoother (reducing the $\gamma$ parameter in the
tanhapproximation), the generalization gap narrowed significantly.
- The Robustness-Generalization Tension: There is a fundamental trade-off. The
signfunction is a very "strong" attack that helps find high-loss areas during training (good for optimization), but its high expansiveness ruins generalization. While smoother attacks generalized better, they were often "weaker" attacks. A model trained on a smooth attack might generalize well to that attack, but still remain vulnerable to the sharpersignattack. - A Universal Problem: The authors show that this isn't just a PGD problem. They prove that a wide family of iterative attacks (which they call $G_p$-PGD) all suffer from poor expansiveness properties. When testing different norms for the attack, they found that as the algorithm moved closer to the $\infty$-norm (the standard sign-PGD), the generalization gap widened, often exceeding 30% on CIFAR-10.
Limitations and Future Work
The authors acknowledge that they have developed an upper bound. In the world of theory, an upper bound tells you the "worst-case" gap, but it doesn't necessarily mean the gap will always be that large in practice.
Future work could involve developing new AT algorithms that balance "attack strength" with "low expansiveness" to get the best of both worlds. Additionally, researchers could investigate if these stability results can be used to create better early-stopping criteria to prevent robust overfitting before it starts, or explore how these bounds behave in extremely high-dimensional settings with different loss functions.
Summary updated