NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

On Norm-Agnostic Robustness of Adversarial Training

Bai Li, Changyou Chen, Wenlin Wang, Lawrence CarinarXiv 2019

Abstract

Adversarial training (AT) is the current state-of-the-art defense against adversarial perturbations in deep learning. However, most AT methods are optimized for a specific perturbation norm (e.g., $\ell_\infty$), leading to a lack of "norm-agnostic" robustness. This paper explores this limitation by introducing a Second-Order (S-O) attack that utilizes Hessian information to navigate "flat" loss landscapes. Our results on MNIST and CIFAR-10 demonstrate that models appearing robust to one norm can be entirely compromised by attacks using a different norm, revealing that current defenses often rely on a form of gradient masking rather than true robustness.

Introduction

Deep neural networks are notoriously vulnerable to adversarial examples—carefully crafted inputs that cause misclassification through imperceptible changes. To counter this, researchers employ adversarial training (AT), where models are trained on adversarial examples generated during the training process. While effective against the specific attack used during training, these models often fail to generalize their robustness to other types of perturbations.

Ideally, a defense should be norm-agnostic, providing protection regardless of whether an attacker uses an $\ell_\infty$ norm (limiting the maximum change per pixel) or an $\ell_2$ norm (limiting the total Euclidean distance). This paper argues that current AT methods often converge to a "degenerate global minimum" where the loss function is artificially flattened around natural images, creating an illusion of security that can be bypassed with higher-order optimization.

Methodology: The Second-Order (S-O) Attack

Standard adversarial attacks like Projected Gradient Descent (PGD) rely on first-order gradients to find directions of maximum loss. When AT makes the loss landscape flat, these gradients vanish, causing PGD to fail. To expose this vulnerability, the authors propose the Second-Order (S-O) Attack.

By utilizing the Hessian matrix (the second-order derivative of the loss), the S-O attack can identify directions of vulnerability even when the local gradient is zero. The attack performs a Taylor expansion of the loss function:

$$L(x + \delta) \approx L(x) + g^T \delta + \frac{1}{2} \delta^T H \delta$$

When the gradient $g$ is negligible, the optimal perturbation direction $\delta$ corresponds to the dominant eigenvector of the Hessian matrix $H$. To overcome the high computational cost of calculating the full Hessian ($O(I^3)$), the authors implement a fast approximation using power iteration and finite differences. This allows the attack to efficiently find the "steepest" direction in the loss landscape, effectively "kicking" the optimization out of flat local regions where standard PGD gets stuck.

Results and Analysis

Gradient Masking and the Illusion of Robustness

The study visualizes the $\ell_2$ norm of gradients during different attacks to demonstrate how AT affects the loss landscape. As shown in Figure 1, naturally trained models exhibit significant gradients. In contrast, models under standard AT show very low gradient norms for PGD, confirming the "flatness" of the landscape. The S-O attack, however, maintains a higher gradient norm by successfully navigating these regions.

Comparison of gradient norms over iterations for Natural, PGD, and S-O attacks. The S-O attack avoids the gradient vanishing problem seen in standard AT models.

Quantitative Evaluation of Norm-Agnosticism

The most striking evidence of norm-agnostic failure is found in the cross-norm evaluation on the MNIST dataset. Models trained specifically for $\ell_\infty$ robustness (such as Madry’s model or TRADES) show high accuracy against $\ell_\infty$ PGD attacks but suffer a total collapse in accuracy when faced with an $\ell_2$ S-O attack.

Quantitative results showing the accuracy of various defense models against different attack types and norms. Models robust to $\ell_\infty$ PGD often fail completely against $\ell_2$ S-O attacks.

As detailed in Figure 3, Madry's $\ell_\infty$ AT model drops from 92.5% accuracy against $\ell_\infty$ PGD to 0.0% against $\ell_2$ S-O. Similarly, TRADES drops from 95.6% to 3.2%. While Ensemble Adversarial Training (training on examples from multiple models) provides better resilience, it still experiences significant drops. Interestingly, the authors note that this phenomenon is more pronounced on MNIST than on CIFAR-10, likely because the higher dimensionality of CIFAR-10 makes it more difficult for the model to reach a perfectly degenerate flat state.

Conclusion

This research demonstrates that current adversarial training methods often provide a false sense of security by masking gradients rather than achieving true robustness. The proposed Second-Order attack effectively bypasses these defenses by exploiting the curvature of the loss landscape. The results suggest that achieving true norm-agnostic robustness requires more than just mixing different attack types during training; it necessitates new training objectives that can penalize landscape curvature or otherwise prevent the formation of degenerate minima.

Summary updated

BibTeX
@misc{li2019norm,
  author = {Bai Li and Changyou Chen and Wenlin Wang and Lawrence Carin},
  title = {{On Norm-Agnostic Robustness of Adversarial Training}},
  year = {2019},
  eprint = {1905.06455},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.06455},
}
Figure