Beyond Accuracy and Cost: Latency-Aware LLM Query Routing for Dynamic Workloads

작성자

카테고리:

← 피드로
arXiv cs.AI · Shivam Patel, Akaash R. Parthasarathy, Ankur Mallick, Gauri Joshi · 2026-07-22 AI

[Submitted on 13 May 2026]

View PDF HTML (experimental)

Abstract:Modern language query routers improve inference efficiency by assigning each query to a model that balances response quality and monetary cost. However, current query routers are largely latency-agnostic and do not consider the generation latency experienced by queries at model instances. In practice, latency is often controlled by load-balancing policies such as round-robin or join-the-shortest-queue, which do not account for model accuracy or inference cost. Incorporating query latency into routing is challenging as it depends not only on the query’s prompt length, but also on the current prefill and decode workload at the model instance and the scheduling and batching policy of the serving framework. We design a lightweight latency estimator that simulates autoregressive token batch processing in the serving framework and estimates the time-to-first-token (TTFT) of queries. We incorporate this latency estimator into a latency-aware router that jointly optimizes latency, accuracy, and cost when assigning queries to model instances. Our experimental results indicate that this joint optimization yields up to 40% improvement in accuracy–cost utility while maintaining the same latencies as standard load-balancing approaches.

Submission history

From: Shivam Patel [view email]
[v1] Wed, 13 May 2026 20:29:09 UTC (1,247 KB)

원문에서 계속 ↗

추출 본문 · 출처: arxiv.org · https://arxiv.org/abs/2607.18253

코멘트

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다