Work

Difficulty-Aware Query Routing for Tiered Language-Model Serving: A Confidence-Gated Cascade for Cost-Efficient Open-Weight Edge Inference

Year: 2026
Type: preprint
Abstract: LLMs are often served from a pool of models that differ greatly in size, cost and speed, yet most systems send every query to one large model. We present a difficulty aware router that answers each query with the cheapest model first, reads that model’s confidence in its own answer, and escalates only when confidence is too low. Predicting difficulty from the query text works only weakly: five router designs, including RouteLLM style routers, plateau at AUC 0.59 to 0.69, whereas the small model’s single pass logprob confidence reaches test AUC 0.75 (95% CI 0.71 to 0.78) at tier 1 and 0.82 (0.79 to 0.85) at tier 2. Routing brings no per query accuracy gain: at matched latency, always using the mid sized model is 1.8 percentage points more accurate (CI 0.3 to 3.6). Its value appears under load. On open weight models served through Ollama on one 8 GB GPU, a discrete event simulation replaying measured service times shows the cascade sustaining 12.9 times (CI 11.4 to 14.0) the throughput of always using the largest model, and real concurrent serving confirms 9.8 to 12 times, because the slow, memory bound top tier stays lightly loaded. An oracle bound of 93.4% accuracy marks the remaining headroom. All results come from an untouched test split at zero API cost.
Language: English
Open Access status: green
OpenAlex ID: W7238846139
Cites: 47
Cited by:
Related to: