Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Diffusion Models for Adversarial Purification

About

Adversarial purification refers to a class of defense methods that remove adversarial perturbations using a generative model. These methods do not make assumptions on the form of attack and the classification model, and thus can defend pre-existing classifiers against unseen threats. However, their performance currently falls behind adversarial training methods. In this work, we propose DiffPure that uses diffusion models for adversarial purification: Given an adversarial example, we first diffuse it with a small amount of noise following a forward diffusion process, and then recover the clean image through a reverse generative process. To evaluate our method against strong adaptive attacks in an efficient and scalable way, we propose to use the adjoint method to compute full gradients of the reverse generative process. Extensive experiments on three image datasets including CIFAR-10, ImageNet and CelebA-HQ with three classifier architectures including ResNet, WideResNet and ViT demonstrate that our method achieves the state-of-the-art results, outperforming current adversarial training and adversarial purification methods, often by a large margin. Project page: https://diffpure.github.io.

Weili Nie, Brandon Guo, Yujia Huang, Chaowei Xiao, Arash Vahdat, Anima Anandkumar• 2022

Related benchmarks

TaskDatasetResultRank
Image ClassificationCIFAR-10 (test)
Accuracy (Clean)93.24
273
Image ClassificationImageNet-C level 5
Avg Top-1 Acc (ImageNet-C L5)32.7
110
Adversarial AttackImageNet (test)--
107
Image ClassificationGTSRB (test)--
94
Adversarial RobustnessCIFAR-10 (test)--
76
Image ClassificationCIFAR-10
Clean Accuracy91.41
75
Adversarial PurificationCIFAR-10
Standard Accuracy92.9
68
Robust Image ClassificationCIFAR-10--
68
Image ClassificationCIFAR-100 (test)
Clean Accuracy39.06
61
Visual Prompt Injection DefenseImgHijack Leak Context
Attack Success Rate0.00e+0
48
Showing 10 of 82 rows
...

Other info

Follow for update