Learning Normal Diffusion Dynamics for Backdoor Defense in Text-to-Image Models

Junjian Li, Xiaolong Liu, Peng Sun, Liantao Wu, Linghan Chen +2 more
9/30/2026
cs.CVcs.AIcs.CR
diffusion-flow

No confident code implementation found for this paper.

Abstract

Backdoor attacks pose a serious threat to the secure deployment of text-to-image (T2I) diffusion models. Existing defenses typically detect backdoors from specific abnormal patterns in internal representations, which may limit their generalizability with the emergence of increasingly diverse attack mechanisms.

Show full abstract

In this paper, we study backdoor defense of T2I diffusion models from a transition-dynamics perspective. We observe that benign diffusion trajectories exhibit structured and timestep-dependent transition patterns from cross-attention, latent and noise spaces, whereas backdoor attacks tend to induce deviations from such normal evolution. Motivated by these observations, we propose Normal Diffusion Dynamics Learning (NDDL), a novel backdoor defense framework that learns the normal transition dynamics of diffusion trajectories utilizing only benign samples. NDDL constructs compact multi-space trajectory representations and trains a timestep-conditioned dynamics model to predict the diffusion evolution. In the inference phase, deviations between the observed and predicted transitions are exploited to quantify dynamics inconsistency for backdoor detection. NDDL further enables trigger localization without any prior knowledge of the embedded backdoor by performing substitution with low-semantic words. Extensive experiments for diverse backdoor attacks demonstrate the effectiveness and generalizability of our proposed NDDL.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{li2026learning,
  title  = {Learning Normal Diffusion Dynamics for Backdoor Defense in Text-to-Image Models},
  author = {Junjian Li and Xiaolong Liu and Peng Sun and Liantao Wu and Linghan Chen and Yudong Gao and Honglong Chen},
  year   = {2026},
  eprint = {2609.39548},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.39548v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.39548.svg)](https://codeofpaper.com/paper/2609.39548)

Discussion