Whitepaper
Dynamic Query Routing & Intent-Based Compute Allocation
Conversational AI systems send nearly every request, from “what time is it?” to multi-step analysis, through the same expensive large language model, which wastes compute and adds latency. This project develops a real-time routing framework that scores each query’s intent and complexity and sends it to the cheapest tier likely to answer it well: deterministic rules and APIs, a small low-cost LLM, or a frontier model. The outcome is an open benchmark, a reusable router, and measured evidence of how much cost and latency routing saves without a loss in answer quality.
Joseph UzoigweSubmitted Oct 28, 2026
Approved
This proposal was approved by the Director of Research and is listed on Current Research while it is active.
Proposal details
- Problem
- Most LLM-backed products (voice assistants, chatbots, custom agents) use one large model for every request. Trivial queries like time checks, timers, unit conversions and simple lookups could be answered exactly by a clock or an API in milliseconds. Instead, they are run through a frontier model’s full reasoning loop. That wastes tokens, adds latency, and can even reduce accuracy when the model guesses at a fact a deterministic source would return exactly. The opposite mistake is also costly: sending a hard question to a small model produces a weak answer that the user must notice and retry. The problem is urgent now because LLM inference has become a major operating cost for AI products, and model choices have multiplied. Teams can now choose among many small and frontier models at very different prices. Existing routing research mostly chooses between two language models and ignores the cheapest option of all, which is not calling a model. A principled method for matching each query to the least expensive capable tier is missing, and it affects every team that deploys conversational AI.
- Audience
- The primary readers are engineers building voice assistants, chatbots and AI agents. They should adopt tiered routing instead of defaulting every request to a frontier model, and use the paper’s cost–quality results to choose a router design. Budget owners and technical leads paying for inference at scale should use the findings to forecast and reduce spend.
- Approach
- The argument rests on a working system and measured evidence, not opinion alone. 1. Literature synthesis of LLM routing and cascade research (FrugalGPT, Hybrid LLM, RouteLLM, RouterBench, AutoMix) and intent-classification work for voice assistants (CLINC150, Amazon MASSIVE). 2. A three-tier reference architecture: deterministic rules and APIs (Tier 1), a small open-weight LLM (Tier 2), and a frontier model (Tier 3), with confidence-based escalation when a cheaper tier is uncertain. 3. A labeled benchmark built from public data (CLINC150/MASSIVE, LMSYS-Chat-1M, MMLU, GSM8K, MT-Bench). Each query is labeled with the cheapest tier that answers it correctly, using gold answers and an LLM judge that is checked against human labels. 4. A comparison of four router designs: heuristic rules, classical classifiers, a fine-tuned small encoder, and a preference-trained RouteLLM-style baseline. 5. Evaluation against all-frontier, all-small, random and oracle routing. Metrics are tier accuracy, under-routing rate, cost per 1,000 queries, p50/p95 latency, and answer quality retained relative to the frontier model.
- Differentiation
- Existing work shows routing saves money, but nearly all of it chooses among language models only. FrugalGPT cascades through paid LLMs, so every cheap attempt still costs tokens. Hybrid LLM and RouteLLM make a binary choice between a small and a large model and do not optimize latency. RouterBench evaluates routers on academic benchmark tasks rather than assistant-style traffic. Intent-classification research for voice assistants predates LLMs and is not framed as compute allocation. This project joins those two lines of work. It treats deterministic APIs as a first-class execution tier, puts cost and latency in a single routing objective, and evaluates on realistic mixed-difficulty traffic. It also releases an open benchmark labeled with the minimum sufficient tier for each query. No prior resource provides that.
- Proposed outline
- 1. Introduction: problem statement, research questions, audience, scope 2. Background and related work: LLM routing, cascades, intent classification 3. Data sources and preparation: benchmark construction and tier labeling 4. Methodology: three-tier architecture, complexity features, router models, escalation, routing objective 5. Evaluation: baselines, metrics, cost–quality frontier analysis 6. Results and discussion 7. Recommendations for practitioners 8. Limitations and future work 9. Conclusion
- Deliverables
- A formatted AAIR Labs paper in the series format. An open labeled routing benchmark of mixed-difficulty queries. A router prototype with Tier 1 handlers and trained routers in a public, reproducible repository. An interactive demo dashboard that shows the chosen tier, cost and latency for any typed query. A public summary and a short lab presentation of the results.
Prior work
No prior work was listed for this proposal.
