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

Provence:用于检索增强生成的高效且鲁棒的上下文剪枝

Provence: efficient and robust context pruning for retrieval-augmented generation

NAVER LABS Europe(NAVER LABS欧洲)

Nadezhda Chirkova, Thibault Formal, Vassilina Nikoulina, Stéphane Clinchant

AI总结:

本文提出Provence,一种高效鲁棒的上下文剪枝器,通过序列标注统一剪枝与重排序,在多领域RAG中实现近乎零成本且性能无损的上下文剪枝。

摘要:

检索增强生成改善了大型语言模型(LLMs)生成的各个方面,但由于长上下文以及无关检索信息传播到生成响应中,导致其面临计算开销。上下文剪枝通过在LLM生成之前移除检索上下文中的无关部分来处理这两个问题。然而,现有的上下文剪枝方法存在局限性,并未提供一个在各种场景下(例如,当上下文包含不同数量的相关信息或长度不同时,或在不同领域评估时)既高效又鲁棒的通用模型。在本研究中,我们填补了这一空白,并引入了Provence(Pruning and Reranking Of retrieVEd relevaNt ContExts),这是一种用于问答的高效且鲁棒的上下文剪枝器,能够动态检测给定上下文所需的剪枝量,并可直接开箱即用于各种领域。Provence的三个关键要素是将上下文剪枝任务表述为序列标注,统一上下文剪枝能力与上下文重排序,以及在多样化数据上进行训练。我们的实验结果表明,Provence在各种领域和设置下实现了上下文剪枝,且性能下降微乎其微至无下降,在标准RAG流程中几乎不增加成本。我们还进行了深入分析和各种消融实验,为未来训练上下文剪枝器提供了见解。

英文摘要:

Retrieval-augmented generation improves various aspects of large language models (LLMs) generation, but suffers from computational overhead caused by long contexts as well as the propagation of irrelevant retrieved information into generated responses. Context pruning deals with both aspects, by removing irrelevant parts of retrieved contexts before LLM generation. Existing context pruning approaches are however limited, and do not provide a universal model that would be both efficient and robust in a wide range of scenarios, e.g., when contexts contain a variable amount of relevant information or vary in length, or when evaluated on various domains. In this work, we close this gap and introduce Provence (Pruning and Reranking Of retrieVEd relevaNt ContExts), an efficient and robust context pruner for Question Answering, which dynamically detects the needed amount of pruning for a given context and can be used out-of-the-box for various domains. The three key ingredients of Provence are formulating the context pruning task as sequence labeling, unifying context pruning capabilities with context reranking, and training on diverse data. Our experimental results show that Provence enables context pruning with negligible to no drop in performance, in various domains and settings, at almost no cost in a standard RAG pipeline. We also conduct a deeper analysis alongside various ablations to provide insights into training context pruners for future work.

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

↑