arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.13847cs.CLcs.AIcs.LG
收藏

DH-RAG:一种用于多轮对话的动态历史上下文驱动检索增强生成方法

DH-RAG: A Dynamic Historical Context-Powered Retrieval-Augmented Generation Method for Multi-Turn Dialogue

Hong Kong University of Science and Technology(香港科技大学);Huazhong University of Science and Technology(华中科技大学);University of California San Diego(加州大学圣地亚哥分校);University of Science and Technology of China(中国科学技术大学);Beihang University(北京航空航天大学)

Feiyuan Zhang, Dezhi Zhu, James Ming, Yilun Jin, Di Chai, Liu Yang, Han Tian, Zhaoxin Fan, Kai Chen

AI总结:

针对传统RAG忽视多轮对话动态历史的问题,本文提出DH-RAG,通过查询重构、历史信息更新及三种优化策略增强对话检索,并在多个基准上显著提升回应质量。

摘要:

检索增强生成(RAG)系统已在问答和多轮对话等应用中展现出显著优势。然而,传统RAG方法虽然利用静态知识库,却往往忽视正在进行的对话中动态历史信息的潜力。为弥合这一差距,我们提出DH-RAG,这是一种用于多轮对话的、由动态历史上下文驱动的检索增强生成方法。DH-RAG受到人类认知过程的启发,即在对话回应中同时利用长期记忆和即时历史上下文。DH-RAG围绕两个主要组件构建:一个是基于历史学习的查询重构模块,旨在通过综合当前交互与先前交互来生成有效查询;另一个是动态历史信息更新模块,在整个对话过程中持续刷新历史上下文。DH-RAG的核心是一个动态历史信息数据库,该数据库由查询重构模块内的三种策略进一步优化:历史查询聚类、层次匹配和思维链追踪。实验评估表明,DH-RAG在多个基准上显著优于传统模型,提升了回应相关性、连贯性和对话质量。

英文摘要:

Retrieval-Augmented Generation (RAG) systems have shown substantial benefits in applications such as question answering and multi-turn dialogue \citep{lewis2020retrieval}. However, traditional RAG methods, while leveraging static knowledge bases, often overlook the potential of dynamic historical information in ongoing conversations. To bridge this gap, we introduce DH-RAG, a Dynamic Historical Context-Powered Retrieval-Augmented Generation Method for Multi-Turn Dialogue. DH-RAG is inspired by human cognitive processes that utilize both long-term memory and immediate historical context in conversational responses \citep{stafford1987conversational}. DH-RAG is structured around two principal components: a History-Learning based Query Reconstruction Module, designed to generate effective queries by synthesizing current and prior interactions, and a Dynamic History Information Updating Module, which continually refreshes historical context throughout the dialogue. The center of DH-RAG is a Dynamic Historical Information database, which is further refined by three strategies within the Query Reconstruction Module: Historical Query Clustering, Hierarchical Matching, and Chain of Thought Tracking. Experimental evaluations show that DH-RAG significantly surpasses conventional models on several benchmarks, enhancing response relevance, coherence, and dialogue quality.

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

↑