通过分块筛选提升大模型问答的鲁棒性
ReFilter: Improving Robustness of Retrieval-Augmented Generation via Gated Filter
- 在隐空间对检索内容进行逐标记过滤与融合
- 在4个通用问答数据集上平均表现最佳,零样本迁移至生物医学领域达70.01%准确率
- 适合需要高可靠性知识问答的应用场景
检索增强生成(RAG)已成为将外部证据融入大语言模型以支持知识密集型问答的主流范式。核心设计在于如何融合检索到的样本,现有内部融合方法主要分为基于查询的融合、参数化融合和基于潜在空间的融合。尽管这些方法在中等检索规模下表现良好,但随着检索候选数k增加时难以有效扩展:更大的k虽提升证据覆盖度,但真实top-k检索必然包含无关或冗余内容,并增加推理开销。为此,我们提出ReFilter,一种新型基于潜在空间的融合框架,实现逐标记级别的过滤与融合。ReFilter包含三个关键组件:上下文编码器用于编码上下文特征,门控过滤器对每个标记加权,标记融合模块将加权后的标记特征整合进LLM的隐藏状态。在四个通用领域问答基准上的实验表明,无论是在域内适应还是域外迁移下,ReFilter均持续取得最佳平均性能。此外,ReFilter无需领域微调即可在五个生物医学问答基准上实现零样本迁移,使用Qwen2.5-14B-Instruct模型达到70.01%的平均准确率。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。