Skip to content

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
Dec 2026
Artificial Intelligence Computer Vision

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%).

View source

Similar papers

#artificial intelligence Preprint Jul 2024

The Llama 3 Herd of Models

It is found that Llama 3 delivers comparable quality to leading language models such as GPT-4 on a plethora of tasks, and performs competitively with the state-of-the-art on image, video, and speech recognition tasks.

Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri et al. · 21,082 citations · ⚡3,832
#artificial intelligence Conference Open access Jun 2018

Gibson Env: Real-World Perception for Embodied Agents

This paper investigates developing real-world perception for active agents, proposes Gibson Environment for this purpose, and showcases a set of perceptual tasks learned therein.

F. Xia, Amir Zamir, Zhi-Yang He et al. · 1,069 citations · ⚡112
#computer vision Review Sep 2017

Agile Software Development Methods: Review and Analysis

This publication proposes a definition and a classification of agile software development approaches and analyses ten software development methods that can be characterized as being "agile" against the defined criterion.

P. Abrahamsson, O. Salo, Jussi Ronkainen et al. · 727 citations · ⚡54
#computer vision Jun 2008

The impact of agile practices on communication in software development

The study shows that agile practices improve both informal and formal communication, but indicates that, in larger development situations involving multiple external stakeholders, a mismatch of adequate communication mechanisms can sometimes even hinder the communication.

M. Pikkarainen, Jukka Haikara, O. Salo et al. · 401 citations · ⚡48
#machine learning Review Open access Oct 2014

Software development in startup companies: A systematic mapping study

The results indicate that software engineering work practices are chosen opportunistically, adapted and configured to provide value under the constrains imposed by the startup context.

Nicolò Paternoster, Carmine Giardino, M. Unterkalmsteiner et al. · 394 citations · ⚡54

Related blog posts

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.