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

相关性并非全部:通过多标准重排序利用推理时计算扩展 RAG 系统

Relevance Isn't All You Need: Scaling RAG Systems With Inference-Time Compute Via Multi-Criteria Reranking

Microsoft(微软公司);Scale AI(Scale AI公司)

Will LeVine, Bijan Varjavand

AI总结:

本文提出 REBEL 方法,通过思维链提示注入多标准重排序,使 RAG 系统能随推理时计算扩展,同时提升检索相关性与答案质量。

摘要:

现代大语言模型(LLM)系统通常依赖检索增强生成(RAG),旨在收集对响应生成有用的上下文。这些 RAG 系统通常严格优化以检索与查询最大相关的上下文。然而,传统理论表明,仅寻求最大化上下文相关性而没有任何额外明确标准的检索系统可能会造成信息瓶颈。我们通过展示在标准 RAG 流水线中,仅最大化上下文相关性会降低下游响应质量,在现代 LLM 时代再次证实了这一发现。作为回应,我们展示了对现有 RAG 方法的评估,这些评估同时考虑了上下文相关性和答案质量。这些评估引入了一个新发现:在考虑我们的综合指标时,现有 RAG 系统在推理时计算使用方面扩展性较差。我们引入了“RErank BEyond reLevance(REBEL)”,它通过使用思维链提示(以及可选的多轮对话)注入多标准优化,使 RAG 系统能够随推理时计算进行扩展。最终,这实现了一条新的性能/速度权衡曲线,使 RAG 系统能够在推理时间增加时同时实现更高的检索上下文相关性和更优的答案质量。我们在 llama-index 中实现该方法的代码可在以下 PR 中找到:https://github.com/run-llama/llama_index/pull/17590。使用该 llama-index 实现运行实验的代码可在 https://github.com/microsoft/REBEL 找到。

英文摘要:

Modern Large Language Model (LLM) systems typically rely on Retrieval Augmented Generation (RAG) which aims to gather context that is useful for response generation. These RAG systems typically optimize strictly towards retrieving context that is maximally relevant to the query. However, conventional theory suggests that retrieval systems which seek to maximize context relevance without any additional explicit criteria can create information bottlenecks. We reaffirm this finding in the modern age of LLM's by showing that in standard RAG pipelines, maximizing for context relevance alone can degrade downstream response quality. In response, we show evaluations of existing RAG methods which account for both context relevance and answer quality. These evaluations introduce a novel finding that existing RAG systems scale poorly with inference time compute usage when considering our combined metric. We introduce "RErank BEyond reLevance (REBEL)", which enables RAG systems to scale with inference-time compute via injection of multi-criteria optimization using Chain-of-Thought prompting (and optionally Multi-Turn dialogue). Ultimately, this enables a new performance/speed tradeoff curve, where RAG systems are able to achieve both higher relevance of retrieved contexts and superior answer quality as inference time increases. Code for the implementation of our method in llama-index can be found at the following PR: https://github.com/run-llama/llama_index/pull/17590. Code for running experiments using this llama-index implementation can be found at https://github.com/microsoft/REBEL.

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

↑