检索增强生成的组合性
Retrieval Augmented Generation Compositionality
AI总结:
该研究针对RAG技术孤立评估的问题,推出LASAGNA框架,经多基准测试发现RAG技术组合增益低于单独增益、优化目标存在冲突且最佳组合随语料库规模变化,呼吁在完整流程中测试RAG技术。
摘要:
检索增强生成(Retrieval Augmented Generation,RAG)将大型语言模型与外部知识相结合。现代RAG流程整合了嵌入、分块、检索、重排序、查询增强、上下文压缩及智能体验证等技术,但这些技术通常是单独评估的。目前仍不清楚:它们的孤立增益在组合后是否仍有效;检索质量与答案忠实度是否倾向于相同的设计选择;小语料库得出的结论在大规模场景下是否成立。我们预先声明了三个假设,并推出LASAGNA——一个用于受控RAG评估的开源框架。我们在8个基准及规模从5000到200000份文档的语料库上测试了450种配置,得出三个发现:第一,RAG流程不同阶段的单独优势技术未必能组合生效:三种检索技术单独使用可带来+47%的综合提升,但组合使用仅能带来+17%的提升;第二,组件增益对检索和忠实度的叠加效果不同,优化其中一项可能损害另一项;第三,最佳组合会随语料库规模变化:在小语料库上表现最佳的组合,在大规模场景下未必仍是最优。这些发现表明,孤立测量的增益无法可靠预测实际性能,新的RAG技术应在完整的周边流程中进行测试,我们呼吁研究人员这样做,并提供LASAGNA以简化此类实验。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。