Pretrain Once, Route Anywhere: Towards a Foundation Model for LLM Routing
Guannan Lai, Han-Jia Ye
Key points
From the paper's conclusion- Introducing RouteFM, which learns to characterize anonymous candidate models from behavioral context and infer their target-specific capabilities for LLM routing.
- RouteFM learns a reusable routing capability that generalizes across tasks, candidate models, and deployment conditions through episodic pretraining across heterogeneous routing environments.
- Experiments demonstrate transfer across changes in domains, modalities, candidate pools, and context budgets, with the largest gains when behavioral evidence is limited.
Abstract
Large language model (LLM) routing aims to assign each query to the most suitable model from a heterogeneous candidate pool, improving the quality--efficiency trade-off of LLM inference. Existing routers are typically learned through local fitting: a router is optimized for a particular query workload and candidate pool, and often requires additional supervision or retraining as the routing environment changes. We ask whether LLM routing can instead be approached from a foundation-model perspective, learning a reusable routing capability that generalizes across tasks, candidate models, and deployment conditions. To this end, we introduce RouteFM, which learns to characterize anonymous candidate models from behavioral context and infer their target-specific capabilities, rather than binding routing decisions to fixed model identities or a single environment. Through episodic pretraining across heterogeneous routing environments, this capability can be reused by a frozen router and adapted to new environments through context alone. Experiments demonstrate transfer across changes in domains, modalities, candidate pools, and context budgets, with the largest gains when behavioral evidence is limited. On MMR-Bench, which is excluded from pretraining, RouteFM outperforms the strongest baseline by 2.23 quality points with only eight observations per candidate. These results support moving LLM routing from repeated local fitting toward a pretrain once, route anywhere paradigm. Our code is publicly available at https://github.com/LAMDA-Model-Reuse/RouteFM.
Read the paper
Discussion · 1
Science Skim's AI key points, plus readers' public thoughts
- Introducing RouteFM, which learns to characterize anonymous candidate models from behavioral context and infer their target-specific capabilities for LLM routing.
- RouteFM learns a reusable routing capability that generalizes across tasks, candidate models, and deployment conditions through episodic pretraining across heterogeneous routing environments.
- Experiments demonstrate transfer across changes in domains, modalities, candidate pools, and context budgets, with the largest gains when behavioral evidence is limited.
Readers' thoughts
No reader thoughts yet.
Related papers
- RouteWeaver: Weaving Mode Selection and Execution into Unified LLM RoutingarXiv · 2026
- Most of the LLM Routing Gap Is Task TypearXiv · 2026
- Route Anything: A Study of Model and Policy Routing for General-Purpose AI SystemsarXiv · 2026
- AdaptRouter: Adaptive Routing across Evolving Tasks and ModelsarXiv · 2026
- CoordRoute: Coordinated Multi-Model Routing for Maximum Compute-Budget UtilityarXiv · 2026
- Routeability Before Routing: Routeability Audit Protocol (RAP) and RouteabilityBench for Audited LLM Model SelectionarXiv · 2026