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

何时信任大语言模型:使置信度与响应质量对齐

When to Trust LLMs: Aligning Confidence with Response Quality

Alibaba Group(阿里巴巴集团)

Shuchang Tao, Liuyi Yao, Hanxing Ding, Yuexiang Xie, Qi Cao, Fei Sun, Jinyang Gao, Huawei Shen, Bolin Ding

AI总结:

本文提出CONQORD方法,通过双组件奖励函数引导强化学习,使LLM的置信度与响应质量顺序对齐,从而提升模型可信度并指导外部知识检索时机。

摘要:

尽管大语言模型(LLMs)在自然语言生成方面取得了成功,但大量证据表明LLMs可能生成不正确或无意义的文本。这一局限性凸显了辨别何时信任LLMs的重要性,尤其是在安全关键领域。现有方法通常通过置信水平来表达可靠性,然而其有效性受到缺乏客观指导的限制。为了解决这一问题,我们提出了CONfidence-Quality-ORDer-preserving对齐方法(CONQORD),该方法利用由定制的双组件奖励函数引导的强化学习。该函数整合了质量奖励和保序对齐奖励函数。具体而言,保序奖励激励模型对质量更高的响应表达更高的置信度,从而使置信度与质量的顺序保持一致。实验表明,CONQORD显著改善了置信度与响应准确率之间的对齐性能,同时不会导致过度谨慎。此外,CONQORD提供的对齐置信度能够指示何时信任LLMs,并作为启动外部知识检索过程的决定因素。使置信度与响应质量对齐可确保更透明、更可靠的响应,从而提供更好的可信度。

英文摘要:

Despite the success of large language models (LLMs) in natural language generation, much evidence shows that LLMs may produce incorrect or nonsensical text. This limitation highlights the importance of discerning when to trust LLMs, especially in safety-critical domains. Existing methods often express reliability by confidence level, however, their effectiveness is limited by the lack of objective guidance. To address this, we propose CONfidence-Quality-ORDer-preserving alignment approach (CONQORD), which leverages reinforcement learning guided by a tailored dual-component reward function. This function integrates quality reward and order-preserving alignment reward functions. Specifically, the order-preserving reward incentivizes the model to verbalize greater confidence for responses of higher quality to align the order of confidence and quality. Experiments demonstrate that CONQORD significantly improves the alignment performance between confidence and response accuracy, without causing over-cautious. Furthermore, the aligned confidence provided by CONQORD informs when to trust LLMs, and acts as a determinant for initiating the retrieval process of external knowledge. Aligning confidence with response quality ensures more transparent and reliable responses, providing better trustworthiness.

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

↑