U-Space:揭示语言模型中不确定性出现的时间和原因
研究论文 · 2026/10/09
大型语言模型在高风险决策中应用日益广泛,但其错误后果也随之加重,因此判断单个答案的可信度变得至关重要。然而,语言模型常以流畅解释和权威语气呈现错误结论,使得识别何时应推迟判断变得困难。不确定性量化旨在估计单个预测的可靠性,但现有方法多需重复生成或单独训练组件,且其标量估计无法揭示不确定性在推理中的来源与演变。近期研究还表明,生成长度与不确定性估计及正确性密切相关,引发了对估计器预测能力中有多少来自不确定性特定信息而非仅输出长度的疑问。机制可解释性通过将人类可解释概念与模型中间状态关联,为解决这些局限提供了途径。基于此,我们提出U-Space,一个低维子空间,使模型演变中的不确定性可测量且可解释。我们识别怀疑与确定的语义锚点,将其反嵌入方向映射回残差空间,并将对比组合成正交基。U-Lens将每个token状态投影到这些基向量上,生成可解释的token级不确定性图,可直接检查或聚合为标量不确定性分数。我们的方法无需正确性标签、重复生成或训练。在推理基准上,其置信度分数在标准和长度控制评估下均优于现有基线,且比监督估计器迁移更可靠。代码:https://github.com/s2labres/U-Space。
该研究提出了一种无需训练、无需正确性标签的不确定性量化方法,能揭示模型推理中不确定性的来源与演变,并在推理任务上优于现有基线,对提升语言模型在高风险场景下的可信度具有重要意义。
Large language models are informing decisions with ever-higher stakes. As the consequences of their errors grow, a central question becomes harder to ignore: how much can we trust an individual answer? Yet recognizing when to defer remains difficult because language models can present incorrect conclusions with fluent explanations and an authoritative tone. Uncertainty quantification seeks to address this disconnect by estimating the reliability of individual predictions. However, many existing methods require repeated generations or separately trained components, and their scalar estimates do not reveal where uncertainty arises or how it evolves during reasoning. Recent work has also shown that generation length can be strongly associated with uncertainty estimates and correctness, raising the question of how much of an estimator's predictive power comes from uncertainty-specific information rather than output length alone. Mechanistic interpretability offers a way to address these limitations by connecting human-interpretable concepts to intermediate model states. Building on this capability, we introduce the U-Space, a low-dimensional subspace that makes a model's evolving uncertainty measurable and interpretable. We identify semantic anchors for doubt and certainty, map their unembedding directions back into the residual space, and combine their contrasts into an orthogonal basis. The U-Lens projects each token state onto these basis vectors, yielding an interpretable token-level uncertainty map that can be inspected directly or aggregated into a scalar uncertainty score. Our approach requires no correctness labels, repeated generations, or training. Across reasoning benchmarks, its confidence score outperforms established baselines under both standard and length-controlled evaluation and transfers more reliably than supervised estimators. Code: https://github.com/s2labres/U-Space.