AIAny
Icon for item

LLMRouter: Unified Infrastructure for Developing, Evaluating, and Deploying LLM Routers

Frames LLM routing as a sequential decision process and introduces LLMRouter plus the xRouteBench benchmark to develop, evaluate, and deploy learned routing policies across heterogeneous LLMs, optimizing response quality versus inference cost.

Introduction

Most production LLM deployments pay for more capacity than needed because a single model cannot be best for every query. This paper reframes model selection as a sequential decision problem so each request can be routed to the model (or model cascade) that best balances task-specific quality and monetary/token cost.

Key Findings
  • A unified five-component formulation (context encoder, model encoder, scoring function, decision rule, learning signal) makes diverse routers comparable and modular, so swapping routing strategies or objectives becomes a configuration change rather than a rewrite. This lowers engineering friction when experimenting with routing designs.
  • Empirical gains: learned routers achieve a 14.6% relative improvement over the strongest fixed-model baseline under the paper's quality–cost trade-off, and lightweight routers dominate under tight cost budgets. This demonstrates practical benefits of per-query selection and cost-aware designs.
  • Benchmarks and tooling: xRouteBench covers generic LLM tasks, memory-augmented scenarios, vision (image/video), time-series, and personalization; the evaluation pipeline dispatches queries to a candidate pool (dozens of models in the paper) and records token-level cost to produce unified supervision and metrics.
  • Production readiness: LLMRouter provides an extensible library with 16+ representative routers and supports deployment pathways (OpenAI-compatible server integration and a ComfyUI visual canvas), making it feasible to move from offline evaluation to live routing.
Who this paper is for and trade-offs

Great fit if you operate or research multi-model LLM stacks and care about reducing inference cost without sacrificing per-query quality, or if you need a standardized benchmark and modular library to compare routing methods. Look elsewhere if your workload is single-model-only, latency-dominated (where extra routing overhead outweighs model gains), or you cannot instrument token-level costs for candidate models. Implementing learned routing also requires labeled routing supervision or the infrastructure to collect it.

Where it fits

LLMRouter sits between research on model selection and MLOps: it is a reproducible evaluation and deployment bridge for work that previously scattered across custom scripts and ad-hoc cascades. It is most relevant to teams running ensembles of hosted or local LLMs who can trade cost against response quality on a per-query basis.

Information

  • Websitearxiv.org
  • OrganizationsUniversity of Illinois Urbana-Champaign, University of Maryland, College Park, Nanyang Technological University, Purdue University, University of Illinois Chicago
  • AuthorsTao Feng, Fangxu Yu, Haozhen Zhang, Zhongjie Dai, Liangqi Yuan, Zijie Lei, Weizhi Zhang, Kunlun Zhu, Haodong Yue, Keyang Xuan
  • Published date2026/08/07

More Items

Analyzes on-policy distillation for LLM fine-tuning, shows teacher token-level supervision is often noisy and not the main driver of gains, and introduces OPSA, a supervision-free, entropy-adaptive method that suppresses low-probability tokens to improve downstream accuracy.

A zero-data self-evolution framework that co-trains a Challenger, Solver, and Judge so LLMs can iteratively improve on both verifiable and unverifiable tasks without human labels. Uses role-asymmetry and subtask-amplification preference pairs to train the Judge and sustain improvement.

Trains compact conversational agents to adapt at runtime to changing 'Harness' configurations (Skills, Hooks, prompts, tools) using Harness-Aware Training (HAT): Harness-State Augmentation, on-policy distillation, and RL to preserve generality while meeting low-latency deployment constraints.