DynamicRAG: Leveraging Outputs of Large Language Model as Feedback for Dynamic Reranking in Retrieval-Augmented Generation
DynamicRAG通过利用大型语言模型(LLM)的输出作为反馈,动态调整检索结果排序和数量,从而优化检索增强生成(RAG)系统的性能。
更新于 2026-02-06。作者:Jiashuo Sun、Xianrui Zhong、Sizhe Zhou、Jiawei Han。
中文摘要
检索增强生成(RAG)系统结合了大型语言模型(LLM)和外部知识检索,使其在知识密集型任务中非常有效。这些系统的一个关键但常被忽视的组件是重排器,它通过改进检索到的文档来提升生成质量和可解释性。选择最佳文档数量(k)的挑战尚未解决:文档太少可能会遗漏关键信息,而文档太多则可能引入噪声和低效。尽管最近的研究已经探索了基于LLM的重排器,但它们主要利用内部模型知识,而忽略了LLM可以提供的丰富监督信号,例如使用响应质量作为优化重排决策的反馈。在本文中,我们提出了DynamicRAG,这是一种新的RAG框架,其中重排器根据查询动态调整检索到的文档的顺序和数量。我们将重排器建模为一个通过强化学习(RL)优化的智能体,使用来自LLM输出质量的奖励。在七个知识密集型数据集上,DynamicRAG展现了卓越的性能,实现了最先进的结果。模型、数据和代码可在https://github.com/GasolSun36/DynamicRAG获取。
英文摘要
Retrieval-augmented generation (RAG) systems combine large language models (LLMs) with external knowledge retrieval, making them highly effective for knowledge-intensive tasks. A crucial but often under-explored component of these systems is the reranker, which refines retrieved documents to enhance generation quality and explainability. The challenge of selecting the optimal number of documents (k) remains unsolved: too few may omit critical information, while too many introduce noise and inefficiencies. Although recent studies have explored LLM-based rerankers, they primarily leverage internal model knowledge and overlook the rich supervisory signals that LLMs can provide, such as using response quality as feedback for optimizing reranking decisions. In this paper, we propose DynamicRAG, a novel RAG framework where the reranker dynamically adjusts both the order and number of retrieved documents based on the query. We model the reranker as an agent optimized through reinforcement learning (RL), using rewards derived from LLM output quality. Across seven knowledge-intensive datasets, DynamicRAG demonstrates superior performance, achieving state-of-the-art results. The model, data and code are available at https://github.com/GasolSun36/DynamicRAG
解读
一句话总结
DynamicRAG通过利用大型语言模型(LLM)的输出作为反馈,动态调整检索结果排序和数量,从而优化检索增强生成(RAG)系统的性能。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:RAG系统中,检索增强生成(RAG)系统结合了大型语言模型(LLMs)和外部知识检索,但检索器返回的文档数量难以确定,过多或过少都会影响生成质量。
- 现有方案不足:现有方法主要依赖于内部模型知识,忽略了LLM可以提供的丰富监督信号,如使用响应质量作为优化重排序决策的反馈。
- 研究目标:提出DynamicRAG,一种新的RAG框架,其中重排序器根据查询动态调整检索文档的顺序和数量。
问题2:论文的核心创新点是什么?
- 技术创新:将重排序器建模为强化学习(RL)代理,利用LLM输出质量作为奖励。
- 方法改进:动态调整检索文档的顺序和数量,提高生成质量。
- 优势:相比现有方法,DynamicRAG在多个知识密集型数据集上实现了最先进的性能。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在七个知识密集型数据集上进行了评估,包括NQ、TriviaQA、HotpotQA、2WikimQA、ASQA、FEVER和ELI5。
- 性能提升:DynamicRAG在所有数据集上都显著优于现有方法,实现了最先进的性能。
- 对比结果:与基线方法相比,DynamicRAG在多个性能指标上都有显著提升。
问题4:这个研究的实际应用价值是什么?
- 应用场景:知识密集型任务,如问答、文本摘要、机器翻译等。
- 实施建议:结合现有检索和生成模型,实现高效的RAG系统。
- 局限与展望:未来可以进一步探索更复杂的RL策略和奖励函数,以进一步提高系统的性能。
来源
机器可读索引:llms.txt