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

大语言模型中基于不确定性的弃权(不执行)机制可提升安全性并减少幻觉

Uncertainty-Based Abstention in LLMs Improves Safety and Reduces Hallucinations

Meta;Technical University of Munich(慕尼黑工业大学)

Christian Tomani, Kamalika Chaudhuri, Ivan Evtimov, Daniel Cremers, Mark Ibrahim

AI总结:

本研究针对大语言模型可靠性不足的问题,提出结合统计不确定性与对话内不确定性(InDU)的弃权(不执行)机制,在三类场景下显著提升模型正确率、减少幻觉并增强安全性,且几乎无额外计算开销。

摘要:

大语言模型(LLMs)实际部署的一大障碍是其可靠性不足,这一问题在三类场景中尤为突出:回答正确性、面对无法解答的问题时产生幻觉、以及安全性问题。在这三类场景中,理想情况下模型应当弃权(不执行)响应,就像人类凭借对不确定性的认知,会拒绝回答自己不懂的问题一样。受分类任务中类似方法的启发,本研究探讨了在问答领域的大语言模型场景下,基于不确定性进行弃权(不执行)的可行性与效果。我们研究了两类不确定性指标:统计不确定性度量,以及一种被称为对话内不确定性(In-Dialogue Uncertainty, InDU)的独特口头化度量方式。将这些不确定性度量与经过人类反馈强化学习(RLHF)和未经过该训练的模型结合使用后,我们发现:在所有三类场景中,基于合适的不确定性度量的弃权(不执行)机制都能提升大语言模型的可靠性。仅需舍弃少量高度不确定的样本,就能将回答正确率提升2%至8%,通过正确识别无法解答的问题避免50%的幻觉,还能将安全性提升70%至99%,且几乎不会产生额外的计算开销。

英文摘要:

A major barrier towards the practical deployment of large language models (LLMs) is their lack of reliability. Three situations where this is particularly apparent are correctness, hallucinations when given unanswerable questions, and safety. In all three cases, models should ideally abstain from responding, much like humans, whose ability to understand uncertainty makes us refrain from answering questions we don't know. Inspired by analogous approaches in classification, this study explores the feasibility and efficacy of abstaining while uncertain in the context of LLMs within the domain of question-answering. We investigate two kinds of uncertainties, statistical uncertainty metrics and a distinct verbalized measure, termed as In-Dialogue Uncertainty (InDU). Using these uncertainty measures combined with models with and without Reinforcement Learning with Human Feedback (RLHF), we show that in all three situations, abstention based on the right kind of uncertainty measure can boost the reliability of LLMs. By sacrificing only a few highly uncertain samples we can improve correctness by 2% to 8%, avoid 50% hallucinations via correctly identifying unanswerable questions and increase safety by 70% up to 99% with almost no additional computational overhead.

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

↑