Lune

NeurIPS2022Top-tier venue

On the Limitations of Stochastic Pre-processing Defenses

Yue Gao, Ilia Shumailov, Kassem Fawaz, Nicolas Papernot

Abstract

Defending against adversarial examples remains an open problem. A common belief is that randomness at inference increases the cost of finding adversarial inputs. An example of such a defense is to apply a random transformation to inputs prior to feeding them to the model. In this paper, we empirically and theoretically investigate such stochastic pre-processing defenses and demonstrate that they are flawed. First, we show that most stochastic defenses are weaker than previously thought; they lack sufficient randomness to withstand even standard attacks like projected gradient descent. This casts doubt on a long-held assumption that stochastic defenses invalidate attacks designed to evade deterministic defenses and force attackers to integrate the Expectation over Transformation (EOT) concept. Second, we show that stochastic defenses confront a trade-off between adversarial robustness and model invariance; they become less effective as the defended model acquires more invariance to their randomization. Future work will need to decouple these two effects. We also discuss implications and guidance for future research.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Certified Robustness to Adversarial Examples with Differential Privacy cites Towards Evaluating the Robustness of Neural Networks
  • WavePurifier: Purifying Audio Adversarial Examples via Hierarchical Diffusion Models cites Diffusion Models for Adversarial Purification
  • Diffusion Models for Adversarial Purification cites Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks
  • Diffusion Models for Adversarial Purification cites On Adaptive Attacks to Adversarial Example Defenses
  • Machine Learning needs Better Randomness Standards: Randomised Smoothing and PRNG-based attacks cites Certified Robustness to Adversarial Examples with Differential Privacy
  • Machine Learning needs Better Randomness Standards: Randomised Smoothing and PRNG-based attacks cites Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks
  • Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks cites Certified Robustness to Adversarial Examples with Differential Privacy
  • Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks cites Towards Evaluating the Robustness of Neural Networks
  • Towards Understanding the Robustness of Diffusion-Based Purification: A Stochastic Perspective cites Diffusion Models for Adversarial Purification
  • Towards Understanding the Robustness of Diffusion-Based Purification: A Stochastic Perspective cites Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks
  • Towards Understanding the Robustness of Diffusion-Based Purification: A Stochastic Perspective cites Better Diffusion Models Further Improve Adversarial Training
  • ADBM: Adversarial Diffusion Bridge Model for Reliable Adversarial Purification cites Towards Evaluating the Robustness of Neural Networks
  • ADBM: Adversarial Diffusion Bridge Model for Reliable Adversarial Purification cites Diffusion Models for Adversarial Purification
  • ADBM: Adversarial Diffusion Bridge Model for Reliable Adversarial Purification cites Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks
  • ADBM: Adversarial Diffusion Bridge Model for Reliable Adversarial Purification cites On Adaptive Attacks to Adversarial Example Defenses
  • ADBM: Adversarial Diffusion Bridge Model for Reliable Adversarial Purification cites Better Diffusion Models Further Improve Adversarial Training
  • On Adaptive Attacks to Adversarial Example Defenses cites Towards Evaluating the Robustness of Neural Networks
  • On Adaptive Attacks to Adversarial Example Defenses cites Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks
  • Better Diffusion Models Further Improve Adversarial Training cites Diffusion Models for Adversarial Purification
  • Better Diffusion Models Further Improve Adversarial Training cites Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks
  • Better Diffusion Models Further Improve Adversarial Training cites On Adaptive Attacks to Adversarial Example Defenses
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Better Diffusion Models Further Improve Adversarial TrainingZekai Wang, Tianyu Pang, Chao Du, Min Lin et al.ICML 2023 · 300 citations
  2. Machine Learning needs Better Randomness Standards: Randomised Smoothing and PRNG-based attacksPranav Dahiya, Ilia Shumailov, Ross AndersonUSENIX Security 2024 · 11 citations
  3. WavePurifier: Purifying Audio Adversarial Examples via Hierarchical Diffusion ModelsHanqing Guo, Guangjing Wang, Bocheng Chen, Yuanda Wang et al.MobiCom 2024 · 3 citations
  4. Towards Understanding the Robustness of Diffusion-Based Purification: A Stochastic PerspectiveYiming Liu, Kezhao Liu, Yao Xiao, Ziyi Dong et al.ICLR 2025
  5. ADBM: Adversarial Diffusion Bridge Model for Reliable Adversarial PurificationXiao Li, Wenxuan Sun, Huanran Chen, Qiongxiu Li et al.ICLR 2025

Builds on17

  1. Towards Evaluating the Robustness of Neural NetworksNicholas Carlini, David A. WagnerS&P 2017 · 9,786 citations
  2. Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacksFrancesco Croce, Matthias HeinICML 2020 · 2,337 citations
  3. On Adaptive Attacks to Adversarial Example DefensesFlorian Tramèr, Nicholas Carlini, Wieland Brendel, Aleksander MadryNeurIPS 2020 · 1,026 citations
  4. Certified Robustness to Adversarial Examples with Differential PrivacyMathias Lécuyer, Vaggelis Atlidakis, Roxana Geambasu, Daniel Hsu et al.S&P 2019 · 1,022 citations
  5. Diffusion Models for Adversarial PurificationWeili Nie, Brandon Guo, Yujia Huang, Chaowei Xiao et al.ICML 2022 · 663 citations

Related papers

  1. One Man's Trash Is Another Man's Treasure: Resisting Adversarial Examples by Adversarial ExamplesChang Xiao, Changxi ZhengCVPR 2020
  2. Adversarial Robustness via Deformable Convolution with StochasticityYanxiang Ma, Zixuan Huang, Minjing Dong, Shan You et al.ICML 2025
  3. Demystifying the Adversarial Robustness of Random Transformation DefensesChawin Sitawarin, Zachary J. Golan-Strieb, David A. WagnerICML 2022 · 26 citations
  4. Adversarially Pretrained Transformers May Be Universally Robust In-Context LearnersSoichiro Kumano, Hiroshi Kera, Toshihiko YamasakiICLR 2026 · 2 citations
  5. DRIFT: Divergent Response in Filtered Transformations for Robust Adversarial DefenseAmira Guesmi, Muhammad ShafiqueICLR 2026 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines