PNRG: Black-Box Backdoor Detection for Text-to-Image Diffusion Models via Prompt-Null Reconstruction Gap
Zimo YuBingzheng WangXiaoyan GuRYRong YinYLYanwei LiuShan An
Weiping Wang Zimo Yu
Bingzheng Wang
Xiaoyan Gu
RYRong Yin
YLYanwei Liu
Shan An

Weiping Wang
+7
Backdoor detection for text-to-image diffusion models is hard in black-box settings, where internal generation signals are unavailable and output-level detectors based on image similarity or semantic deviation are obscured by sampling randomness and benign semantic variation. The authors propose Prompt-Null Reconstruction Gap (PNRG), a black-box detector built on controlled prompt-null comparison that exploits classifier-free guidance, where the difference between prompt- and null-conditioned noise predictions carries semantics and potentially a trigger-induced response. PNRG reconstructs a shared visual anchor with the candidate prompt and the null condition under matched settings, forming the anchor by applying mosaic degradation to a reference image generated from the candidate prompt; the mosaic keeps coarse scene structure but reduces high-frequency detail, lowering variation across repeated benign reconstructions and narrowing the candidate-null gap. Analysis links the PNRG score to an internal residual statistic, and experiments across multiple attack settings report 93.2% average detection accuracy, 18.4 percentage points above the strongest evaluated black-box baseline (74.8%).

arXiv ·
· December 1, 2026