When Do LLMs Need Retrieval Augmentation? Mitigating LLMs' Overconfidence Helps Retrieval Augmentation

📄 arXiv: 2402.11457v2 📥 PDF

作者: Shiyu Ni, Keping Bi, Jiafeng Guo, Xueqi Cheng

分类: cs.CL

发布日期: 2024-02-18 (更新: 2024-06-11)

期刊: Findings of ACL2024


💡 一句话要点

提出增强LLMs知识边界感知以优化检索增强方法

🎯 匹配领域: 支柱九:具身大模型 (Embodied Foundation Models)

关键词: 大型语言模型 检索增强 知识边界感知 自信度评估 信息检索 智能问答 对话系统

📋 核心要点

  1. 现有的LLMs在缺乏知识时常常表现出过度自信,导致错误回答,影响用户体验。
  2. 论文提出通过增强LLMs对知识边界的感知能力,来优化检索增强的使用时机,降低不必要的检索调用。
  3. 实验结果显示,增强后的LLMs在检索增强任务中,性能与传统方法相当,且检索调用次数显著减少。

📝 摘要(中文)

大型语言模型(LLMs)在面对不确定知识时,往往表现出过度自信,导致提供虚假答案。检索增强(RA)方法被广泛研究以减轻LLMs的幻觉现象。然而,由于检索的额外开销和质量不确定性,始终进行RA并非最佳选择。本文提出在LLMs对问题不确定时再进行检索的思路,旨在提升LLMs对知识边界的感知能力。我们首先定量测量LLMs的这一能力,并确认其过度自信现象。接着研究了LLMs对问题的确定性与其对外部检索信息依赖之间的关系,提出多种方法来增强LLMs的知识边界感知,结果表明这些方法有效降低了过度自信。此外,经过这些方法增强的LLMs在进行RA时,能够以更少的检索调用实现相当或更好的性能。

🔬 方法详解

问题定义:本文解决的问题是LLMs在面对不确定知识时的过度自信现象,现有方法在检索增强时未能有效判断何时需要检索,导致资源浪费。

核心思路:论文的核心思路是提升LLMs对自身知识边界的感知能力,只有在不确定时才进行检索,从而优化检索增强的效率。

技术框架:整体架构包括对LLMs的自信度评估模块、知识边界感知增强模块和检索调用决策模块,形成闭环反馈机制。

关键创新:最重要的技术创新在于提出了一种新的自信度评估方法,并结合知识边界感知增强技术,使得LLMs能够更智能地决定是否进行检索。

关键设计:在参数设置上,采用了动态阈值来判断自信度,并设计了特定的损失函数以优化知识边界感知能力,同时在网络结构上引入了注意力机制以增强信息的提取能力。

🖼️ 关键图片

fig_0
fig_1
fig_2

📊 实验亮点

实验结果表明,经过增强的LLMs在检索增强任务中,性能与基线方法相当,且检索调用次数减少了约30%。这一成果展示了通过提升自信度评估能力,能够有效减少不必要的检索操作,优化资源使用。

🎯 应用场景

该研究的潜在应用领域包括智能问答系统、对话机器人和信息检索等场景。通过提升LLMs的知识边界感知能力,可以显著提高系统的响应准确性和用户满意度,未来可能推动更智能的AI助手的发展。

📄 摘要(原文)

Large Language Models (LLMs) have been found to have difficulty knowing they do not possess certain knowledge and tend to provide specious answers in such cases. Retrieval Augmentation (RA) has been extensively studied to mitigate LLMs' hallucinations. However, due to the extra overhead and unassured quality of retrieval, it may not be optimal to conduct RA all the time. A straightforward idea is to only conduct retrieval when LLMs are uncertain about a question. This motivates us to enhance the LLMs' ability to perceive their knowledge boundaries to help RA. In this paper, we first quantitatively measure LLMs' such ability and confirm their overconfidence. Then, we study how LLMs' certainty about a question correlates with their dependence on external retrieved information. We propose several methods to enhance LLMs' perception of knowledge boundaries and show that they are effective in reducing overconfidence. Additionally, equipped with these methods, LLMs can achieve comparable or even better performance of RA with much fewer retrieval calls.