BlockServe: Block-Grained Continuous Batching for High-Throughput Diffusion LLM Serving

Yuanjie Zhu, Liangwei Yang, Ke Xu, Weizhi Zhang, Shanghao Li, Zihe Song, Philip S. YuarXiv 2026

TL;DR

BlockServe introduces block-grained continuous batching for Diffusion Large Language Models (dLLMs), solving the problem of faster requests stalling behind slower ones during parallel text generation. By evicting completed requests at block boundaries and dynamically managing memory with a token budget, it achieves up to a 10.6× throughput boost over state-of-the-art baselines without sacrificing generation quality.

What Problem Does This Paper Address?

In the autoregressive (AR) LLM paradigm, text is generated token-by-token, allowing serving engines to use token-level continuous batching to keep GPUs highly utilized. However, Diffusion LLMs (dLLMs) represent a fundamental paradigm shift: they generate text by iteratively denoising entire blocks of tokens in parallel.

When batching multiple requests in dLLMs, different sequences converge at different rates—a phenomenon the authors call convergence heterogeneity. In traditional static batching, the entire batch is held hostage by the slowest request (the "straggler"). This creates massive "compute bubbles" (idle GPU resources) and severe long-tail latency because completed requests must sit idle until the entire batch finishes. Token-level batching cannot be directly applied here because dLLMs operate on discrete multi-token blocks rather than single tokens.

Methods

BlockServe introduces a specialized serving framework that enables high-throughput continuous batching for dLLMs without altering the underlying model architecture. It consists of three core components:

  1. Block-Grained Scheduler: Instead of waiting for the entire batch to synchronize, this scheduler performs completion checks at block boundaries and immediately evicts finished requests. This fine-grained preemption reclaims resources at every block cycle.
  2. Mixed-State Memory Manager: To execute requests that are at different block indices within a single dense tensor, BlockServe uses gather-scatter indexing. This mechanism extracts active block regions into a compact tensor for denoising and scatters the results back to their corresponding positions, avoiding the need for custom GPU kernels. It also applies Logical Positional Alignment (left-padding and explicit position IDs) to maintain correct relative distances for rotary embeddings (RoPE).
  3. Compute-Aware Admission Controller: BlockServe abandons fixed batch sizes in favor of a length-aware token budget policy. It sorts the pending queue by prompt length and uses a greedy "sand-filling" strategy to pack requests into the current tensor bounding box, maximizing hardware utilization while safely avoiding Out-of-Memory (OOM) errors.
Fig. 1. Overview of BlockServe’s continuous batching framework. Requests from a length-sorted queue (left) are batched at block granularity; dashed-green cells indicate the next block to be processed. Example 1 (top): eviction and refill upon request completion. Example 2 (bottom): dynamic batch expansion via bounding-box shrinkage.

Datasets

The framework was evaluated across five widely used standard benchmarks covering mathematical reasoning, code generation, and factual question answering:

  • GSM8K: Grade-school math word problems.
  • HumanEval: Python function-synthesis problems evaluated with unit tests.
  • MBPP: Short Python program synthesis from natural language.
  • MATH: Challenging competition mathematics problems.
  • TruthfulQA-Gen: Factual generation benchmark to measure model truthfulness.

The evaluations were conducted using two prominent open-source dLLM models: LLaDA-8B-Instruct and Dream-v0-Instruct-7B.

Key Insights and Ideas

  • The Straggler Effect Scales Poorly: As batch sizes increase, the probability of encountering a long-running request within the batch increases dramatically. Block-grained preemption effectively decouples an individual request's latency from the composition of its batch.
  • Dynamic Bounding Box Shrinkage: When a request defining the current maximum sequence length completes and is evicted, the entire tensor bounding box shrinks. This instantly frees up memory budget for multiple new admissions without requiring explicit, complex memory reclamation.
  • No Custom Kernels Required: By leveraging gather-scatter indexing as an implementation primitive, BlockServe achieves highly efficient mixed-state batching using standard, highly optimized GPU layout operations.

Key Results

  • Throughput Improvement: BlockServe consistently outperforms the state-of-the-art Fast-dLLM baseline, achieving a 1.9× to 10.6× throughput improvement across benchmarks. The largest speedup (10.6×) occurs on TruthfulQA with the Dream model, where short output lengths typically amplify the straggler effect in static batching frameworks.
  • Capacity Expansion: The token-budget admission control enables a 2.0× to 4.0× increase in effective batch capacity under identical hardware constraints. For example, the maximum safe batch size on LLaDA using the MBPP dataset jumps from 16 to 64.
  • Quality Preservation: Task-specific accuracy remains completely comparable to the baselines (e.g., matching the ~36% baseline accuracy on the MATH benchmark), proving that performance gains do not come at the cost of generation quality.

Limitations and Future Work

  • Offline Focus: The current implementation and evaluation focus exclusively on offline batch inference, where all user requests are available in a pending queue upfront.
  • Online Serving: Extending BlockServe to online serving scenarios—which feature dynamic, unpredictable request arrivals over time—remains an open and critical direction for future work.

Summary updated

BibTeX
@misc{zhu2026blockserve,
  author = {Yuanjie Zhu and Liangwei Yang and Ke Xu and Weizhi Zhang and Shanghao Li and Zihe Song and Philip S. Yu},
  title = {{BlockServe: Block-Grained Continuous Batching for High-Throughput Diffusion LLM Serving}},
  year = {2026},
  eprint = {2607.08930},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.08930},
}
Figure