Based on the ICML 2018 paper by Uesato et al. (DeepMind)
Many "robust" machine learning defenses rely on what is essentially "security by obscurity"—they do not eliminate underlying vulnerabilities but merely hide them from standard gradient-based attacks. By employing gradient-free optimization techniques, the authors of this paper demonstrate that most state-of-the-art defenses of their time were highly fragile, with their reported "robust" accuracy often dropping to near zero when properly evaluated.
The Illusion of Robustness
Deep neural networks are notoriously vulnerable to adversarial examples: small, intentional perturbations to an input that cause a model to misclassify it with high confidence.
As the research community proposed various defenses to mitigate these attacks, a troubling pattern emerged. Many defenses claimed high robustness when tested against standard attacks like Projected Gradient Descent (PGD). However, the authors suspected that these defenses weren't actually fixing the underlying decision boundaries. Instead, they were likely performing gradient masking—making the model's gradients (the "directions" an attacker uses to find vulnerabilities) noisy, non-existent, or misleading.
The paper formalizes this issue by defining the gap between true adversarial risk (a model's performance against the absolute worst-case input) and surrogate risk (performance against a specific, potentially weak, attack algorithm).
Exposing Obscurity: Methodology
The authors introduce a formal framework for Obscurity: the difference between a model's true adversarial risk and the risk measured by a specific adversary. To expose this obscurity and find the true adversarial risk, they employ three main strategies:
- SPSA (Simultaneous Perturbation Stochastic Approximation): This is a gradient-free optimization method. Unlike standard attacks that require a clean mathematical gradient to "climb" the loss surface, SPSA estimates the gradient by sampling random directions and measuring the change in output. This allows it to bypass defenses that rely on non-differentiable layers or added noise.
- Decision-based/Transfer Attacks: They utilize "black-box" techniques where the attacker doesn't have direct access to the model's internals. This proves that even without gradients, the vulnerabilities remain exploitable.
- Joint Optimization: For defenses that use a secondary "detector" (like a generative model to flag anomalous inputs), the authors show that an attacker can simply include the detector's loss in their optimization objective to create "non-detectable" adversarial examples.
Key Insights
- The "Obscurity" Trap: If a defense makes a model harder to attack but doesn't change the fact that adversarial examples exist, it has high obscurity. This is dangerous because it provides a false sense of security.
- Gradient Masking is not Robustness: Many defenses use non-differentiable operations (like JPEG compression or bit-depth reduction) or stochasticity (random resizing). These "break" the gradients used by standard attacks but do nothing to stop a more patient or gradient-free optimizer like SPSA.
- Transparency is a Virtue: The authors argue that the community should favor "transparent" models—those where the surrogate risk is close to the true risk. If a model is easy to attack, it is also easier to evaluate and improve.
- Adversarial Training Stands Out: Among all defenses tested, only Adversarial Training (specifically the Madry et al. approach) showed genuine robustness. Because it doesn't rely on masking gradients, the gap between its reported accuracy and its accuracy under SPSA was minimal.
Key Results
The authors evaluated their attacks on two standard computer vision benchmarks: CIFAR-10 ($L_\infty$ constraint $\epsilon=8/255$) and ImageNet ($L_\infty$ constraint $\epsilon=2/255$). The results served as a wake-up call for the adversarial machine learning community.
In almost every case except for Adversarial Training, the "robustness" vanished when faced with a stronger, gradient-free adversary. Defenses like PixelDefend, Stochasticity, and Guided Denoisers exhibited massive obscurity bounds, meaning their original evaluations vastly overestimated their true security.
Limitations and Future Directions
While SPSA is highly effective at exposing gradient masking, it is significantly slower than gradient-based attacks (often by orders of magnitude). This computational cost makes it difficult to use during the training process (e.g., for adversarial training itself).
Furthermore, even with SPSA, we are only finding a lower bound on the true adversarial risk. We still lack computationally efficient ways to find the absolute worst-case perturbations for complex models. Ultimately, the paper suggests that future work should shift focus toward provable robustness and certified defenses, rather than continuing the empirical "cat-and-mouse" game between attackers and defenders.
Summary updated