arXiv(opens in a new tab)cs.CLSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.07883

Deadline-Aware Adaptive Prefill Chunking for Efficient Large Language Model Serving

Siyu Song, Qi Bai, Jinbo Hao, Kai Li, Chenchen Wang, Jiayu Sun

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Continuous batching improves large language model (LLM) serving throughput, but long prompt prefills can delay decode iterations and violate inter-token latency objectives. Chunked prefill mitigates this interference, yet its chunk size is normally fixed: small chunks protect decode latency but repeatedly pay launch overhead, while large chunks improve prefill efficiency but create latency spikes. We introduce SLOWEAVE, an online scheduling method that selects the largest prefill chunk predicted to finish before the earliest active decode deadline. The decision requires no workload-specific chunk-size tuning and is computed by a logarithmic-time search over a monotone iteration-cost model. We prove that, whenever a decode-only iteration is feasible and the cost predictor is accurate, SLOWEAVE maximizes immediate prefill progress among decisions that preserve every active request's next-token deadline. We evaluate the method in a reproducible event-driven simulator and an iteration-level GPU runtime across chat, mixed-context, long-context, and bursty workloads. Under a 25 ms time-per-output-token objective, SLOWEAVE improves goodput over the strongest fixed-chunk baseline by 39% on mixed requests and 38% on long-context requests. Under a stricter 10 ms objective, the gains rise to 3.3× and 2.4×, respectively. These results isolate adaptive chunk sizing as a useful serving primitive and provide an implementation-ready controller for integration with iteration-level LLM runtimes.

1 Introduction

Serving an autoregressive LLM alternates between two computationally different phases. The prefill phase processes an input prompt in parallel and constructs its key-value (KV) cache. The decode phase repeatedly reads that cache to emit one token at a time. Modern runtimes continuously batch requests to increase utilization (Yu et al., 2022; Kwon

et al., 2023), but sharing a worker creates interference: a long prefill can block active decodes and produce a visible pause in every streamed response.

Chunked prefill divides a prompt into smaller pieces and mixes those pieces with decode iterations (Agrawal et al., 2024). It introduces a consequential control variable: chunk size. A small chunk limits interruption time but needs many iterations, each with scheduling and kernel-launch overhead. A large chunk amortizes overhead and reaches the first token quickly in isolation, but may violate the time-per-output-token (TPOT) objective of every active request. The appropriate value changes with decode batch size, prompt length, hardware, kernel implementation, and the service-level objective (SLO). A single static value therefore cannot be robust across a changing serving workload.

We propose SLOWEAVE, a deadline-aware adaptive chunking policy. At each iteration, the scheduler assigns every active decode a next-token deadline. It then queries an iteration-cost predictor and admits the largest pending prefill chunk whose joint prefill-decode iteration completes before the earliest deadline. When no decode is active, it uses a large cap to accelerate time-to-first-token (TTFT). The method is deliberately narrow: it changes neither model weights nor attention kernels, and it is complementary to memory management, phase disaggregation, and model parallelism.

This paper makes three contributions:

  1. We formulate prefill chunk sizing as an online, deadline-constrained progress-maximization problem and give a simple adaptive algorithm.

  2. We establish a per-iteration safety and maximality result under a monotone cost model, and discuss robust margins for prediction error.

  3. We provide an independent event-driven im-plementation and a GPU runtime evaluation spanning four request distributions, three TPOT targets, multiple accelerator/model configurations, and static baselines.

The evaluation combines a controlled method study with end-to-end GPU measurements. The simulator, cost parameters, workload generator, raw runs, and aggregation code accompany the paper. This makes the scheduling trends reproducible while the runtime experiments capture hardware-specific effects.

References (10)