Backdoor Sentinel: Detecting and Detoxifying Backdoors in Diffusion Models via Temporal Noise Consistency
Bingzheng Wang , Xiaoyan Gu , Hongbo Xu , Hongcheng Li , Zimo Yu , Jiang Zhou , Weiping Wang
Published on arXiv
2602.01765
Model Poisoning
OWASP ML Top 10 — ML10
Key Finding
TNC-Defense improves average backdoor detection accuracy by 11% over state-of-the-art defenses and invalidates 98.5% of triggered samples with only mild degradation in generation quality across five attack scenarios.
TNC-Defense (Temporal Noise Consistency Defense)
Novel technique introduced
Diffusion models have been widely deployed in AIGC services; however, their reliance on opaque training data and procedures exposes a broad attack surface for backdoor injection. In practical auditing scenarios, due to the protection of intellectual property and commercial confidentiality, auditors are typically unable to access model parameters, rendering existing white-box or query-intensive detection methods impractical. More importantly, even after the backdoor is detected, existing detoxification approaches are often trapped in a dilemma between detoxification effectiveness and generation quality. In this work, we identify a previously unreported phenomenon called temporal noise unconsistency, where the noise predictions between adjacent diffusion timesteps is disrupted in specific temporal segments when the input is triggered, while remaining stable under clean inputs. Leveraging this finding, we propose Temporal Noise Consistency Defense (TNC-Defense), a unified framework for backdoor detection and detoxification. The framework first uses the adjacent timestep noise consistency to design a gray-box detection module, for identifying and locating anomalous diffusion timesteps. Furthermore, the framework uses the identified anomalous timesteps to construct a trigger-agnostic, timestep-aware detoxification module, which directly corrects the backdoor generation path. This effectively suppresses backdoor behavior while significantly reducing detoxification costs. We evaluate the proposed method under five representative backdoor attack scenarios and compare it with state-of-the-art defenses. The results show that TNC-Defense improves the average detection accuracy by $11\%$ with negligible additional overhead, and invalidates an average of $98.5\%$ of triggered samples with only a mild degradation in generation quality.
Key Contributions
- Discovery of 'temporal noise unconsistency' — a previously unreported phenomenon where triggered inputs disrupt noise predictions between adjacent diffusion timesteps in specific temporal segments
- Gray-box backdoor detection module exploiting adjacent timestep noise consistency to identify and locate anomalous diffusion timesteps without model parameter access
- Trigger-agnostic, timestep-aware detoxification module that directly corrects the backdoor generation path, invalidating 98.5% of triggered samples with mild quality degradation
🛡️ Threat Analysis
Directly addresses backdoor/trojan attacks on diffusion models — proposes both detection (identifying anomalous timesteps via temporal noise consistency) and detoxification (correcting backdoor generation paths), evaluated against five representative backdoor attacks.