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

直接检索增强优化:协同知识选择与语言模型

Direct Retrieval-augmented Optimization: Synergizing Knowledge Selection and Language Models

Zhengliang Shi, Lingyong Yan, Weiwei Sun, Yue Feng, Pengjie Ren, Xinyu Ma, Shuaiqiang Wang, Dawei Yin, Maarten de Rijke, Zhaochun Ren

AI总结:

本文提出直接检索增强优化框架DRO,通过变分方法端到端联合训练知识选择模型与LLM生成器,在多个数据集上相比最佳基线实现5%-15%的EM和F1提升。

摘要:

检索增强生成(RAG)将大语言模型(LLM)与检索器集成,以访问外部知识,从而提升LLM在知识密集型任务中生成的事实准确性。为了优化RAG性能,大多数先前工作独立微调检索器以适应冻结的LLM,或训练LLM使用现成检索器返回的文档,缺乏端到端的训练监督。近期工作通过联合训练这两个组件来解决这一局限,但依赖于文档独立性的过度简化假设,这一假设因远离真实场景而受到批评。因此,有效优化整体RAG性能仍然是一个关键挑战。我们提出一个名为DRO的直接检索增强优化框架,能够对两个关键组件进行端到端训练:(i)生成式知识选择模型和(ii)LLM生成器。DRO在两个阶段之间交替进行:(i)文档排列估计和(ii)重加权最大化,通过变分方法逐步改进RAG组件。在估计步骤中,我们将文档排列视为隐变量,并通过应用重要性采样策略直接从选择模型中估计其分布。在最大化步骤中,我们使用重要性权重校准优化期望,并联合训练选择模型和LLM生成器。我们的理论分析表明,DRO类似于强化学习中的策略梯度方法。在五个数据集上进行的大量实验表明,DRO在EM和F1指标上比最佳基线提升了5%-15%。我们还提供了深入实验,以定性分析DRO的稳定性、收敛性和方差。

英文摘要:

Retrieval-augmented generation (RAG) integrates large language models ( LLM s) with retrievers to access external knowledge, improving the factuality of LLM generation in knowledge-grounded tasks. To optimize the RAG performance, most previous work independently fine-tunes the retriever to adapt to frozen LLM s or trains the LLMs to use documents retrieved by off-the-shelf retrievers, lacking end-to-end training supervision. Recent work addresses this limitation by jointly training these two components but relies on overly simplifying assumptions of document independence, which has been criticized for being far from real-world scenarios. Thus, effectively optimizing the overall RAG performance remains a critical challenge. We propose a direct retrieval-augmented optimization framework, named DRO, that enables end-to-end training of two key components: (i) a generative knowledge selection model and (ii) an LLM generator. DRO alternates between two phases: (i) document permutation estimation and (ii) re-weighted maximization, progressively improving RAG components through a variational approach. In the estimation step, we treat document permutation as a latent variable and directly estimate its distribution from the selection model by applying an importance sampling strategy. In the maximization step, we calibrate the optimization expectation using importance weights and jointly train the selection model and LLM generator. Our theoretical analysis reveals that DRO is analogous to policy-gradient methods in reinforcement learning. Extensive experiments conducted on five datasets illustrate that DRO outperforms the best baseline with 5%-15% improvements in EM and F1. We also provide in-depth experiments to qualitatively analyze the stability, convergence, and variance of DRO.

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

↑