LAPS: A Length-Aware-Prefill LLM Serving System

Jianshu She, Zonghang Li, Hongchao Du, Shangyu Wu, Wenhao Zheng, Eric P. Xing, Zhengzhong Liu, Huaxiu Yao, Jason Xue, Qirong Ho · DOI

Abstract

LAPS identifies and disaggregates requests with different prompt lengths in LLM serving to reduce TTFT latency. While recent systems have decoupled the prefill and decode stages to improve throughput, they still rely on unified scheduling policies that fail to adapt to heterogeneous workload characteristics. We observe that prompt-length variations lead to distinct performance bottlenecks, motivating an adaptive scheduling strategy. LAPS disaggregates multi-turn long-prefill requests from short-prefill ones and introduces a length-aware smart batching mechanism for short-prefill workloads. It adopts a dual-queue design that supports temporal disaggregation on a single prefill instance or spatial disaggregation across multiple instances. For short-prefill batches, a batch waiting window and CUDA Graph-based clustering mitigate interference from heterogeneous computation, reducing batching delay and lowering average latency. In real multi-turn workloads, LAPS reduces prefill latency by over 30% compared to vanilla SGLang under prefill-decode disaggregation, and further decreases SLO violations by 28% in multi-instance deployments with vanilla data-parallel configuration. Compared to the SGLang router with load balancing, it further lowers SLO violations by 12% in multi-GPU settings. Under high concurrency and mixed-request scenarios, LAPS improves request throughput by 35% serving Qwen2.5-32B model for prefill instance, demonstrating its effectiveness in optimizing heterogeneous LLM serving workloads.

Introduction

Modern Large Language Model (LLM) serving systems have significantly improved efficiency by decoupling the "prefill" stage (processing the initial prompt) from the "decode" stage (generating tokens sequentially). This separation prevents compute-bound prefills and memory-bound decodes from competing for the same hardware resources. However, a critical bottleneck remains: interference within the prefill stage itself.

In real-world multi-turn conversations, workloads are highly heterogeneous, consisting of massive initial prompts (long prefills) and short follow-up messages (re-prefills). Standard First-Come, First-Served (FCFS) schedulers often batch these together, leading to "head-of-line blocking." Short, memory-bound requests get stuck behind the heavy matrix multiplications of long, compute-bound requests, causing severe latency spikes and underutilizing GPU memory bandwidth.

Message length distribution in real-world workloads shows a high prevalence of short requests, especially in multi-turn conversations.

System Design: Length-Aware-Prefill Serving (LAPS)

To address intra-prefill interference, we propose LAPS (Length-Aware-Prefill Serving). LAPS introduces a novel architectural paradigm: prefill batch disaggregation.

LAPS architecture for temporal disaggregation, separating short and long prefill batches to optimize resource utilization.

The system employs several key techniques:

  • Compute-Memory Boundary Modeling: LAPS identifies the specific token length threshold where a prefill transitions from memory-bound (limited by KV-cache I/O) to compute-bound (limited by GPU arithmetic).
  • Long-Short Prefill Disaggregation: Incoming requests are split into independent queues. These can be executed via temporal disaggregation (alternating batches on one GPU) or spatial disaggregation (dedicating specific GPUs to short or long prefills).
  • CUDA Graphs for Short Prefills: By bucketizing isolated short re-prefills into stable shapes (e.g., lengths of 8, 16, 32), LAPS enables the use of CUDA Graphs in the prefill stage, eliminating CPU launch overhead.
  • Adaptive Wait-Depth (AWD) Scheduler: This scheduler balances wait time against execution speed by intentionally delaying dispatch for a few milliseconds to accumulate enough short requests to fill a pre-captured CUDA Graph shape.
  • Dynamic Instance Controller: In multi-GPU environments, a controller monitors backlogs and dynamically reallocates GPUs between short and long prefill pools to maintain load balance.

Evaluation

We evaluated LAPS using real-world conversational datasets, including LMsys-Chat-1M and ShareGPT. Analysis of these datasets confirms that production workloads are dominated by short prompts; for instance, 81% of multi-turn prompts in LMsys-Chat-1M are shorter than 256 tokens.

Key Results

  • Throughput: LAPS improved request throughput (RPS) by up to 35% for the Qwen2.5-32B model under high concurrency.
  • Latency: Average prefill latency was reduced by over 30% compared to vanilla SGLang with prefill-decode disaggregation.
  • SLO Compliance: In multi-instance deployments, LAPS decreased SLO violations by 28% compared to vanilla data-parallel configurations and by 12% compared to SGLang's load-balancing router.
  • Offline Efficiency: For offline dataset distillation, LAPS achieved an 8.3% reduction in total end-to-end processing time.

Discussion and Conclusion

LAPS demonstrates that re-prefills in multi-turn chats are fundamentally different from initial long prefills. Treating them as identical leads to the "convoy effect," where variance in service times inflates waiting times, disproportionately affecting short jobs. Counterintuitively, the AWD scheduler shows that slight delays to enable high-efficiency CUDA Graph execution can actually reduce overall latency under high concurrency.

While LAPS offers significant gains, it faces challenges such as the memory footprint of CUDA Graphs (~250MB per graph) and an 8-12 second initialization phase. Furthermore, its benefits are most pronounced in prefill-decode disaggregated architectures. Future work will focus on reducing the memory overhead of graph shapes and extending length-aware scheduling to non-disaggregated environments.

Summary updated

BibTeX
@misc{she2026laps,
  author = {Jianshu She and Zonghang Li and Hongchao Du and Shangyu Wu and Wenhao Zheng and Eric P. Xing and Zhengzhong Liu and Huaxiu Yao and Jason Xue and Qirong Ho},
  title = {{LAPS: A Length-Aware-Prefill LLM Serving System}},
  year = {2026},
  eprint = {2601.11589},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.11589},
}
Figure