RouterRetriever: Routing over a Mixture of Expert Embedding Models
Hyunji Lee, Luca Soldaini, Arman Cohan, Minjoon Seo, Kyle Lo
TL;DR
RouterRetriever addresses the challenge of retrieving across diverse domains by routing queries to a mixture of domain-specific embedding experts implemented as LoRA adapters on a fixed base encoder. A pilot embedding library guides the routing by comparing query embeddings to centroids associated with each expert, enabling scalable addition or removal of experts without retraining. Empirical results on the BEIR benchmark show consistent gains over MSMARCO-only and multi-task baselines, with strong generalization to unseen domains; the approach also outperforms common routing baselines from language modeling, underscoring the importance of retrieval-specific routing design. The work demonstrates the practical impact of domain-specialized experts for diverse retrieval tasks and outlines avenues for more powerful routing methods and efficiency improvements.
Abstract
Information retrieval methods often rely on a single embedding model trained on large, general-domain datasets like MSMARCO. While this approach can produce a retriever with reasonable overall performance, they often underperform models trained on domain-specific data when testing on their respective domains. Prior work in information retrieval has tackled this through multi-task training, but the idea of routing over a mixture of domain-specific expert retrievers remains unexplored despite the popularity of such ideas in language model generation research. In this work, we introduce RouterRetriever, a retrieval model that leverages a mixture of domain-specific experts by using a routing mechanism to select the most appropriate expert for each query. RouterRetriever is lightweight and allows easy addition or removal of experts without additional training. Evaluation on the BEIR benchmark demonstrates that RouterRetriever outperforms both models trained on MSMARCO (+2.1 absolute nDCG@10) and multi-task models (+3.2). This is achieved by employing our routing mechanism, which surpasses other routing techniques (+1.8 on average) commonly used in language modeling. Furthermore, the benefit generalizes well to other datasets, even in the absence of a specific expert on the dataset. RouterRetriever is the first work to demonstrate the advantages of routing over a mixture of domain-specific expert embedding models as an alternative to a single, general-purpose embedding model, especially when retrieving from diverse, specialized domains.
