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

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

TL;DR

Traditional LLM serving systems rely on time-centric scheduling heuristics like Shortest Job First (SJF), which fail to account for the dynamic, linear growth of memory consumption during token generation. This paper introduces Smallest Volume First (SVF) and a highly lightweight 1-bit SVF variant, which treat scheduling as a 2D spatio-temporal geometry problem (Memory $\times$ Time). By optimizing for memory volume rather than just execution time, these algorithms drastically reduce average and tail latencies while providing strong theoretical guarantees.

What Problem Does This Paper Address?

When serving Large Language Models (LLMs) at scale, the primary bottleneck isn't just raw compute power—it's memory management, specifically the Key-Value (KV) cache. LLM inference happens in two stages: prefill (processing the input prompt) and decode (generating output tokens one by one). Crucially, during the decode phase, the KV cache grows linearly with every single token generated.

Existing inference engines typically use traditional 1D, time-centric scheduling heuristics like Shortest Job First (SJF) to prioritize requests. However, the authors point out a fundamental dimensional mismatch: SJF assumes a static resource footprint over time. In LLM serving, continuous batching causes concurrent batch sizes and memory footprints to fluctuate dynamically. Ignoring this 2D spatio-temporal growth leads to severe head-of-line blocking and memory thrashing. In fact, recent theory proves that SJF yields an unbounded worst-case competitive ratio under strict memory constraints.

Methods

To bridge the gap between classical scheduling theory and the physical realities of LLM serving, the authors propose a geometry-aware online scheduling paradigm:

  1. Smallest Volume First (SVF): Instead of isolating execution time, SVF calculates the total 2D "volume" of a request—the integral of its memory consumption over its lifecycle. Given a prompt length $s_i$ and predicted output length $o_i$, the volume $v_i$ is defined as: $$v_i = s_i \cdot o_i + \frac{o_i^2 + o_i}{2}$$ Requests are then sorted and prioritized in ascending order of their geometric volume.

  2. 1-bit SVF: Recognizing that exact output length prediction can introduce computational overhead, the authors designed a minimalist variant. It uses an ultra-low-overhead binary classifier to categorize requests simply as "short" or "long." It then applies theoretically derived global proxy lengths to compute a proxy volume, proving that just a single bit of predicted information is enough to achieve highly effective scheduling.

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

The authors provide a rigorous mathematical foundation for SVF. Using a novel "volume-certificate" proof, they sharpen SVF's worst-case competitive ratio from the prior state-of-the-art constant of 48 down towards 3 in high-concurrency serving regimes.

Datasets

The authors evaluated their approach by integrating it as a plug-and-play layer within the popular vLLM execution engine. They simulated realistic, heterogeneous workloads using two distinct datasets:

  • LMSYS-Chat: Represents high-concurrency, interactive chatbot traffic with highly variable request characteristics.
  • LongBench: Introduces memory-intensive, long-context tasks that typically strain LLM serving infrastructure.

Evaluations were performed using Meta-Llama-3.1-8B-Instruct (on a single NVIDIA A100 80GB GPU) and Meta-Llama-3.1-70B-Instruct (distributed across 8 $\times$ A100 GPUs using tensor parallelism).

Key Insights and Ideas

  • The "Memory Shadow": Continuous batching under KV cache limits is a highly stateful 2D packing problem. A single long request casts a long "memory shadow" over future scheduling decisions, creating long-horizon dependencies that traditional 1D schedulers cannot foresee.
  • The Oracle Paradox: In memory-intensive workloads (like LongBench), an Oracle SJF scheduler (which has perfect future knowledge of token lengths but only optimizes for time) actually performs worse than the non-oracle SVF scheduler. This empirically proves that time-centric metrics are fundamentally misaligned with LLM serving dynamics.
  • Greediness Guarantees Fairness: Counter-intuitively, greedily prioritizing requests with the smallest 2D volume prevents the starvation of long requests. By rapidly processing low-volume requests, SVF quickly releases bounded KV cache memory back to the system, breaking global head-of-line blocking and allowing larger requests to be admitted much earlier.

Key Results

The experimental results demonstrate comprehensive performance gains across models and workloads:

  • Latency Reduction: SVF consistently achieved the lowest average and P95 tail latencies. For instance, on the memory-heavy LongBench dataset with the Llama-3.1-8B model, SVF reduced average per-token latency to 70.01 s/tok compared to SJF's 106.15 s/tok.
  • 1-bit SVF Efficiency: Despite its simplicity, 1-bit SVF significantly outperformed standard First-Come-First-Serve (FCFS) and remained highly competitive with full SVF, particularly in terms of throughput.
  • Negligible System Overhead: Profiling revealed that the regression predictor for full SVF consumed at most 0.06% of end-to-end execution time, while the 1-bit classifier consumed $\le$ 0.01%, making both approaches highly viable for production deployment.
Figure 2: Practical Performance under Poisson Arrivals

Limitations and Future Work

While this work establishes a robust framework for single-worker settings (including standard tensor-parallel setups), the authors note that their current implementation does not account for distributed, multi-node LLM clusters.

Future research directions include extending this 2D geometry-aware paradigm to multi-GPU clusters. This will require developing new load-balancing and request-migration strategies that can dynamically manage evolving 2D memory footprints across separate nodes while minimizing inter-worker communication overhead.

Summary updated

BibTeX
@misc{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}},
  year = {2026},
  eprint = {2606.22327},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.22327},
}
Figure