通过探针目标归因定位大型语言模型中的提示歧义
Localizing Prompt Ambiguity in Large Language Models with Probe-Targeted Attribution
AI总结:
提出PRIG方法,利用线性探针和梯度归因,通过中间表示而非输出层定位提示中的歧义位置,在合成和人工基准上取得高AUROC。
摘要:
提示歧义是大型语言模型中常见的失败原因,但由于它是提示的潜在属性,难以定位,而现有的归因方法旨在解释可观察的输出,如logits或生成的token。我们引入了PRIG,一种梯度归因方法,使用探针logit将潜在歧义归因于token位置。具体来说,PRIG训练一个线性探针来区分清晰提示和模糊提示,并将探针分数归因于残差流中早期的token表示。为了实现token级别的评估,我们通过重写每个提示中的一个关键句子,构建了涵盖编码、数学和写作的合成歧义数据集,并用人工编写的黄金基准进行补充。在这种设置下,PRIG在定位歧义片段方面显著优于梯度归因基线,在组合合成基准上达到0.840 AUROC,在黄金集上达到0.891 AUROC。它在句子级别的歧义识别上也优于GPT-5.4,并在域外保留了有用的信号。这些结果确立了PRIG作为一种实用工具,用于识别提示中哪些部分存在歧义。更广泛地说,它们表明潜在提示属性可以通过中间表示而非输出级归因来定位。
英文摘要:
Prompt ambiguity is a common source of failure in large language models, but is difficult to localize because it is a latent property of the prompt, while existing attribution methods are designed to explain observable outputs such as logits or generated tokens. We introduce PRIG, a gradient attribution method that uses a probe logit to attribute latent ambiguity to token positions. Specifically, PRIG trains a linear probe to distinguish clear prompts from ambiguous prompts and attributes the probe score to earlier token representations in the residual stream. To enable token-level evaluation, we construct synthetic ambiguity datasets across coding, math, and writing by rewriting one task-critical sentence per prompt, and complement them with a human-written gold benchmark. In this setting, PRIG localizes ambiguous spans substantially better than gradient attribution baselines, achieving 0.840 AUROC on the combined synthetic benchmark and 0.891 AUROC on the gold set. It also outperforms GPT-5.4 on sentence-level ambiguity identification and retains useful signal out-of-domain. These results establish PRIG as a practical tool for identifying which parts of a prompt are ambiguous. More broadly, they suggest that latent prompt properties can be localized through intermediate representations, rather than through output-level attribution.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。