[Paper Review] Randomness in ML Defenses Helps Persistent Attackers and Hinders Evaluators
This paper challenges the use of randomness in machine learning defenses, demonstrating that it can increase vulnerability to persistent attackers and hinder robustness evaluation. It proposes deterministic alternatives, introduces the Nag Factor threat model, and presents a Subspace Grid-sweep method that improves adversarial example detection without relying on randomness, showing that robustness is achievable without randomization.
It is becoming increasingly imperative to design robust ML defenses. However, recent work has found that many defenses that initially resist state-of-the-art attacks can be broken by an adaptive adversary. In this work we take steps to simplify the design of defenses and argue that white-box defenses should eschew randomness when possible. We begin by illustrating a new issue with the deployment of randomized defenses that reduces their security compared to their deterministic counterparts. We then provide evidence that making defenses deterministic simplifies robustness evaluation, without reducing the effectiveness of a truly robust defense. Finally, we introduce a new defense evaluation framework that leverages a defense's deterministic nature to better evaluate its adversarial robustness.
Motivation & Objective
- To investigate whether randomness in ML defenses genuinely improves robustness or creates false security.
- To expose a new vulnerability—'the Nag Factor'—where repeated queries increase attack success against randomized defenses.
- To demonstrate that deterministic versions of randomized defenses maintain equivalent robustness, proving randomness is not essential for defense effectiveness.
- To develop a new evaluation framework, Subspace Grid-sweep, that enhances adversarial robustness testing by leveraging determinism.
- To advocate for the adoption of deterministic defenses in both deployment and evaluation to improve reproducibility and security.
Proposed method
- Introduces the Nag Factor threat model, where an attacker repeatedly queries a randomized defense to increase success probability beyond that of a deterministic version.
- Converts randomized defenses into deterministic counterparts to test whether robustness is preserved, isolating the role of randomness.
- Proposes the Subspace Grid-sweep method, a brute-force search over adversarial perturbations in low-dimensional subspaces, to detect adversarial examples missed by gradient-based methods.
- Employs grid-sweep and random sampling to compare adversarial example discovery rates across defenses, validating effectiveness on both undefended and defended models.
- Uses fixed random seeds in randomized smoothing to create deterministic variants, enabling comparison of empirical robustness with theoretical certificates.
- Evaluates defenses under white-box and adaptive attack settings to assess the impact of randomness on attack success and detection.
Experimental results
Research questions
- RQ1Does randomness in ML defenses genuinely improve robustness against adaptive adversaries, or does it create exploitable weaknesses?
- RQ2Can deterministic versions of randomized defenses maintain equivalent robustness, indicating that randomness is not the source of defense effectiveness?
- RQ3To what extent does randomness hinder adversarial robustness evaluation, particularly in detecting adversarial examples?
- RQ4Can a deterministic evaluation framework like Subspace Grid-sweep outperform gradient-based methods in discovering adversarial examples?
- RQ5How does the presence of a fixed random seed affect the robustness of defenses like randomized smoothing, both theoretically and empirically?
Key findings
- The Nag Factor reveals that repeated queries increase an attacker’s success rate on randomized defenses beyond what is possible with deterministic counterparts.
- Converting randomized defenses to deterministic versions preserves robustness, indicating that randomness is not the source of defense effectiveness.
- Subspace Grid-sweep discovers nearly all adversarial examples found by other search methods, outperforming PGD on k-Winners-Take-All defenses where gradient methods fail.
- Even with known fixed random corruptions, deterministic smoothing achieves attack success rates comparable to randomized smoothing, contradicting theoretical expectations.
- Randomized defenses often obscure vulnerabilities, making them harder to evaluate and increasing the risk of false positives in robustness assessment.
- The empirical robustness of randomized defenses stems from non-random components, which can be replicated deterministically without loss of performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.