Skip to main content
QUICK REVIEW

[Paper Review] (Certified!!) Adversarial Robustness for Free!

Nicholas Carlini, Florian Tramèr|arXiv (Cornell University)|Jun 21, 2022
Adversarial Robustness in Machine LearningComputer Science17 citations
TL;DR

This paper proposes a certified adversarially robust classification method that achieves state-of-the-art robust accuracy on ImageNet (71% at ε=0.5) by combining off-the-shelf pretrained diffusion models for denoising with standard classifiers, without any fine-tuning. The approach leverages the generalization capabilities of diffusion models trained on diverse noise levels to enable highly effective denoised smoothing, significantly outperforming prior certified defenses.

ABSTRACT

In this paper we show how to achieve state-of-the-art certified adversarial robustness to 2-norm bounded perturbations by relying exclusively on off-the-shelf pretrained models. To do so, we instantiate the denoised smoothing approach of Salman et al. 2020 by combining a pretrained denoising diffusion probabilistic model and a standard high-accuracy classifier. This allows us to certify 71% accuracy on ImageNet under adversarial perturbations constrained to be within an 2-norm of 0.5, an improvement of 14 percentage points over the prior certified SoTA using any approach, or an improvement of 30 percentage points over denoised smoothing. We obtain these results using only pretrained diffusion models and image classifiers, without requiring any fine tuning or retraining of model parameters.

Motivation & Objective

  • To develop a certified defense against ℓ₂-bounded adversarial perturbations that does not require retraining or fine-tuning of model parameters.
  • To improve certified robustness beyond prior state-of-the-art methods using only off-the-shelf models.
  • To investigate whether pretrained diffusion models can serve as general-purpose, high-quality denoisers for denoised smoothing.
  • To evaluate the robustness and generalization of diffusion models across diverse noise levels in the context of certified robustness.
  • To demonstrate that high-performance certified robustness can be achieved without specialized training of the base classifier or denoiser.

Proposed method

  • The method uses denoised smoothing, where a denoiser removes Gaussian noise from a perturbed input before classification.
  • A pretrained diffusion model is used as the denoiser, trained to reverse a forward diffusion process that adds noise to clean images.
  • The denoised image is then classified by a separate, off-the-shelf pretrained classifier, forming a robust base classifier.
  • The robustness of the final model is certified using randomized smoothing theory, with the robust radius determined by the margin in predicted class probabilities.
  • The diffusion model is trained on a wide range of noise levels (e.g., σ ∈ [0,1.0] or [0,S≫1]), enabling generalization across different noise levels at inference.
  • Advanced deterministic sampling (EDM sampler) is applied to improve denoising quality and reduce stochasticity in the reverse process.

Experimental results

Research questions

  • RQ1Can pretrained diffusion models serve as effective, general-purpose denoisers for certified adversarial robustness without fine-tuning?
  • RQ2Does training a diffusion model on a broad range of noise levels improve its generalization and robustness performance across different perturbation magnitudes?
  • RQ3Can off-the-shelf, pretrained classifiers achieve high certified robust accuracy when combined with a high-quality pretrained denoiser?
  • RQ4How does the performance of denoised smoothing using pretrained diffusion models compare to prior certified defenses, including those using custom-trained denoisers?
  • RQ5Does deterministic sampling in diffusion models improve the quality of denoised inputs and thus enhance certified robustness?

Key findings

  • The method achieves 71% certified accuracy on ImageNet at ε=0.5, a 14-percentage-point improvement over the prior certified SoTA and a 30-percentage-point improvement over standard denoised smoothing.
  • Using a diffusion model trained on σ ∈ [0,1.0] or σ ∈ [0,S≫1] yields better generalization and higher accuracy than training on a single noise level, even when evaluating at different noise levels.
  • The deterministic EDM sampler outperforms one-shot denoising, achieving 86.1% clean accuracy on ViT at σ=0.25 and 73.1% at σ=0.5, demonstrating improved denoising fidelity.
  • Training a diffusion model on multiple noise levels simultaneously leads to higher downstream classification accuracy than training on a single level, even when the target noise level is included.
  • The approach achieves state-of-the-art certified robustness without any fine-tuning of the base classifier or denoiser, relying only on off-the-shelf models.
  • The results show that the generalization capability of diffusion models enables significantly better robustness than prior methods that use custom-trained denoisers.

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.