PNRG: Black-Box Backdoor Detection for Text-to-Image Diffusion Models via Prompt-Null Reconstruction Gap
Zimo Yu, Bingzheng Wang, Xiaoyan Gu, Rong Yin, Yanwei Liu, Shan An, Weiping Wang
Abstract
Backdoor detection for text-to-image (T2I) diffusion models remains difficult in black-box settings because internal generation signals are inaccessible. Existing output-level detectors rely on image similarity or semantic deviation, but unconstrained generation mixes backdoor effects with sampling randomness and benign semantic variation, often obscuring localized or concept-level abnormal responses. To address this problem, we propose Prompt-Null Reconstruction Gap (PNRG), a black-box detector based on controlled prompt-null comparison. In classifier-free guidance, the difference between prompt-conditioned and null-conditioned noise predictions reflects ordinary semantics and can also carry a trigger-induced response. This motivates limiting ordinary variation to make trigger-related changes easier to observe. PNRG probes this internal response by reconstructing a shared visual anchor with the candidate prompt and the null condition under matched settings. PNRG constructs the anchor by applying mosaic degradation to a reference image generated from the candidate prompt. The mosaic retains coarse scene structure while reducing the high-frequency detail available during reconstruction. On benign prompts, it reduces variation across repeated reconstructions and narrows the gap between the candidate and null branches. Mechanism analysis shows a strong correspondence between the PNRG score and the internal residual statistic. Experiments across multiple attack settings show that PNRG achieves 93.2% average detection accuracy, 18.4 percentage points above the strongest evaluated black-box baseline (74.8%).
Create a lesson
Metadata
- Categories
- cs.CV, cs.AI
- Comments
- Includes supplementary material
Related papers
ScaleTrojan: Uncovering Backdoor Vulnerability in Visual Autoregressive Text-to-Image Generation
Shared title terminologycs.CVBin Cui, Qianqian Xu, Shilong Bao et al.
Feature Suppression for Black-Box Vanishing Adversarial Attack in Object Detection
Shared title terminologycs.CVAlexis Winter, Romaric Audigier, Angélique Loesch et al.
DualSight: Learning to Disentangle Artifact and Semantic Features for Detection of Diffusion-Generated Images
Shared title terminologycs.CVAhmed Abdullah, Nikolas Ebert, Oliver Wasenmüller
Guiding Unified Multimodal Models to Generate Images from Long Prompts
Shared title terminologycs.CVHao Zhang, Jiaxin Qi, Jianqiang Huang
From Similarity to Evidence: Image Copy Detection by Predicting Transformation Sequences
Shared title terminologycs.CVDaniil Dorin, Kseniia Varlamova, Andrey Grabovoy
Make Diffusion Models Quasi-Autoregressive for 3D Reconstruction
Shared title terminologycs.CVJunjia Han, Liang Han