TERD: A Unified Framework for Safeguarding Diffusion Models Against Backdoors
On the map: Diffusion models → Robustness, privacy and adversarial aspects
also in 1 more
Abstract (arXiv)
Diffusion models have achieved notable success in image generation, but they remain highly vulnerable to backdoor attacks, which compromise their integrity by producing specific undesirable outputs when presented with a pre-defined trigger. In this paper, we investigate how to protect diffusion models from this dangerous threat. Specifically, we propose TERD, a backdoor defense framework that builds unified modeling for current attacks, which enables us to derive an accessible reversed loss. A trigger reversion strategy is further employed: an initial approximation of the trigger through noise sampled from a prior distribution, followed by refinement through differential multi-step samplers. Additionally, with the reversed trigger, we propose backdoor detection from the noise space, introducing the first backdoor input detection approach for diffusion models and a novel model detection algorithm that calculates the KL divergence between reversed and benign distributions. Extensive evaluations demonstrate that TERD secures a 100% True Positive Rate (TPR) and True Negative Rate (TNR) across datasets of varying resolutions. TERD also demonstrates nice adaptability to other Stochastic Differential Equation (SDE)-based models. Our code is available at https://github.com/PKU-ML/TERD.
Key facts. Cited by 25 papers in the map (data through 7 Oct 2026). Placed in Robustness, privacy and adversarial aspects, one of 14 directions in Diffusion models. Builds on 35 of its 50 references that are in the map. First posted on arXiv 9 Sep 2024.
Builds on
35 of 50 references.
Closest ancestors · 5
Same direction, newest first
- 2023VillanDiffusion: A Unified Backdoor Attack Framework for Diffusion Models12 Jun
- 2023Text-to-Image Diffusion Models can be Easily Backdoored through Multimodal Data Poisoning7 May
- 2023TrojDiff: Trojan Attacks on Diffusion Models with Diverse Targets10 Mar
- 2022How to Backdoor Diffusion Models?11 Dec
- 2022Diffusion Models for Adversarial Purification16 May
Other references · 30
- 2020Denoising Diffusion Probabilistic Modelscited by 20,851
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2020Denoising Diffusion Implicit Modelscited by 9,655
- 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 8,964
- 2019Generative Modeling by Estimating Gradients of the Data Distributioncited by 4,067
- 2014Deep Learning Face Attributes in the Wildcited by 3,679
- 2022Elucidating the Design Space of Diffusion-Based Generative Modelscited by 2,994
- 2017Progressive Growing of GANs for Improved Quality, Stability, and Variationcited by 2,967
- 2022DPM-Solver: A Fast ODE Solver for Diffusion Probabilistic Model Sampling in Around 10 Stepscited by 1,961
- 2021SDEdit: Guided Image Synthesis and Editing with Stochastic Differential Equationscited by 1,903
- 2023Consistency Modelscited by 1,778
- 2018Glow: Generative Flow with Invertible 1x1 Convolutionscited by 1,539
18 more
- 2022Diffusion Models: A Comprehensive Survey of Methods and Applicationscited by 1,107
- 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,052
- 2017Targeted Backdoor Attacks on Deep Learning Systems Using Data Poisoningcited by 1,012
- 2021Maximum Likelihood Training of Score-Based Diffusion Modelscited by 670
- 2018Detecting Backdoor Attacks on Deep Neural Networks by Activation Clusteringcited by 429
- 2023Your Diffusion Model is Secretly a Zero-Shot Classifiercited by 301
- 2021Adversarial Neuron Pruning Purifies Backdoored Deep Modelscited by 230
- 2021Rethinking the Backdoor Attacks' Triggers: A Frequency Perspectivecited by 155
- 2021On the Convergence and Robustness of Adversarial Trainingcited by 127
- 2022BackdoorBench: A Comprehensive Benchmark of Backdoor Learningcited by 124
- 2019Robust Anomaly Detection and Backdoor Attack Detection Via Differential Privacycited by 93
- 2022When Adversarial Training Meets Vision Transformers: Recipes from Training to Architecturecited by 64
- 2022Backdoor Defense with Machine Unlearningcited by 61
- 2022Rickrolling the Artist: Injecting Backdoors into Text Encoders for Text-to-Image Synthesiscited by 59
- 2023Shared Adversarial Unlearning: Backdoor Mitigation by Unlearning Shared Adversarial Examplescited by 40
- 2021Trigger Hunting with a Topological Prior for Trojan Detectioncited by 39
- 2022Fine-Tuning Is All You Need to Mitigate Backdoor Attackscited by 35
- 2022One-shot Neural Backdoor Erasing via Adversarial Weight Maskingcited by 25
Built on by
Citing papers per year: 2024: 4; 2025: 13; 2026: 8.
25 papers.
Sort:
By area:
- 2024UIBDiffusion: Universal Imperceptible Backdoor Attack for Diffusion Modelscited by 9
- 2025Efficient Input-level Backdoor Defense on Text-to-Image Synthesis via Neuron Activation Variationcited by 8
- 2025BackdoorDM: A Comprehensive Benchmark for Backdoor Learning on Diffusion Modelcited by 7
- 2024CopyrightShield: Enhancing Diffusion Model Security against Copyright Infringement Attackscited by 5
- 2025MixBridge: Heterogeneous Image-to-Image Backdoor Attack through Mixture of Schr"odinger Bridgescited by 5
- 2025A Dual-Purpose Framework for Backdoor Defense and Backdoor Amplification in Diffusion Modelscited by 3
- 2025Dynamic Attention Analysis for Backdoor Detection in Text-to-Image Diffusion Modelscited by 3
- 2025Responsible Diffusion: A Comprehensive Survey on Safety, Ethics, and Trust in Diffusion Modelscited by 3
- 2025Parasite: A Steganography-based Backdoor Attack Framework for Diffusion Modelscited by 2
- 2025What Lurks Within? Concept Auditing for Shared Diffusion Models at Scalecited by 2
- 2025Backdoor Defense in Diffusion Models via Spatial Attention Unlearningcited by 2
- 2025Sealing The Backdoor: Unlearning Adversarial Text Triggers In Diffusion Models Using Knowledge Distillationcited by 2
13 more
- 2024How to Backdoor Consistency Models?cited by 1
- 2024TrojFlow: Flow Models are Natural Targets for Trojan Attackscited by 1
- 2025Gungnir: Exploiting Stylistic Features in Images for Backdoor Attacks on Diffusion Modelscited by 1
- 2025Practical, Generalizable and Robust Backdoor Attacks on Text-to-Image Diffusion Modelscited by 1
- 2026BadRSSD: Backdoor Attacks on Regularized Self-Supervised Diffusion Modelscited by 1
- 2026BlackMirror: Black-Box Backdoor Detection for Text-to-Image Models via Instruction-Response Deviationcited by 1
- 2025BadBlocks: Low-Cost and Stealthy Backdoor Attacks Tailored for Text-to-Image Diffusion Modelscited by 0
- 2026Backdoor Sentinel: Detecting and Detoxifying Backdoors in Diffusion Models via Temporal Noise Consistencycited by 0
- 2026Scaling Exposes the Trigger: Input-Level Backdoor Detection in Text-to-Image Diffusion Models via Cross-Attention Scalingcited by 0
- 2026Beyond the False Trade-off: Adaptive EWC for Stealthy and Generalizable T2I Backdoorscited by 0
- 2026Token by Token, Compromised: Backdoor Vulnerabilities in Unified Autoregressive Modelscited by 0
- 2026TooBad: Backdoor Diffusion Models with Ultra-Low Poison Rate and Imperceptible Triggercited by 0
- 2026DiffSafeMerge: Mitigating Backdoor Inheritance in Diffusion Model Mergingcited by 0
- 2026DiffSafeMerge: Mitigating Backdoor Inheritance in Diffusion Model Merging10 Aug 2026
- 2026TooBad: Backdoor Diffusion Models with Ultra-Low Poison Rate and Imperceptible Trigger22 Jun 2026
- 2026Token by Token, Compromised: Backdoor Vulnerabilities in Unified Autoregressive Models19 May 2026
- 2026Beyond the False Trade-off: Adaptive EWC for Stealthy and Generalizable T2I Backdoors8 May 2026
- 2026Scaling Exposes the Trigger: Input-Level Backdoor Detection in Text-to-Image Diffusion Models via Cross-Attention Scaling14 Apr 2026
- 2026BlackMirror: Black-Box Backdoor Detection for Text-to-Image Models via Instruction-Response Deviation6 Mar 2026
- 2026BadRSSD: Backdoor Attacks on Regularized Self-Supervised Diffusion Models1 Mar 2026
- 2026Backdoor Sentinel: Detecting and Detoxifying Backdoors in Diffusion Models via Temporal Noise Consistency2 Feb 2026
- 2025Responsible Diffusion: A Comprehensive Survey on Safety, Ethics, and Trust in Diffusion Models25 Sep 2025
- 2025Sealing The Backdoor: Unlearning Adversarial Text Triggers In Diffusion Models Using Knowledge Distillation20 Aug 2025
- 2025BadBlocks: Low-Cost and Stealthy Backdoor Attacks Tailored for Text-to-Image Diffusion Models5 Aug 2025
- 2025Practical, Generalizable and Robust Backdoor Attacks on Text-to-Image Diffusion Models3 Aug 2025
13 more
- 2025MixBridge: Heterogeneous Image-to-Image Backdoor Attack through Mixture of Schr"odinger Bridges12 May 2025
- 2025Dynamic Attention Analysis for Backdoor Detection in Text-to-Image Diffusion Models29 Apr 2025
- 2025Backdoor Defense in Diffusion Models via Spatial Attention Unlearning21 Apr 2025
- 2025What Lurks Within? Concept Auditing for Shared Diffusion Models at Scale21 Apr 2025
- 2025Parasite: A Steganography-based Backdoor Attack Framework for Diffusion Models8 Apr 2025
- 2025Efficient Input-level Backdoor Defense on Text-to-Image Synthesis via Neuron Activation Variation9 Mar 2025
- 2025Gungnir: Exploiting Stylistic Features in Images for Backdoor Attacks on Diffusion Models28 Feb 2025
- 2025A Dual-Purpose Framework for Backdoor Defense and Backdoor Amplification in Diffusion Models26 Feb 2025
- 2025BackdoorDM: A Comprehensive Benchmark for Backdoor Learning on Diffusion Model17 Feb 2025
- 2024TrojFlow: Flow Models are Natural Targets for Trojan Attacks21 Dec 2024
- 2024UIBDiffusion: Universal Imperceptible Backdoor Attack for Diffusion Models16 Dec 2024
- 2024CopyrightShield: Enhancing Diffusion Model Security against Copyright Infringement Attacks2 Dec 2024
- 2024How to Backdoor Consistency Models?14 Oct 2024
- 2024UIBDiffusion: Universal Imperceptible Backdoor Attack for Diffusion Modelscited by 9
- 2025Efficient Input-level Backdoor Defense on Text-to-Image Synthesis via Neuron Activation Variationcited by 8
- 2025BackdoorDM: A Comprehensive Benchmark for Backdoor Learning on Diffusion Modelcited by 7
- 2024CopyrightShield: Enhancing Diffusion Model Security against Copyright Infringement Attackscited by 5
- 2025MixBridge: Heterogeneous Image-to-Image Backdoor Attack through Mixture of Schr"odinger Bridgescited by 5
- 2025A Dual-Purpose Framework for Backdoor Defense and Backdoor Amplification in Diffusion Modelscited by 3
- 2025Dynamic Attention Analysis for Backdoor Detection in Text-to-Image Diffusion Modelscited by 3
- 2025Responsible Diffusion: A Comprehensive Survey on Safety, Ethics, and Trust in Diffusion Modelscited by 3
- 2025Parasite: A Steganography-based Backdoor Attack Framework for Diffusion Modelscited by 2
- 2025What Lurks Within? Concept Auditing for Shared Diffusion Models at Scalecited by 2
- 2025Backdoor Defense in Diffusion Models via Spatial Attention Unlearningcited by 2
- 2025Sealing The Backdoor: Unlearning Adversarial Text Triggers In Diffusion Models Using Knowledge Distillationcited by 2
12 most cited of 21 All 21 (JSON)
- 2026DiffSafeMerge: Mitigating Backdoor Inheritance in Diffusion Model Merging10 Aug 2026
- 2026TooBad: Backdoor Diffusion Models with Ultra-Low Poison Rate and Imperceptible Trigger22 Jun 2026
- 2026Scaling Exposes the Trigger: Input-Level Backdoor Detection in Text-to-Image Diffusion Models via Cross-Attention Scaling14 Apr 2026
- 2026BadRSSD: Backdoor Attacks on Regularized Self-Supervised Diffusion Models1 Mar 2026
- 2026Backdoor Sentinel: Detecting and Detoxifying Backdoors in Diffusion Models via Temporal Noise Consistency2 Feb 2026
- 2025Responsible Diffusion: A Comprehensive Survey on Safety, Ethics, and Trust in Diffusion Models25 Sep 2025
- 2025Sealing The Backdoor: Unlearning Adversarial Text Triggers In Diffusion Models Using Knowledge Distillation20 Aug 2025
- 2025BadBlocks: Low-Cost and Stealthy Backdoor Attacks Tailored for Text-to-Image Diffusion Models5 Aug 2025
- 2025Practical, Generalizable and Robust Backdoor Attacks on Text-to-Image Diffusion Models3 Aug 2025
- 2025MixBridge: Heterogeneous Image-to-Image Backdoor Attack through Mixture of Schr"odinger Bridges12 May 2025
- 2025Dynamic Attention Analysis for Backdoor Detection in Text-to-Image Diffusion Models29 Apr 2025
- 2025Backdoor Defense in Diffusion Models via Spatial Attention Unlearning21 Apr 2025
12 newest of 21 All 21 (JSON)
- 2024TrojFlow: Flow Models are Natural Targets for Trojan Attackscited by 1
- 2026BlackMirror: Black-Box Backdoor Detection for Text-to-Image Models via Instruction-Response Deviationcited by 1
- 2026Beyond the False Trade-off: Adaptive EWC for Stealthy and Generalizable T2I Backdoorscited by 0
- 2026Token by Token, Compromised: Backdoor Vulnerabilities in Unified Autoregressive Modelscited by 0
- 2026Token by Token, Compromised: Backdoor Vulnerabilities in Unified Autoregressive Models19 May 2026
- 2026Beyond the False Trade-off: Adaptive EWC for Stealthy and Generalizable T2I Backdoors8 May 2026
- 2026BlackMirror: Black-Box Backdoor Detection for Text-to-Image Models via Instruction-Response Deviation6 Mar 2026
- 2024TrojFlow: Flow Models are Natural Targets for Trojan Attacks21 Dec 2024
Similar, not cited
Close in wording, no citation either way
- 2024Invisible Backdoor Attacks on Diffusion Models
- 2023Elijah: Eliminating Backdoors Injected in Diffusion Models via Distribution Shift
- 2024Watch the Watcher! Backdoor Attacks on Security-Enhancing Diffusion Models
- 2026Learning Normal Diffusion Dynamics for Backdoor Defense in Text-to-Image Models
- 2024UFID: A Unified Framework for Input-level Backdoor Detection on Diffusion Models
- 2023Leveraging Diffusion-Based Image Variations for Robust Training on Poisoned Data
- 2024Diff-Cleanse: Identifying and Mitigating Backdoor Attacks in Diffusion Models
- 2024PureDiffusion: Using Backdoor to Counter Backdoor in Generative Diffusion Models