arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2405.20974cs.CLcs.AIcs.LG
收藏

SaySelf:通过自我反思性理由教会大语言模型表达置信度

SaySelf: Teaching LLMs to Express Confidence with Self-Reflective Rationales

Purdue University(普渡大学);NVIDIA(英伟达公司);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);University of Southern California(南加利福尼亚大学)

Tianyang Xu, Shujin Wu, Shizhe Diao, Xiaoze Liu, Xingyao Wang, Yangyi Chen, Jing Gao

AI总结:

SaySelf框架通过自我反思性理由生成与强化学习校准,使大语言模型能够输出细粒度置信度并解释不确定性,从而降低校准误差并保持任务性能。

摘要:

大语言模型(LLMs)经常生成不准确或虚构的信息,并且通常无法表明自身的置信度,这限制了其更广泛的应用。此前的工作通过直接提示或自一致性提示来引出LLMs的置信度,或者构建特定数据集进行监督微调。基于提示的方法性能较差,而基于训练的方法仅限于二值或不够准确的群体级置信度估计。在本工作中,我们提出了先进的SaySelf训练框架,该框架教会LLMs表达更准确的细粒度置信度估计。此外,除了置信度分数之外,SaySelf还启动了引导LLMs生成自我反思性理由的过程,这些理由能够明确指出其参数化知识中的缺口并解释其不确定性。这一过程通过使用一个LLM以自然语言自动总结特定知识中的不确定性来实现。该总结基于对多个采样推理链中不一致性的分析,所得数据被用于监督微调。此外,我们利用强化学习,并采用精心设计的奖励函数来校准置信度估计,激励LLMs给出准确的高置信度预测,并惩罚错误输出中的过度自信。在分布内和分布外数据集上的实验结果证明了SaySelf在降低置信度校准误差和保持任务性能方面的有效性。我们表明,生成的自我反思性理由是合理的,并且能够进一步促进校准。代码已在 https://github.com/xu1868/SaySelf 公开。

英文摘要:

Large language models (LLMs) often generate inaccurate or fabricated information and generally fail to indicate their confidence, which limits their broader applications. Previous work elicits confidence from LLMs by direct or self-consistency prompting, or constructing specific datasets for supervised finetuning. The prompting-based approaches have inferior performance, and the training-based approaches are limited to binary or inaccurate group-level confidence estimates. In this work, we present the advanced SaySelf, a training framework that teaches LLMs to express more accurate fine-grained confidence estimates. In addition, beyond the confidence scores, SaySelf initiates the process of directing LLMs to produce self-reflective rationales that clearly identify gaps in their parametric knowledge and explain their uncertainty. This is achieved by using an LLM to automatically summarize the uncertainties in specific knowledge via natural language. The summarization is based on the analysis of the inconsistency in multiple sampled reasoning chains, and the resulting data is utilized for supervised fine-tuning. Moreover, we utilize reinforcement learning with a meticulously crafted reward function to calibrate the confidence estimates, motivating LLMs to deliver accurate, high-confidence predictions and to penalize overconfidence in erroneous outputs. Experimental results in both in-distribution and out-of-distribution datasets demonstrate the effectiveness of SaySelf in reducing the confidence calibration error and maintaining the task performance. We show that the generated self-reflective rationales are reasonable and can further contribute to the calibration. The code is made public at https://github.com/xu1868/SaySelf.

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

↑