检索路由器:文档检索的联合模态与架构选择

·

研究论文 · 2026/08/27

文档检索在金融、医疗和法律等高风险信息获取场景中日益重要。现代检索流程在模态(文本或多模态)和架构(稠密或晚期交互)上存在差异,这些选择迫使人们在效果与速度之间做出权衡:最有效的流程过于缓慢和昂贵,无法大规模运行,而最快的流程则无法从复杂文档中检索到证据。本文表明这种权衡并非必要,因为并非每个查询都需要相同的流程。在金融和科学语料库的基准测试中,没有静态流程占据主导地位。我们提出了 RetrievalRouter,一个轻量级的查询感知路由器,仅根据查询文本学习哪种检索流程最适合每个查询。通过一个可调参数即可展示完整的准确率-延迟前沿,对于每个静态基线,RetrievalRouter 都能提供一个同时更准确且更快的操作点。与最佳静态基线相比,RetrievalRouter 的准确率提高了 2.5%,速度提高了 12.4 倍。此外,与先前的自适应策略选择方法相比,RetrievalRouter 在面向准确率的设置中显著提高了 nDCG@5,同时在面向延迟的设置中在 nDCG@5 和延迟上均达到或数值上优于它们。代码和数据可在 https://github.com/emrekuruu/retrieval-router 获取。

该论文提出了一种新颖的查询感知路由方法,有效解决了文档检索中效果与速度的权衡问题,实验结果表明其在准确率和延迟上均优于现有方法,具有实际应用价值。

Document retrieval increasingly supports high-stakes information access in finance, healthcare, and law. Modern retrieval pipelines vary both in modality (text or multimodal) and in retrieval architecture (dense or late-interaction). These choices impose a hard compromise: the most effective pipelines are too slow and expensive to run at scale, while the fastest fail to retrieve evidence from complex documents. Practitioners must therefore choose between missed evidence and unusable latency, with no principled basis for adapting that choice at the query level. We show that this compromise is unnecessary. Not every query requires the same pipeline. Across benchmarks spanning financial and scientific corpora, no static pipeline dominates. We introduce RetrievalRouter, a lightweight query-aware router that learns, from the query text alone, which retrieval pipeline best fits each query. A single tunable parameter exposes the full accuracy-latency frontier, and for every static baseline, RetrievalRouter offers an operating point that is simultaneously more accurate and faster. Against the best static baseline, RetrievalRouter is 2.5% more accurate and 12.4 times faster. Furthermore, compared with prior adaptive strategy selection methods, RetrievalRouter achieves significantly higher nDCG@5 across accuracy-oriented settings, while matching or numerically outperforming them on both nDCG@5 and latency in latency-oriented settings. Our code and data are available at https://github.com/emrekuruu/retrieval-router.

阅读原文

参与讨论