mlsanityData to 14 Oct 2026

Buster: Implanting Semantic Backdoor into Text Encoder to Mitigate NSFW Content Generation

arXiv 2412.07249 ↗First posted 10 Dec 2024cs.CV cs.AI cs.LGcited by 3

On the map: LLM safety and security → Vision-language and text-to-image safety

Abstract (arXiv)

The rise of deep learning models in the digital era has raised substantial concerns regarding the generation of Not-Safe-for-Work (NSFW) content. Existing defense methods primarily involve model fine-tuning and post-hoc content moderation. Nevertheless, these approaches largely lack scalability in eliminating harmful content, degrade the quality of benign image generation, or incur high inference costs. To address these challenges, we propose an innovative framework named textitBuster, which injects backdoors into the text encoder to prevent NSFW content generation. Buster leverages deep semantic information rather than explicit prompts as triggers, redirecting NSFW prompts towards targeted benign prompts. Additionally, Buster employs energy-based training data generation through Langevin dynamics for adversarial knowledge augmentation, thereby ensuring robustness in harmful concept definition. This approach demonstrates exceptional resilience and scalability in mitigating NSFW content. Particularly, Buster fine-tunes the text encoder of Text-to-Image models within merely five minutes, showcasing its efficiency. Our extensive experiments denote that Buster outperforms nine state-of-the-art baselines, achieving a superior NSFW content removal rate of at least 91.2% while preserving the quality of harmless images.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Placed in Vision-language and text-to-image safety, one of 12 directions in LLM safety and security. Builds on 44 of its 61 references that are in the map. First posted on arXiv 10 Dec 2024.

Builds on

44 of 61 references.

Closest ancestors · 3

Same direction, newest first

  1. 2024SafeGen: Mitigating Sexually Explicit Content Generation in Text-to-Image Models10 Apr
  2. 2024Jailbreaking Prompt Attack: A Controllable Adversarial Attack against Diffusion Models2 Apr
  3. 2024GuardT2I: Defending Text-to-Image Models from Adversarial Prompts3 Mar

Other references · 41

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
  4. 2020Denoising Diffusion Probabilistic Modelscited by 21,076
  5. 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,713
  6. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
  7. 2020Denoising Diffusion Implicit Modelscited by 9,781
  8. 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 9,122
  9. 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,585
  10. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
  11. 2022Scalable Diffusion Models with Transformerscited by 6,054
  12. 2022Generative Adversarial Networkscited by 5,627
29 more
  1. 2021GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Modelscited by 3,614
  2. 2019Do ImageNet Classifiers Generalize to ImageNet?cited by 1,515
  3. 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,106
  4. 2019An Introduction to Variational Autoencoderscited by 1,000
  5. 2019EDA: Easy Data Augmentation Techniques for Boosting Performance on Text Classification Taskscited by 807
  6. 2021Vector-quantized Image Modeling with Improved VQGANcited by 658
  7. 2023Erasing Concepts from Diffusion Modelscited by 539
  8. 2022Safe Latent Diffusion: Mitigating Inappropriate Degeneration in Diffusion Modelscited by 513
  9. 2020Learning under Concept Drift: A Reviewcited by 477
  10. 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
  11. 2023Unsafe Diffusion: On the Generation of Unsafe Images and Hateful Memes From Text-To-Image Modelscited by 175
  12. 2022COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamicscited by 161
  13. 2022Can Machines Help Us Answering Question 16 in Datasheets, and In Turn Reflecting on Inappropriate Content?cited by 155
  14. 2015Generating Images from Captions with Attentioncited by 136
  15. 2022How to Backdoor Diffusion Models?cited by 104
  16. 2023Text-to-Image Diffusion Models can be Easily Backdoored through Multimodal Data Poisoningcited by 92
  17. 2023A Pilot Study of Query-Free Adversarial Attack against Stable Diffusioncited by 76
  18. 2023Nightshade: Prompt-Specific Poisoning Attacks on Text-to-Image Generative Modelscited by 75
  19. 2023VillanDiffusion: A Unified Backdoor Attack Framework for Diffusion Modelscited by 68
  20. 2024RigorLLM: Resilient Guardrails for Large Language Models against Undesired Contentcited by 68
  21. 2021AEDA: An Easier Data Augmentation Technique for Text Classificationcited by 67
  22. 2022Rickrolling the Artist: Injecting Backdoors into Text Encoders for Text-to-Image Synthesiscited by 59
  23. 2023Personalization as a Shortcut for Few-Shot Backdoor Attack against Text-to-Image Diffusion Modelscited by 42
  24. 2023BAGM: A Backdoor Attack for Manipulating Text-to-Image Generative Modelscited by 37
  25. 2017Analyzing the Robustness of Nearest Neighbors to Adversarial Examplescited by 36
  26. 2023SurrogatePrompt: Bypassing the Safety Filter of Text-to-Image Models via Substitutioncited by 34
  27. 2024On the Multi-modal Vulnerability of Diffusion Modelscited by 15
  28. 2024Groot: Adversarial Testing for Generative Text-to-Image Models with Tree-based Semantic Transformationcited by 14
  29. 2024CipherDM: Secure Three-Party Inference for Diffusion Model Samplingcited by 3

Built on by

Cited by year

Citing papers per year: 2025: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025TokenProber: Jailbreaking Text-to-image Models via Fine-grained Word Impact Analysis
  2. 2026Disciplined Diffusion: Text-to-Image Diffusion Model against NSFW Generation
  3. 2024AEIOU: A Unified Defense Framework against NSFW Prompts in Text-to-Image Models
  4. 2025Beautiful Images, Toxic Words: Understanding and Addressing Offensive Text in Generated Images
  5. 2026DiSCO: Defending text-to-image generation through distribution-guided contrastive prompt optimization
  6. 2025PromptGuard: Soft Prompt-Guided Unsafe Content Moderation for Text-to-Image Models
  7. 2025Seeing It Before It Happens: In-Generation NSFW Detection for Diffusion-Based Text-to-Image Models
  8. 2026Dynamic Defense Profiling Enables Cognitive Jailbreak of Text-to-Image Models