LLMRouter:用于开发、评估和部署LLM路由器的统一基础设施
研究论文 · 2026/08/14
本文提出了一种统一的LLM路由框架,将其视为由五个组件组成的序列决策过程,并基于此构建了自动化监督生成与评估流程,推出了基准xRouteBench和开源基础设施LLMRouter。实验表明,学习型路由器在响应质量和推理成本上优于固定模型基线,轻量级路由器在成本受限时更具竞争力,用户条件路由能提升个性化效果。
该文解决了LLM路由领域缺乏统一框架和公平比较的问题,提供了标准化评估基准和开源工具,实验结论对实际部署具有指导意义,值得关注。
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.