AdvDiff: Generating Unrestricted Adversarial Examples using Diffusion Models

Xuelong Dai, Kaisheng Liang, Bin Xiao
7/24/2023
87 citations
cs.LGcs.CV
diffusion-flow

Official code: EricDai0/advdiff (45 stars, Jupyter Notebook, MIT, last commit 2024-10-09).

Abstract

Unrestricted adversarial attacks present a serious threat to deep learning models and adversarial defense techniques. They pose severe security problems for deep learning applications because they can effectively bypass defense mechanisms.

Show full abstract

However, previous attack methods often directly inject Projected Gradient Descent (PGD) gradients into the sampling of generative models, which are not theoretically provable and thus generate unrealistic examples by incorporating adversarial objectives, especially for GAN-based methods on large-scale datasets like ImageNet. In this paper, we propose a new method, called AdvDiff, to generate unrestricted adversarial examples with diffusion models. We design two novel adversarial guidance techniques to conduct adversarial sampling in the reverse generation process of diffusion models. These two techniques are effective and stable in generating high-quality, realistic adversarial examples by integrating gradients of the target classifier interpretably. Experimental results on MNIST and ImageNet datasets demonstrate that AdvDiff is effective in generating unrestricted adversarial examples, which outperforms state-of-the-art unrestricted adversarial attack methods in terms of attack performance and generation quality.

View on arXivView PDF

Code Implementations(1)

EricDai0/advdiffOfficial100%
MIT
459Jupyter Notebook, PythonOct 3, 20232 years agoMIT

Similar Papers

Cite this paper

@article{dai2023advdiff,
  title  = {AdvDiff: Generating Unrestricted Adversarial Examples using Diffusion Models},
  author = {Xuelong Dai and Kaisheng Liang and Bin Xiao},
  year   = {2023},
  eprint = {2307.12499},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.12499v4},
  journal = {ECCV 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.12499.svg)](https://codeofpaper.com/paper/2307.12499)

Discussion