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

SmartRAG:从环境反馈中联合学习RAG相关任务

SmartRAG: Jointly Learn RAG-Related Tasks From the Environment Feedback

Shanghai Jiao Tong University(上海交通大学);The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳))

Jingsheng Gao, Linxu Li, Weiyuan Li, Yuzhuo Fu, Bin Dai

AI总结:

SmartRAG提出通过强化学习联合优化RAG系统中的策略网络与检索器,使检索决策、查询重写和答案生成协同工作,以最小检索成本实现优于分别优化的性能。

摘要:

RAG系统由多个模块协同工作组成,但这些模块通常是分别训练的。我们认为,像RAG这样包含多个模块的系统应当进行联合优化,以实现最优性能。为了证明这一点,我们设计了一个名为SmartRAG的特定流程,其中包括一个策略网络和一个检索器。策略网络可以充当:1)决策者,决定何时进行检索;2)查询重写器,生成最适合检索器的查询;3)答案生成器,在有或无观察结果的情况下生成最终响应。随后,我们提出使用强化学习算法对整个系统进行联合优化,奖励设计旨在鼓励系统以最小的检索成本实现最佳性能。当进行联合优化时,所有模块都能感知其他模块的工作方式,从而找到作为一个完整系统协同工作的最佳方式。实证结果表明,联合优化的SmartRAG能够比分别优化的对应系统取得更好的性能。

英文摘要:

RAG systems consist of multiple modules to work together. However, these modules are usually separately trained. We argue that a system like RAG that incorporates multiple modules should be jointly optimized to achieve optimal performance. To demonstrate this, we design a specific pipeline called \textbf{SmartRAG} that includes a policy network and a retriever. The policy network can serve as 1) a decision maker that decides when to retrieve, 2) a query rewriter to generate a query most suited to the retriever, and 3) an answer generator that produces the final response with/without the observations. We then propose to jointly optimize the whole system using a reinforcement learning algorithm, with the reward designed to encourage the system to achieve the best performance with minimal retrieval cost. When jointly optimized, all the modules can be aware of how other modules are working and thus find the best way to work together as a complete system. Empirical results demonstrate that the jointly optimized SmartRAG can achieve better performance than separately optimized counterparts.

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

↑