mlsanityData to 7 Oct 2026

BAGM: A Backdoor Attack for Manipulating Text-to-Image Generative Models

arXiv 2307.16489 ↗First posted 31 Jul 2023cs.CV cs.AI cs.CRcited by 37

On the map: LLM safety and security → Backdoor and data poisoning attacks

Abstract (arXiv)

The rise in popularity of text-to-image generative artificial intelligence (AI) has attracted widespread public interest. We demonstrate that this technology can be attacked to generate content that subtly manipulates its users. We propose a Backdoor Attack on text-to-image Generative Models (BAGM), which upon triggering, infuses the generated images with manipulative details that are naturally blended in the content. Our attack is the first to target three popular text-to-image generative models across three stages of the generative process by modifying the behaviour of the embedded tokenizer, the language model or the image generative model. Based on the penetration level, BAGM takes the form of a suite of attacks that are referred to as surface, shallow and deep attacks in this article. Given the existing gap within this domain, we also contribute a comprehensive set of quantitative metrics designed specifically for assessing the effectiveness of backdoor attacks on text-to-image models. The efficacy of BAGM is established by attacking state-of-the-art generative models, using a marketing scenario as the target domain. To that end, we contribute a dataset of branded product images. Our embedded backdoors increase the bias towards the target outputs by more than five times the usual, without compromising the model robustness or the generated content utility. By exposing generative AI's vulnerabilities, we encourage researchers to tackle these challenges and practitioners to exercise caution when using pre-trained models. Relevant code, input prompts and supplementary material can be found at https://github.com/JJ-Vice/BAGM, and the dataset is available at: https://ieee-dataport.org/documents/marketable-foods-mf-dataset. Keywords: Generative Artificial Intelligence, Generative Models, Text-to-Image generation, Backdoor Attacks, Trojan, Stable Diffusion.

Key facts. Cited by 37 papers in the map (data through 7 Oct 2026). Placed in Backdoor and data poisoning attacks, one of 12 directions in LLM safety and security. Builds on 29 of its 54 references that are in the map. First posted on arXiv 31 Jul 2023.

Builds on

29 of 54 references.

Closest ancestors · 3

Same direction, newest first

  1. 2023Text-to-Image Diffusion Models can be Easily Backdoored through Multimodal Data Poisoning7 May
  2. 2022How to Backdoor Diffusion Models?11 Dec
  3. 2022TrojViT: Trojan Insertion in Vision Transformers27 Aug

Other references · 26

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  2. 2020Denoising Diffusion Probabilistic Modelscited by 20,851
  3. 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,604
  4. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
  5. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  6. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  7. 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 8,964
  8. 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,185
  9. 2015Deep Unsupervised Learning using Nonequilibrium Thermodynamicscited by 7,005
  10. 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,539
  11. 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understandingcited by 6,322
  12. 2022Generative Adversarial Networkscited by 5,603
14 more
  1. 2022BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generationcited by 4,310
  2. 2022LAION-5B: An open large-scale dataset for training next generation image-text modelscited by 4,131
  3. 2019Generative Modeling by Estimating Gradients of the Data Distributioncited by 4,067
  4. 2022DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generationcited by 3,286
  5. 2022Diffusion Models: A Comprehensive Survey of Methods and Applicationscited by 1,107
  6. 2022Diffusion Models in Vision: A Surveycited by 1,008
  7. 2020Weight Poisoning Attacks on Pre-trained Modelscited by 318
  8. 2021From Show to Tell: A Survey on Deep Learning-based Image Captioningcited by 137
  9. 2021Advances in adversarial attacks and defenses in computer vision: A surveycited by 127
  10. 2023TrojDiff: Trojan Attacks on Diffusion Models with Diverse Targetscited by 88
  11. 2021Red Alarm for Pre-trained Models: Universal Vulnerability to Neuron-Level Backdoor Attackscited by 44
  12. 2022A Survey of Neural Trojan Attacks and Defenses in Deep Learningcited by 17
  13. 2020Cassandra: Detecting Trojaned Networks from Adversarial Perturbationscited by 15
  14. 2020Odyssey: Creation, Analysis and Detection of Trojan Modelscited by 7

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 2; 2024: 12; 2025: 13; 2026: 10.

37 papers.

Sort:

By area:

  1. 2024Attacks and Defenses for Generative Diffusion Models: A Comprehensive Surveycited by 32
  2. 2024T2IShield: Defending Against Backdoors on Text-to-Image Diffusion Modelscited by 29
  3. 2025A Survey of Multimodal Hallucination Evaluation and Detectioncited by 26
  4. 2023Quantifying Bias in Text-to-Image Generative Modelscited by 16
  5. 2024Chain-of-Jailbreak Attack for Image Generation Models via Editing Step by Stepcited by 11
  6. 2025Silent Branding Attack: Trigger-free Data Poisoning Attack on Text-to-Image Diffusion Modelscited by 11
  7. 2025Erased but Not Forgotten: How Backdoors Compromise Concept Erasurecited by 9
  8. 2024A Survey on Responsible Generative AI: What to Generate and What Notcited by 8
  9. 2025A Systematic Review of Poisoning Attacks Against Large Language Modelscited by 8
  10. 2025BackdoorDM: A Comprehensive Benchmark for Backdoor Learning on Diffusion Modelcited by 7
  11. 2024Trustworthy Text-to-Image Diffusion Models: A Timely and Focused Surveycited by 6
  12. 2024ODDN: Addressing Unpaired Data Challenges in Open-World Deepfake Detection on Online Social Networkscited by 6
25 more
  1. 2025DarkHash: A Data-Free Backdoor Attack Against Deep Hashingcited by 6
  2. 2026When LoRA Betrays: Backdooring Text-to-Image Models by Masquerading as Benign Adapterscited by 4
  3. 2024Buster: Implanting Semantic Backdoor into Text Encoder to Mitigate NSFW Content Generationcited by 3
  4. 2025Minimizing the Pretraining Gap: Domain-aligned Text-Based Person Retrievalcited by 3
  5. 2026BrandFusion: A Multi-Agent Framework for Seamless Brand Integration in Text-to-Video Generationcited by 3
  6. 2024Combinational Backdoor Attack against Customized Text-to-Image Modelscited by 2
  7. 2024On the Fairness, Diversity and Reliability of Text-to-Image Generative Modelscited by 2
  8. 2025Trigger without Trace: Towards Stealthy Backdoor Attack on Text-to-Image Diffusion Modelscited by 2
  9. 2025Anti-Aesthetics: Protecting Facial Privacy against Customized Text-to-Image Synthesiscited by 2
  10. 2025Towards Dataset Copyright Evasion Attack against Personalized Text-to-Image Diffusion Modelscited by 2
  11. 2024EmoAttack: Emotion-to-Image Diffusion Models for Emotional Backdoor Generationcited by 1
  12. 2024TrojanEdit: Multimodal Backdoor Attack Against Image Editing Modelcited by 1
  13. 2025PersGuard: Preventing Malicious Personalization in Text-to-Image Diffusion Models via Model Backdoorscited by 1
  14. 2025Practical, Generalizable and Robust Backdoor Attacks on Text-to-Image Diffusion Modelscited by 1
  15. 2026Trusted Weights, Treacherous Optimizations? Optimization-Triggered Backdoor Attacks on LLMscited by 1
  16. 2023Trustworthy Large Models in Vision: A Surveycited by 0
  17. 2024Manipulating and Mitigating Generative Model Biases without Retrainingcited by 0
  18. 2025BadBlocks: Low-Cost and Stealthy Backdoor Attacks Tailored for Text-to-Image Diffusion Modelscited by 0
  19. 2026Tuning Just Enough: Lightweight Backdoor Attacks on Multi-Encoder Diffusion Modelscited by 0
  20. 2026Awakening the Hydra: Stabilizing Multi-Concept Backdoor Injection in Text-to-Image Diffusion Modelscited by 0
  21. 2026Robust Watermarks Meet Backdoored Models: Evading Diffusion Semantic Watermarks via Stealthy Backdoorcited by 0
  22. 2026When Modalities Fail to Tango: Conformal Backdoor Detection in Multimodal Contrastive Learningcited by 0
  23. 2026LoRAScan: Detecting Backdoor Prompts in Low-Rank Adapters for Large Language Models via Down-Projection Activation Spikescited by 0
  24. 2026LoRango: It Takes Two LoRAs to Unlock Hidden Behaviors in Diffusion Modelscited by 0
  25. 2026BadAction: Backdoor Attacks on Interactive Video Generation via Action-Guided Triggerscited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2022Rickrolling the Artist: Injecting Backdoors into Text Encoders for Text-to-Image Synthesis
  2. 2024BackdoorLLM: A Comprehensive Benchmark for Backdoor Attacks and Defenses on Large Language Models
  3. 2025REDEditing: Relationship-Driven Precise Backdoor Poisoning on Text-to-Image Diffusion Models
  4. 2023Personalization as a Shortcut for Few-Shot Backdoor Attack against Text-to-Image Diffusion Models
  5. 2024Backdooring Bias (B2) into Stable Diffusion Models
  6. 2023Adversarial Nibbler: A Data-Centric Challenge for Improving the Safety of Text-to-Image Models
  7. 2024Defending Text-to-image Diffusion Models: Surprising Efficacy of Textual Perturbations Against Backdoor Attacks
  8. 2024ART: Automatic Red-teaming for Text-to-Image Models to Protect Benign Users