Learning normal diffusion dynamics enables backdoor detection in text-to-image models
The authors claim their NDDL framework can reliably detect and localize backdoors in T2I diffusion models using only benign samples
AI/ML arXiv 30 Sep 2026 Defense Prototype evidence
Published as “Learning Normal Diffusion Dynamics for Backdoor Defense in Text-to-Image Models”
Why it matters
Provides an attack-agnostic, model-agnostic tool for detecting and localizing backdoors in deployed text-to-image diffusion systems, improving their safe use.
Summary
NDDL detects backdoor prompts in text-to-image diffusion models with up to 99.2% accuracy and 98.5% AUROC across diverse attacks, and it localizes triggers with up to 98.8% exact recovery. It learns normal diffusion transition dynamics from benign samples across cross-attention, latent, and noise spaces, and flags deviations as attacks. The evidence is strong, showing consistent superiority or near-parity to four prior defenses on multiple models, though it is slightly behind the best baseline on one attack (BadT2I).
What they found 4
- NDDL achieves 99.2% detection accuracy on EvilEdit attacks.
“NDDL (Ours) 99.2 98.5”
- NDDL improves STEBA detection accuracy from 89.3% to 96.8% and AUROC from 89.6% to 97.0% compared with the best baseline.
“NDDL increases ACC from 89.3% to 96.8% and AUROC from 89.6% to 97.0% compared with the best baseline.”
- NDDL attains 98.8% exact trigger recovery and 99.1% AUROC for one-token triggers.
“NDDL (Ours) 98.8 99.1”
- On a diffusion-transformer (DiT) model (Stable Diffusion v3.5), NDDL reaches 91.2% ACC and 92.7% AUROC.
“NDDL 91.2 92.7”
Caveats 2
- On the BadT2I attack, NDDL’s accuracy (99.2%) is slightly lower than STEDF’s 99.3% accuracy.
- Quote for NDDL: "NDDL (Ours) 99.2 98.5"; Quote for best baseline: "STEDF 99.3 99.4"
What’s new here 4
- Learns a timestep-conditioned dynamics model of diffusion trajectories rather than looking for specific abnormal patterns.
- Combines representations from cross-attention, latent, and noise spaces into compact multi-space trajectories.
- Detects backdoors by measuring dynamics inconsistency and localizes triggers via low-semantic word substitution without prior knowledge.
- Demonstrates generalization to both U-Net and diffusion-transformer (DiT) architectures.