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.
TL;DR
RobustBench is a standardized benchmark and open-source library designed to provide a fair, unified evaluation of adversarial robustness. It uses a rigorous attack ensemble called AutoAttack to prevent the common pitfall of robustness overestimation and provides a "Model Zoo" of over 80 pre-trained models to accelerate research.
What Problem Does This Paper Address?
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.
Methods
The authors introduce three key components to stabilize the field:
- 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) using different loss functions.
- FAB-Attack, which focuses on finding the closest decision boundary.
- Square Attack, a query-efficient black-box attack.
- 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.
- 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.
Datasets
RobustBench focuses on the most widely studied image classification datasets and threat models:
- Datasets: CIFAR-10, CIFAR-100, and ImageNet.
- Threat Models:
- $\ell_\infty$ perturbations: Small changes to every pixel (e.g., $\epsilon = 8/255$ for CIFAR).
- $\ell_2$ perturbations: Changes limited by total Euclidean distance (e.g., $\epsilon = 0.5$ for CIFAR).
- Common Corruptions: Non-adversarial "natural" shifts like fog, snow, or blur (using the CIFAR-10-C and ImageNet-C benchmarks).
Key Insights and Ideas
- 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.
- The Calibration Crisis: Robust models are significantly underconfident. While standard models are often overconfident, the process of robust training pushes predicted probabilities too low. This means robust models often require "temperature rescaling" to be useful in uncertainty-sensitive applications.
- Fairness Gains: Interestingly, the authors found that as models become more robust overall, the disparity in accuracy between different classes (e.g., "deer" vs. "ship") tends to decrease. Robustness, in this case, seems to promote class-wise fairness.
- OOD Detection Trade-off: Standard adversarial training can actually degrade a model's ability to detect out-of-distribution (OOD) samples, suggesting that robustness to small perturbations doesn't automatically translate to better "common sense" about what the model doesn't know.
Key Results
- Leaderboard Scale: At the time of publication, the leaderboard contained evaluations for 120+ models.
- Robustness Benchmarks: On CIFAR-10 ($\ell_\infty, \epsilon=8/255$), the top models achieve roughly 66% robust accuracy, compared to 0% for a standard model.
- Evaluation Correction: The authors demonstrated that many original papers overestimated their robustness by significant margins—sometimes by more than 10%—which AutoAttack correctly identified.
- Library Utility: The
robustbenchlibrary provides unified access to 80+ robust models, significantly lowering the barrier to entry for new researchers.
Limitations and Future Work
- Scope: The benchmark is currently limited to image classification. The authors hope to expand to other domains like NLP, malware detection, and image segmentation.
- Restricted Defenses: By excluding randomized or optimization-based defenses, the benchmark might miss out on some promising (though hard-to-evaluate) directions. The authors plan to lift these restrictions as standardized, reliable evaluation methods for those categories emerge.
- Threat Model Diversity: Future versions aim to include sparse perturbations ($\ell_0, \ell_1$), adversarial patches, and "unseen" perturbations that the model wasn't specifically trained to handle.
Check out the project: * Leaderboard: https://robustbench.github.io/ * Code: https://github.com/RobustBench/robustbench
Summary updated