VillanDiffusion: A Unified Backdoor Attack Framework for Diffusion Models

Sheng-Yen Chou, Pin-Yu Chen, Tsung-Yi Ho
2/12/2026

No official code found. Best implementation: IBM/VillanDiffusion (29 stars, Apache-2.0, last commit 2025-09-18).

Abstract

Diffusion Models (DMs) are state-of-the-art generative models that learn a reversible corruption process from iterative noise addition and denoising. They are the backbone of many generative AI applications, such as text-to-image conditional generation. However, recent studies have shown that basic unconditional DMs (e.g., DDPM and DDIM) are vulnerable to backdoor injection, a type of output manipulation attack triggered by a maliciously embedded pattern at model input. This paper presents a unified backdoor attack framework (VillanDiffusion) to expand the current scope of backdoor analysis for DMs. Our framework covers mainstream unconditional and conditional DMs (denoising-based and score-based) and various training-free samplers for holistic evaluations. Experiments show that our unified framework facilitates the backdoor analysis of different DM configurations and provides new insights into caption-based backdoor attacks on DMs.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Code Repo for the NeurIPS 2023 paper "VillanDiffusion: A Unified Backdoor Attack Framework for Diffusion Models"

291Shell, PythonOct 17, 20231 years agoApache-2.0

Similar Papers

Cite this paper

@article{chou2026villandiffusion,
  title  = {VillanDiffusion: A Unified Backdoor Attack Framework for Diffusion Models},
  author = {Sheng-Yen Chou and Pin-Yu Chen and Tsung-Yi Ho},
  year   = {2026},
  eprint = {2306.06874},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2306.06874},
  journal = {NEURIPS 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/2306.06874.svg)](https://codeofpaper.com/paper/2306.06874)

Discussion