层间之中蕴藏真相:利用层内局部信息评分在LLMs中进行不确定性估计
Between the Layers Lies the Truth: Uncertainty Estimation in LLMs Using Intra-Layer Local Information Scores
AI总结:
本文提出一种轻量级方法,通过单次前向传递评估内部表示中的跨层一致模式,实现LLMs的不确定性估计,在跨数据集迁移中优于传统探针方法。
摘要:
大型语言模型(LLMs)常常自信错误,因此可靠的不确定性估计(UE)至关重要。基于输出的启发式方法虽然便宜但脆弱,而探测内部表示虽然有效但高维且难以迁移。我们提出了一种紧凑的、实例级的UE方法,通过单次前向传递在内部表示中评分跨层一致模式。在三个模型上,我们的方法在分布内探测中表现相当,均差最大为-1.8 AUPRC百分点和+4.9 Brier分数点。在跨数据集迁移中,它始终优于探测,实现偏对角线增益最高达+2.86 AUPRC和+21.02 Brier分数点。在4位权重仅量化下,它保持稳健,平均在探测上提高1.94 AUPRC点和5.33 Brier分数点。除了性能外,检查特定层-层交互揭示了不同模型编码不确定性的差异。总体而言,我们的UE方法提供了一种轻量级、紧凑的手段来捕捉LLMs中的可迁移不确定性。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。