mlsanityData to 7 Oct 2026

TERD: A Unified Framework for Safeguarding Diffusion Models Against Backdoors

arXiv 2409.05294 ↗First posted 9 Sep 2024cs.CR cs.AI cs.LGcited by 25

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

  1. 2023VillanDiffusion: A Unified Backdoor Attack Framework for Diffusion Models12 Jun
  2. 2023Text-to-Image Diffusion Models can be Easily Backdoored through Multimodal Data Poisoning7 May
  3. 2023TrojDiff: Trojan Attacks on Diffusion Models with Diverse Targets10 Mar
  4. 2022How to Backdoor Diffusion Models?11 Dec
  5. 2022Diffusion Models for Adversarial Purification16 May

Other references · 30

  1. 2020Denoising Diffusion Probabilistic Modelscited by 20,851
  2. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
  3. 2020Denoising Diffusion Implicit Modelscited by 9,655
  4. 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 8,964
  5. 2019Generative Modeling by Estimating Gradients of the Data Distributioncited by 4,067
  6. 2014Deep Learning Face Attributes in the Wildcited by 3,679
  7. 2022Elucidating the Design Space of Diffusion-Based Generative Modelscited by 2,994
  8. 2017Progressive Growing of GANs for Improved Quality, Stability, and Variationcited by 2,967
  9. 2022DPM-Solver: A Fast ODE Solver for Diffusion Probabilistic Model Sampling in Around 10 Stepscited by 1,961
  10. 2021SDEdit: Guided Image Synthesis and Editing with Stochastic Differential Equationscited by 1,903
  11. 2023Consistency Modelscited by 1,778
  12. 2018Glow: Generative Flow with Invertible 1x1 Convolutionscited by 1,539
18 more
  1. 2022Diffusion Models: A Comprehensive Survey of Methods and Applicationscited by 1,107
  2. 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,052
  3. 2017Targeted Backdoor Attacks on Deep Learning Systems Using Data Poisoningcited by 1,012
  4. 2021Maximum Likelihood Training of Score-Based Diffusion Modelscited by 670
  5. 2018Detecting Backdoor Attacks on Deep Neural Networks by Activation Clusteringcited by 429
  6. 2023Your Diffusion Model is Secretly a Zero-Shot Classifiercited by 301
  7. 2021Adversarial Neuron Pruning Purifies Backdoored Deep Modelscited by 230
  8. 2021Rethinking the Backdoor Attacks' Triggers: A Frequency Perspectivecited by 155
  9. 2021On the Convergence and Robustness of Adversarial Trainingcited by 127
  10. 2022BackdoorBench: A Comprehensive Benchmark of Backdoor Learningcited by 124
  11. 2019Robust Anomaly Detection and Backdoor Attack Detection Via Differential Privacycited by 93
  12. 2022When Adversarial Training Meets Vision Transformers: Recipes from Training to Architecturecited by 64
  13. 2022Backdoor Defense with Machine Unlearningcited by 61
  14. 2022Rickrolling the Artist: Injecting Backdoors into Text Encoders for Text-to-Image Synthesiscited by 59
  15. 2023Shared Adversarial Unlearning: Backdoor Mitigation by Unlearning Shared Adversarial Examplescited by 40
  16. 2021Trigger Hunting with a Topological Prior for Trojan Detectioncited by 39
  17. 2022Fine-Tuning Is All You Need to Mitigate Backdoor Attackscited by 35
  18. 2022One-shot Neural Backdoor Erasing via Adversarial Weight Maskingcited by 25

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 4; 2025: 13; 2026: 8.

25 papers.

Sort:

By area:

  1. 2024UIBDiffusion: Universal Imperceptible Backdoor Attack for Diffusion Modelscited by 9
  2. 2025Efficient Input-level Backdoor Defense on Text-to-Image Synthesis via Neuron Activation Variationcited by 8
  3. 2025BackdoorDM: A Comprehensive Benchmark for Backdoor Learning on Diffusion Modelcited by 7
  4. 2024CopyrightShield: Enhancing Diffusion Model Security against Copyright Infringement Attackscited by 5
  5. 2025MixBridge: Heterogeneous Image-to-Image Backdoor Attack through Mixture of Schr"odinger Bridgescited by 5
  6. 2025A Dual-Purpose Framework for Backdoor Defense and Backdoor Amplification in Diffusion Modelscited by 3
  7. 2025Dynamic Attention Analysis for Backdoor Detection in Text-to-Image Diffusion Modelscited by 3
  8. 2025Responsible Diffusion: A Comprehensive Survey on Safety, Ethics, and Trust in Diffusion Modelscited by 3
  9. 2025Parasite: A Steganography-based Backdoor Attack Framework for Diffusion Modelscited by 2
  10. 2025What Lurks Within? Concept Auditing for Shared Diffusion Models at Scalecited by 2
  11. 2025Backdoor Defense in Diffusion Models via Spatial Attention Unlearningcited by 2
  12. 2025Sealing The Backdoor: Unlearning Adversarial Text Triggers In Diffusion Models Using Knowledge Distillationcited by 2
13 more
  1. 2024How to Backdoor Consistency Models?cited by 1
  2. 2024TrojFlow: Flow Models are Natural Targets for Trojan Attackscited by 1
  3. 2025Gungnir: Exploiting Stylistic Features in Images for Backdoor Attacks on Diffusion Modelscited by 1
  4. 2025Practical, Generalizable and Robust Backdoor Attacks on Text-to-Image Diffusion Modelscited by 1
  5. 2026BadRSSD: Backdoor Attacks on Regularized Self-Supervised Diffusion Modelscited by 1
  6. 2026BlackMirror: Black-Box Backdoor Detection for Text-to-Image Models via Instruction-Response Deviationcited by 1
  7. 2025BadBlocks: Low-Cost and Stealthy Backdoor Attacks Tailored for Text-to-Image Diffusion Modelscited by 0
  8. 2026Backdoor Sentinel: Detecting and Detoxifying Backdoors in Diffusion Models via Temporal Noise Consistencycited by 0
  9. 2026Scaling Exposes the Trigger: Input-Level Backdoor Detection in Text-to-Image Diffusion Models via Cross-Attention Scalingcited by 0
  10. 2026Beyond the False Trade-off: Adaptive EWC for Stealthy and Generalizable T2I Backdoorscited by 0
  11. 2026Token by Token, Compromised: Backdoor Vulnerabilities in Unified Autoregressive Modelscited by 0
  12. 2026TooBad: Backdoor Diffusion Models with Ultra-Low Poison Rate and Imperceptible Triggercited by 0
  13. 2026DiffSafeMerge: Mitigating Backdoor Inheritance in Diffusion Model Mergingcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2024Invisible Backdoor Attacks on Diffusion Models
  2. 2023Elijah: Eliminating Backdoors Injected in Diffusion Models via Distribution Shift
  3. 2024Watch the Watcher! Backdoor Attacks on Security-Enhancing Diffusion Models
  4. 2026Learning Normal Diffusion Dynamics for Backdoor Defense in Text-to-Image Models
  5. 2024UFID: A Unified Framework for Input-level Backdoor Detection on Diffusion Models
  6. 2023Leveraging Diffusion-Based Image Variations for Robust Training on Poisoned Data
  7. 2024Diff-Cleanse: Identifying and Mitigating Backdoor Attacks in Diffusion Models
  8. 2024PureDiffusion: Using Backdoor to Counter Backdoor in Generative Diffusion Models