Manuscript Offprint

arXiv:2608.25625

RetrievalRouter: Joint Modality and Architecture Selection for Document Retrieval

Emre Kuru, Mehmet Onur Keskin, Reza Farahbakhsh, Noel Crespi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

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× 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: https://github.com/emrekuruu/retrieval-router

1 Introduction

Document retrieval underpins information access in high-stakes domains such as finance (Li et al., 2025), healthcare (Xia et al., 2024), and law (Gao et al., 2024). In these settings, retrieving the right evidence is essential, as missing or irrelevant documents can lead to unsupported critical decisions.

Modern document retrieval pipelines vary along two design axes. The first is modality: text-based retrievers operate on text extracted from documents (Lin and Byrne, 2022), while multimodal retrievers (Ma et al., 2024; Faysse et al., 2024) operate directly on rendered page images. The second is architecture: dense retrievers (Karpukhin et al., 2020) compress each document into a single embedding for fast retrieval, while late-interaction architectures (Khattab and Zaharia, 2020) preserve fine-grained per-token embeddings at higher cost. These choices are not free. Accuracy and efficiency move in opposite directions across the space: configurations that handle complex documents most reliably are also the slowest, while configurations cheap enough for production traffic fail silently on those same documents (Kuru and Keskin, 2026). Without a principled way to predict which pipeline a given query needs, practitioners must commit to a single configuration at design time and pay the cost on every query.

We show that this compromise is unnecessary. Not every query requires the same pipeline. Across 11 retrieval benchmarks spanning financial, scientific, and open-domain corpora, we find that each pipeline's failures are query-dependent and asymmetric. Along the modality axis, text-based pipelines degrade sharply on queries against visually complex documents, while multimodal pipelines fall behind on queries that require nuanced textual understanding. Along the architecture axis, dense retrievers match late-interaction performance on the majority of queries at a fraction of the cost, but late-interaction architectures remain essential on the subset of queries where dense matching fails.

To address this gap, we introduce Retrieval-Router, a lightweight router that, given only the query text, predicts both the modality and the architecture of the retrieval pipeline to apply. To our knowledge, RetrievalRouter is the first system to route jointly across these two axes for a single underlying corpus. By directing each query to the cheapest pipeline that can answer it, the router reserves expensive configurations for queries that genuinely require them. The resulting system attains the accuracy of the strongest static pipeline while incurring an average latency near the cheapest. In summary, our main contributions are:

• A systematic empirical analysis of modern retrieval pipelines along two axes, modality and architecture, evaluated across 11 benchmarks, and characterizing the query-level strengths and failure modes of each configuration.

• RetrievalRouter, the first query-aware router that jointly selects retrieval modality and architecture per query. It dominates every static configuration on the accuracy–latency frontier, achieving 2.5% higher nDCG@5 than the strongest static baseline while being 12.4× faster. Compared with prior adaptive strategy selection methods, it achieves significantly higher nDCG@5 in accuracy-oriented settings, while numerically outperforming them in both effectiveness and latency in latency-oriented settings.

• A query-level pipeline-selection benchmark, releasing per-query best-pipeline labels across more than 80,000 queries to support further research on adaptive retrieval.

References (18)