Sealing The Backdoor: Unlearning Adversarial Text Triggers In Diffusion Models Using Knowledge Distillation
On the map: Diffusion models → Robustness, privacy and adversarial aspects
also in 1 more
Abstract (arXiv)
Text-to-image diffusion models have revolutionized generative AI, but their vulnerability to backdoor attacks poses significant security risks. Adversaries can inject imperceptible textual triggers into training data, causing models to generate manipulated outputs. Although text-based backdoor defenses in classification models are well-explored, generative models lack effective mitigation techniques against. We address this by selectively erasing the model's learned associations between adversarial text triggers and poisoned outputs, while preserving overall generation quality. Our approach, Self-Knowledge Distillation with Cross-Attention Guidance (SKD-CAG), uses knowledge distillation to guide the model in correcting responses to poisoned prompts while maintaining image quality by exploiting the fact that the backdoored model still produces clean outputs in the absence of triggers. Using the cross-attention mechanism, SKD-CAG neutralizes backdoor influences at the attention level, ensuring the targeted removal of adversarial effects. Extensive experiments show that our method outperforms existing approaches, achieving removal accuracy 100% for pixel backdoors and 93% for style-based attacks, without sacrificing robustness or image fidelity. Our findings highlight targeted unlearning as a promising defense to secure generative models. Code and model weights can be found at https://github.com/Mystic-Slice/Sealing-The-Backdoor .
Key facts. Cited by 2 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 37 of its 42 references that are in the map. First posted on arXiv 20 Aug 2025.
Builds on
37 of 42 references.
Closest ancestors · 12
Same direction, newest first
- 2024TERD: A Unified Framework for Safeguarding Diffusion Models Against Backdoors9 Sep
- 2024Diff-Cleanse: Identifying and Mitigating Backdoor Attacks in Diffusion Models31 Jul
- 2024Adversarial Attacks and Defenses on Text-to-Image Diffusion Models: A Survey10 Jul
- 2024Unlearning Concepts in Diffusion Model via Concept Domain Correction and Concept Preserving Gradient24 May
- 2023DataElixir: Purifying Poisoned Dataset to Mitigate Backdoor Attacks via Diffusion Models18 Dec
- 2023Elijah: Eliminating Backdoors Injected in Diffusion Models via Distribution Shift27 Nov
- 2023Unified Concept Editing in Diffusion Models25 Aug
- 2023VillanDiffusion: A Unified Backdoor Attack Framework for Diffusion Models12 Jun
- 2023Text-to-Image Diffusion Models can be Easily Backdoored through Multimodal Data Poisoning7 May
- 2023Erasing Concepts from Diffusion Models13 Mar
- 2023TrojDiff: Trojan Attacks on Diffusion Models with Diverse Targets10 Mar
- 2022How to Backdoor Diffusion Models?11 Dec
Other references · 25
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
- 2014Microsoft COCO: Common Objects in Contextcited by 17,608
- 2015Distilling the Knowledge in a Neural Networkcited by 10,324
- 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 9,122
- 2022LAION-5B: An open large-scale dataset for training next generation image-text modelscited by 4,152
- 2021GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Modelscited by 3,614
- 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,106
- 2022Exploring CLIP for Assessing the Look and Feel of Imagescited by 991
- 2019Certified Data Removal from Machine Learning Modelscited by 535
- 2020Descent-to-Delete: Gradient-Based Methods for Machine Unlearningcited by 311
- 2022Diffusion Models for Medical Image Analysis: A Comprehensive Surveycited by 273
- 2023Unleashing Text-to-Image Diffusion Models for Visual Perceptioncited by 269
13 more
- 2021Rethinking the Backdoor Attacks' Triggers: A Frequency Perspectivecited by 161
- 2020Dynamic Backdoor Attacks Against Machine Learning Modelscited by 151
- 2024Towards Understanding Cross and Self-Attention in Stable Diffusion for Text-Guided Image Editingcited by 135
- 2023SODA: Bottleneck Diffusion Models for Representation Learningcited by 77
- 2018Backdooring Convolutional Neural Networks via Targeted Weight Perturbationscited by 69
- 2022Rickrolling the Artist: Injecting Backdoors into Text Encoders for Text-to-Image Synthesiscited by 59
- 2024Diffusion Models for Audio Restorationcited by 32
- 2024A Review on Machine Unlearningcited by 32
- 2020Defending against Backdoor Attack on Deep Neural Networkscited by 22
- 2024Diffusion Models in 3D Vision: A Surveycited by 11
- 2023Diffusion Models as Artists: Are we Closing the Gap between Humans and Machines?cited by 10
- 2023Measuring the Success of Diffusion Models at Imitating Human Artistscited by 10
- 2024Defending Deep Regression Models against Backdoor Attackscited by 3
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2025Trigger without Trace: Towards Stealthy Backdoor Attack on Text-to-Image Diffusion Models
- 2025BackWeak: Backdooring Knowledge Distillation Simply with Weak Triggers and Fine-tuning
- 2025Backdoor Defense in Diffusion Models via Spatial Attention Unlearning
- 2026Awakening the Hydra: Stabilizing Multi-Concept Backdoor Injection in Text-to-Image Diffusion Models
- 2025Backdoors in Conditional Diffusion: Threats to Responsible Synthetic Data Pipelines
- 2026Semantic-level Backdoor Attack against Text-to-Image Diffusion Models
- 2025How to Backdoor Image Knowledge Distillation
- 2023Leveraging Diffusion-Based Image Variations for Robust Training on Poisoned Data