Buster: Implanting Semantic Backdoor into Text Encoder to Mitigate NSFW Content Generation
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
- 2024SafeGen: Mitigating Sexually Explicit Content Generation in Text-to-Image Models10 Apr
- 2024Jailbreaking Prompt Attack: A Controllable Adversarial Attack against Diffusion Models2 Apr
- 2024GuardT2I: Defending Text-to-Image Models from Adversarial Prompts3 Mar
Other references · 41
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2020Denoising Diffusion Probabilistic Modelscited by 21,076
- 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,713
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
- 2020Denoising Diffusion Implicit Modelscited by 9,781
- 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 9,122
- 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,585
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
- 2022Scalable Diffusion Models with Transformerscited by 6,054
- 2022Generative Adversarial Networkscited by 5,627
29 more
- 2021GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Modelscited by 3,614
- 2019Do ImageNet Classifiers Generalize to ImageNet?cited by 1,515
- 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,106
- 2019An Introduction to Variational Autoencoderscited by 1,000
- 2019EDA: Easy Data Augmentation Techniques for Boosting Performance on Text Classification Taskscited by 807
- 2021Vector-quantized Image Modeling with Improved VQGANcited by 658
- 2023Erasing Concepts from Diffusion Modelscited by 539
- 2022Safe Latent Diffusion: Mitigating Inappropriate Degeneration in Diffusion Modelscited by 513
- 2020Learning under Concept Drift: A Reviewcited by 477
- 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
- 2023Unsafe Diffusion: On the Generation of Unsafe Images and Hateful Memes From Text-To-Image Modelscited by 175
- 2022COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamicscited by 161
- 2022Can Machines Help Us Answering Question 16 in Datasheets, and In Turn Reflecting on Inappropriate Content?cited by 155
- 2015Generating Images from Captions with Attentioncited by 136
- 2022How to Backdoor Diffusion Models?cited by 104
- 2023Text-to-Image Diffusion Models can be Easily Backdoored through Multimodal Data Poisoningcited by 92
- 2023A Pilot Study of Query-Free Adversarial Attack against Stable Diffusioncited by 76
- 2023Nightshade: Prompt-Specific Poisoning Attacks on Text-to-Image Generative Modelscited by 75
- 2023VillanDiffusion: A Unified Backdoor Attack Framework for Diffusion Modelscited by 68
- 2024RigorLLM: Resilient Guardrails for Large Language Models against Undesired Contentcited by 68
- 2021AEDA: An Easier Data Augmentation Technique for Text Classificationcited by 67
- 2022Rickrolling the Artist: Injecting Backdoors into Text Encoders for Text-to-Image Synthesiscited by 59
- 2023Personalization as a Shortcut for Few-Shot Backdoor Attack against Text-to-Image Diffusion Modelscited by 42
- 2023BAGM: A Backdoor Attack for Manipulating Text-to-Image Generative Modelscited by 37
- 2017Analyzing the Robustness of Nearest Neighbors to Adversarial Examplescited by 36
- 2023SurrogatePrompt: Bypassing the Safety Filter of Text-to-Image Models via Substitutioncited by 34
- 2024On the Multi-modal Vulnerability of Diffusion Modelscited by 15
- 2024Groot: Adversarial Testing for Generative Text-to-Image Models with Tree-based Semantic Transformationcited by 14
- 2024CipherDM: Secure Three-Party Inference for Diffusion Model Samplingcited by 3
Built on by
Citing papers per year: 2025: 3.
3 papers.
Similar, not cited
Close in wording, no citation either way
- 2025TokenProber: Jailbreaking Text-to-image Models via Fine-grained Word Impact Analysis
- 2026Disciplined Diffusion: Text-to-Image Diffusion Model against NSFW Generation
- 2024AEIOU: A Unified Defense Framework against NSFW Prompts in Text-to-Image Models
- 2025Beautiful Images, Toxic Words: Understanding and Addressing Offensive Text in Generated Images
- 2026DiSCO: Defending text-to-image generation through distribution-guided contrastive prompt optimization
- 2025PromptGuard: Soft Prompt-Guided Unsafe Content Moderation for Text-to-Image Models
- 2025Seeing It Before It Happens: In-Generation NSFW Detection for Diffusion-Based Text-to-Image Models
- 2026Dynamic Defense Profiling Enables Cognitive Jailbreak of Text-to-Image Models