mlsanityData to 14 Oct 2026

Defending Text-to-image Diffusion Models: Surprising Efficacy of Textual Perturbations Against Backdoor Attacks

arXiv 2408.15721 ↗First posted 28 Aug 2024cs.CVcited by 12

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

also in 1 more
Abstract (arXiv)

Text-to-image diffusion models have been widely adopted in real-world applications due to their ability to generate realistic images from textual descriptions. However, recent studies have shown that these methods are vulnerable to backdoor attacks. Despite the significant threat posed by backdoor attacks on text-to-image diffusion models, countermeasures remain under-explored. In this paper, we address this research gap by demonstrating that state-of-the-art backdoor attacks against text-to-image diffusion models can be effectively mitigated by a surprisingly simple defense strategy - textual perturbation. Experiments show that textual perturbations are effective in defending against state-of-the-art backdoor attacks with minimal sacrifice to generation quality. We analyze the efficacy of textual perturbation from two angles: text embedding space and cross-attention maps. They further explain how backdoor attacks have compromised text-to-image diffusion models, providing insights for studying future attack and defense strategies. Our code is available at https://github.com/oscarchew/t2i-backdoor-defense.

Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). Placed in Robustness, privacy and adversarial aspects, one of 14 directions in Diffusion models. Builds on 22 of its 29 references that are in the map. First posted on arXiv 28 Aug 2024.

Builds on

22 of 29 references.

Closest ancestors · 3

Same direction, newest first

  1. 2024T2IShield: Defending Against Backdoors on Text-to-Image Diffusion Models5 Jul
  2. 2023VillanDiffusion: A Unified Backdoor Attack Framework for Diffusion Models12 Jun
  3. 2023Personalization as a Shortcut for Few-Shot Backdoor Attack against Text-to-Image Diffusion Models18 May

Other references · 19

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
  2. 2020Denoising Diffusion Probabilistic Modelscited by 21,076
  3. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
  4. 2014Microsoft COCO: Common Objects in Contextcited by 17,608
  5. 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understandingcited by 6,355
  6. 2021Zero-Shot Text-to-Image Generationcited by 4,288
  7. 2022LAION-5B: An open large-scale dataset for training next generation image-text modelscited by 4,152
  8. 2021GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Modelscited by 3,614
  9. 2022An Image is Worth One Word: Personalizing Text-to-Image Generation using Textual Inversioncited by 2,245
  10. 2019STRIP: A Defence Against Trojan Attacks on Deep Neural Networkscited by 459
  11. 2022What the DAAM: Interpreting Stable Diffusion Using Cross Attentioncited by 236
  12. 2016Counter-fitting Word Vectors to Linguistic Constraintscited by 140
7 more
  1. 2021RAP: Robustness-Aware Perturbations for Defending against Backdoor Attacks on NLP Modelscited by 104
  2. 2021Talk-to-Edit: Fine-Grained Facial Editing via Dialogcited by 102
  3. 2022Rickrolling the Artist: Injecting Backdoors into Text Encoders for Text-to-Image Synthesiscited by 59
  4. 2022Democratizing Neural Machine Translation with OPUS-MTcited by 58
  5. 2023Black-box Backdoor Defense via Zero-shot Image Purificationcited by 45
  6. 2023Understanding and Mitigating Spurious Correlations in Text Classification with Neighborhood Analysiscited by 11
  7. 2021Detecting Backdoor in Deep Neural Networks via Intentional Adversarial Perturbationscited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 2; 2025: 9; 2026: 1.

12 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2023Text-to-Image Diffusion Models can be Easily Backdoored through Multimodal Data Poisoning
  2. 2026Tuning Just Enough: Lightweight Backdoor Attacks on Multi-Encoder Diffusion Models
  3. 2023Evaluating the Robustness of Text-to-image Diffusion Models against Real-world Attacks
  4. 2025Backdoor Defense in Diffusion Models via Spatial Attention Unlearning
  5. 2024Adversarial Attacks and Defenses on Text-to-Image Diffusion Models: A Survey
  6. 2026Semantic-level Backdoor Attack against Text-to-Image Diffusion Models
  7. 2026Learning Normal Diffusion Dynamics for Backdoor Defense in Text-to-Image Models
  8. 2025Backdoors in Conditional Diffusion: Threats to Responsible Synthetic Data Pipelines