Deep dive · Shik · ESPAD One
LLM routing: sending each request to the right specialist
Every multi-model system makes a routing decision on every request, whether or not anyone designed it. What the evidence says about routers, cascades and their trade-offs, and why routing to specialists is a correctness decision.
Key takeaways
- Routing research has converged on three designs: predictive routers that decide before any model answers, cascades that escalate after a cheap answer, and routers trained on human preference data.
- Published experiments report large cost savings at equal quality, but they route between bigger and smaller general models on benchmarks the authors chose.
- When the destinations are specialists, a routing error is a correctness and permissions failure, not just a cost inefficiency, so out-of-scope must be an explicit destination.
- Test a router on your own held-out traffic, report escalation rates with cost and quality together, and re-validate whenever a downstream model changes.
Most production AI systems now run more than one model, whether or not the architecture slide admits it. A small model classifies intent, a larger one drafts, a narrow one checks. LLM routing is the decision that sits in front of all of them: for this request, now, which model should answer? Get it wrong in one direction and you pay large-model prices for questions a small model answers perfectly well. Get it wrong in the other and you ship cheap, confident, wrong answers. This article looks at how routers work, what the published evidence says about their cost and quality trade-offs, and how routing changes when the destinations are specialists rather than bigger and smaller versions of the same general model.
It is a cluster article under our guide to multi-agent orchestration, where routing is the first of the five contracts we use to evaluate orchestrated systems.
The routing problem, stated precisely
A router maps a request to one of several models, or to a sequence of them, to maximise expected quality within a cost or latency budget. Three things make this harder than it sounds. The router must decide before it sees an answer, so it either works from features of the request alone or pays to see a cheap answer first. Quality is not one number: a short factual reply and a long draft are judged differently. And the right trade-off point moves: a quality target that suits a free tier is wrong for a regulated workflow.
Hu and colleagues framed the problem formally when they built a benchmark for routing systems from more than 405,000 inference outcomes, and their starting observation is the whole case for routing: no single model is optimal across tasks once cost is part of the objective[1]. The same work notes that, before it, there was no standard benchmark for comparing routers on equal terms[1].
Three families of router
The research has converged on three designs. The table is our summary of how they differ in practice.
| Family | Decision point | Signal used | Cost of deciding | Best fit |
|---|---|---|---|---|
| Predictive router | Before any model answers | Features of the request: embeddings, a classifier, a small model's estimate of difficulty | One cheap inference | High volume, clear domains, tight latency budgets |
| Cascade | After a cheaper model answers | A reliability score for the cheap answer, from a scorer model or answer consistency | The cheap answer, plus the expensive one when escalated | Tasks where cheap answers are often right and their reliability can be judged |
| Preference-trained router | Before any model answers | A model trained on data about which answers people preferred | One cheap inference, plus training data | General assistants choosing between a strong and a weak model |
Predictive routers
The simplest router is a classifier: it reads the request and returns a destination. Ding and colleagues refined this for the two-model case. Their router predicts how difficult a query is and sends it to a small or a large model according to a quality target that can be adjusted at test time; in their experiments it made up to 40% fewer calls to the large model with no drop in response quality[2]. The adjustable target is the design idea worth copying. It turns routing into a dial the business can set per product or workflow, instead of a threshold buried in code.
Cascades
A cascade tries the cheap option first and escalates only when needed. Chen, Zaharia and Zou described the cascade as one of three strategies for reducing inference cost, alongside prompt adaptation and model approximation, and built one that learns which models to query for which requests. In their experiments it matched the strongest single model they tested at up to 98% lower cost, or improved on its accuracy by 4% at the same cost[3].
Yue and colleagues made the escalation signal cheaper. They used the consistency of a weaker model's sampled answers as a proxy for how hard a question is, mixing chain-of-thought and program-of-thought representations, and across six reasoning benchmarks their cascades performed comparably to using the stronger model alone at about 40% of its cost[4].
The idea is far older than language models. Viola and Jones built their 2001 object detector as a cascade of increasingly complex classifiers, so that cheap early stages discarded most background regions of an image and only promising regions reached the expensive later stages[5]. The logic is the same two decades later: spend computation in proportion to how hard each instance turns out to be.
Preference-trained routers
Ong and colleagues trained routers on human preference data, with data augmentation, to choose between a stronger and a weaker model, and reported cost reductions of more than two times in some cases without compromising response quality[6]. Their routers also kept their performance when the specific strong and weak models were changed at test time[6]. That property matters operationally: a router that must be retrained every time a model is upgraded becomes a maintenance liability.
From experts inside a network to experts across a platform
Routing between models echoes routing inside them. The sparsely gated mixture-of-experts layer of Shazeer and colleagues used a trainable gate to send each input to a small subset of many expert sub-networks, raising model capacity more than a thousandfold with only minor losses in computational efficiency[7]. Fedus, Zoph and Shazeer simplified the gate to send each token to a single expert, which reduced communication and computational costs and let them train very large sparse models more stably[8].
The analogy is instructive, but it has limits that matter to a buyer. A mixture-of-experts gate is trained end to end with its experts, routes tokens rather than requests, and is invisible to the user. A platform router sits between separately built models with separate owners, evaluation sets and risk profiles. Nobody audits which expert inside a network processed a token; somebody will audit which assistant answered a question about a medication.
Routing to specialists is a correctness decision
Almost every cost paper above routes between a stronger and a weaker general model. In a specialist platform the destinations differ in kind, not in size. When a question about a skin concern lands with a travel assistant, the failure is not a slightly worse answer at a lower price; it is an answer from a system that was never instructed, tested or permissioned for that domain.
That changes the design in four ways.
- Out-of-scope is a destination. The router needs an explicit fallback for requests that match no specialist well. The fallback should be a clarifying question or a general answer with a hand-off, never the nearest specialist.
- Routing errors are asymmetric. Sending a general question to a health specialist wastes money. Sending a health question to an untested general path may produce advice nobody validated. Set different confidence thresholds for different destinations.
- The user can be part of the router. For multi-part tasks, letting the person choose which specialists take part is both a routing signal and a consent boundary. In Shik, the ESPAD AI occasion planner, the person ticks which assistants may contribute to a plan, and an assistant that was not ticked adds nothing.
- Routing and permissions travel together. A request routed to a specialist should carry only the data scopes that specialist needs. Routing that ignores permissions is how one assistant's data ends up in another assistant's context.
Measuring this kind of router needs a different test set from the cost papers. Label a sample of real requests with the specialist that should answer, including a share that no specialist should answer, and report the router's choices as a confusion matrix rather than one accuracy figure. The cells that matter are the expensive ones: health questions sent anywhere other than the health path, and out-of-scope requests that reached a specialist instead of the fallback. A router with high overall accuracy can still fail badly on those cells, because they are rare in the traffic and therefore barely move the average.
Nobody audits which expert inside a network processed a token; somebody will audit which assistant answered a question about a medication.
How routers fail in production
Papers report averages; incidents come from the tails. Four patterns are worth testing before launch.
- Distribution shift. A router tuned on one traffic mix degrades silently when users start asking different things. Monitor the share of requests reaching each destination and alert on drift.
- Consistently wrong cheap answers. A cascade is only as good as its escalation signal. Consistency-based signals assume that disagreement among samples indicates difficulty[4]; a cheap model that is reliably wrong in the same way will look confident and never escalate.
- Latency stacking. Every escalation adds a full model call. A cascade that escalates often can end up slower, and sometimes costlier, than calling the strong model directly, so measure the escalation rate, not only accuracy.
- Evaluation leakage. Routers tuned on the same benchmarks used to report their gains will look better than they are. Hold out tasks from your own domain, and treat benchmark figures, including those cited here, as evidence of direction rather than a forecast of your numbers.
An operating checklist for LLM routing
For a CTO deciding whether a vendor's routing claim is real, or whether to build a router in-house:
- Ask which family the router belongs to and what signal it uses. "The AI decides" is not an answer.
- Ask for cost and quality measured together on held-out data, with the escalation or fallback rate reported.
- Ask what happens to a request that matches no destination.
- Ask whether the quality target can be set per product tier or workflow, as in the adjustable designs in the literature[2].
- Ask how the router is re-validated when a downstream model changes. The NIST AI Risk Management Framework treats this kind of ongoing measurement as a core function, not a launch task.
- For specialist platforms, ask how routing interacts with permissions and user consent.
The RouterBench paper shows how routing systems can be compared on equal terms, and the hybrid routing paper in the ICLR 2024 proceedings gives the formal treatment of tunable quality targets. For what the chosen model gets to see once routing is done, read our article on context window management; for the wider system, the agent orchestration topic hub.
Frequently asked questions
What is the difference between LLM routing and a mixture of experts?
A mixture-of-experts layer routes individual tokens to expert sub-networks inside one model, with the gate and experts trained together and invisible to users. LLM routing sends whole requests between separately built models, each with its own owner, evaluation set and risk profile. The intuition is shared, spending computation where it helps most, but platform routing must also handle permissions, audit and out-of-scope requests.
Should we use a predictive router or a cascade?
Use a predictive router when latency matters, volume is high and domains are clearly separable, because it decides with one cheap inference. Use a cascade when cheap answers are often correct and their reliability can be judged, accepting the extra call on escalation. Many systems combine both: a predictive router chooses the domain and a cascade chooses the model tier within it.
How much can routing actually save?
Published experiments report substantial savings, such as up to 40 percent fewer calls to a large model or cost reductions of more than two times at equal quality, but those results come from benchmarks and model pairs the authors chose. Your savings depend on your traffic mix, how often requests need the strongest model and your escalation rate. Measure on held-out traffic from your own product before committing.
What should a router do with a request no specialist covers?
Treat out-of-scope as a destination of its own. The safest options are a clarifying question or a general answer that clearly hands the person to the right place. Sending the request to the closest specialist is the worst option, because that specialist was never instructed, tested or permissioned for it and will often answer fluently anyway.
References
- Hu, Q. J., Bieker, J., Li, X., Jiang, N., Keigwin, B., Ranganath, G., Keutzer, K., & Upadhyay, S. K. (2024). RouterBench: A benchmark for multi-LLM routing system. arXiv:2403.12031. arxiv.org/abs/2403.12031
- Ding, D., Mallick, A., Wang, C., Sim, R., Mukherjee, S., Ruhle, V., Lakshmanan, L. V. S., & Awadallah, A. H. (2024). Hybrid LLM: Cost-efficient and quality-aware query routing. International Conference on Learning Representations (ICLR 2024). arXiv:2404.14618. arxiv.org/abs/2404.14618
- Chen, L., Zaharia, M., & Zou, J. (2023). FrugalGPT: How to use large language models while reducing cost and improving performance. arXiv:2305.05176. arxiv.org/abs/2305.05176
- Yue, M., Zhao, J., Zhang, M., Du, L., & Yao, Z. (2024). Large language model cascades with mixture of thought representations for cost-efficient reasoning. International Conference on Learning Representations (ICLR 2024). arXiv:2310.03094. arxiv.org/abs/2310.03094
- Viola, P., & Jones, M. (2001). Rapid object detection using a boosted cascade of simple features. Proceedings of the 2001 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR), I-511-I-518. doi.org/10.1109/CVPR.2001.990517
- Ong, I., Almahairi, A., Wu, V., Chiang, W.-L., Wu, T., Gonzalez, J. E., Kadous, M. W., & Stoica, I. (2025). RouteLLM: Learning to route LLMs with preference data. International Conference on Learning Representations (ICLR 2025). arXiv:2406.18665. arxiv.org/abs/2406.18665
- Shazeer, N., Mirhoseini, A., Maziarz, K., Davis, A., Le, Q., Hinton, G., & Dean, J. (2017). Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. arXiv:1701.06538. arxiv.org/abs/1701.06538
- Fedus, W., Zoph, B., & Shazeer, N. (2022). Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity. Journal of Machine Learning Research, 23(120), 1-39. jmlr.org/papers/v23/21-0998.html
ESPAD One
Shik is the ESPAD AI model for specialist agent orchestration.