2025-05-13 · 专家 · 机器学习 · 自然语言处理

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:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt