Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

RouteNLP: Closed-Loop LLM Routing with Conformal Cascading and Distillation Co-Optimization

About

Serving diverse NLP workloads with large language models is costly: at one enterprise partner, inference costs exceeded $200K/month despite over 70% of queries being routine tasks well within the capability of smaller models. We present RouteNLP, a closed-loop framework that routes queries across a tiered model portfolio to minimize cost while satisfying per-task quality constraints. The framework integrates three components: a difficulty-aware router with shared task-conditioned representations trained on preference data and quality signals; confidence-calibrated cascading that uses conformal prediction for distribution-free threshold initialization; and a distillation-routing co-optimization loop that clusters escalation failures, applies targeted knowledge distillation to cheaper models, and automatically retrains the router, yielding over twice the cost improvement of untargeted distillation. In an 8-week pilot deployment processing ~5K queries/day at an enterprise customer-service division, RouteNLP reduced inference costs by 58% while maintaining 91% response acceptance and reducing p99 latency from 1,847 ms to 387 ms. On a six-task benchmark spanning finance, customer service, and legal domains, the framework achieves 40-85% cost reduction while retaining 96-100% quality on structured tasks and 96-98% on generation tasks, with human evaluation confirming that 74.5% of routed generation outputs match or exceed frontier-model quality.

Dongxin Guo, Jikun Wu, Siu Ming Yiu• 2026

Related benchmarks

TaskDatasetResultRank
Large Language Model Routing and OrchestrationVolume-weighted aggregate of six tasks (Fin. NER, Fin. Summ., CS Intent, CS Resp., Legal Cl., Legal Risk)
Quality Score97.1
12
ClassificationLegal Cl. (test)
F1 Score90.9
7
Intent ClassificationCS Int. (test)
F1 Score95.8
7
Named Entity RecognitionFin. NER (test)
F1 Score93.8
7
Risk AssessmentLegal Risk (test)
Accuracy0.861
7
Response GenerationCS Resp. (test)
BS69.7
7
SummarizationFin. Summ. (test)
ROUGE-L46.9
7
Showing 7 of 7 rows

Other info

Follow for update