mlsanityData to 7 Oct 2026

From Trojan Horses to Castle Walls: Unveiling Bilateral Data Poisoning Effects in Diffusion Models

arXiv 2311.02373 ↗First posted 4 Nov 2023cs.LGcited by 9

On the map: Diffusion models → Robustness, privacy and adversarial aspects

also in 1 more
Abstract (arXiv)

While state-of-the-art diffusion models (DMs) excel in image generation, concerns regarding their security persist. Earlier research highlighted DMs' vulnerability to data poisoning attacks, but these studies placed stricter requirements than conventional methods like `BadNets' in image classification. This is because the art necessitates modifications to the diffusion training and sampling procedures. Unlike the prior work, we investigate whether BadNets-like data poisoning methods can directly degrade the generation by DMs. In other words, if only the training dataset is contaminated (without manipulating the diffusion process), how will this affect the performance of learned DMs? In this setting, we uncover bilateral data poisoning effects that not only serve an adversarial purpose (compromising the functionality of DMs) but also offer a defensive advantage (which can be leveraged for defense in classification tasks against poisoning attacks). We show that a BadNets-like data poisoning attack remains effective in DMs for producing incorrect images (misaligned with the intended text conditions). Meanwhile, poisoned DMs exhibit an increased ratio of triggers, a phenomenon we refer to as `trigger amplification', among the generated images. This insight can be then used to enhance the detection of poisoned training data. In addition, even under a low poisoning ratio, studying the poisoning effects of DMs is also valuable for designing robust image classifiers against such attacks. Last but not least, we establish a meaningful linkage between data poisoning and the phenomenon of data replications by exploring DMs' inherent data memorization tendencies.

Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Placed in Robustness, privacy and adversarial aspects, one of 14 directions in Diffusion models. Builds on 34 of its 44 references that are in the map. First posted on arXiv 4 Nov 2023.

Builds on

34 of 44 references.

Closest ancestors · 8

Same direction, newest first

  1. 2023Leveraging Diffusion-Based Image Variations for Robust Training on Poisoned Data10 Oct
  2. 2023VillanDiffusion: A Unified Backdoor Attack Framework for Diffusion Models12 Jun
  3. 2023Robust Classification via a Single Diffusion Model24 May
  4. 2023Text-to-Image Diffusion Models can be Easily Backdoored through Multimodal Data Poisoning7 May
  5. 2023TrojDiff: Trojan Attacks on Diffusion Models with Diverse Targets10 Mar
  6. 2023Salient Conditional Diffusion for Defending Against Backdoor Attacks31 Jan
  7. 2023Extracting Training Data from Diffusion Models30 Jan
  8. 2022How to Backdoor Diffusion Models?11 Dec

Other references · 26

  1. 2020Denoising Diffusion Probabilistic Modelscited by 20,851
  2. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
  3. 2020Denoising Diffusion Implicit Modelscited by 9,655
  4. 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 8,964
  5. 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,185
  6. 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understandingcited by 6,322
  7. 2022Classifier-Free Diffusion Guidancecited by 5,717
  8. 2022Elucidating the Design Space of Diffusion-Based Generative Modelscited by 2,994
  9. 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,052
  10. 2017Targeted Backdoor Attacks on Deep Learning Systems Using Data Poisoningcited by 1,012
  11. 2022DPM-Solver++: Fast Solver for Guided Sampling of Diffusion Probabilistic Modelscited by 924
  12. 2018RISE: Randomized Input Sampling for Explanation of Black-box Modelscited by 825
14 more
  1. 2018How To Backdoor Federated Learningcited by 745
  2. 2019STRIP: A Defence Against Trojan Attacks on Deep Neural Networkscited by 437
  3. 2022Diffusion Art or Digital Forgery? Investigating Data Replication in Diffusion Modelscited by 418
  4. 2023Your Diffusion Model is Secretly a Zero-Shot Classifiercited by 301
  5. 2023Understanding and Mitigating Copying in Diffusion Modelscited by 205
  6. 2022A Self-Supervised Descriptor for Image Copy Detectioncited by 175
  7. 2020Dataset Security for Machine Learning: Data Poisoning, Backdoor Attacks, and Defensescited by 171
  8. 2020Backdoor Attacks to Graph Neural Networkscited by 126
  9. 2020Practical Detection of Trojan Neural Networks: Data-Limited and Data-Free Casescited by 93
  10. 2022Rickrolling the Artist: Injecting Backdoors into Text Encoders for Text-to-Image Synthesiscited by 59
  11. 2023Black-box Backdoor Defense via Zero-shot Image Purificationcited by 44
  12. 2020BAAAN: Backdoor Attacks Against Autoencoder and GAN-Based Machine Learning Modelscited by 23
  13. 2023Distilling Cognitive Backdoor Patterns within an Imagecited by 20
  14. 2022Quarantine: Sparsity Can Uncover the Trojan Attack Trigger for Freecited by 15

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 6; 2026: 3.

9 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Attacks and Defenses for Generative Diffusion Models: A Comprehensive Survey
  2. 2024Adversarial Examples are Misaligned in Diffusion Model Manifolds
  3. 2023To Generate or Not? Safety-Driven Unlearned Diffusion Models Are Still Easy To Generate Unsafe Images ... For Now
  4. 2025Beyond Classification: Evaluating Diffusion Denoised Smoothing for Security-Utility Trade off
  5. 2025When and Where do Data Poisons Attack Textual Inversion?
  6. 2024Adversarial Attacks and Defenses on Text-to-Image Diffusion Models: A Survey
  7. 2023Intriguing Properties of Diffusion Models: An Empirical Study of the Natural Attack Capability in Text-to-Image Generative Models
  8. 2024Watch the Watcher! Backdoor Attacks on Security-Enhancing Diffusion Models