检索增强生成组合性
研究论文 · 2026/10/22
检索增强生成(RAG)将大语言模型锚定于外部知识。现代流程结合了嵌入、分块、检索、重排序、查询增强、上下文压缩和代理验证等技术,但这些技术通常被单独评估。目前尚不清楚它们的孤立增益在组合后是否仍然存在,检索质量和答案忠实度是否倾向于相同的设计选择,以及从小规模语料库得出的结论是否在大规模下成立。我们预先声明了三个假设,并引入了LASAGNA,一个用于受控RAG评估的开源框架。我们在八个基准和从5K到200K文档的语料库上测试了450种配置。得出了三个发现。第一,来自RAG流程不同阶段的单独强势技术不一定能组合:三种检索技术预测组合提升+47%,但一起使用时仅提升+17%。第二,组件增益对检索和忠实度的叠加方式不同,优化一个可能会损害另一个。第三,最佳组合随着语料库增长而变化:在小语料库上获胜的组合在大规模下可能不再最佳。这些发现表明,孤立测量的增益不是现实性能的可靠预测指标,新的RAG技术应该与完整的周边技术栈一起测试。我们呼吁研究人员这样做,并提供LASAGNA以简化这些实验。
该研究挑战了RAG技术孤立评估的惯例,通过大规模实验揭示组合效应与规模效应,对RAG系统设计和评估方法论具有重要警示意义,并提供了可复用的开源工具。
Retrieval Augmented Generation (RAG) grounds large language models in external knowledge. Modern pipelines combine embedding, chunking, retrieval, reranking, query augmentation, context compression, and agentic verification, yet these techniques are typically evaluated one at a time. It remains unclear whether their isolated gains survive composition, whether retrieval quality and answer faithfulness favor the same design choices, and whether conclusions from small corpora hold at large scale. We pre-declare three hypotheses and introduce LASAGNA, an open-source framework for controlled RAG evaluation. We test 450 configurations across eight benchmarks and corpora ranging from 5K to 200K documents. Three findings emerge. First, individually strong techniques from different phases of a RAG pipeline do not necessarily compose: three retrieval techniques predict a +47% combined improvement but deliver only +17% when used together. Second, component gains stack differently for retrieval and faithfulness, and optimizing one can hurt the other. Third, the best composition changes as the corpus grows: the combination that wins on a small corpus may not remain best at large scale. These findings show that gains measured in isolation are not reliable predictors of realistic performance, and that new RAG techniques should be tested with the full surrounding stack. We call on researchers to do so and supply LASAGNA to simplify these experiments.