cs.LGMar 25, 2026

Robust Batch-Level Query Routing for Large Language Models under Cost and Capacity Constraints

Authors: Jelena Markovic-Voronov, Kayhan Behdin, Yuanda Xu, Zhengze Zhou, Zhipeng Wang, Rahul Mazumder

Organizations: LinkedIn · MIT

Abstract

We study the problem of routing queries to large language models (LLMs) under cost, GPU resources, and concurrency constraints. Prior per-query routing methods often fail to control batch-level cost, especially under non-uniform or adversarial batching. To address this, we propose a batch-level, resource-aware routing framework that jointly optimizes model assignment for each batch while respecting cost and model capacity limits. We further introduce a robust variant that accounts for uncertainty in predicted LLM performance, along with an offline instance allocation procedure that balances quality and throughput across multiple models. Experiments on two multi-task LLM benchmarks show that robustness improves accuracy by 1-14% over non-robust counterparts (depending on the performance estimator), batch-level routing outperforms per-query methods by up to 24% under adversarial batching, and optimized instance allocation yields additional gains of up to 3% compared to a non-optimized allocation, all while strictly controlling cost and GPU resource constraints.

Figures & tables

Appendix figures & tables11 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. WISERouter: LLM Routing with Workload Budget Constraint

    Jul 26, 2026Yifei Li, Zihui Gao, Laks V. S. LakshmananLLM RoutingContextual Bandits

  2. Mind the Delay: Latency-aware Query Routing for Heterogeneous LLM pools

    May 13, 2026Shivam Patel, Akaash R. Parthasarathy, Akash Dhasade +2LLM ServingLLM Routing

  3. RACER: Risk-Aware Calibrated Efficient Routing for Large Language Models

    Feb 20, 2026Sai Hao, Hao Zeng, Hongxin Wei +1Set-Valued PredictionLLM Routing