arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.00280cs.LGcs.AIcs.CL
收藏

跨层校准:理解LLMs中的校准演化

Calibration Across Layers: Understanding Calibration Evolution in LLMs

Department of Computer Science and Engineering(计算机科学与工程系);Indian Institute of Technology Kanpur (IIT Kanpur)(印度理工学院坎浦尔(IIT坎浦尔))

Abhinav Joshi, Areeb Ahmad, Ashutosh Modi

AI总结:

本研究探讨了LLMs中校准在网络深度中的演化,发现在较靠后的上层存在置信度修正阶段,并在残差流中识别出低维校准方向,其扰动可在不损害准确性的情况下显著改善校准指标。

摘要:

大型语言模型(LLMs)展现出了固有的校准能力,其预测概率与正确性高度吻合,尽管先前的研究发现深度神经网络往往过于自信。近期的研究将这一现象与最后一层的特定组件联系起来,例如熵神经元和反嵌入矩阵的零空间。在本研究中,我们提供了一个互补的视角,探讨校准如何在整个网络深度中演化。通过在MMLU基准上分析多个开放权重模型,我们在较靠后的上层中发现了一个独特的置信度修正阶段,在此阶段,模型在达到决策确定性后会主动重新校准置信度。此外,我们在残差流中识别出一个低维校准方向,对其进行扰动可以在不损害准确性的情况下显著改善校准指标(ECE和MCE)。我们的研究结果表明,校准是一种分布式现象,贯穿于整个网络前向传播过程,而不仅仅存在于最终的投影中,这为LLMs内部置信度调节机制的运作方式提供了新的见解。

英文摘要:

Large Language Models (LLMs) have demonstrated inherent calibration capabilities, where predicted probabilities align well with correctness, despite prior findings that deep neural networks are often overconfident. Recent studies have linked this behavior to specific components in the final layer, such as entropy neurons and the unembedding matrix null space. In this work, we provide a complementary perspective by investigating how calibration evolves throughout the network depth. Analyzing multiple open-weight models on the MMLU benchmark, we uncover a distinct confidence correction phase in the upper/later layers, where model confidence is actively recalibrated after decision certainty has been reached. Furthermore, we identify a low-dimensional calibration direction in the residual stream whose perturbation significantly improves calibration metrics (ECE and MCE) without harming accuracy. Our findings suggest that calibration is a distributed phenomenon, shaped throughout the network forward pass, not just in its final projection, providing new insights into how confidence-regulating mechanisms operate within LLMs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑