TL;DR
This paper introduces RoBIC, a new, parameter-free benchmark for evaluating the robustness of image classifiers against adversarial attacks. RoBIC uses a novel "half-distortion" metric and is significantly faster than existing benchmarks, enabling more realistic evaluations on larger datasets like ImageNet.
What Problem Does This Paper Address?
Deep learning models, especially in computer vision, are notoriously vulnerable to adversarial attacks. These attacks involve making subtle, often imperceptible changes to input images that cause models to misclassify them. This vulnerability poses a significant threat to the deployment of AI in security-critical applications. While many defenses and attacks have been proposed, objectively comparing their effectiveness is challenging due to the lack of standardized evaluation methods. Existing benchmarks often suffer from slow runtimes, limiting their use on large datasets, and their reliance on specific attack parameters makes it difficult to isolate the true robustness of a model. This paper aims to bridge this gap by providing a faster, more comprehensive, and parameter-independent benchmark.
Methods
The core of RoBIC is its novel "half-distortion" measure. Instead of relying on arbitrary distortion budgets or success rates, RoBIC measures the distortion level at which a classifier's accuracy is halved. This is achieved by first defining the "best effort mode" for an attack: finding the optimal attack parameters for each image that achieve successful misclassification with minimal distortion. This effectively removes the dependency on arbitrary parameter choices.
The benchmark also emphasizes the importance of evaluating robustness in the pixel domain, treating adversarial images as discrete objects rather than continuous tensors. For distortion measurement, it uses the root mean square error (RMSE), which is easily interpretable and relates to PSNR.
RoBIC also proposes specific "fast attacks" for both white-box (where the attacker has full knowledge of the model) and black-box (where the attacker can only query the model) scenarios. For white-box attacks, a modified version of the BP (Backtracking Projection) attack is used, incorporating a trick to reduce gradient computations. For black-box attacks, the SurFree attack is selected for its efficiency.
Datasets
The benchmark is designed to work with natural images of at least 224x224 pixels, using ImageNet as the primary dataset for evaluation. This is a significant improvement over existing benchmarks that are often limited to smaller datasets like CIFAR-10 or MNIST.
Key Insights and Ideas
- Parameter-Free Robustness: The "best effort mode" and the "half-distortion" metric are crucial for providing a truly parameter-free and objective measure of robustness, independent of specific attack configurations.
- Pixel Domain Matters: Treating adversarial images as discrete pixel values (0-255) is essential for realistic evaluation, as attackers in real-world scenarios cannot access the continuous internal representations of models.
- Black-box vs. White-box Robustness are Different: The paper highlights that a model robust to one type of attack is not necessarily robust to the other. In fact, they observed a negative correlation in some cases, suggesting that black-box robustness might reflect the complexity of class boundaries, while white-box robustness reflects how "curved" those boundaries are.
- Training Procedure is Key: The results show that the training procedure has a significant impact on robustness, with adversarial training leading to substantial gains, albeit sometimes at the cost of accuracy.
Key Results
- RoBIC is significantly faster than existing benchmarks, allowing for evaluations on 1000 ImageNet images in under a minute per model.
- The benchmark reveals substantial differences in the robustness of 16 recent models, with some models showing a factor of 20 difference between white-box and black-box half-distortions.
- Adversarially trained models like ResNet50 and EfficientNet AdvProp show significantly improved robustness, with gains in half-distortion by factors of 4-10 compared to their non-adversarially trained counterparts.
- The paper identifies SurFree as a suitable fast black-box attack and a modified BP attack as a suitable fast white-box attack for their benchmark.
Limitations and Future Work
The authors acknowledge two main limitations:
- Differentiability Requirement: White-box attacks require the network to be differentiable.
- Deterministic Nature: Black-box attacks are deterministic.
Future work could explore extending the benchmark to handle non-differentiable models and investigate more sophisticated attack strategies. The authors also suggest that the observed differences in black-box and white-box robustness could provide insights into the geometry of class boundaries in deep learning models.
Summary updated