Pretrain Once, Route Anywhere: Towards a Foundation Model for LLM Routing
Summary
The paper introduces RouteFM, a foundation model for LLM routing that learns reusable routing capabilities via episodic pretraining across heterogeneous environments, allowing a frozen router to adapt to new domains, modalities, and candidate pools through behavioral context alone. RouteFM outperforms the strongest baseline by 2.23 quality points on MMR-Bench with only eight observations per candidate, supporting a 'pretrain once, route anywhere' paradigm.
View Cached Full Text
Cached at: 10/02/26, 04:26 AM
Paper page - Pretrain Once, Route Anywhere: Towards a Foundation Model for LLM Routing
Source: https://huggingface.co/papers/2609.37362
Abstract
Largelanguagemodel(LLM)routingaimstoassigneachquerytothemostsuitablemodelfromaheterogeneouscandidatepool,improvingthequality--efficiencytrade-offofLLMinference.Existingroutersaretypicallylearnedthroughlocalfitting:arouterisoptimizedforaparticularqueryworkloadandcandidatepool,andoftenrequiresadditionalsupervisionorretrainingastheroutingenvironmentchanges.WeaskwhetherLLMroutingcaninsteadbeapproachedfromafoundation-modelperspective,learningareusableroutingcapabilitythatgeneralizesacrosstasks,candidatemodels,anddeploymentconditions.Tothisend,weintroduceRouteFM,whichlearnstocharacterizeanonymouscandidatemodelsfrombehavioralcontextandinfertheirtarget-specificcapabilities,ratherthanbindingroutingdecisionstofixedmodelidentitiesorasingleenvironment.Throughepisodicpretrainingacrossheterogeneousroutingenvironments,thiscapabilitycanbereusedbyafrozenrouterandadaptedtonewenvironmentsthroughcontextalone.Experimentsdemonstratetransferacrosschangesindomains,modalities,candidatepools,andcontextbudgets,withthelargestgainswhenbehavioralevidenceislimited.OnMMR-Bench,whichisexcludedfrompretraining,RouteFMoutperformsthestrongestbaselineby2.23qualitypointswithonlyeightobservationspercandidate.TheseresultssupportmovingLLMroutingfromrepeatedlocalfittingtowardapretrainonce,routeanywhereparadigm.Ourcodeispubliclyavailableathttps://github.com/LAMDA-Model-Reuse/RouteFM.
View arXiv pageView PDFGitHub3Add to collection
Get this paper in your agent:
hf papers read 2609\.37362
Don’t have the latest CLI?curl \-LsSf https://hf\.co/cli/install\.sh \| bash
Models citing this paper1
Datasets citing this paper0
No dataset linking this paper
Cite arxiv.org/abs/2609.37362 in a dataset README.md to link it from this page.
Spaces citing this paper0
No Space linking this paper
Cite arxiv.org/abs/2609.37362 in a Space README.md to link it from this page.
Collections including this paper0
No Collection including this paper
Add this paper to acollectionto link it from this page.
Similar Articles
LLMRouter: Unified Infrastructure for Developing, Evaluating, and Deploying LLM Routers
LLMRouter presents a unified formulation of LLM routing as a sequential decision process, along with an open-source infrastructure and benchmark (xRouteBench) for developing, evaluating, and deploying LLM routers. Empirical results show learned routers achieve 14.6% relative improvement over the strongest fixed-model baseline.
RouteProfile: Elucidating the Design Space of LLM Profiles for Routing
This paper introduces RouteProfile, a design space for LLM profiles in routing systems, demonstrating that structured profiles and query-level signals improve routing performance and generalization to new models.
Learning Agent Routing From Early Experience
This paper introduces BoundaryRouter, a training-free framework that optimizes LLM agent usage by routing queries to either lightweight inference or full agent execution based on early experience. It also presents RouteBench, a benchmark for evaluating routing performance, showing significant improvements in speed and accuracy.
Pro-Router: Token-Aware Progressive Model Routing with Adaptive Edge-Cloud Collaboration for Efficient Multimodal LLM Inference
Pro-Router introduces a token-aware progressive model routing method for efficient multimodal LLM inference, leveraging adaptive edge-cloud collaboration to improve throughput and reduce costs.
FlexRouter: Learning Complementary Model Sets for Flexible LLM Routing
FlexRouter proposes a coverage-oriented LLM routing framework that uses Determinantal Point Processes to model complementarity among models, maximizing the probability that at least one selected model answers correctly while avoiding redundant selections and fixed budgets.