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

何时检索:教 LLM 有效利用信息检索

When to Retrieve: Teaching LLMs to Utilize Information Retrieval Effectively

University of Bozen-Bolzano(博尔扎诺大学);Fondazione Bruno Kessler(布鲁诺·凯斯勒基金会);Cohere(Cohere公司);University of the Basque Country UPV/EHU(巴斯克大学UPV/EHU)

Tiziano Labruna, Jon Ander Campos, Gorka Azkune

AI总结:

本文提出 Adapt-LLM,利用开放域问答数据训练模型在不知道答案时生成 <RET> 触发检索,并在 PopQA 上优于始终检索、始终记忆和阈值检索策略。

摘要:

在本文中,我们展示了 Large Language Models(LLM,大语言模型)如何能够有效地学会仅在回答给定问题需要额外上下文时,才使用现成的 information retrieval(IR,信息检索)系统。考虑到 IR 系统的性能,问答的最优策略并不总是需要外部信息检索;相反,它往往涉及利用 LLM 自身的参数化记忆。先前研究已在 PopQA 数据集中发现这一现象:最流行的问题可以利用 LLM 的参数化记忆得到有效解答,而不太流行的问题则需要使用 IR 系统。在此基础上,我们提出了一种面向 LLM 的定制化训练方法,利用现有的开放域问答数据集。在该方法中,LLM 被训练为在不知道某个问题的答案时生成特殊 token <RET>。我们在 PopQA 数据集上对 Adaptive Retrieval LLM(Adapt-LLM,自适应检索 LLM)进行评估,结果表明,相较于同一 LLM 的三种配置,其性能有所提升:(i)对所有问题都检索信息;(ii)始终使用 LLM 的参数化记忆;(iii)使用流行度阈值来决定何时使用检索器。通过分析,我们证明 Adapt-LLM 能够在判断自己不知道如何回答问题时生成 <RET> token,以表明需要 IR;而在它选择仅依赖自身参数化记忆时,则能达到显著较高的准确率。

英文摘要:

In this paper, we demonstrate how Large Language Models (LLMs) can effectively learn to use an off-the-shelf information retrieval (IR) system specifically when additional context is required to answer a given question. Given the performance of IR systems, the optimal strategy for question answering does not always entail external information retrieval; rather, it often involves leveraging the parametric memory of the LLM itself. Prior research has identified this phenomenon in the PopQA dataset, wherein the most popular questions are effectively addressed using the LLM's parametric memory, while less popular ones require IR system usage. Following this, we propose a tailored training approach for LLMs, leveraging existing open-domain question answering datasets. Here, LLMs are trained to generate a special token, <RET>, when they do not know the answer to a question. Our evaluation of the Adaptive Retrieval LLM (Adapt-LLM) on the PopQA dataset showcases improvements over the same LLM under three configurations: (i) retrieving information for all the questions, (ii) using always the parametric memory of the LLM, and (iii) using a popularity threshold to decide when to use a retriever. Through our analysis, we demonstrate that Adapt-LLM is able to generate the <RET> token when it determines that it does not know how to answer a question, indicating the need for IR, while it achieves notably high accuracy levels when it chooses to rely only on its parametric memory.

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

↑