arXiv:2410.09584cs.CLcs.AI2024-10被引 9

构建首个可验证的RAG指令对齐数据集与评测基准

Toward General Instruction-Following Alignment for Retrieval-Augmented Generation

  • 设计自动化合成管道生成复杂指令并验证质量
  • 产出超10万条高质量RAG问答数据,覆盖22类指令约束
  • 提供可集成的评测基准,助力通用指令遵循能力提升

自然指令遵循对检索增强生成(RAG)系统的有效应用至关重要。尽管大语言模型(LLMs)取得进展,但针对RAG领域指令遵循(IF)对齐的评估与改进研究仍有限。为此,我们提出VIF-RAG——首个自动、可扩展且可验证的RAG指令对齐合成管道。首先手工构建少量原子指令(<100条),制定组合规则生成并验证复杂指令;接着利用监督模型进行指令重写,并通过Python执行器自动验证指令质量;最后将指令与大量RAG及通用数据样本结合,通过自动化流程构建高质量的VIF-RAG-QA数据集(>10万条)。为弥补RAG系统指令遵循自动评估的缺口,我们引入FollowRAG基准,包含约3000个测试样本,覆盖22类通用指令约束及4个知识密集型QA数据集。该基准可无缝集成于不同RAG评测体系。基于FollowRAG与8个主流的IF及基础能力评测基准,我们证明VIF-RAG显著提升大模型在广泛指令约束下的表现,并有效发挥其在RAG场景中的能力。进一步分析为实现RAG系统中的指令对齐提供了实用洞见。代码与数据集已开源。

原文摘要 · Abstract (English)

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.

RAG指令对齐数据合成评测基准

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。