arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.06317cs.LGcs.AI
收藏

从熵到校准的不确定性:训练语言模型以推理不确定性

From Entropy to Calibrated Uncertainty: Training Language Models to Reason About Uncertainty

German Cancer Research Center (DKFZ)(德国癌症研究中心(DKFZ));German Cancer Consortium (DKTK)(德国癌症联盟(DKTK));Goethe University Frankfurt, Germany(法兰克福歌德大学)

Azza Jenane, Nassim Walha, Lukas Kuhn, Florian Buettner

AI总结:

本文提出一种三阶段流程,通过训练语言模型以在测试时高效推断校准的不确定性,提升模型在高风险领域的可靠性与泛化能力。

摘要:

大型语言模型(LLMs)能够表达可解释且校准的不确定性对于高风险领域至关重要。虽然存在事后计算不确定性的方法,但这些方法通常是基于采样的,因此计算成本高或缺乏校准。我们提出一个三阶段流程,在训练后训练LLMs,以高效地推断其响应的校准不确定性估计。首先,我们在训练数据上计算细粒度基于熵的不确定性分数,捕捉嵌入空间中模型输出的分布变化性。其次,这些分数通过Platt缩放进行校准,产生可靠且可被人理解的不确定性信号。最后,通过可验证的奖励函数,使用强化学习对目标LLM进行后训练,使其策略与这些校准信号对齐。与事后不确定性估计方法不同,我们的方法在测试时提供可解释且计算高效的不确定性估计。实验表明,使用我们流程训练的模型在校准方面优于基线,并且能够泛化到未见任务而无需进一步处理,表明它们学会了稳健的不确定性推理行为。

英文摘要:

Large Language Models (LLMs) that can express interpretable and calibrated uncertainty are crucial in high-stakes domains. While methods to compute uncertainty post-hoc exist, they are often sampling-based and therefore computationally expensive or lack calibration. We propose a three-stage pipeline to post-train LLMs to efficiently infer calibrated uncertainty estimates for their responses. First, we compute fine-grained entropy-based uncertainty scores on the training data, capturing the distributional variability of model outputs in embedding space. Second, these scores are calibrated via Platt scaling, producing reliable and human-interpretable uncertainty signals. Finally, the target LLM is post-trained via reinforcement learning to align its policy with these calibrated signals through a verifiable reward function. Unlike post-hoc uncertainty estimation methods, our approach provides interpretable and computationally efficient uncertainty estimates at test time. Experiments show that models trained with our pipeline achieve better calibration than baselines and generalize to unseen tasks without further processing, suggesting that they learn a robust uncertainty reasoning behavior.

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

↑