TL;DR
RouterRetriever introduces a novel architecture for dense information retrieval that routes queries across a mixture of domain-specific expert embedding models using a training-free, similarity-based routing mechanism. By leveraging lightweight LoRA adapters on top of a shared frozen base encoder, it achieves state-of-the-art retrieval performance across diverse domains while allowing experts to be dynamically added or removed without full model retraining.
What Problem Does This Paper Address?
Standard dense retrieval methods typically rely on a single embedding model trained on massive, general-domain datasets like MSMARCO. While these models perform reasonably well on average, they frequently stumble when applied to highly specialized domains (e.g., medical or financial text) where the vocabulary and query structures differ significantly from general text.
To fix this, researchers often turn to multi-task training or domain adaptation. However, these approaches suffer from two major flaws:
- Negative Interference: Forcing a single model to learn multiple distinct domains can cause performance to degrade or fluctuate across domains.
- High Maintenance Costs: Whenever a new domain emerges, the entire single-model system must be retrained from scratch, which is computationally expensive and logistically cumbersome.
While Mixture-of-Experts (MoE) architectures have successfully addressed similar scaling issues in Large Language Models (LLMs), their application to embedding-based information retrieval has remained largely unexplored.
Methods
RouterRetriever implements a modular, lightweight MoE framework specifically tailored for text embeddings.
The architecture consists of three main components:
- Base Encoder: A shared, frozen dense retriever (the authors use Contriever).
- Domain Experts: Instead of full separate models, each expert is a parameter-efficient LoRA (Low-Rank Adaptation) module trained on a specific domain dataset. This keeps the parameter footprint minimal (~1M parameters per expert, or 0.5% of the base model).
- Pilot Embedding Library & Routing: To route queries without training a complex gating network, the authors construct a "Pilot Embedding Library." During a preprocessing step, training instances are evaluated across all experts. Instances are grouped by the expert that performs best on them, and the base encoder calculates a centroid (average embedding) for each group.
During inference, routing happens in two steps:
- Routing Pass: The query is embedded by the base encoder, and its cosine similarity is calculated against all centroids in the pilot library. The expert with the highest average similarity score is selected.
- Embedding Pass: The query is passed through the base encoder combined with the selected expert's LoRA module to generate the final domain-optimized embedding.
Datasets
The model was evaluated using the BEIR benchmark, a heterogeneous collection of datasets designed to test zero-shot evaluation of information retrieval models. The authors utilized 14 datasets spanning various domains:
- General/Misc: MSMARCO, ArguAna, Touché-2020
- Wikipedia/QA: NaturalQuestions, HotpotQA, DBpedia, FEVER, Climate-FEVER
- Bio-Medical: TREC-COVID, NFCorpus
- Scientific: SCIDOCS, SciFact
- Finance: FiQA-2018
- Duplicate Detection: Quora
Key Insights and Ideas
- LLM Routing Fails in Retrieval: Standard routing techniques from language generation (like token-level classification heads) perform poorly in retrieval. In generation, routing decisions happen at the token level, meaning a single bad routing choice has a minor impact. In retrieval, a single instance-level routing decision determines the entire embedding; hence, routing errors are catastrophic.
- Data Scaling Diminishing Returns: As shown in the paper's analysis, scaling up training data for an individual expert rapidly boosts its in-domain performance but fails to improve—and sometimes harms—its out-of-domain performance. This strongly justifies using a mixture of specialized experts rather than one scaled-up model.
- The Power of General Experts: General-domain experts (like those trained on MSMARCO or ArguAna) act as excellent "catch-alls." When the system encounters a query from an unseen domain, it safely routes it to these broader experts, preserving robust zero-shot generalization.
Key Results
RouterRetriever consistently outperforms single-model baselines and alternative routing strategies on the BEIR benchmark (measured in nDCG@10):
- vs. Single Models: RouterRetriever outscored a single model trained only on MSMARCO by +2.1 absolute nDCG@10 and a multi-task trained model by +3.2.
- vs. LLM Routers: It outperformed standard generation routing mechanisms (like
ExpertClassifierRouterandClassificationHeadRouter) by an average of +1.8. - Scalability: Unlike multi-task models whose performance degrades as more domains are added, RouterRetriever's performance steadily improves or stabilizes as the expert pool grows.
- Zero-Shot Generalization: Even on datasets where no specific expert was trained, RouterRetriever outperformed general-purpose models, demonstrating that its similarity-based routing can effectively map novel domains to the closest relevant expert.
Limitations and Future Work
Despite its strong performance, the authors note two primary limitations:
- Inference Latency: Because routing relies on embedding similarity, inference requires two forward passes—one through the base encoder to choose the expert, and a second pass with the active LoRA adapter to generate the final embedding. Improving this computational efficiency is a key area for future work.
- The Oracle Gap: There remains a significant performance gap between RouterRetriever and an ideal instance-level oracle (
InstanceOracle), which routes every single query perfectly. This indicates that developing more sophisticated, retrieval-specific routing algorithms could unlock even higher performance.
Summary updated