Introduction
Deep Neural Networks (DNNs) have demonstrated remarkable performance across various computer vision tasks, yet they remain notoriously fragile. Adversarial attacks—tiny, human-invisible pixel perturbations—can easily deceive these models, causing them to misclassify images with high confidence. Current defense strategies generally fall into two categories: adversarial training and adversarial purification. While adversarial training is effective against known attacks, it often struggles with unseen noise types. Adversarial purification, which cleanses images before they reach the classifier, offers a more flexible alternative but faces a persistent "fidelity-robustness trade-off."
The GDMP Framework
This paper introduces the Guided Diffusion Model for Purification (GDMP), a novel defense strategy that leverages the generative power of Denoising Diffusion Probabilistic Models (DDPMs) to break the fidelity-robustness trade-off. GDMP operates by "washing away" adversarial patterns through a controlled diffusion and reconstruction process.
Methodology
The purification process consists of two primary stages:
- The Diffusion (Noise) Step: The input image is diffused by adding Gaussian noise over a specific number of steps ($T_c$). This step is designed to make the added Gaussian noise significantly larger than the adversarial perturbation, effectively "submerging" the attack within the noise.
- The Guided Reverse (Denoising) Step: A pre-trained DDPM is then used to remove the noise. To ensure the reconstructed image remains semantically identical to the original, the authors introduce a Guidance mechanism. By calculating a distance metric (such as Mean Squared Error) between the denoised version and the original adversarial input, the model is steered to preserve fine-grained details while destroying adversarial patterns.
Key Innovations
GDMP improves upon standard diffusion techniques through two key mechanisms:
- Iterative Purification: Rather than a single large cleaning step, the process is applied multiple times with smaller noise injections, which the authors found significantly improves results.
- Adaptive Guidance Scale: The model employs a time-dependent scale ($s_t$) for guidance, allowing for greater flexibility in the early stages of denoising and stricter constraints as the final clean image is formed.
Experimental Evaluation
The researchers evaluated GDMP on two major benchmarks: CIFAR-10 and ImageNet. The latter is particularly significant, as adversarial purification has historically struggled with the scale and complexity of high-resolution ImageNet data.
Key Results
GDMP established a new state-of-the-art for adversarial defense:
- CIFAR-10: Achieved 90.1% robust accuracy under PGD attacks, representing a 5% improvement over previous methods.
- ImageNet: Achieved 70.94% robustness, significantly outperforming prior purification techniques.
- Resilience to Adaptive Attacks: The framework remained resilient even against "Strong Adaptive Attacks" (like BPDA and EOT), where the attacker has full knowledge of the purification process.
Discussion and Future Work
Unlike GANs or VAEs, which often lose local details due to latent space compression, DDPMs operate in the same dimensionality as the input image, allowing GDMP to preserve critical semantic features. However, the primary limitation of this approach is its computational cost. The iterative nature of diffusion models makes purification slower than a standard classifier forward pass. While techniques like "respacing" have provided a 4x speedup, real-time application remains a challenge.
Future research directions include further accelerating the sampling process and investigating the model's efficacy against non-adversarial corruptions, such as environmental fog or motion blur.
Summary updated