SeLMRoute: Probabilistic Semantic Evidence for Large Language Model Routing
Abstract
Large language model (LLM) routing aims to select the most suitable model for each incoming query. Most existing routers learn this decision directly from query embeddings, model representations, preference data, or clusters of similar examples. Such approaches can be effective, yet the representation used for routing rarely states what a query actually requires. We introduce SeLMRoute, a routing framework that separates the extraction of candidate-independent semantic evidence from the learning of candidate performance and the application of deployment objectives. A decision model first evaluates a set of interpretable questions about the query, such as its reasoning requirements and use of external knowledge, with each judgment retained as a probability distribution. The resulting probabilistic semantic state is used by a lightweight supervised router to estimate candidate model performance. Routing objectives are applied after performance estimation, which allows the same semantic state to support performance-oriented and cost-aware decisions. On the LLMRouterBench (15 datasets, 20 candidate models, 11,481 queries), SeLMRoute achieves an average accuracy of , while grouped five-fold out-of-fold evaluation reaches , compared with for the strongest fixed candidate. The representation achieves the highest mean performance among the evaluated semantic, dense, lexical, and domain-level representations. In a separate 13-model performance-cost setting, SeLMRoute improves performance in all five grouped splits, with a mean PerfGain of . Our code is available at https://github.com/Indigma-Innovations/SeLMRoute.
Create a lesson
Metadata
- Categories
- cs.AI, cs.CL, cs.LG
Related papers
Signatures of semantic search in the activations of large language models
Shared title terminologycs.AILuke Leckie, Peter M. Todd, Jacob G. Foster
LimoBench: How Street Smart Are Large Language Models?
Shared title terminologycs.AIGautam Choudhary, Jack Peng, Udesh Kumarasinghe et al.
Look Before You Commit: Visual-Evidence-Guided Decoding for Multimodal Diffusion Language Models
Shared title terminologycs.AITongxiao Hu, Yikai Zhao, Qiyan Zhao et al.
Revisiting Learning to Delegate: LLM Discovered Heuristics for Large-Scale Vehicle Routing
Shared title terminologycs.AIZhengyang Wang, Renfei Tan, Shuze Daniel Liu et al.
Learning Heterogeneous Reasoning in Large Language Models: From Mode Compatibility to Local Bottlenecks
Shared title terminologycs.AISunbowen Li, Dandan Song, Shengkun Ma et al.
Locating Answer-Correctness Signals in Frozen Large Language Models
Shared title terminologycs.AIYuansen Liu, Yixuan Tang, Anthony Kum Hoe Tung