ReFilter:通过门控过滤提升检索增强生成的鲁棒性
ReFilter: Improving Robustness of Retrieval-Augmented Generation via Gated Filter
AI总结:
ReFilter通过门控过滤提升检索增强生成的鲁棒性,实现跨领域问答任务的高性能表现。
摘要:
检索增强生成(RAG)已成为一种主流范式,用于在知识密集型问答中将大型语言模型(LLMs)与外部证据相结合。一个核心设计选择是如何将检索到的样本融合到LLMs中,其中现有的内部融合方法大致分为基于查询的融合、参数化融合和基于潜在特征的融合。尽管这些方法在适度的检索规模下效果显著,但当检索候选数量k增加时,它们往往无法优雅地扩展:更大的k可以提高证据覆盖范围,但现实中的top-k检索不可避免地包含无关或冗余的内容,并增加推理成本。为了解决这些限制,我们提出了ReFilter,一种新的基于潜在特征的融合框架,能够进行令牌级过滤和融合。ReFilter包含三个关键组件:一个用于编码上下文特征的上下文编码器,一个用于加权每个令牌的门控过滤器,以及一个用于将加权令牌特征整合到LLM隐藏状态中的令牌融合模块。我们的实验在四个通用领域问答基准上显示,ReFilter在域内适应和域外迁移下均取得最佳平均性能。ReFilter进一步泛化到五个生物医学问答基准,在零样本迁移中无需领域微调,达到70.01%的平均准确率,使用Qwen2.5-14B-Instruct。
英文摘要:
Retrieval-augmented generation (RAG) has become a dominant paradigm for grounding large language models (LLMs) with external evidence in knowledge-intensive question answering. A core design choice is how to fuse retrieved samples into the LLMs, where existing internal fusion approaches broadly fall into query-based fusion, parametric fusion, and latent-based fusion. Despite their effectiveness at modest retrieval scales, these methods often fail to scale gracefully as the number of retrieved candidates k increases: Larger k improves evidence coverage, yet realistic top-k retrieval inevitably contains irrelevant or redundant content and increases the inference cost. To address these limitations, we propose ReFilter, a novel latent-based fusion framework that performs token-level filtering and fusion. ReFilter consists of three key components: a context encoder for encoding context features, a gated filter for weighting each token, and a token fusion module for integrating the weighted token feature into the LLM's hidden states. Our experiments across four general-domain QA benchmarks show that ReFilter consistently achieves the best average performance under both in-domain adaptation and out-of-domain transfer. ReFilter further generalizes to five biomedical QA benchmarks in zero-shot transfer without domain fine-tuning, reaching 70.01% average accuracy with Qwen2.5-14B-Instruct.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。