NDDL: Backdoor Defense for Text-to-Image Models with Normal Diffusion DynamicsLearning Normal Diffusion Dynamics for Backdoor Defense in Text-to-Image Models
Translation in progress — untranslated text is omitted.
The researchers propose Normal Diffusion Dynamics Learning (NDDL), a backdoor defense framework for text-to-image diffusion models trained only on normal samples. The method observes that normal diffusion trajectories exhibit structured, timestep-dependent transition patterns across cross-attention, latent space, and noise space, while backdoor attacks cause deviations from this normal evolution. NDDL constructs a compact multi-space trajectory representation and trains a timestep-conditioned dynamics model to predict diffusion evolution. At inference, it quantifies dynamics inconsistency using the deviation between observed and predicted transitions to detect backdoors. The framework can also achieve trigger localization through low-semantic word substitution without any prior knowledge of the backdoor. Experiments on multiple backdoor attacks demonstrate its effectiveness and generalizability.
- Backdoors in text-to-image diffusion models generate attacker-specified content when a trigger appears. Existing defenses often rely on specific internal anomaly patterns, limiting generalization across attacks with diverse mechanisms.
- NDDL constructs compact trajectory representations from cross-attention, latent variables, and noise spaces, training a time-step-conditioned transition increment predictor using only benign samples. At inference, it scores backdoor detection by the deviation between observed and predicted transitions, and localizes trigger tokens by replacing low-semantic words.
- On SD v1.5, NDDL achieves the highest detection ACC/AUROC in the table for EvilEdit, MasqLoRA, Rickrolling, and STEBA, with ACC on STEBA rising from the best baseline of 89.3% to 96.8%; on BadT2I, STEDF is higher (99.3% vs. 99.0%). Localization is higher than T2IShield and NaviT2I across all four trigger forms. The authors claim the advantage is maintained on SDXL, SD v3.5, and Pixart-α.
- The paper does not have a dedicated Limitations section. Experiments cover SD v1.5, SDXL, SD v3.5, and Pixart-α, with prompts from DiffusionDB, each attack with 1,000 benign and 1,000 backdoor prompts; ablations mainly on SD v1.5 and BadT2I. The paper does not report false rejection costs or adaptive attacks.
Related events and news
1 events · 0 news mentions
- This event's paper
NDDL:用正常扩散动力学防御文生图后门