Geometry-Aware Online Scheduling for LLM Serving: From Theoretical Bound to System Practice

Li Kong, Qi Qi, Yinyu Ye, Zijie ZhouNeurIPS 2026

TL;DR

Serving Large Language Models (LLMs) at scale usually relies on classic scheduling rules like "Shortest Job First," which only look at time and ignore how LLM memory dynamically balloons with every generated word. By treating LLM requests as 2D shapes in memory-and-time space and prioritizing the Smallest Volume First (SVF), the authors slash inference latencies, shatter theoretical performance bounds, and prove that even a rough "short vs. long" guess is enough to beat traditional schedulers.

What Problem Does This Paper Address?

Imagine running a busy restaurant where diners don't just sit at a table for an hour—every minute they stay, their table physically expands, taking up more floor space until there's no room for new guests.

That is what serving LLMs looks like under the hood. As an LLM generates an answer token by token, its Key-Value (KV) cache—the working memory storing the conversation's context—grows continuously. Because GPU memory is strictly capped, the number of requests a server can juggle simultaneously fluctuates wildly at every step (a mechanism called continuous batching).

To prevent short requests from getting stuck behind massive ones, modern systems lean on classical heuristics like Shortest Job First (SJF), prioritizing requests with the fewest predicted output tokens. The catch? SJF is one-dimensional; it only cares about time. A job with a massive input prompt and a short output looks "fast" to SJF, even though it hogs a gigantic slab of GPU memory. Recent mathematical modeling revealed that because of this blind spot, SJF's worst-case performance in LLM serving is literally unbounded. The field needed a scheduling paradigm built natively for the 2D geometry of memory and time.

Methods

Instead of ranking requests by duration, the authors rank them by their 2D spatio-temporal volume—the integral of memory occupied over the request's lifecycle.

Figure 1: LLM Inference Process and the Calculation of Volume.

If a request has an input prompt length $s$ and an output length $o$, its memory footprint forms a base rectangle ($s \cdot o$) topped by a growing staircase of generated tokens ($\frac{o^2 + o}{2}$). Based on this geometry, the authors introduce two plug-and-play scheduling algorithms integrated into the popular vLLM engine:

  • Smallest Volume First (SVF): Uses an off-the-shelf BERT-base regression model to predict a request's output length $o$, computes its exact 2D volume, and greedily admits the smallest-volume requests from the waiting queue until GPU memory is full.
  • 1-bit SVF: Exact length prediction can be noisy and add overhead. This ultra-lightweight variant uses a tiny binary classifier (BERT-tiny) to extract just one bit of information: is the output short or long? It plugs a fixed, theoretically derived proxy length for each class into the volume formula and schedules accordingly.

Datasets

No new datasets were introduced; the authors evaluated their schedulers and trained their predictors (using strictly non-overlapping splits) on three existing, real-world workloads:

  • LMSYS-Chat: Interactive, high-concurrency user-chatbot conversations.
  • LongBench: Memory-heavy tasks featuring long input contexts.
  • BurstGPT: Real-world production LLM serving traces with non-stationary, spiky arrival timestamps (paired with LMSYS and LongBench prompts matching the trace's token-length profiles).

Key Insights and Ideas

  • From 48 down to 3 (Theoretical Breakthrough): Prior to this work, the best proven worst-case latency bound for LLM scheduling was 48x the offline optimal—and that required an impractical offline batching trick. Using a novel "volume-certificate" proof, the authors show that online greedy SVF achieves a worst-case approximation ratio of $1 + \frac{2}{1-\alpha}$ (where $\alpha$ is the max fraction of GPU memory a single request can take). In realistic high-concurrency production settings ($\alpha \to 0$), SVF's worst-case total latency approaches 3x the omniscient optimum.
  • Perfect Time Knowledge Loses to Approximate Geometry: In memory-heavy workloads (LongBench), Oracle-SJF—a hypothetical scheduler given perfect, cheating knowledge of exact future output lengths—still suffers worse average latency than standard SVF running on imperfect BERT predictions. Dimensionally, 1D time is simply the wrong metric.
  • Greedy Volume Helps Tail Fairness: Usually, greedy schedulers starve big jobs. Here, clearing small-volume jobs frees up GPU memory blocks so rapidly that head-of-line blocking evaporates, actually improving 95th-percentile (P95) tail latency rather than hurting it.

Key Results

Tested on Llama-3.1-8B (1x A100 GPU) and Llama-3.1-70B (8x A100 GPUs) across sudden traffic bursts and steady Poisson streams, geometry-aware scheduling consistently outperformed First-Come-First-Serve (FCFS) and SJF:

Figure 2: Practical Performance under Poisson Arrivals
  • Latency Slashed: Under burst arrivals on LongBench (Llama-3.1-8B), SVF cut average per-token latency to 70.02 s/tok, beating FCFS (125.89 s/tok), SJF (106.16 s/tok), and even Oracle-SJF (74.30 s/tok).
  • 1-Bit Punches Above Its Weight: On the spiky, real-world BurstGPT trace, 1-bit SVF was the best non-oracle policy overall—dropping average latency from 25.60 s/tok (SJF) down to 9.32 s/tok and P95 tail latency from 100.60 s/tok to 58.12 s/tok, while boosting token throughput.
  • Virtually Zero Overhead: Decoupling the predictor from the execution loop kept total scheduling policy overhead below 0.04% of end-to-end execution time (just 0.0203% for 1-bit SVF on LMSYS).

Limitations and Future Work

  • Theoretical Idealizations: To make the math tractable, the theoretical proofs assume non-preemptive execution (no mid-generation KV cache swapping/eviction), treat every token as a uniform discrete step in time and memory, and assume known output lengths (or clean geometric distributions).
  • Single-Worker Scope: While the 70B experiments spanned 8 GPUs via tensor parallelism (acting as one logical worker), the current system focuses on single-worker setups. Extending 2D volume-aware scheduling to multi-node, multi-GPU clusters—where schedulers must balance evolving 2D memory footprints alongside cross-node communication costs—is highlighted as the next major frontier.

Summary updated

Abstract

The rapid growth of interactive Large Language Model serving has made efficient management of dynamic Key-Value cache footprints increasingly important for inference performance. Modern inference systems overwhelmingly rely on time-centric scheduling heuristics, such as Shortest Job First. However, their classical guarantees are rooted in traditional scheduling modeling, failing to capture the highly dynamic, 2D spatio-temporal geometric growth specific to LLM inference mechanisms. To resolve this, we propose the geometry-aware online scheduling by introducing the Smallest Volume First (SVF) algorithm and its highly efficient variant, 1-bit SVF. Via a novel volume-certificate proof, we establish a worst-case approximation ratio for SVF that approaches \textbf{3} in the high-concurrency regime of LLM serving, substantially improving upon the prior best constant of 48. Building upon this core breakthrough, we complete a comprehensive theoretical taxonomy analyzing our algorithms across different traffic scenarios and information availability. Practically, we seamlessly integrate our approach as a plug-and-play layer in vLLM. Extensive evaluations on Llama-3.1 models demonstrate comprehensive performance gains: SVF delivers strong reductions in both average and tail latency, while 1-bit SVF, with merely a single bit of information, achieves competitive throughput and latency. This work establishes a theoretically sound and empirically proven approach for resolving memory-constrained scheduling in modern LLM deployments. To facilitate future research, our code is available at \url{https://github.com/Li-Beverly-Kong/Geometry-Aware-Online-Scheduling.git}.
BibTeX
@inproceedings{kong2026geometry,
  author = {Li Kong and Qi Qi and Yinyu Ye and Zijie Zhou},
  title = {{Geometry-Aware Online Scheduling for LLM Serving: From Theoretical Bound to System Practice}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=kyUowLfsTH},
}
Figure