Lune

CVPR2023Top-tier venue

TrojDiff: Trojan Attacks on Diffusion Models with Diverse Targets

Weixin Chen, Dawn Song, Bo Li

Abstract

Diffusion models have achieved great success in a range of tasks, such as image synthesis and molecule design. As such successes hinge on large-scale training data collected from diverse sources, the trustworthiness of these collected data is hard to control or audit. In this work, we aim to explore the vulnerabilities of diffusion models under potential training data manipulations and try to answer: How hard is it to perform Trojan attacks on well-trained diffusion models? What are the adversarial targets that such Trojan attacks can achieve? To answer these questions, we propose an effective Trojan attack against diffusion models, TrojDiff, which optimizes the Trojan diffusion and generative processes during training. In particular, we design novel transitions during the Trojan diffusion process to diffuse adversarial targets into a biased Gaussian distribution and propose a new parameterization of the Trojan generative process that leads to an effective training objective for the attack. In addition, we consider three types of adversarial targets: the Trojaned diffusion models will always output instances belonging to a certain class from the in-domain distribution (In-D2D attack), out-ofdomain distribution (Out-D2D-attack), and one specific instance (D2I attack). We evaluate TrojDiff on CIFAR-10 and CelebA datasets against both DDPM and DDIM diffusion models. We show that TrojDiff always achieves high attack performance under different adversarial targets using different types of triggers, while the performance in benign environments is preserved. The code is available at https://github.com/chenweixin107/TrojDiff .

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

32 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • High-Resolution Image Synthesis with Latent Diffusion Models cites Diffusion Models Beat GANs on Image Synthesis
  • High-Resolution Image Synthesis with Latent Diffusion Models cites Zero-Shot Text-to-Image Generation
  • High-Resolution Image Synthesis with Latent Diffusion Models cites Denoising Diffusion Probabilistic Models
  • High-Resolution Image Synthesis with Latent Diffusion Models cites Denoising Diffusion Implicit Models
  • Nightshade: Prompt-Specific Poisoning Attacks on Text-to-Image Generative Models cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Nightshade: Prompt-Specific Poisoning Attacks on Text-to-Image Generative Models cites Zero-Shot Text-to-Image Generation
  • Nightshade: Prompt-Specific Poisoning Attacks on Text-to-Image Generative Models cites Text-to-Image Diffusion Models can be Easily Backdoored through Multimodal Data Poisoning
  • The Stronger the Diffusion Model, the Easier the Backdoor: Data Poisoning to Induce Copyright BreachesWithout Adjusting Finetuning Pipeline cites High-Resolution Image Synthesis with Latent Diffusion Models
  • The Stronger the Diffusion Model, the Easier the Backdoor: Data Poisoning to Induce Copyright BreachesWithout Adjusting Finetuning Pipeline cites Text-to-Image Diffusion Models can be Easily Backdoored through Multimodal Data Poisoning
  • The Stronger the Diffusion Model, the Easier the Backdoor: Data Poisoning to Induce Copyright BreachesWithout Adjusting Finetuning Pipeline cites Denoising Diffusion Probabilistic Models
  • The Stronger the Diffusion Model, the Easier the Backdoor: Data Poisoning to Induce Copyright BreachesWithout Adjusting Finetuning Pipeline cites Denoising Diffusion Implicit Models
  • VillanDiffusion: A Unified Backdoor Attack Framework for Diffusion Models cites High-Resolution Image Synthesis with Latent Diffusion Models
  • VillanDiffusion: A Unified Backdoor Attack Framework for Diffusion Models cites Diffusion Models Beat GANs on Image Synthesis
  • VillanDiffusion: A Unified Backdoor Attack Framework for Diffusion Models cites Denoising Diffusion Probabilistic Models
  • VillanDiffusion: A Unified Backdoor Attack Framework for Diffusion Models cites Denoising Diffusion Implicit Models
  • Diffusion Models Beat GANs on Image Synthesis cites Zero-Shot Text-to-Image Generation
  • Diffusion Models Beat GANs on Image Synthesis cites Denoising Diffusion Probabilistic Models
  • Diffusion Models Beat GANs on Image Synthesis cites Denoising Diffusion Implicit Models
  • Text-to-Image Diffusion Models can be Easily Backdoored through Multimodal Data Poisoning cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Text-to-Image Diffusion Models can be Easily Backdoored through Multimodal Data Poisoning cites Diffusion Models Beat GANs on Image Synthesis
  • Text-to-Image Diffusion Models can be Easily Backdoored through Multimodal Data Poisoning cites Denoising Diffusion Probabilistic Models
  • Elijah: Eliminating Backdoors Injected in Diffusion Models via Distribution Shift cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Elijah: Eliminating Backdoors Injected in Diffusion Models via Distribution Shift cites VillanDiffusion: A Unified Backdoor Attack Framework for Diffusion Models
  • Elijah: Eliminating Backdoors Injected in Diffusion Models via Distribution Shift cites Denoising Diffusion Probabilistic Models
  • Elijah: Eliminating Backdoors Injected in Diffusion Models via Distribution Shift cites Denoising Diffusion Implicit Models
  • Denoising Diffusion Implicit Models cites Denoising Diffusion Probabilistic Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers32

  1. Nightshade: Prompt-Specific Poisoning Attacks on Text-to-Image Generative ModelsShawn Shan, Wenxin Ding, Josephine Passananti, Stanley Wu et al.S&P 2024 · 102 citations
  2. VillanDiffusion: A Unified Backdoor Attack Framework for Diffusion ModelsSheng-Yen Chou, Pin-Yu Chen, Tsung-Yi HoNeurIPS 2023 · 101 citations
  3. The Stronger the Diffusion Model, the Easier the Backdoor: Data Poisoning to Induce Copyright BreachesWithout Adjusting Finetuning PipelineHaonan Wang, Qianli Shen, Yao Tong, Yang Zhang et al.ICML 2024 · 48 citations
  4. Elijah: Eliminating Backdoors Injected in Diffusion Models via Distribution ShiftShengwei An, Sheng-Yen Chou, Kaiyuan Zhang, Qiuling Xu et al.AAAI 2024 · 48 citations
  5. Text-to-Image Diffusion Models can be Easily Backdoored through Multimodal Data PoisoningShengfang Zhai, Yinpeng Dong, Qingni Shen, Shi Pu et al.ACM MM 2023 · 46 citations

Builds on19

  1. Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
  2. Diffusion Models Beat GANs on Image SynthesisPrafulla Dhariwal, Alexander Quinn NicholNeurIPS 2021 · 13,211 citations
  3. High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser et al.CVPR 2022 · 13,123 citations
  4. Denoising Diffusion Implicit ModelsJiaming Song, Chenlin Meng, Stefano ErmonICLR 2021 · 11,743 citations
  5. Zero-Shot Text-to-Image GenerationAditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray et al.ICML 2021 · 6,356 citations

Related papers

  1. Silent Branding Attack: Trigger-free Data Poisoning Attack on Text-to-Image Diffusion ModelsSangwon Jang, June Suk Choi, Jaehyeong Jo, Kimin Lee et al.CVPR 2025
  2. How to Backdoor Diffusion Models?Sheng-Yen Chou, Pin-Yu Chen, Tsung-Yi HoCVPR 2023
  3. Unleashing Stealthy Backdoor Pandemic by Infecting a Single Diffusion ModelMohaiminul Al Nahian, Abeer Matar A. Almalky, Sabbir Ahmed, Abdullah Al Arafat et al.CVPR 2026
  4. EvilEdit: Backdooring Text-to-Image Diffusion Models in One SecondHao Wang, Shangwei Guo, Jialing He, Kangjie Chen et al.ACM MM 2024 · 14 citations
  5. Targeted Attack Improves Protection against Unauthorized Diffusion CustomizationBoyang Zheng, Chumeng Liang, Xiaoyu WuICLR 2025
Dusk over the sea between two cliffs drawn in fine vertical lines