How Many Perturbations Break This Model? Evaluating Robustness Beyond Adversarial Accuracy

Raphael Olivier, Bhiksha Raj

Current adversarial robustness is predominantly measured by "adversarial accuracy"—a binary, worst-case metric that tells you if a model can be broken within a specific perturbation budget. However, this metric fails to capture how easily the model can be broken. This paper introduces Adversarial Sparsity, a novel metric that quantifies the "volume" of successful attacks. By doing so, it reveals that even "broken" defenses and simple data augmentations can significantly improve a model's resilience in ways traditional metrics completely miss.

The Limits of Adversarial Accuracy

In adversarial machine learning, we typically evaluate a model's robustness by checking the percentage of test points for which no adversarial perturbation exists within a certain budget (like an $L_p$ ball).

The authors argue this is a limited, "worst-case" view. Imagine two defenses: Defense A eliminates 99% of possible successful perturbations around a point, while Defense B eliminates 0%. If a strong attacker (like Projected Gradient Descent, or PGD) finds the remaining 1% for Defense A, both models receive a score of 0% adversarial accuracy. To the research community, both are equally "broken."

In reality, Defense A is much more useful because an attacker has a significantly harder time finding that specific 1% needle in the haystack. The authors aim to bridge this gap by measuring not just if a model can be broken, but how many different perturbations can break it.

Introducing Adversarial Sparsity

To address this, the authors propose Adversarial Sparsity. Instead of looking for any perturbation in the entire search space, they constrain the attacker to a small subset of the space and ask: "How large must this subset be for an attack to succeed?"

Visualizing L2 Sparsity
  • For $L_2$ perturbations: Sparsity is defined as the expected angle $\alpha$ of a "spherical cap" (a cone-like region) around a random direction $u$ required to find an adversarial example. A larger required angle means higher sparsity (harder to attack).
  • For $L_\infty$ perturbations: The metric measures the number of dimensions $k$ (e.g., specific pixels) an attacker is allowed to modify to find a successful perturbation.

To calculate this, the researchers developed Constrained PGD. While standard PGD explores the whole $L_p$ ball, Constrained PGD forces the attack to stay within the specified angular or dimensional subset. By performing a binary search over the size of these subsets, they can estimate the average sparsity of a model's vulnerabilities.

Key Insights and Results

The researchers evaluated their metric across standard benchmarks (CIFAR10, ImageNet) and architectures (ResNet, WideResNet, ViT), testing state-of-the-art robust models, "broken" preprocessing defenses, and various data augmentation schemes.

Robustness is a Spectrum

Sparsity proves that robustness is not binary. On CIFAR10 ($L_2$), an undefended ResNet-18 has a sparsity of 0.180, while a robustly trained model reaches 0.553. Furthermore, among top-tier robust models, higher adversarial accuracy does not always guarantee higher sparsity. Some models achieve high accuracy by fixing "easy" points but leave the remaining vulnerable points extremely easy to attack.

The "Broken" Defense Reveal

Sparsity can distinguish between "totally ineffective" and "partially effective" defenses. For example, JPEG compression on CIFAR10 has 0% adversarial accuracy against strong attacks. However, it increases $L_\infty$ sparsity from 56.8 to 80.9. This proves that while it can be bypassed, it still provides non-negligible protection by shrinking the volume of successful perturbations.

Data Augmentation as a Hidden Booster

One of the most surprising findings is that standard data augmentation increases adversarial sparsity even without any adversarial training.

Impact of Data Augmentation on Sparsity

Applying "Ricap" augmentation to a standard ResNet-18 increased its $L_\infty$ sparsity from 56.8 to 105, nearly doubling the effort required for a random-direction attack to succeed. This occurs despite the model still exhibiting 0% standard adversarial accuracy, highlighting that these models are becoming more robust in a way traditional metrics are blind to.

Limitations and Future Work

While powerful, Adversarial Sparsity comes with challenges:

  • Computational Cost: Estimating sparsity is significantly more expensive than calculating accuracy because it requires multiple PGD runs and a binary search for every input point.
  • Directional Bias: The metric assumes an "isotropic" (uniform) distribution of attack directions, whereas real-world scenarios might favor specific attack vectors.

Future work could extend sparsity to non-norm-bounded perturbations, such as common corruptions (fog, snow) or human-perceptual-based attacks, to see if the "volume" of vulnerability correlates better with real-world safety. Ultimately, Adversarial Sparsity offers a much-needed, nuanced perspective on model robustness, moving the field beyond binary pass/fail evaluations.

Summary updated

BibTeX
@inproceedings{olivier2023how,
  author = {Raphael Olivier and Bhiksha Raj},
  title = {{How Many Perturbations Break This Model? Evaluating Robustness Beyond Adversarial Accuracy}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=3m9c6uYKK7},
}
Figure