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

自信地扩展:校准LLM的置信度以实现自适应测试时扩展

Scaling with Confidence: Calibrating Confidence of LLMs for Adaptive Test Time Scaling

Shanghai Jiao Tong University(上海交通大学);Southeast University(东南大学);Shanghai AI Laboratory(上海人工智能实验室)

Xuqing Yang, Yi Yuan, Shanzhe Lei, Xuhong Wang

AI总结:

提出C3RL算法,通过结合正确性、校准和数据集参考准确率奖励来校准LLM的置信度,并基于此引入CAS策略,根据置信度自适应分配推理计算资源,在提升校准性的同时降低推理成本。

摘要:

使用强化学习(RL)训练大型语言模型(LLMs)显著提升了它们在推理和问答任务上的性能。然而,主流的RL奖励设计通常优先考虑回答的正确性,而忽略了激励模型准确表达其置信度。这导致了一个关键问题:性能提升往往伴随着置信度与准确性之间的校准不良,使模型在不确定时过度自信地产生幻觉。为解决这一局限,我们提出了$\textbf{C}$orrectness and $\textbf{C}$onfidence $\textbf{C}$alibration $\textbf{R}$einforcement $\textbf{L}$earning($\textbf{C3RL}$),一种新颖的RL算法,将正确性、校准和数据集参考准确率奖励整合在一起。在8个文本和多模态数据集上的全面评估表明,C3RL在不牺牲准确性的情况下增强了校准性,在性能和校准指标上均优于当前最先进的方法。利用C3RL良好校准的言语化置信度,我们进一步引入了$\textbf{C}$onfidence-based $\textbf{A}$daptive Test Time $\textbf{S}$caling($\textbf{CAS}$),一种可调整的推理时策略,根据响应置信度分配计算资源。实验表明,CAS在域内和域外数据集上均优于多数投票,同时将推理预算降低多达12.33倍。我们相信C3RL和CAS的协同作用为部署更可靠和资源高效的LLM铺平了道路。代码、数据和模型将公开发布。

英文摘要:

Training large language models (LLMs) with reinforcement learning (RL) has significantly advanced their performance on reasoning and question-answering tasks. However, prevailing RL reward designs typically prioritize response correctness, neglecting to incentivize models to express their confidence accurately. This leads to a critical problem: performance gains are often accompanied by poor calibration between confidence and accuracy, misleading models to overconfidently hallucinate when uncertain. To address this limitation, we propose $\textbf{C}$orrectness and $\textbf{C}$onfidence $\textbf{C}$alibration $\textbf{R}$einforcement $\textbf{L}$earning ($\textbf{C3RL}$), a novel RL algorithm integrating correctness, calibration and dataset-informed reference accuracy rewards together. Comprehensive evaluation across 8 text and multimodal datasets demonstrates that C3RL enhances calibration without sacrificing accuracy, outperforming the current state-of-the-art method in both performance and calibration metrics. Utilizing the well-calibrated verbalized confidence from C3RL, we further introduce $\textbf{C}$onfidence-based $\textbf{A}$daptive Test Time $\textbf{S}$caling ($\textbf{CAS}$), an adjustable inference-time strategy that allocates computational resources based on response confidence. Experiments show that CAS surpasses majority voting on both in-domain and out-of-domain datasets while reducing the inference budget by up to 12.33 times. We believe the synergy of C3RL and CAS paves the way for deploying more reliable and resource-efficient LLMs. The code, data and models will be released.

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

↑