让大模型学会在信息不足时拒绝回答,提升问答准确性
Retrieval Augmented Question Answering: When Should LLMs Admit Ignorance?
- 分块递进式提示,动态调节信息块大小以平衡相关与干扰信息
- 在三个公开数据集上性能相当,但用更少的上下文token
- 发现模型常因缺乏信息而胡编答案,需增强其拒答能力
大型语言模型(LLMs)上下文窗口的扩展推动了更广泛上下文在检索增强生成中的应用。我们研究了基于检索的问答中使用LLM的方法。尽管更长的上下文便于引入目标知识,但也带来更多无关信息,干扰生成过程并降低性能。为此,我们设计了一种自适应提示策略:将检索到的信息分块,逐块顺序输入LLM进行问答。调整块大小可在保留相关性与减少冗余之间实现权衡。在三个开放域问答数据集上的实验表明,该策略在性能上可媲美标准提示,同时使用更少的标记(tokens)。分析显示,当信息不足时,模型往往生成错误答案而非拒绝回答,这是主要错误来源之一。这一发现凸显了提升模型在信息不足时有效拒答能力的重要性。
原文摘要 · Abstract (English)
The success of expanded context windows in Large Language Models (LLMs) has driven increased use of broader context in retrieval-augmented generation. We investigate the use of LLMs for retrieval augmented question answering. While longer contexts make it easier to incorporate targeted knowledge, they introduce more irrelevant information that hinders the model's generation process and degrades its performance. To address the issue, we design an adaptive prompting strategy which involves splitting the retrieved information into smaller chunks and sequentially prompting a LLM to answer the question using each chunk. Adjusting the chunk size allows a trade-off between incorporating relevant information and reducing irrelevant information. Experimental results on three open-domain question answering datasets demonstrate that the adaptive strategy matches the performance of standard prompting while using fewer tokens. Our analysis reveals that when encountering insufficient information, the LLM often generates incorrect answers instead of declining to respond, which constitutes a major source of error. This finding highlights the need for further research into enhancing LLMs' ability to effectively decline requests when faced with inadequate information.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。