Skip to main content
QUICK REVIEW

[Paper Review] Threat Model-Agnostic Adversarial Defense using Diffusion Models

Tsachi Blau, Roy Ganz|arXiv (Cornell University)|Jul 17, 2022
Adversarial Robustness in Machine LearningComputer Science14 citations
TL;DR

This paper proposes a threat model-agnostic adversarial defense using a pretrained diffusion model for stochastic image denoising. By adding i.i.d. Gaussian noise to an attacked image and iteratively denoising it via a diffusion process, the method effectively removes adversarial perturbations while preserving semantic content, achieving state-of-the-art robustness across diverse attack types without retraining the classifier.

ABSTRACT

Deep Neural Networks (DNNs) are highly sensitive to imperceptible malicious perturbations, known as adversarial attacks. Following the discovery of this vulnerability in real-world imaging and vision applications, the associated safety concerns have attracted vast research attention, and many defense techniques have been developed. Most of these defense methods rely on adversarial training (AT) -- training the classification network on images perturbed according to a specific threat model, which defines the magnitude of the allowed modification. Although AT leads to promising results, training on a specific threat model fails to generalize to other types of perturbations. A different approach utilizes a preprocessing step to remove the adversarial perturbation from the attacked image. In this work, we follow the latter path and aim to develop a technique that leads to robust classifiers across various realizations of threat models. To this end, we harness the recent advances in stochastic generative modeling, and means to leverage these for sampling from conditional distributions. Our defense relies on an addition of Gaussian i.i.d noise to the attacked image, followed by a pretrained diffusion process -- an architecture that performs a stochastic iterative process over a denoising network, yielding a high perceptual quality denoised outcome. The obtained robustness with this stochastic preprocessing step is validated through extensive experiments on the CIFAR-10 dataset, showing that our method outperforms the leading defense methods under various threat models.

Motivation & Objective

  • To develop a defense mechanism that generalizes across unseen adversarial threat models, overcoming the limitations of threat-specific adversarial training.
  • To leverage generative modeling for preprocessing-based robustification, enabling defense of any pre-trained classifier without retraining.
  • To achieve high robustness against diverse adversarial attacks by projecting perturbed images back onto the clean image manifold using diffusion sampling.
  • To ensure computational efficiency and resistance to strong attacks by using a lightweight diffusion sampling strategy with subsampled steps.

Proposed method

  • The method applies i.i.d. Gaussian noise to the attacked input image before feeding it into a pretrained diffusion model.
  • The diffusion process uses iterative denoising with a minimum mean squared error (MMSE) denoiser and controlled noise injection via Langevin dynamics.
  • Sampling is initialized from the noisy attacked image at a specific diffusion step, enabling conditional generation toward clean image distribution.
  • The process is designed to balance perceptual fidelity and perturbation removal by tuning the number of diffusion steps.
  • Only the first T* steps of the DDIM diffusion schedule are used, reducing computational cost and increasing attacker difficulty.
  • The classifier and diffusion model are trained independently on clean images, ensuring model-agnostic and threat model-agnostic defense.

Experimental results

Research questions

  • RQ1Can a diffusion-based preprocessing method achieve robustness across diverse, unseen adversarial threat models?
  • RQ2How does the number of diffusion steps affect the trade-off between perturbation removal and perceptual quality?
  • RQ3Can a stochastic, non-differentiable defense mechanism resist strong white-box adversarial attacks with Expectation-of-Transform (EOT) and gradient-based optimization?
  • RQ4Does using a pretrained diffusion model on clean data enable effective generalization to attacks not seen during training?

Key findings

  • The proposed method achieves state-of-the-art robust accuracy on CIFAR-10 across multiple threat models, including $L_∞$ and $L_2$ attacks with varying perturbation budgets.
  • Robust accuracy exceeds 90% under $L_\infty$ threat models with $\epsilon = 8/255$ and $\epsilon = 16/255$, outperforming existing defense baselines.
  • The method maintains high robustness even under the strongest known attack, white-box + EOT, when using a subsampled diffusion schedule with only 14 steps.
  • There exists an optimal diffusion depth where robustness peaks—too few steps fail to remove perturbations, while too many degrade perceptual quality and reduce accuracy to ~10%.
  • The defense is inherently threat model-agnostic, as it does not require retraining the classifier or knowledge of the attack type.
  • The method is computationally efficient and robust to attacks due to the stochastic, non-differentiable nature of the diffusion sampling process.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.