[Paper Review] Guided Diffusion Model for Adversarial Purification
The paper proposes GDMP, a diffusion-model-based adversarial purification method that diffuses attacked images and denoises them with guidance from the adversarial input, achieving notable robust accuracy gains on CIFAR-10 and ImageNet under strong attacks.
With wider application of deep neural networks (DNNs) in various algorithms and frameworks, security threats have become one of the concerns. Adversarial attacks disturb DNN-based image classifiers, in which attackers can intentionally add imperceptible adversarial perturbations on input images to fool the classifiers. In this paper, we propose a novel purification approach, referred to as guided diffusion model for purification (GDMP), to help protect classifiers from adversarial attacks. The core of our approach is to embed purification into the diffusion denoising process of a Denoised Diffusion Probabilistic Model (DDPM), so that its diffusion process could submerge the adversarial perturbations with gradually added Gaussian noises, and both of these noises can be simultaneously removed following a guided denoising process. On our comprehensive experiments across various datasets, the proposed GDMP is shown to reduce the perturbations raised by adversarial attacks to a shallow range, thereby significantly improving the correctness of classification. GDMP improves the robust accuracy by 5%, obtaining 90.1% under PGD attack on the CIFAR10 dataset. Moreover, GDMP achieves 70.94% robustness on the challenging ImageNet dataset.
Motivation & Objective
- Motivate robust image classification by mitigating adversarial perturbations without retraining the target classifier.
- Introduce a DDPM-based purification method that submerges perturbations via diffusion and recovers clean content via guided denoising.
- Enable preservation of image semantics while removing adversarial noise through guidance that ties purified output to the adversarial input.
- Enable scalability to large-scale datasets (including ImageNet) and assess robustness under strong adaptive attacks.
Proposed method
- Embed adversarial purification into the diffusion-denoising process of a pre-trained DDPM to submerge perturbations with added Gaussian noise.
- Diffuse the attacked image for a controlled length Tc to degrade adversarial perturbations before reversing the process to recover a clean-like image.
- Introduce a guidance mechanism in the reverse process that nudges the output toward the adversarial image to preserve content while removing perturbations.
- Formalize guidance via a distance metric D (MSE or SSIM) between the intermediate denoised state and the diffused adversarial state, scaled by a time-dependent s_t.
- Compute s_t proportional to the Gaussian noise magnitude and inversely to the perturbation magnitude, to balance purification strength and content preservation.
- Optionally accelerate DDPM using skip-step techniques without retraining the diffusion model.
Experimental results
Research questions
- RQ1Can a pre-trained DDPM be effectively used as a purification preprocessor to defend classifiers against adversarial attacks without retraining the classifier?
- RQ2Does incorporating guidance from the adversarial image during the DDPM reverse process improve purification quality and semantic preservation compared to unguided purification?
- RQ3How does the proposed method perform on large-scale datasets (e.g., ImageNet) under strong adversarial attacks, including adaptive attacks?
- RQ4What are practical strategies (e.g., multiple purification iterations, diffusion length Tc) to balance purification strength with content fidelity?
Key findings
- GDMP improves robust accuracy by 5% on CIFAR-10, achieving 90.1% under PGD attack.
- GDMP achieves 70.94% robustness on ImageNet under PGD-like evaluation.
- Guided diffusion (with SSIM or MSE guidance) outperforms unguided purification, especially when using larger diffusion steps or multiple iterations.
- Multiple purification iterations with moderate Tc outperform a single large-Tc purification in preserving content while removing perturbations.
- DDPM acceleration techniques can significantly reduce computation time (e.g., up to 4x faster on ImageNet with step rescheduling).
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.