RouterRetriever: Routing over a Mixture of Expert Embedding Models

Hyunji Lee, Luca Soldaini, Arman Cohan, Minjoon Seo, Kyle Lo

Abstract

Traditional information retrieval relies on general-purpose embedding models that often struggle with specialized domains. RouterRetriever addresses this by implementing a Mixture of Experts (MoE) architecture using lightweight Low-Rank Adaptation (LoRA) modules. By routing queries through a "Pilot Embedding Library" based on embedding similarity, the system achieves specialized performance without the computational burden of full-model fine-tuning or the interference of multi-task training. Evaluated on the BEIR benchmark, RouterRetriever demonstrates superior accuracy and modular scalability.

Introduction

In Information Retrieval (IR), the prevailing paradigm is the "one-size-fits-all" model, typically trained on massive general datasets like MSMARCO. While effective for broad queries, these models lack the nuance required for specialized fields such as medicine, finance, or law. Existing alternatives—domain-specific fine-tuning and multi-task training—suffer from high maintenance costs and "catastrophic interference," where learning new information degrades performance on previously mastered domains. RouterRetriever proposes a modular solution that provides specialized expertise with the flexibility of a single, updateable system.

Methodology: The Pilot Embedding Library

RouterRetriever utilizes a Mixture of Experts (MoE) approach tailored for retrieval. The system consists of a frozen base encoder (Contriever) and a set of specialized LoRA modules, which comprise only ~0.5% of the base model's parameters.

The RouterRetriever architecture: A query is first processed by a base encoder to find the most similar domain in the Pilot Embedding Library, which then routes the query to the corresponding expert LoRA module.

The core innovation is the Pilot Embedding Library. Instead of training a complex classifier to route queries, the system uses representative "pilot embeddings" (centroids) from each domain. When a query arrives, it is encoded by the base model, and its similarity to these centroids determines which expert LoRA module is activated. This training-free routing mechanism allows for easy integration of new domains by simply adding a new LoRA module and updating the library.

Experimental Results

The researchers evaluated RouterRetriever on the BEIR benchmark, covering domains such as medical (NFCorpus), scientific (SciFact), and finance (FiQA).

Performance comparison on the BEIR benchmark: RouterRetriever consistently outperforms the multi-task and MSMARCO baselines as the number of experts increases, approaching the performance of a Dataset Oracle.

Key findings include:

  • Performance Gains: RouterRetriever achieved a +2.1 absolute nDCG@10 gain over the MSMARCO-only baseline and a +3.2 gain over a standard multi-task model.
  • Scalability: As shown in the results, performance improves as more experts are added, effectively leveraging specialized knowledge without the interference seen in multi-tasking.
  • Zero-Shot Generalization: The system benefits "unseen" domains. For instance, a query in an untrained medical domain might be routed to a scientific expert, still yielding better results than a generic model.

Discussion and Future Work

RouterRetriever demonstrates that embedding-based similarity is a highly effective routing signal for retrieval tasks, outperforming traditional learned classification heads. Its modularity ensures that adding new expertise does not degrade existing performance.

However, challenges remain. The current implementation requires two forward passes, which increases inference latency. Furthermore, there is a performance gap between the current router and a theoretical "Instance Oracle" that selects the perfect expert for every query. Future research will focus on closing this gap and testing the scalability of similarity-based routing across thousands of specialized experts.

Summary updated

BibTeX
@inproceedings{lee2025routerretriever,
  author = {Hyunji Lee and Luca Soldaini and Arman Cohan and Minjoon Seo and Kyle Lo},
  title = {{RouterRetriever: Routing over a Mixture of Expert Embedding Models}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i11.33306},
}
Figure