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

理解大语言模型的需求:面向检索增强生成的双重偏好对齐

Understand What LLM Needs: Dual Preference Alignment for Retrieval-Augmented Generation

Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学高瓴人工智能学院);School of Artificial Intelligence, Beijing University of Posts and Telecommunications(北京邮电大学人工智能学院)

Guanting Dong, Yutao Zhu, Chenghao Zhang, Zechen Wang, Zhicheng Dou, Ji-Rong Wen

AI总结:

提出DPA-RAG通用框架,通过外部重排序器偏好对齐与内部预对齐阶段,实现检索增强生成中LLM多样化知识偏好的双重对齐,在四个知识密集型QA数据集上优于基线。

摘要:

检索增强生成(RAG)在缓解大语言模型(LLM)的幻觉问题方面已展现出有效性。然而,将检索器与不同LLM的知识偏好进行对齐的难度,不可避免地给开发可靠的RAG系统带来了挑战。为解决这一问题,我们提出了DPA-RAG,一个旨在对齐RAG系统中多样化知识偏好的通用框架。具体而言,我们首先引入了一个偏好知识构建流程,并融合了五种新颖的查询增强策略,以缓解偏好数据稀缺问题。基于偏好数据,DPA-RAG实现了外部和内部偏好对齐:1)它将成对、逐点和对比偏好对齐能力联合集成到重排序器中,实现了RAG组件间的外部偏好对齐;2)它进一步在标准监督微调(SFT)之前引入了一个预对齐阶段,使LLM能够隐式捕获与其推理偏好相一致的知识,实现LLM的内部对齐。在四个知识密集型问答数据集上的实验结果表明,DPA-RAG优于所有基线,并能无缝集成黑盒和开源LLM阅读器。进一步的定性分析和讨论也为实现可靠的RAG系统提供了经验性指导。我们的代码已在https://github.com/dongguanting/DPA-RAG公开提供。

英文摘要:

Retrieval-augmented generation (RAG) has demonstrated effectiveness in mitigating the hallucination problem of large language models (LLMs). However, the difficulty of aligning the retriever with the diverse LLMs' knowledge preferences inevitably poses an inevitable challenge in developing a reliable RAG system. To address this issue, we propose DPA-RAG, a universal framework designed to align diverse knowledge preferences within RAG systems. Specifically, we initially introduce a preference knowledge construction pipline and incorporate five novel query augmentation strategies to alleviate preference data scarcity. Based on preference data, DPA-RAG accomplishes both external and internal preference alignment: 1) It jointly integrate pair-wise, point-wise, and contrastive preference alignment abilities into the reranker, achieving external preference alignment among RAG components. 2) It further introduces a pre-aligned stage before vanilla Supervised Fine-tuning (SFT), enabling LLMs to implicitly capture knowledge aligned with their reasoning preferences, achieving LLMs' internal alignment. Experimental results across four knowledge-intensive QA datasets demonstrate that DPA-RAG outperforms all baselines and seamlessly integrates both black-box and open-sourced LLM readers. Further qualitative analysis and discussions also provide empirical guidance for achieving reliable RAG systems. Our code is publicly available at https://github.com/dongguanting/DPA-RAG.

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

↑