arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.02659cs.CL
收藏

R4:用于检索增强大型语言模型的强化检索器-重排序器-响应器

R4: Reinforced Retriever-Reorder-Responder for Retrieval-Augmented Large Language Models

Taolin Zhang, Dongyang Li, Qizhou Chen, Chengyu Wang, Longtao Huang, Hui Xue, Xiaofeng He, Jun Huang

AI总结:

提出R4管道,通过文档顺序调整和表示增强学习检索文档排序,提升检索增强LLMs在知识密集型任务上的事实问答性能。

摘要:

检索增强的大型语言模型(LLMs)利用信息检索系统检索到的相关内容来生成正确的响应,旨在缓解幻觉问题。然而,现有的检索器-响应器方法通常将相关文档附加到LLMs的提示中以执行文本生成任务,而没有考虑检索文档与LLMs之间细粒度结构语义的交互。这个问题对于准确的响应生成尤为重要,因为LLMs在处理由长文档增强的输入提示时往往会在中间“迷失”。在这项工作中,我们提出了一种名为“强化检索器-重排序器-响应器”(R$^4$)的新管道,用于学习检索增强LLMs的文档排序,从而在LLMs的大量参数保持冻结的同时,进一步增强其生成能力。重排序学习过程根据生成响应的质量分为两个步骤:文档顺序调整和文档表示增强。具体而言,文档顺序调整旨在基于图注意力学习将检索到的文档顺序组织到开头、中间和结尾位置,从而最大化响应质量的强化奖励。文档表示增强通过文档级梯度对抗学习,进一步为质量差的响应细化检索文档的表示。大量实验表明,与各种公共数据集上的强基线相比,我们提出的管道在知识密集型任务上实现了更好的事实问答性能。源代码和训练模型将在论文被接受后发布。

英文摘要:

Retrieval-augmented large language models (LLMs) leverage relevant content retrieved by information retrieval systems to generate correct responses, aiming to alleviate the hallucination problem. However, existing retriever-responder methods typically append relevant documents to the prompt of LLMs to perform text generation tasks without considering the interaction of fine-grained structural semantics between the retrieved documents and the LLMs. This issue is particularly important for accurate response generation as LLMs tend to "lose in the middle" when dealing with input prompts augmented with lengthy documents. In this work, we propose a new pipeline named "Reinforced Retriever-Reorder-Responder" (R$^4$) to learn document orderings for retrieval-augmented LLMs, thereby further enhancing their generation abilities while the large numbers of parameters of LLMs remain frozen. The reordering learning process is divided into two steps according to the quality of the generated responses: document order adjustment and document representation enhancement. Specifically, document order adjustment aims to organize retrieved document orderings into beginning, middle, and end positions based on graph attention learning, which maximizes the reinforced reward of response quality. Document representation enhancement further refines the representations of retrieved documents for responses of poor quality via document-level gradient adversarial learning. Extensive experiments demonstrate that our proposed pipeline achieves better factual question-answering performance on knowledge-intensive tasks compared to strong baselines across various public datasets. The source codes and trained models will be released upon paper acceptance.

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

↑