PNRG:基于提示-空重构间隙的文本到图像扩散模型黑盒后门检测
PNRG: Black-Box Backdoor Detection for Text-to-Image Diffusion Models via Prompt-Null Reconstruction Gap
AI总结:
本研究针对文本到图像扩散模型黑盒后门检测难题,提出PNRG检测器,通过提示-空对比与马赛克锚点重构,在多攻击设置下达93.2%平均检测准确率,优于现有最强黑盒基线18.4个百分点。
摘要:
文本到图像(T2I)扩散模型的后门检测在黑盒场景下仍具难度,因为内部生成信号无法访问。现有输出级检测器依赖图像相似度或语义偏差,但无约束生成会将后门效应与采样随机性、良性语义变化混合,常掩盖局部或概念级异常响应。为解决该问题,我们提出Prompt-Null Reconstruction Gap(PNRG,提示-空重构间隙),一种基于受控提示-空对比的黑盒检测器。在无分类器引导中,提示条件与空条件的噪声预测差异反映普通语义,也可携带触发器诱导的响应,这促使我们限制普通变化以更易观察触发器相关变化。PNRG通过在匹配设置下用候选提示与空条件重构共享视觉锚点来探测该内部响应,该锚点通过对候选提示生成的参考图像应用马赛克退化构建,马赛克保留粗略场景结构同时减少重构时的高频细节。在良性提示下,它降低重复重构的变化并缩小候选分支与空分支的间隙。机制分析显示PNRG分数与内部残差统计量存在强对应关系。在多种攻击设置下的实验表明,PNRG实现93.2%的平均检测准确率,比评估的最强黑盒基线(74.8%)高出18.4个百分点。
英文摘要:
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%).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。