基础大模型能自动评估回答语义的可信度,无需专门训练。
Trained on Tokens, Calibrated on Concepts: The Emergence of Semantic Calibration in LLMs
- 通过分析模型对语义答案类别的预测能力,揭示其自动生成语义置信度的机制。
- 实验发现基础模型在问答任务中具有显著的语义校准性,但指令微调会破坏它。
- 适用于研究模型可信度、可靠性评估及提示工程优化的研究者。
大型语言模型(LLMs)常缺乏对其输出的有意义置信度估计。尽管基础模型在词元层面表现出良好的校准性,但其是否能在语义层面有效评估回答可信度仍不明确。本文发现,在采用基于采样的语义校准定义时,基础模型表现出令人惊讶的语义校准能力:即使未显式训练,也能在开放域问答任务中合理评估回答的置信度。理论核心提出一种名为「B-校准」的通用校准定义,通过语义等价类建模校准行为,并揭示了语义校准作为下一步词元预测的副产品产生的机制。该理论导出可验证预测:若模型在生成前能轻易预测自身对语义答案类别的分布,则具备语义校准性。实验验证了三个推论:(1) 基础模型在多种问答任务中具备语义校准性;(2) 强化学习指令微调系统性地破坏校准性;(3) 链式思维推理也导致校准性下降。本工作首次提供了语义校准在LLM中何时何以出现的原理性解释。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。