EWSJF: An Adaptive Scheduler with Hybrid Partitioning for Mixed-Workload LLM Inference

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.

Paper

References (14)

022022. Orca: A Distributed Serving System for Transformer-Based Generative Models16th USENIX Symposium on Operating Systems Design and Implementation (OSDI 22)
03Strategic Loop (Background). The offline optimizer executes Refine-and-Prune on a historical window of 𝑁 requests
04Table 11: Complexity and feature comparison of scheduling strategies
052024. Sarathi-Serve: Efficient LLM Inference via Iteration-Level Scheduling18th USENIX Symposium on Operating Systems Design and Implementation (OSDI 24)
062024. Token-Level Inference Cost Estimation for Large Language Models
072024. FIFO is Not Fair: Fairness-Aware Scheduling for LLM InferencearXiv
082024. Accelerating Multi-Turn Dialogue with Cache-Aware SchedulingarXiv
09Tactical Loop (Real-Time)
102026. EWSJF Implementation for vLLM
112024. Autellix:EfficientAgenticWorkflowsviaDecoupled Scheduling
12Mitigating Head-of-Line Blocking. Citation details omitted for double-blind review

Scroll for more · 2 remaining

Similar papers

© 2026 NYSGPT2525 LLC