[Paper Review] Guided Diffusion Model for Adversarial Purification from Random Noise
This paper proposes a guided diffusion model that purifies adversarial examples by reversing a diffusion process starting from random noise, guided by the perturbed input. It achieves 89.62% robust accuracy under PGD-ℓ∞ attack (ε=8/255) on CIFAR-10 and establishes a theoretical link between unguided diffusion purification and randomized smoothing, enabling certified robustness with improved certified radius over baseline methods.
In this paper, we propose a novel guided diffusion purification approach to provide a strong defense against adversarial attacks. Our model achieves 89.62% robust accuracy under PGD-L_inf attack (eps = 8/255) on the CIFAR-10 dataset. We first explore the essential correlations between unguided diffusion models and randomized smoothing, enabling us to apply the models to certified robustness. The empirical results show that our models outperform randomized smoothing by 5% when the certified L2 radius r is larger than 0.5.
Motivation & Objective
- To develop a more effective and certified defense against adversarial attacks using diffusion models.
- To explore the theoretical connection between unguided diffusion purification and randomized smoothing for certified robustness.
- To improve the robustness and efficiency of adversarial purification by guiding the diffusion process from random noise using adversarial inputs.
- To analyze the trade-off between inference speed and robustness in diffusion-based purification using DDIM.
- To demonstrate that guided diffusion purification outperforms existing methods in certified robustness, especially for larger ℓ2 radii.
Proposed method
- The method uses a denoising diffusion probabilistic model (DDPM) to reverse a forward diffusion process that gradually adds Gaussian noise to clean images.
- It introduces a guided reverse process where the denoising network is conditioned on the adversarial input, enabling the model to recover clean images from random noise while preserving the input's semantic structure.
- The reverse process is formulated as a Markov chain with learned mean and variance, where the mean is predicted by a neural network parameterized by θ.
- The approach leverages DDIM to accelerate inference by using a non-Markovian reverse process with a fixed noise schedule, reducing the number of steps from 1000 to 50.
- Theoretical analysis shows that the unguided diffusion process approximates local smoothing, enabling the derivation of certified robustness guarantees.
- Certified robustness is established by treating the diffusion process as a randomized smoothing mechanism, with the certified ℓ2 radius derived from the model's noise tolerance.
Experimental results
Research questions
- RQ1Can guided diffusion purification from random noise outperform unguided diffusion and randomized smoothing in certified robustness?
- RQ2What is the theoretical relationship between unguided diffusion-based purification and randomized smoothing?
- RQ3How does the guided diffusion process affect the certified robustness radius and test accuracy?
- RQ4What is the trade-off between inference speed (via DDIM) and robustness in diffusion-based adversarial purification?
- RQ5Can diffusion models provide stronger certified defenses than existing generative model-based approaches?
Key findings
- The proposed guided diffusion model achieves 89.62% robust accuracy under PGD-ℓ∞ attack with ε=8/255 on CIFAR-10, outperforming standard adversarial training baselines.
- The method provides certified robustness by leveraging the diffusion process as a form of local smoothing, enabling provable guarantees against adversarial perturbations.
- For certified ℓ2 radius r > 0.5, the method outperforms randomized smoothing by 5% in test accuracy, demonstrating superior certified robustness.
- Guided purification from random noise significantly improves robustness compared to unguided diffusion, as the guidance helps the model focus on recovering the clean image from noise.
- The use of DDIM reduces inference time to approximately 0.92 seconds per 32×32 image with 50 reverse steps, improving efficiency over standard DDPM.
- Theoretical analysis confirms that the unguided diffusion process approximates local smoothing, justifying its use in certified defense, though tighter bounds for guided settings remain an open challenge.
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.