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

DRAGIN:基于大型语言模型信息需求的动态检索增强生成

DRAGIN: Dynamic Retrieval Augmented Generation based on the Information Needs of Large Language Models

Tsinghua University(清华大学);Beijing Institute of Technology(北京理工大学)

Weihang Su, Yichen Tang, Qingyao Ai, Zhijing Wu, Yiqun Liu

AI总结:

针对动态RAG在检索时机和内容上的不足,提出DRAGIN框架,基于LLM实时信息需求决定何时及检索什么,在4个数据集上取得更优性能。

摘要:

动态检索增强生成(RAG)范式在大型语言模型(LLMs)的文本生成过程中,主动决定何时以及检索什么内容。该范式有两个关键要素:确定激活检索模块的最佳时机(决定何时检索),以及在触发检索后构造合适的查询(决定检索什么)。然而,当前的动态RAG方法在这两方面均存在不足。首先,决定何时检索的策略通常依赖于静态规则。此外,决定检索什么的策略通常将自身限制在LLM最近的句子或最后几个token上,而LLM的实时信息需求可能跨越整个上下文。为了克服这些局限性,我们引入了一个新框架DRAGIN,即基于LLMs实时信息需求的动态检索增强生成。我们的框架专门设计为在文本生成过程中,根据LLM的实时信息需求来决定何时以及检索什么。我们在4个知识密集型生成数据集上对DRAGIN及现有方法进行了全面评估。实验结果表明,DRAGIN在所有任务上均取得了更优的性能,证明了我们方法的有效性。我们已在GitHub上开源了所有代码、数据和模型:https://github.com/oneal2000/DRAGIN/tree/main

英文摘要:

Dynamic retrieval augmented generation (RAG) paradigm actively decides when and what to retrieve during the text generation process of Large Language Models (LLMs). There are two key elements of this paradigm: identifying the optimal moment to activate the retrieval module (deciding when to retrieve) and crafting the appropriate query once retrieval is triggered (determining what to retrieve). However, current dynamic RAG methods fall short in both aspects. Firstly, the strategies for deciding when to retrieve often rely on static rules. Moreover, the strategies for deciding what to retrieve typically limit themselves to the LLM's most recent sentence or the last few tokens, while the LLM's real-time information needs may span across the entire context. To overcome these limitations, we introduce a new framework, DRAGIN, i.e., Dynamic Retrieval Augmented Generation based on the real-time Information Needs of LLMs. Our framework is specifically designed to make decisions on when and what to retrieve based on the LLM's real-time information needs during the text generation process. We evaluate DRAGIN along with existing methods comprehensively over 4 knowledge-intensive generation datasets. Experimental results show that DRAGIN achieves superior performance on all tasks, demonstrating the effectiveness of our method. We have open-sourced all the code, data, and models in GitHub: https://github.com/oneal2000/DRAGIN/tree/main

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

↑