Manuscript Offprint

arXiv:2609.35263

WavePP: High-Throughput Pipeline Parallel LLM Prefill under Prefix Reuse

Aaryam Sharma

Abstract

Pipeline parallelism can improve prefill throughput by processing multiple request chunks concurrently across different stages of the model. However, keeping the pipeline fully utilized requires efficient scheduling and request preparation. In systems where stages retain and evict cache state independently, a local cache hit does not guarantee that the same prefix can be reused across the pipeline. Here, coordination overhead can impede request admission cadence and thus reduce overall throughput. In this paper, we present WavePP, a prefill runtime built on top of TensorRT-LLM that addresses these challenges by overlapping request admission with pipeline execution. WavePP asynchronously finds a prefix that can be reused across all stages, protects the cached state, and reserves space for the remaining input while earlier requests continue to execute. It subsequently plans the chunk sizes of each request dynamically to maximize pipeline fill. Each stage then completes the local preparation before executing the request. In the same system and pipeline topology, WavePP improves TensorRT-LLM's prefill throughput in 37 of 40 tested settings on GLM 5.2 and MiniMax M2.7. At concurrency 128 with high cache reuse, these changes increase throughput by factors of 2.91 and 2.02, respectively. Across 28 Kimi K3 settings, WavePP also has the highest measured throughput in all 18 settings at concurrency eight or higher, compared with tensor/expert-parallel and pipeline-parallel baselines from TRT-LLM, SGLang, and vLLM.

1. Introduction

Large Language Models (LLMs) have become ubiquitous in our daily lives. As agentic workloads have gained popularity, LLMs increasingly process larger amounts of text in the conversation, documents, and outputs from tools. Even if only a few tokens are generated, serving such requests can be computationally expensive [1]. Therefore, improving inference performance has become a key focus of recent serving systems [2–4].

LLM inference is often split into a prefill phase and a decode phase. The prefill phase processes the initial input tokens and fills the cache with the necessary state for generation, while the decode phase autoregressively generates new output tokens, continuously updating the same cache. In many enterprise systems, this work is often split between separate worker types using disaggregated serving. This is especially effective when multiple long context requests need to be processed so that the prefill computation remains decoupled from the decode work.

In addition to increasing input sizes, however, LLMs themselves have also substantially grown in size. The largest frontier models often do not fit on a single GPU. Including space

1^{1}https://www.baseten.co/ for caches, models are often split over even more GPUs. Several parallelism strategies exist to achieve this, such as tensor parallelism (TP) which divides individual layers across GPUs, pipeline parallelism (PP) splits the model into contiguous groups of layers, and context parallelism (CP) divides work along the request input length. Each strategy has different costs in terms of communication, but also the concurrent amount of work that is done [5–7]. In particular, each parallelism strategy not only has specific advantages for different workloads, but also for different inference phases.

PP has often been used for throughput efficiency in both training and inference. Since several microbatches are passed through successive groups of layers in parallel, it allows several parts of the model to execute concurrently, also increasing the number of concurrent inputs processed [6, 8, 9]. Many training systems hence also support PP for general neural networks. For inference, many popular libraries support pipeline parallelism for prefill [10, 11] and several works optimize scheduling when prefill and decode share a pipeline. These optimizations include improving scheduling to reduce bubbles between prefill and decode batches [4], dynamically chunking requests to reduce imbalance between pipeline stages [9], and overlapping host-side work with GPU work efficiently for prefill or decode [12, 13].

Due to the autoregressive nature of most modern LLMs, the cached states of a shared prefix can be reused across requests which greatly reduces computation in online serving, agentic workflows, and batch inference with common shared prompts [2, 3, 14–16]. For PP, each stage typically contains a local cache for its layers, making request preparation a distributed operation. This coordination can be simplified with a shared cache view, or by replicated schedulers operating on compatible logical states in practical inference systems. Instead, we consider an alternative system, where KV blocks and recurrent-state snapshots may be retained, offloaded, and evicted independently, both within a stage and also across pipeline stages. This enables each stage to conduct host side cache management independently, while ranks agree on reuse and follow a common execution schedule. Each cache manager can respond to local memory pressure and prepare requests around local execution. When pipeline stages are not balanced, one stage can prepare a request while another is still computing.

However, this means that in our setting, a local cache hit does not guarantee that this point can be reused globally. The ranks hence must agree on a common reuse boundary, protect the agreed upon state, and reserve sufficient capacity for the uncached input suffix. Performing this work on the main execution path can delay the next forward pass, meaning that our runtime must establish these guarantees sufficiently early to maintain pipeline occupancy.

We thus present WavePP, a runtime design that establishes this admission agreement efficiently while earlier requests continue through the pipeline. Each stage protects the reusable state and reserves space for the rest of the input before the request is scheduled. The stages then finish preparing their local caches independently, allowing stage 0 to begin without waiting for every stage to finish. The executor sees a sequence of waves, each containing one or more request chunks, hence leading to our name.

Our contributions are:

• We design WavePP, an asynchronous prefill runtime that overlaps request admission with pipeline execution while allowing stages to manage their caches independently.

• We develop a protocol that agrees on reusable state and reserves space for the remaining input before allocating the uncached suffix’s blocks. This lets stages prepare requests independently and delays eviction until the reserved space is needed.

• We show that faster admission, more waves in flight, and adaptive wave sizing together improve throughput on the same kernels. Within TensorRT-LLM PP4, these changes improve throughput in 37 of 40 GLM 5.2 and MiniMax M2.7 settings, with 2.91×2.91\times and 2.02×2.02\times throughput for short-suffix requests under cache pressure at concurrency 128.

• We compare WavePP with TP and PP baselines across cold, cached, and mixed Kimi K3 workloads. It has the highest measured throughput in all 18 settings at concurrency eight or higher.

References (39)