In the rapidly evolving field of adversarial machine learning, researchers have proposed numerous defenses to protect neural networks from adversarial examples—small, intentional perturbations designed to cause misclassification. However, a significant study presented at ICML 2018 by researchers from DeepMind suggests that many of these successes are illusory. The paper demonstrates that many defenses are "robust" only because they break the specific tools used to attack them, a phenomenon the authors formalize as obscurity.
The Problem: The Gradient Masking Fallacy
Adversarial evaluation is typically a cat-and-mouse game. To test a defense, researchers often use white-box attacks like Projected Gradient Descent (PGD). These attacks rely on the model's gradients to iteratively find the most damaging perturbations.
The authors identify a dangerous trend: many defenses achieve high robustness scores not by fundamentally altering the model's decision boundaries, but by making the gradients useless for optimization. This is known as gradient masking. Common techniques leading to this include non-differentiable operations, added randomness, or architectures that cause vanishing gradients. If an attacker cannot compute a meaningful gradient, they cannot find the adversarial example using standard methods—but this does not mean the vulnerability has been removed. It simply means the "compass" used by the attacker is broken.
Formalizing Risk and Obscurity
To address this, the authors introduce a rigorous conceptual framework:
- Adversarial Risk vs. Surrogate Risk: They define Adversarial Risk as the model's performance on the absolute worst-case input within a defined neighborhood. Because finding the true worst case is computationally intractable, researchers use Surrogate Risk (the result of a specific attack like PGD).
- Obscurity: This is defined as the gap between the true adversarial risk and the surrogate risk. A model with high obscurity is "secure by obscurity"—it appears robust to a specific attacker but remains fundamentally vulnerable to others.
Bypassing Obscurity with SPSA
To prove that these models are obscured rather than robust, the authors utilize Simultaneous Perturbation Stochastic Approximation (SPSA). SPSA is a gradient-free optimization method that estimates gradients by measuring how the model's output changes when the input is perturbed in random directions. Because it does not rely on backpropagation through the model's layers, it can "see through" the non-differentiable or noisy components that baffle standard gradient-based attacks.
Key Results and Empirical Evidence
The authors evaluated their attacks on standard benchmarks like CIFAR-10 and ImageNet. The results were dramatic: several high-profile defenses that claimed high accuracy under standard attacks were reduced to near-zero accuracy when faced with SPSA or other refined strategies.
As shown in the table above, defenses like PixelDefend and High-level Guided Denoisers exhibited obscurity gaps as high as 75%. In contrast, Adversarial Training (specifically the method by Madry et al.) showed very low obscurity. It actually changes the decision boundary rather than just hiding it, maintaining its accuracy (47%) even under the authors' stronger attack suite.
Insights and Future Directions
The core takeaway is that breaking the attacker's tools is not the same as removing the underlying vulnerability. The authors argue for transparency as a virtue in defense design: we should prefer models where the surrogate risk is close to the true adversarial risk. If a model is easy to attack, we can trust its robustness score more when it actually survives those attacks.
While SPSA is a powerful tool for exposing obscurity, it is computationally expensive, requiring thousands of forward passes. Furthermore, even with SPSA, researchers are only computing a lower bound on the true adversarial risk. The paper concludes that the community should move toward "provable" defenses—mathematical certificates of robustness—rather than relying solely on empirical cat-and-mouse evaluations that may be susceptible to the pitfalls of obscurity.
Summary updated