跳到正文
arXiv (AI + Vision + Imaging)· Mina Gabriel, Pei Wang·· 8 天前AI 评分18

首个Token即知:单次解码置信度phi_first用于幻觉检测

The First Token Knows: Single-Decode Confidence for Hallucination Detection

AI 导读

研究提出首Token置信度phi_first,以top-K首Token分布归一化熵的补值衡量不确定性,仅需一次贪心解码即可检测幻觉。在PopQA和TriviaQA上,三个7-8B指令微调模型中phi_first与语义自一致性持平或略优,而后者需一次贪心解码加十次采样生成及NLI聚类。

正文 · 原文

arXiv:2605.05166v2 Announce Type: replace Abstract: Sampling-based uncertainty methods detect hallucinations by generating multiple answers and measuring agreement, often with additional semantic clustering. We study whether uncertainty is already visible in the first content-bearing answer token of a single greedy decode. We define first-token confidence, phi_first, as one minus the normalized entropy of the top-K first-token distribution. Across PopQA and TriviaQA with three 7-8B instruction-tuned models, phi_first matches or modestly exceeds semantic self-consistency while requiring only one decode instead of one greedy decode plus ten sampled generations and NLI clustering. A subsumption analysis shows that phi_first is moderately to strongly correlated with semantic agreement, and combining both signals yields only small additional AUROC gains. We position phi_first as a cheap deployment-oriented baseline for factual QA uncertainty estimation, while noting its limits for high-confidence falsehoods and long-form generation.

来源:arXiv (AI + Vision + Imaging) · arxiv.org