arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2305.14283cs.CL
收藏

检索增强大型语言模型的查询重写

Query Rewriting for Retrieval-Augmented Large Language Models

Shanghai Jiao Tong University(上海交通大学);Microsoft Research Asia(微软亚洲研究院);Microsoft Azure AI(微软Azure人工智能部门)

Xinbei Ma, Yeyun Gong, Pengcheng He, Hai Zhao, Nan Duan

AI总结:

本文提出Rewrite-Retrieve-Read框架,通过强化学习训练小型语言模型作为查询重写器,优化检索增强LLM的搜索查询,在开放域和多选QA任务上取得一致性能提升。

摘要:

大型语言模型(LLMs)在检索后阅读流程中作为强大的黑盒阅读器,在知识密集型任务中取得了显著进展。本研究从查询重写的角度,为检索增强LLMs引入了一个新框架Rewrite-Retrieve-Read,以替代以往的检索后阅读流程。与以往专注于适配检索器或阅读器的研究不同,我们的方法关注搜索查询本身的适配,因为在检索中输入文本与所需知识之间不可避免地存在差距。我们首先提示LLM生成查询,然后使用网络搜索引擎检索上下文。此外,为了更好地使查询与冻结模块对齐,我们为该流程提出了一种可训练方案。采用一个小型语言模型作为可训练的重写器,以迎合黑盒LLM阅读器。该重写器通过强化学习利用LLM阅读器的反馈进行训练。评估在下游任务、开放域QA和多选QA上进行。实验结果显示出一致的性能提升,表明我们的框架被证明有效且可扩展,并为检索增强LLM带来了新框架。

英文摘要:

Large Language Models (LLMs) play powerful, black-box readers in the retrieve-then-read pipeline, making remarkable progress in knowledge-intensive tasks. This work introduces a new framework, Rewrite-Retrieve-Read instead of the previous retrieve-then-read for the retrieval-augmented LLMs from the perspective of the query rewriting. Unlike prior studies focusing on adapting either the retriever or the reader, our approach pays attention to the adaptation of the search query itself, for there is inevitably a gap between the input text and the needed knowledge in retrieval. We first prompt an LLM to generate the query, then use a web search engine to retrieve contexts. Furthermore, to better align the query to the frozen modules, we propose a trainable scheme for our pipeline. A small language model is adopted as a trainable rewriter to cater to the black-box LLM reader. The rewriter is trained using the feedback of the LLM reader by reinforcement learning. Evaluation is conducted on downstream tasks, open-domain QA and multiple-choice QA. Experiments results show consistent performance improvement, indicating that our framework is proven effective and scalable, and brings a new framework for retrieval-augmented LLM.

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

↑