EWSJF: An Adaptive Scheduler with Hybrid Partitioning for Mixed-Workload LLM Inference
Bronislav Sidik, Chaya Levi, Joseph Kampeas
TL;DR
This paper tackles the bottleneck of serving mixed-workload LLM inferences by introducing EWSJF, an adaptive upstream scheduler that learns workload structure in real time. EWSJF combines Refine-and-Prune to partition requests into performance-homogeneous queues, a Density-Weighted Scoring function to balance urgency and fairness, and a Bayesian meta-optimizer to continually tune parameters, all implemented as a pluggable module in vLLM. The approach yields substantial improvements in end-to-end throughput (over 30%) and dramatic reductions in Time-To-First-Token for short queries (up to 4x) across realistic, mixed workloads, while maintaining fairness. This work provides a practical, learning-based layer for efficient LLM serving and points to future directions in integrating adaptive scheduling with execution-level optimizations and multi-model environments.
Abstract
Serving Large Language Models (LLMs) under mixed workloads--short, latency-sensitive interactive queries alongside long, throughput-oriented batch requests--poses a fundamental scheduling challenge. Standard First-Come, First-Served (FCFS) policies suffer from severe head-of-line blocking, leading to high tail latency and underutilized hardware. We introduce EWSJF (Effective Workload-based Shortest Job First), an adaptive request-level scheduler that learns workload structure in real time to jointly improve fairness and throughput. EWSJF operates upstream of execution-level schedulers and integrates four components: (1) Refine-and-Prune, an unsupervised partitioning algorithm that discovers performance-homogeneous request groups; (2) Dynamic Queue Routing for assigning requests to these groups; (3) Density-Weighted Scoring, a context-aware prioritization function balancing urgency and fairness; and (4) Bayesian Meta-Optimization, which continuously tunes scoring and partitioning parameters based on live performance feedback. Implemented in vLLM, EWSJF improves end-to-end throughput by over 30% and reduces average Time-To-First-Token for short requests by up to 4x compared to FCFS. These results demonstrate that adaptive, learning-based request scheduling is a critical missing layer for efficient and responsive LLM serving. Implementation available at https://anonymous.4open.science/r/vllm_0110-32D8.
