arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.09584cs.CLcs.AIcs.IRcs.LG
收藏

面向检索增强生成的通用指令遵循对齐

Toward General Instruction-Following 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, Xiaoshuai Song, Yutao Zhu, Runqi Qiao, Zhicheng Dou, Ji-Rong Wen

AI总结:

针对检索增强生成(RAG)系统中指令遵循对齐评估与改进的研究空白,提出了自动化、可验证的合成流水线VIF-RAG及高质量数据集,并构建了FollowRAG基准,显著提升了大型语言模型在RAG场景下的指令遵循能力。

摘要:

遵循自然指令对于检索增强生成(RAG)系统的有效应用至关重要。尽管大型语言模型(LLMs)取得了最新进展,但关于评估和改进RAG领域内指令遵循(IF)对齐的研究仍然有限。为了解决这个问题,我们提出了VIF-RAG,这是首个用于RAG系统中指令遵循对齐的自动化、可扩展且可验证的合成流水线。我们首先手动制作了一小部分原子指令(<100),并开发了组合规则,以合成和验证种子集的复杂指令。然后,我们使用监督模型进行指令重写,同时生成代码,通过Python执行器自动验证指令质量。最后,我们将这些指令与广泛的RAG和通用数据样本相结合,通过自动化流程扩展至高质量的VIF-RAG-QA数据集(>100k)。为了进一步弥合RAG系统指令遵循自动评估的差距,我们引入了FollowRAG基准,该基准包含约3K测试样本,覆盖22类通用指令约束和四个知识密集型QA数据集。得益于其稳健的流水线设计,FollowRAG可以与不同的RAG基准无缝集成。使用FollowRAG以及八个广泛使用的IF和LLMs基础能力基准,我们证明VIF-RAG在广泛的通用指令约束下显著增强了LLM性能,同时有效利用了其在RAG场景中的能力。进一步的分析为在RAG系统中实现IF对齐提供了实用见解。我们的代码和数据集发布在https://FollowRAG.github.io。

英文摘要:

Following natural instructions is crucial for the effective application of Retrieval-Augmented Generation (RAG) systems. Despite recent advancements in Large Language Models (LLMs), research on assessing and improving instruction-following (IF) alignment within the RAG domain remains limited. To address this issue, we propose VIF-RAG, the first automated, scalable, and verifiable synthetic pipeline for instruction-following alignment in RAG systems. We start by manually crafting a minimal set of atomic instructions (<100) and developing combination rules to synthesize and verify complex instructions for a seed set. We then use supervised models for instruction rewriting while simultaneously generating code to automate the verification of instruction quality via a Python executor. Finally, we integrate these instructions with extensive RAG and general data samples, scaling up to a high-quality VIF-RAG-QA dataset (>100k) through automated processes. To further bridge the gap in instruction-following auto-evaluation for RAG systems, we introduce FollowRAG Benchmark, which includes approximately 3K test samples, covering 22 categories of general instruction constraints and four knowledge-intensive QA datasets. Due to its robust pipeline design, FollowRAG can seamlessly integrate with different RAG benchmarks. Using FollowRAG and eight widely-used IF and foundational abilities benchmarks for LLMs, we demonstrate that VIF-RAG markedly enhances LLM performance across a broad range of general instruction constraints while effectively leveraging its capabilities in RAG scenarios. Further analysis offers practical insights for achieving IF alignment in RAG systems. Our code and datasets are released at https://FollowRAG.github.io.

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

↑