arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.04869cs.CLcs.LGstat.ML
收藏

在令牌上训练,在概念上校准:大语言模型中语义校准的出现

Trained on Tokens, Calibrated on Concepts: The Emergence of Semantic Calibration in LLMs

Apple(苹果公司)

Preetum Nakkiran, Arwen Bradley, Adam Goliński, Eugene Ndiaye, Michael Kirchhof, Sinead Williamson

AI总结:

本文从理论上证明基础大语言模型的语义校准能力源于下一令牌预测训练,并通过实验验证指令微调和思维链推理会破坏这种校准。

摘要:

大语言模型(LLMs)通常缺乏对其输出有意义的置信度估计。虽然已知基础LLMs表现出下一令牌校准,但尚不清楚它们是否能够在令牌层面之外评估其回答的实际含义的置信度。我们发现,当使用某种基于采样的语义校准概念时,基础LLMs的校准程度非常出色:尽管并未被明确训练这样做,它们仍能在开放域问答任务中有意义地评估置信度。我们的主要理论贡献建立了一种机制,解释为什么语义校准会作为下一令牌预测的副产品出现,该机制利用了校准与局部损失最优性之间最近建立的联系。该理论依赖于“B-校准”的一般定义,这是一种通过选择等价类(语义或其他)来参数化的校准概念。这一理论机制产生了一个可检验的预测:当基础LLMs能够在生成回答之前轻松预测其自身在语义答案类别上的分布时,它们将实现语义校准。我们陈述了该预测的三个推论,并通过实验加以验证:(1)基础LLMs在问答任务中具有语义校准性,(2)RL指令微调系统性地破坏了这种校准,以及(3)思维链推理破坏了校准。据我们所知,我们的工作首次对语义校准在LLMs中何时以及为何出现提供了有原则的解释。

英文摘要:

Large Language Models (LLMs) often lack meaningful confidence estimates for their outputs. While base LLMs are known to exhibit next-token calibration, it remains unclear whether they can assess confidence in the actual meaning of their responses beyond the token level. We find that, when using a certain sampling-based notion of semantic calibration, base LLMs are remarkably well-calibrated: they can meaningfully assess confidence in open-domain question-answering tasks, despite not being explicitly trained to do so. Our main theoretical contribution establishes a mechanism for why semantic calibration emerges as a byproduct of next-token prediction, leveraging a recent connection between calibration and local loss optimality. The theory relies on a general definition of "B-calibration," which is a notion of calibration parameterized by a choice of equivalence classes (semantic or otherwise). This theoretical mechanism leads to a testable prediction: base LLMs will be semantically calibrated when they can easily predict their own distribution over semantic answer classes before generating a response. We state three implications of this prediction, which we validate through experiments: (1) Base LLMs are semantically calibrated across question-answering tasks, (2) RL instruction-tuning systematically breaks this calibration, and (3) chain-of-thought reasoning breaks calibration. To our knowledge, our work provides the first principled explanation of when and why semantic calibration emerges in LLMs.

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

↑