TL;DR
JITServe is an SLO-aware LLM serving system designed to maximize service "goodput"—the volume of completed requests that actually meet their responsiveness targets—across highly diverse workloads like streaming chat, tool-use deadlines, and multi-agent workflows. By shifting from exact runtime predictions to a "Just-in-Time" scheduling approach that embraces imprecise upper bounds and refines them dynamically, JITServe improves service goodput by 1.4× to 6.3× or slashes resource costs by up to 83.2% compared to state-of-the-art schedulers.
What Problem Does This Paper Address?
As Large Language Models (LLMs) transition from simple standalone chatbots to complex multi-agent systems and deep reasoning pipelines, the nature of user requests has diversified dramatically. The authors categorize modern LLM workloads into three distinct patterns:
- Latency-sensitive requests: Interactive applications (like streaming chat) where the time-to-first-token (TTFT) and time-between-tokens (TBT) directly dictate user experience.
- Deadline-sensitive requests: Applications interacting with external tools (like cloud AIOps or data cleaning) that require the full response within a strict end-to-end latency (E2EL) window to prevent downstream timeouts.
- Compound requests: Multi-step workflows (like deep research or hierarchical reasoning) consisting of multiple dependent LLM calls that must collectively finish before a global deadline.
Existing LLM serving systems are fundamentally misaligned with these diverse needs because they optimize for aggregate throughput or average latency. Consequently, they suffer from high Service Level Objective (SLO) violation rates. Furthermore, scheduling is plagued by pervasive uncertainties: predicting exact response lengths a priori is notoriously inaccurate due to the probabilistic nature of token sampling, and multi-agent execution paths evolve dynamically at runtime.
Methods
JITServe operates as an intelligent middleware layer above standard execution backends (like vLLM). It addresses request uncertainty and scheduling efficiency through two core components:
- Request Analyzer (Refining Imprecise Information): Instead of trying to predict exact response lengths, JITServe uses a lightweight Quantile Regression Forest (QRF) to estimate a conservative upper bound on the response length. As the LLM generates tokens autoregressively, the analyzer periodically re-invokes the QRF to refine and relax this bound. For compound requests, it uses Pattern-Graph Matching against historical execution graphs to dynamically allocate proportional sub-deadlines across intermediate stages, preventing early-stage stragglers from ruining the global deadline.
- SLO-Aware Scheduler (GMAX Algorithm): JITServe introduces the Grouped Margin Goodput Maximization (GMAX) algorithm to solve a unique two-dimensional scheduling challenge. First, it prioritizes individual requests based on their "margin goodput per unit bandwidth" (the goodput payoff relative to remaining generation time). Second, to mitigate the severe execution slowdowns caused by batching requests of highly mismatched lengths, GMAX uses a sliding-window approach to group requests with similar input lengths into the same execution batch. It also includes a cost-aware preemption mechanism that only interrupts running requests if the goodput gain outweighs the KV-cache swapping overhead.
Datasets
The authors evaluated JITServe across four representative applications using a mix of open datasets and benchmarks:
- Chatbot: Built using the Alpaca and LMSys-chat datasets.
- Math Reasoning: A long-context mathematical reasoning workload.
- Deep Research: A compound reasoning workload based on the Search Arena benchmark.
- Agentic CodeGen: An agentic workflow modeled after AutoGen and MetaGPT pipelines.
Request arrival patterns were simulated using Microsoft's real-world LLM serving trace as well as standard Poisson distributions.
Key Insights and Ideas
- Embrace Imprecision, Don't Fight It: Trying to predict exact token lengths before generation is a losing battle. JITServe succeeds by starting with a conservative upper bound (allocating enough bandwidth to guarantee the SLO) and dynamically reclaiming excess capacity as the request progresses.
- The Length Homogeneity Penalty: Traditional continuous batching systems suffer when long and short requests are mixed, because uneven sequence loads slow down per-layer execution. Co-optimizing priority alongside length homogeneity is essential for true serving efficiency.
- Proportional Sub-deadlines: For multi-stage agent workflows, treating deadlines uniformly fails. Allocating time proportionally based on historical graph progress (accumulated share) provides robust, realistic intermediate targets.
Key Results
- Goodput Multipliers: JITServe improves token-level and request-level goodput by 1.4× to 6.3× compared to state-of-the-art baselines like Autellix and Sarathi-Serve under diverse workloads.
- Resource Efficiency: For equivalent goodput targets, JITServe delivers 28.5% to 83.2% resource savings, allowing providers to host identical workloads on significantly less hardware.
- Near-Oracle Performance: Despite relying on imperfect, evolving predictions, JITServe performs within 3% to 9% of an "oracle" scheduler that possesses perfect foresight of request lengths and execution graphs.
- Negligible Overhead: The system maintains 96% to 98% of the raw throughput of a pure FIFO scheduler, proving that its advanced scheduling logic and preemption safeguards add minimal computational drag.
Limitations and Future Work
While JITServe demonstrates impressive robustness, its pattern-graph matching relies on the availability of historical execution traces to cluster and match workflows accurately. Cold-start scenarios with entirely novel agent behaviors might initially suffer from less accurate sub-deadline allocations until enough history is accumulated. Additionally, while the paper outlines extensions for multi-model replica serving and fairness constraints, deep integration with highly heterogeneous distributed hardware topologies (e.g., asymmetric GPU clusters) remains an open area for future exploration.
Summary updated