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

MaFeRw:面向检索增强大型语言模型的多方面反馈查询重写

MaFeRw: Query Rewriting with Multi-Aspect Feedbacks for Retrieval-Augmented Large Language Models

Beijing Advanced Innovation Center for Future Blockchain and Privacy Computing(北京未来区块链与隐私计算高精尖创新中心);Institute of Artificial Intelligence, Beihang University(北京航空航天大学人工智能研究院);Beijing Academy of Blockchain and Edge Computing(北京区块链与边缘计算研究院);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所)

Yujing Wang, Hainan Zhang, Liang Pang, Binghui Guo, Hongwei Zheng, Zhiming Zheng

AI总结:

本文提出MaFeRw方法,通过整合检索过程与生成结果的多方面密集反馈,并利用PPO算法优化查询重写策略,有效提升了对话式RAG系统的生成质量与训练稳定性。

摘要:

在真实的RAG系统中,当前查询常包含口语省略和来自对话上下文的歧义指代,需要通过查询重写来更好地描述用户的信息需求。然而,由于从查询重写到响应生成的过程冗长,传统的基于上下文的重写对下游生成任务的提升微乎其微。部分研究者尝试利用强化学习结合生成反馈来辅助重写器,但这种稀疏奖励在多数情况下几乎无法提供指导,导致训练和生成结果不稳定。我们发现,用户的需求也反映在黄金文档、检索文档和真实答案中。因此,将这些多方面密集奖励反馈给查询重写,可以获得更稳定且令人满意的响应。本文提出了一种新颖的查询重写方法MaFeRw,它通过整合来自检索过程和生成结果的多方面反馈来提升RAG性能。具体而言,我们首先使用人工数据训练T5模型进行重写器初始化。接着,我们设计了三个指标作为强化学习反馈:重写查询与黄金文档的相似度、排序指标,以及生成结果与真实答案之间的ROUGE。受RLAIF启发,我们为上述指标训练了三种奖励模型以实现更高效的训练。最后,我们将这些奖励模型的分数结合作为反馈,并使用PPO算法探索最优的查询重写策略。在两个对话式RAG数据集上的实验结果表明,与基线相比,MaFeRw取得了更优的生成指标和更稳定的训练效果。

英文摘要:

In a real-world RAG system, the current query often involves spoken ellipses and ambiguous references from dialogue contexts, necessitating query rewriting to better describe user's information needs. However, traditional context-based rewriting has minimal enhancement on downstream generation tasks due to the lengthy process from query rewriting to response generation. Some researchers try to utilize reinforcement learning with generation feedback to assist the rewriter, but these sparse rewards provide little guidance in most cases, leading to unstable training and generation results. We find that user's needs are also reflected in the gold document, retrieved documents and ground truth. Therefore, by feeding back these multi-aspect dense rewards to query rewriting, more stable and satisfactory responses can be achieved. In this paper, we propose a novel query rewriting method MaFeRw, which improves RAG performance by integrating multi-aspect feedback from both the retrieval process and generated results. Specifically, we first use manual data to train a T5 model for the rewriter initialization. Next, we design three metrics as reinforcement learning feedback: the similarity between the rewritten query and the gold document, the ranking metrics, and ROUGE between the generation and the ground truth. Inspired by RLAIF, we train three kinds of reward models for the above metrics to achieve more efficient training. Finally, we combine the scores of these reward models as feedback, and use PPO algorithm to explore the optimal query rewriting strategy. Experimental results on two conversational RAG datasets demonstrate that MaFeRw achieves superior generation metrics and more stable training compared to baselines.

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

↑