Abstract
The study of adversarial robustness has so far largely focused on perturbations bound in p-norms. However, state-of-the-art models turn out to be also vulnerable to other, more natural classes of perturbations such as translations and rotations. In this work, we thoroughly investigate the vulnerability of neural network–based classifiers to rotations and translations. While data augmentation offers relatively small robustness, we use ideas from robust optimization and test-time input aggregation to significantly improve robustness. Finally we find that, in contrast to the p-norm case, first-order methods cannot reliably find worst-case perturbations. This highlights spatial robustness as a fundamentally different setting requiring additional study.
Introduction: Beyond Pixel-Level Noise
In the field of adversarial machine learning, research has predominantly focused on "adversarial examples" characterized by imperceptible, pixel-level noise constrained by $L_p$-norms. However, real-world applications—such as autonomous driving or medical diagnostics—frequently encounter objects that are not perfectly centered or oriented. This paper addresses the critical gap of spatial robustness, investigating whether simple geometric transformations, like rotating an image by a few degrees or shifting it by a few pixels, can compromise deep learning models.
The authors demonstrate that standard tools for measuring and ensuring robustness, such as Projected Gradient Descent (PGD) and basic data augmentation, are insufficient when faced with these "natural" spatial perturbations.
Methodology
The researchers formalize spatial transformations using Spatial Transformer Blocks, enabling differentiable rotation and translation. They evaluate robustness using three distinct attack strategies:
- First-Order Method (FO): A gradient-based approach that attempts to navigate the loss landscape to find the worst-case transformation.
- Grid Search: An exhaustive search over a discretized space of all possible rotations and translations.
- Worst-of-k: A randomized approach that samples $k$ transformations and selects the one yielding the highest loss.
To defend against these vulnerabilities, the study proposes two primary techniques:
- Worst-of-k Training: A robust optimization variant where the model is trained on the "worst" of several random transformations, rather than a single random sample.
- Majority Vote Inference: At test time, the model classifies multiple random transformations of the input and outputs the most frequent label, effectively smoothing the decision boundary.
Experimental Setup
The methods were evaluated across three standard computer vision benchmarks:
- MNIST: Hand-written digits ($28 \times 28$).
- CIFAR-10: Small natural images ($32 \times 32$).
- ImageNet: Large-scale real-world images ($299 \times 299$).
Analysis of the Spatial Landscape
The "Spiky" Loss Landscape
A key finding is that the loss landscape for spatial transformations is highly non-concave and populated with numerous local maxima. This "spiky" nature explains why standard gradient-based (FO) attacks often fail; they become trapped in local minima (valleys of low loss), while a simple grid search can identify the "peaks" of high loss that lead to misclassification.
Orthogonality of Vulnerabilities
The research highlights that $L_\infty$-robustness (resistance to pixel noise) does not imply spatial robustness. In fact, models trained for $L_p$ robustness are often more vulnerable to rotations and translations. This suggests that spatial weaknesses represent a fundamentally different direction in the model's decision boundary compared to additive noise.
Key Results
The impact of spatial attacks is significant. On CIFAR-10, a standard model with 93% natural accuracy plummeted to 3% accuracy under a grid search attack (rotations up to 30°, translations up to 3 pixels). On ImageNet, accuracy dropped from 76% to 31%.
The proposed defenses yielded substantial improvements:
- ImageNet: The combination of Worst-of-10 training and Majority Vote reached 56% robustness, compared to 34% for standard data augmentation.
- MNIST: Robustness improved from 26% to 98%.
Conclusion and Future Work
While "Worst-of-k" training is effective, it is computationally intensive, increasing training time by 6x to 10x. Additionally, while grid search is feasible for low-dimensional transformations like rotation and translation, it does not scale to complex "natural" transformations such as 3D perspective shifts or non-rigid deformations. Future research is needed to develop more efficient optimization methods capable of navigating the complex spatial loss landscape without resorting to exhaustive search.
Code available at GitHub (MadryLab).
Summary updated