Papers › VillanDiffusion: A Unified Backdoor Attack Framework for Diffusion Models

VillanDiffusion: A Unified Backdoor Attack Framework for Diffusion Models

12 Jun 2023NeurIPS 2023 11arXiv:2306.06874archive 2025-07-28

Sheng-Yen Chou, Pin-Yu Chen, Tsung-Yi Ho

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. Our code is available on GitHub: \url{https://github.com/IBM/villandiffusion}

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2306.06874")

Code

Syntology Ran 7 of 14 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 1 ran · honoured contract; 2 ran · violated contract; 2 ran · our draft was wrong; 2 ran with no contract checked.

By repository: official repository: 14 samples from 1 repository, 7 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

ibm/villandiffusion officialmentioned in paperpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 7 ran; 1 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
2ran · violated contract
2ran · our draft was wrong
2ran
7unverified

Licence: 0 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from IBM/villandiffusion. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

Upsample IBM/villandiffusion/model.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 8bee9b7a4832d4a1 · report
cosine_beta_schedule IBM/villandiffusion/loss.py official repository ran fingerprinted Apache-2.0 (permissive) · f3a9cdb81c13d825 · report
default IBM/villandiffusion/model.py official repository ran · violated contract Apache-2.0 (permissive) · fbf9ec7be545688e · report
exists IBM/villandiffusion/model.py official repository ran · violated contract Apache-2.0 (permissive) · 608e364a9d2376a3 · report
linear_beta_schedule IBM/villandiffusion/loss.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · 37a36e71b86103ce · report
quadratic_beta_schedule IBM/villandiffusion/loss.py official repository ran fingerprinted Apache-2.0 (permissive) · 496165266c2eceff · report
read_json IBM/VillanDiffusion/VillanDiffusion.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 410e560ea7b3decb · report
action_generator IBM/villandiffusion/config.py official repository unverified Apache-2.0 (permissive) · 7eef736dc758d990 · report
calculate_activation_statistics IBM/villandiffusion/fid_score.py official repository unverified Apache-2.0 (permissive) · a17aa1b06ec919e8 · report
calculate_frechet_distance IBM/villandiffusion/fid_score.py official repository unverified Apache-2.0 (permissive) · 0def50a351111624 · report
download_img IBM/villandiffusion/caption_dataset.py official repository unverified Apache-2.0 (permissive) · be5b84142037dc3b · report
get_activations IBM/villandiffusion/fid_score.py official repository unverified Apache-2.0 (permissive) · 9f5980b8530c7409 · report
import_model_class_from_model_name_or_path IBM/villandiffusion/caption_sim.py official repository unverified Apache-2.0 (permissive) · 2f00b39db5a81466 · report
yield_default IBM/villandiffusion/arg_parser.py official repository unverified Apache-2.0 (permissive) · 5a5ee8bd0dc9da41 · report

Tasks

Backdoor AttackDenoising

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections