Robust Batch-Level Query Routing for Large Language Models under Cost and Capacity Constraints
summary
Proposes a batch-level, resource-aware router that uses lightweight estimators (kNN, small nets, XGBoost) plus uncertainty estimates and a batch-level integer program solved with off‑the‑shelf approximations to enforce cost, GPU instance counts and concurrency. Evaluated on 25k/10k train/test splits routing to 20 LLMs, robust variants raise accuracy by 1–14% and batch routing beats per‑query methods by up to 24% under adversarial batching, while also optimizing model‑instance allocation and holding cost/GPU constraints.
AI-written summary · about
chapters (10)
- 0:00Introduction to LLM routing
- 1:22Router components overview
- 2:29LLM performance estimation
- 3:56Per-query optimization limits
- 4:39Batched optimization framework
- 6:47Uncertainty-aware routing benefits
- 8:10Router surpasses best model
- 8:54Resource strategy optimization
- 10:00Constraint batched optimization results
- 11:29Key takeaways and conclusion
