Abstract
Stochastic pre-processing defenses—which introduce randomness into inputs to mitigate adversarial attacks—are frequently cited as a robust defense mechanism. However, this research demonstrates that these defenses are often "glass houses." Through empirical ablation and theoretical analysis, we show that most stochastic defenses either fail against standard iterative attacks or face a fundamental trade-off: as a model is trained to be more invariant to the defense's own randomness (to preserve utility), the security benefits of that randomness evaporate.
Introduction
Adversarial examples—small, often imperceptible perturbations designed to mislead machine learning models—pose a significant threat to the deployment of deep learning systems. In response, researchers have proposed stochastic pre-processing defenses. These methods apply random transformations, such as cropping, rescaling, or adding noise, to an input before it reaches the model. The underlying assumption is that this randomness disrupts the gradient-based search used by attackers, forcing them to employ more computationally expensive techniques like Expectation over Transformation (EOT).
This paper challenges that assumption. We investigate the relationship between a model's ability to handle these random transforms (its utility) and the protection those transforms actually provide. Our findings suggest that stochastic defenses are fundamentally limited by a "catch-22" between robustness and model invariance.
Empirical Ablation: Breaking the Classics
The authors first conducted an empirical ablation study on five well-known stochastic defenses, including randomized cropping, rescaling, and activation pruning. Traditionally, these defenses were thought to require EOT-based attacks to be broken. However, the study tested them using standard Projected Gradient Descent (PGD) without explicit EOT countermeasures.
The results were striking: five previous defenses were broken with success rates ranging from 96% to 100%. This reveals a phenomenon the authors call "Implicit EOT." Because PGD is an iterative process, it effectively "samples" the randomness of the defense over multiple steps. Unless the defense introduces a massive, often utility-destroying amount of randomness, standard iterative attacks are sufficient to find adversarial perturbations.
The Invariance Catch-22
The core contribution of this work is the identification of the "Invariance Catch-22." For a stochastic defense to be practical, the model must maintain high accuracy on clean, non-adversarial data. Achieving this usually requires training the model to be invariant to the transformations introduced by the defense (e.g., ensuring the model recognizes an object regardless of its random rotation or noise level).
However, the authors argue that stochastic defenses do not provide "true" robustness in the sense of hardening the decision boundary. Instead, they provide protection by inducing variance and errors in the attacker's gradient estimation. When a model is fine-tuned to become more invariant—thereby recovering its accuracy—it inadvertently removes the very mechanism that provided the "robustness."
Experimental Validation
To validate this trade-off, the researchers utilized several datasets, including ImageNet, ImageNette (a 10-class subset), and CIFAR-10. They focused on two primary defense frameworks:
- BaRT (Barrage of Random Transforms): On the ImageNette dataset, the authors showed that as they fine-tuned the model to increase benign accuracy (improving it from ~20% to over 90%), the attack success rate skyrocketed from near-zero to nearly 100%.
- Randomized Smoothing: Even with this more theoretically grounded defense, a clear gap emerged. As the model was made more invariant to noise levels (higher $\sigma$), its adversarial robustness against targeted attacks dropped significantly.
Conclusion and Future Directions
The findings suggest that stochastic pre-processing is not a silver bullet for adversarial robustness. The protection offered is often an illusion created by the model's own inability to handle the defense's randomness.
Future research should focus on decoupling robustness and invariance. One potential avenue is the development of "trap" mechanisms—randomness that introduces variance for adversarial inputs while remaining transparent to benign inputs—thereby avoiding the need for the model to learn invariance to the defense itself. Furthermore, the authors suggest that adaptive attackers should always start with the simplest standard attacks before assuming a stochastic defense requires complex EOT-based strategies.
Summary updated