Introduction
Machine learning models are notoriously fragile against Adversarial Examples (AEs)—inputs with imperceptible perturbations that trigger misclassification. Diffusion-Based Purification (DBP) recently emerged as a cornerstone defense. The premise is straightforward: take a potentially adversarial image, add noise to "dilute" the attack, and then use a Diffusion Model (DM) to iteratively denoise it. This process supposedly projects the image back onto the natural data manifold before classification.
Because the purification process was seen as a static pre-processor that attackers couldn't easily manipulate, the community widely believed DBP was robust. DiffBreak challenges this core assumption, asking: Is the diffusion model itself a target? The authors prove that an adaptive attacker can actually steer the diffusion process to generate a "purified" image that remains adversarial, exposing a fundamental flaw in DBP.
Methodology: Exposing the Robustness Illusion
The authors tackle the problem through both theoretical proofs and a new software toolkit designed to rigorously evaluate DBP.
- Theoretical Refutation: They provide a mathematical proof demonstrating that standard adaptive attacks do not merely "bypass" the purifier. Instead, they implicitly optimize the score model's parameters to align with adversarial distributions. The purifier becomes an active participant in generating the adversarial sample.
- DiffGrad: A novel module for exact backpropagation through the iterative SDE/ODE solvers used in DBP. Previous robustness claims were largely inflated by "broken" gradients in attack implementations. DiffGrad fixes three critical issues:
- High-Variance Gradients: Resolved by parallelizing Monte Carlo samples.
- Time Inconsistency: Ensuring time steps match exactly between forward and backward passes.
- Stochasticity Reproduction: Replaying the exact noise used during the forward pass.
- Majority Vote (MV) Defense: Recognizing that evaluating a defense against a single random purification is statistically invalid, the authors propose a more rigorous protocol that aggregates predictions across multiple purified copies.
- Low-Frequency (LF) Attack: A new optimization method that crafts systemic, low-frequency perturbations. Unlike standard high-frequency pixel noise—which DMs are explicitly trained to remove—these systemic changes are much harder for DMs to "clean."
Datasets and Key Insights
The authors evaluated their methods on standard computer vision benchmarks, including CIFAR-10 and ImageNet, testing against foundational DBP defenses like DiffPure and GDMP across various classifier architectures (WideResNet, ResNet-50, DeiT-S).
Key Takeaways: * Purification is a Dynamic Target: DBP is often treated as a static black box. In reality, it is a dynamic optimization target where attackers can shape the purification path. * Evaluation Gaps: Testing a defense against a single random purification is insufficient. The authors' Worst-Case Robustness (Wor.Rob) and Majority Vote (MV) protocols provide a much more rigorous assessment. * Frequency Matters: The success of the LF attack proves that systemic, low-frequency changes can defeat even the most advanced DBP setups.
Key Results
When subjected to rigorous testing with accurate gradients, DBP's effectiveness dramatically collapses.
- CIFAR-10: Using the DiffGrad toolkit, the robust accuracy of the DiffPure defense dropped from a previously reported ~62% to just 17.19% under a realistic Worst-Case protocol.
- ImageNet: On high-resolution images, the vulnerability is even more pronounced. For a WideResNet-50-2 classifier protected by DiffPure, robust accuracy fell to 12.11%.
Furthermore, the novel LF attack achieved near-total victory, bringing the robust accuracy of DBP defenses down to ~0% across multiple models and datasets, even when the defense employed the more robust Majority Vote protocol.
Limitations and Future Work
Both DBP and the attacks against it (especially using DiffGrad) are computationally expensive, requiring significant GPU resources. While this work focuses on vision, the authors note their findings are modality-agnostic, suggesting future research should investigate similar vulnerabilities in audio or video diffusion purification. Ultimately, future defenses may need to abandon fixed score models in favor of private, stochastic dynamics that are not directly exposed to attackers.
Summary updated