AdvDiffuser: Natural Adversarial Example Synthesis with Diffusion Models

Xinquan Chen, Xitong Gao, Juanjuan Zhao, Kejiang Ye, Chengjie Xu
2/14/2026

No official code found. Best implementation: lafeat/advdiffuser (19 stars, MIT, last commit 2023-07-22).

Abstract

Previous work on adversarial examples typically involves a fixed norm perturbation budget, which fails to capture the way humans perceive perturbations. Recent work has shifted towards natural unrestricted adversarial examples (UAEs) that breaks ℓp perturbation bounds but nonetheless remain semantically plausible. Current methods use GAN or VAE to generate UAEs by perturbing latent codes. However, this leads to loss of high-level information, resulting in low-quality and unnatural UAEs. In light of this, we propose AdvDiffuser, a new method for synthesizing natural UAEs using diffusion models. It can generate UAEs from scratch or conditionally based on reference images. To generate natural UAEs, we perturb predicted images to steer their latent code towards the adversarial sample space of a particular classifier. We also propose adversarial inpainting based on class activation mapping to retain the salient regions of the image while perturbing less important areas. On CIFAR-10, CelebA and ImageNet, we demonstrate that it can defeat the most robust models on the RobustBench leaderboard with near 100% success rates. Furthermore, The synthesized UAEs are not only more natural but also stronger compared to the current state-of-the-art attacks. Specifically, compared with GA-attack, the UAEs generated with AdvDiffuser exhibit 6× smaller LPIPS perturbations, 2 ~ 3× smaller FID scores and 0.28 higher in SSIM metrics, making them perceptually stealthier. Finally, adversarial training with AdvDiffuser further improves the model robustness against attacks with unseen threat models.1

DOISemantic Scholar

Code Implementations(1)

lafeat/advdiffuserCommunity66%
MIT

AdvDiffuser: Natural Adversarial Example Synthesis with Diffusion Models (ICCV 2023)

190Jul 22, 20233 years agoMIT

Similar Papers

Cite this paper

@article{chen2026advdiffuser,
  title  = {AdvDiffuser: Natural Adversarial Example Synthesis with Diffusion Models},
  author = {Xinquan Chen and Xitong Gao and Juanjuan Zhao and Kejiang Ye and Chengjie Xu},
  year   = {2026},
  doi    = {10.1109/ICCV51070.2023.00421},
  url    = {https://doi.org/10.1109/ICCV51070.2023.00421},
  journal = {ICCV 2023 2023}
}

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/368109e6ad7e652b2310ab79cc2d9857f647550a.svg)](https://codeofpaper.com/paper/368109e6ad7e652b2310ab79cc2d9857f647550a)

Discussion