RobustBench: a standardized adversarial robustness benchmark

Francesco Croce, Maksym Andriushchenko, Vikash Sehwag, Nicolas Flammarion, Mung Chiang, Prateek Mittal, Matthias Hein

Adversarial robustness—the quest to make deep learning models resilient to tiny, malicious perturbations—is one of the most active subfields in AI. However, it has long suffered from a "robustness overestimation" problem: researchers often inadvertently use weak attacks to evaluate their own defenses, leading to inflated claims that crumble under more rigorous testing.

RobustBench is a community-driven effort to fix this. By providing a standardized leaderboard and a "Model Zoo," it establishes a reliable yardstick for progress in the field.

The Problem: The "Wild West" of Evaluation

The field of adversarial robustness is currently a "Wild West." With over 3,000 papers published on the topic, it is nearly impossible to track which defenses actually work. The core challenge is evaluation. Unlike standard accuracy, "robust accuracy" is the minimum accuracy under any possible attack within a certain constraint. If a researcher uses a sub-optimal attack, their model looks more robust than it actually is. This has led to a cycle where new defenses are published, only to be "broken" months later by stronger, adaptive attacks. RobustBench aims to break this cycle by imposing a standardized, high-strength evaluation protocol.

Methodology

The authors introduce three key components to stabilize the field:

  1. Standardized Evaluation (AutoAttack): Instead of letting researchers choose their own attacks, RobustBench mandates the use of AutoAttack. This is an ensemble of four diverse attacks: two variations of APGD (Automated Projected Gradient Descent), the FAB-Attack (focusing on decision boundaries), and the Square Attack (a black-box query-efficient attack).
  2. Model Restrictions: To ensure that AutoAttack provides a reliable upper bound on robustness, the benchmark initially restricts models to those that are deterministic, have non-zero gradients, and do not use optimization loops at inference time. This prevents "gradient masking"—a common trick where models hide their vulnerabilities without actually fixing them.
  3. The Model Zoo: A Python library (robustbench) that allows researchers to load state-of-the-art robust models with just two lines of code, facilitating downstream tasks like transfer learning or developing even stronger attacks.
A snapshot of the RobustBench leaderboard, showing rankings based on AutoAttack robust accuracy alongside standard accuracy and architectural details.

Key Insights and Results

RobustBench focuses on widely studied image classification datasets (CIFAR-10, CIFAR-100, and ImageNet) under various threat models, including $\ell_\infty$ and $\ell_2$ perturbations, as well as common natural corruptions.

  • The Power of Extra Data: One of the most consistent findings is that using additional unlabeled data (via techniques like pseudo-labeling) is the most effective way to boost both clean and robust accuracy.
  • Evaluation Correction: The authors demonstrated that many original papers overestimated their robustness by significant margins—sometimes by more than 10%—which AutoAttack correctly identified.
  • The Calibration Crisis: Robust models are significantly underconfident. While standard models are often overconfident, the process of robust training pushes predicted probabilities too low, often requiring "temperature rescaling" for uncertainty-sensitive applications.
Comparison between AutoAttack robust accuracy and the accuracy reported in original publications. Points below the dashed line represent models where robustness was overestimated.

Conclusion and Future Work

At the time of publication, the leaderboard contained evaluations for over 120 models, with the robustbench library providing unified access to 80+ pre-trained models. While currently limited to image classification, the authors plan to expand to other domains like NLP and malware detection, and to include a wider variety of threat models such as sparse perturbations and adversarial patches.

Summary updated

BibTeX
@inproceedings{croce2021robustbench,
  author = {Francesco Croce and Maksym Andriushchenko and Vikash Sehwag and Nicolas Flammarion and Mung Chiang and Prateek Mittal and Matthias Hein},
  title = {{RobustBench: a standardized adversarial robustness benchmark}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=i2y_FbMarA_},
}
Figure