LLMRouter: Unified Infrastructure for Developing, Evaluating, and Deploying LLM Routers
Reading guide · Based on sections of the original paper
Why read this
Practitioners choosing or building a router for a mixed model pool can use it to compare designs on equal footing and see how router rankings shift with cost budgets and real users.
What the authors found
- Under the quality-only setting on xRouteBench, with an 18-model open-weight pool, GraphRouter has the best average score (45.46). The always-largest baseline scores 38.72 and the always-smallest 37.94. The best router still differs by track, for example RouterDC on Generic tasks and SVMRouter on LoCoMo. 5.2 Main Results
- Router rankings change sharply as the cost weight increases. RouterDC leads Generic tasks when only quality counts but ranks tenth of eleven at the most cost-weighted setting. MLPRouter, near the bottom on Vision under quality-first scoring, becomes the best Vision router for every β≥0.4. 5.3 Performance–Cost Trade-offs
- GMTRouter leads under the persona-conditioned LLM judge (68.78). On held-out real Slack sessions, PersonalizedRouter leads at 83.05 and GMTRouter falls to sixth. That real-user set covers 15 users and 234 pairwise records, with only 8 test sessions. 5.4 Routing in Deployment: Real Users and Multi-Agent Systems
Main limitation
The claim that multi-turn routing does not help is confounded. The authors ran the multi-round and RL routers once, without tuning them to the weighted objective, and used a Qwen2.5-3B base model for decomposition and aggregation. The vision and video test sets are also small, at 61, 100 and 27 queries. 5.1 Experimental Setups
Where to start
5.3 Performance–Cost Trade-offs · Use the Figure 5 rank sweep and the Figure 6 frontier to choose a router for your own cost weight.
Abstract
No single large language model (LLM) is optimal across all queries and budget constraints, making model routing essential for cost-effective deployment. Existing routers adopt diverse formulations and implementations, making fair comparison and extension difficult. We present a unified formulation of LLM routing as a sequential decision process characterized by five components: context encoders, model encoders, scoring functions, decision rules, and learning signals, covering single-turn, multi-turn, and personalized routing. Based on this formulation, we develop an automated pipeline for constructing routing supervision and evaluating routers jointly on response quality and inference cost. The resulting benchmark, xRouteBench, spans generic LLM, memory-augmented, vision, time-series, and personalized routing tasks. We further introduce LLMRouter, an open-source modular infrastructure with more than 16 representative routers. Our empirical study shows that learned routers outperform the strongest fixed-model baseline by 14.6% relatively, lightweight routers become more competitive under tight cost constraints, and user-conditioned routing consistently improves personalization.