arXiv:2611.05596cs.CLNov 2026

Manuscript Offprint

arXiv:2611.05596

RAGCompass: Generalizable Retriever Routing via Reranking

Valentin Six, Mufei Li, Dongqi Fu, Yinglong Xia, Hong Li, Pan Li

Valentin Six¹, Mufei Li², Dongqi Fu³, Yinglong Xia³, Hong Li³, Pan Li²

¹University of Virginia, ²Georgia Institute of Technology, ³Meta

Different retrievers exist for retrieval-augmented generation, yet none performs best for all queries. Therefore, the key question is: given a query and retrieved passages from different retrievers, which one is most suited for that query? Existing routers usually make predictions from query-specific features and a fixed pool of retrievers; such routers have no output for an unseen retriever and are incapable by design on a new corpus. To fill these gaps, RAGCOMPASS reads the retrieved passage sets themselves: passages from an unfamiliar retriever or corpus stay directly comparable to other passages, so routing stays well designed where a query-only map would fail. We contrastively fine-tune a reranker against the answer each evidence set produces, which accounts for most of the gain; a small comparison head adds a moderate improvement, and neither component has retriever-specific parameters. RAGCOMPASS improves answer F1 by 28% relative to the best fixed retriever, and outperforms fusion baselines, three query-only routers, and a prompted 8B language model. Generalization experiments show that RAGCOMPASS keeps most of its gain under an unseen corpus, retriever, or reader, while query-only baselines fall to the best fixed retriever or below.

Code is made available at https://github.com/Graph-COM/RAGCompass.

Date: November 5, 2026

Meta

1 Introduction

In retrieval-augmented generation (RAG), a retriever first selects passages from a corpus, and a reader (e.g., a language model) then writes an answer from them. RAG is widely used because it gives a language model access to knowledge beyond its training data and makes its answers traceable to their sources (Lewis et al., 2020). A deployed RAG system usually fixes one retriever for all queries, yet sparse lexical matching, learned sparse expansion, dense embeddings, late interaction, and graph-based linking (Robertson and Zaragoza, 2009; Formal et al., 2021; Lassance et al., 2024; Karpukhin et al., 2020; Lewis et al., 2020; Santhanam et al., 2022; Gutiérrez et al., 2024, 2025) each define a different notion of relevance for retrieval, and each one wins on different types of queries. Averaged over various datasets, the retrievers we study are close in performance (0.22 to 0.28 answer F1), but an oracle that picks the right one for each query reaches 0.75 F1, almost 3× the best fixed retriever (Figure 1). The opportunity is therefore not necessarily to design a better mechanism, but rather a way of choosing among existing ones given a specific query.

This is the problem of retriever routing, posed as learning to rank retrievers by Kim and Diaz (2025): given a query and several structurally different retrievers, which retriever should one prefer? What makes routing hard in practice is that a deployed system changes: a text corpus evolves, retrievers are added or replaced, the reader is upgraded... Adapting the router after each of those changes means re-running the reader over every training query to regenerate its labels, so a routing method is usable only if it holds on a corpus, mechanism pool, or reader it was not trained on. This practical necessity for routing robustness is left untouched by most prior work.

Indeed, most existing routers choose a retriever from query-specific features, without looking at any retrieved evidence: query performance prediction and learned routers predict which mechanism will do well from the query's wording, hand-designed features, or a retriever's own confidence scores (Meng et al., 2023; Chifu et al., 2026; Tian et al., 2026; Lee et al., 2025; Kalra et al., 2025; Kim and Diaz, 2025; Zhao et al., 2026). The resulting map is tied to a precise query and corpus distribution, and a specific pool of retrievers: a new corpus

Figure

Figure 1 Answer quality for retrievers (grey), pooled across four QA datasets; comparison to an oracle (blue) selecting the best retriever per query. The retrievers are close to one another and all far below the oracle: a large room for improvement exists in choosing the best retriever per query at inference.

changes what is retrieved, and a new retriever is unknown to the system. To our knowledge, no previous closely related work focuses on a routing task under these changes.

We instead let the decision depend on the evidence coming from each retriever. Whichever mechanism or corpus produces the evidence, retrieved passages stay comparable to one another. Deciding which passages best answer the query should therefore be less sensitive to shifts in the query distribution, the retrievers, or the corpus. One disadvantage is that it requires running every candidate retriever first. We argue that the cost of retrieval is small, as the retrievals can run concurrently, and the decision adds about 0.2s to a 5 – 6s per query pipeline. To that end, we pose routing as selection among evidence sets, which fixes two design choices: the scorer reads the passages themselves, so a reranker is the natural building block; and it is trained on the answer the evidence yields rather than on document relevance, since the two often disagree and relevance-based training leads to lower answer quality (Section 5).

Our method, RAGCOMPASS, fine-tunes a reranker (Yang et al., 2025; Zhang et al., 2025) so that its score for a mechanism's passages tracks the answer they produce, and adds a small comparison head that reads the reranker's representations of all candidates jointly. The fine-tuned reranker accounts for most of the accuracy gain; the head adds 1.4pp on top. Neither the reranker nor the head holds retriever-specific parameters, so the router applies to a retriever it was not trained on.

Trained on four question-answering datasets and routing among five retrievers, RAGCOMPASS achieves a 28% relative improvement over the best fixed retriever and beats a weighted mixture of retrievers, the strongest baseline we run. It also improves retrieval quality over the best fixed retriever (+5.0 points of recall@5, +1.3 of nDCG@5).

RAGCOMPASS also generalizes by design: held out from an entire dataset and its corpus, RAGCOMPASS retains more than 80% of its in-distribution gain on some datasets (Figure 4).

References (25)