Skip to main content
QUICK REVIEW

[论文解读] Between the Layers Lies the Truth: Uncertainty Estimation in LLMs Using Intra-Layer Local Information Scores

Zvi Badash, Yonatan Belinkov|arXiv (Cornell University)|Mar 17, 2026
Adversarial Robustness in Machine LearningComputer Science被引用 0
一句话总结

论文提出一种紧凑的、针对每个实例的未确定性估计器,用于大语言模型(LLMs),通过跨层 KL 发散在内部表征上形成签名,并使用轻量级模型在单次前向传播中预测正确性。相较探测基线,在分布内表现具有竞争力,在跨任务迁移和量化鲁棒性方面具有优势。

ABSTRACT

Large language models (LLMs) are often confidently wrong, making reliable uncertainty estimation (UE) essential. Output-based heuristics are cheap but brittle, while probing internal representations is effective yet high-dimensional and hard to transfer. We propose a compact, per-instance UE method that scores cross-layer agreement patterns in internal representations using a single forward pass. Across three models, our method matches probing in-distribution, with mean diagonal differences of at most $-1.8$ AUPRC percentage points and $+4.9$ Brier score points. Under cross-dataset transfer, it consistently outperforms probing, achieving off-diagonal gains up to $+2.86$ AUPRC and $+21.02$ Brier points. Under 4-bit weight-only quantization, it remains robust, improving over probing by $+1.94$ AUPRC points and $+5.33$ Brier points on average. Beyond performance, examining specific layer--layer interactions reveals differences in how disparate models encode uncertainty. Altogether, our UE method offers a lightweight, compact means to capture transferable uncertainty in LLMs.

研究动机与目标

  • 为 LLMs 的可靠未确定性估计(UE)提供动机,以降低过度自信带来的错误输出。
  • 提出一种基于跨层内部表示一致性模式的紧凑的每实例 UE 方法。
  • 提供一个可解释、信息论的签名,使跨任务和数据集的迁移成为可能。
  • 在多模型、多任务的分布漂移和 4-bit 权重量化下评估鲁棒性。

提出的方法

  • 通过温度缩放的 softmax 将后 MLP 激活转换为层级概率分布。
  • 构建大小为 L x L 的有向 KL 发散签名映射 S^(t),覆盖与任务相关的令牌在各层之间的关系。
  • 可选地应用对比变换得到 S'^(t),并展平为特征向量 z^(t)。
  • 在 z^(t) 上训练一个轻量级的 LightGBM 分类器,以预测正确性,输出每实例的不确定性 u(x) = 1 - P(correct|z^(t))。
  • 在阈值无关的错误检测的 AUPRC 和概率质量的 Brier 分数上进行评估,且不进行每个任务的校准。

实验结果

研究问题

  • RQ1跨层发散签名在推理时是否能捕获关于正确性的可迁移信号?
  • RQ2提出的基于签名的 UE 相对于探针基线在同分布和跨任务迁移设置中的表现如何?
  • RQ3该方法对部署约束(如 4 位权重量化)是否鲁棒?
  • RQ4跨层交互是否揭示在不同层次对不确定性编码的模型特定模式?

主要发现

  • 同分布性能:签名方法在 AUPRC 上与探测基线持平,且在 Brier 分数上表现更好,表明概率校准更优。
  • 跨任务迁移:对角线之外的增益显示跨模型在 AUPRC(提高至多达 2.86 pp)和 Brier(提高至多达 21.02 点)上的迁移改进。
  • 量化鲁棒性:在 4-bit 量化下,签名方法维持 AUPRC,并在大多数情况下相对于探测提升了 Brier 分数。
  • 模型分析揭示层–层交互在不同 LLM 中编码出不同的不确定性模式,提升对不确定性信号的可解释性。
  • 表示效率:L x L 签名映射提供紧凑表示,参数远少于竞争方法,仍维持具有竞争力的性能。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。