DepCap: Adaptive Block-Wise Parallel Decoding for Efficient Diffusion LM Inference

Xiang Xia, Wuyang Zhang, Jiazheng Liu, Cheng Yan, Yanyong ZhangarXiv 2026 · DOI

TL;DR

This paper introduces DepCap, a novel framework for accelerating diffusion language model (DLM) inference. DepCap achieves significant speedups (up to 5.63x) without sacrificing generation quality by adaptively determining block boundaries and safely parallelizing token decoding within blocks, addressing a key bottleneck in DLM deployment.

What Problem Does This Paper Address?

Diffusion language models (DLMs) offer a promising alternative to traditional autoregressive models for text generation, boasting the potential for parallel decoding and global sequence refinement. However, their inference process is computationally expensive, creating a trade-off between generation quality and speed. Existing "block-wise" decoding methods, which process the sequence in chunks, improve this trade-off but rely on fixed block sizes or simple local signals for decisions. This leads to suboptimal performance because these methods don't fully leverage the rich, multi-step information available during the DLM's denoising process. Specifically, they struggle to adaptively determine optimal block boundaries and to safely parallelize decoding within blocks without introducing errors due to token conflicts.

Methods

DepCap tackles these challenges with a two-pronged approach:

  • Dependency-Guided Adaptive Block Partitioning Strategy (DepGA-Block): Instead of fixed block sizes or current-step signals, DepGA-Block uses a "cross-step signal" derived from the last decoded block. It measures how much the previous block's decoding influences future token predictions (last-block influence) and combines this with the uncertainty of future predictions. This allows DepCap to dynamically decide how far the next block should extend, adapting to the evolving generation process.
  • Conflict-Aware Parallel Decoding Strategy (CAP-Decoding): Within a chosen block, DepCap goes beyond simple confidence-based parallel decoding. It explicitly identifies and resolves token conflicts. By detecting pairs of tokens that are likely to be decoded incorrectly if processed simultaneously, CAP-Decoding constructs a "conflict-free subset" of tokens that can be safely decoded in parallel, enabling more aggressive acceleration without quality degradation.

DepCap is designed as a "plug-and-play" method, meaning it can be integrated into existing DLM inference pipelines without requiring retraining and is compatible with common KV-cache acceleration techniques.

Datasets

The paper evaluates DepCap on the following benchmarks:

  • GSM8K (5-shot): Mathematical reasoning.
  • Math-500 (4-shot): Mathematical reasoning.
  • MBPP (3-shot): Code generation.
  • HumanEval (0-shot): Code generation.

The models used for evaluation include:

  • LLaDA-8B-Instruct
  • Dream-v0-base-7B
  • LLaDA-1.5

No new benchmarks were introduced.

Key Insights and Ideas

  • Leveraging Cross-Step Information is Crucial: The core insight is that decisions about block partitioning and parallel decoding should not rely solely on immediate, local signals. The influence of the previous decoded block provides a powerful signal for guiding future decoding steps.
  • Adaptive Block Sizes Outperform Fixed Ones: The paper empirically demonstrates that fixed block sizes are suboptimal, and adaptive strategies like DepGA-Block offer a better balance of speed and quality.
  • Conflict Detection is Key for Safe Parallelism: Simple confidence thresholds are insufficient for parallel decoding. Explicitly modeling and resolving token conflicts is essential for achieving significant speedups without compromising accuracy.
  • DepCap is a General Framework: The plug-and-play nature of DepCap means it can be readily applied to various DLMs and combined with existing acceleration techniques like KV-caching, making it broadly applicable.

Key Results

  • Significant Speedup: DepCap achieves up to 5.63x speedup on the MBPP benchmark with LLaDA-1.5, while improving accuracy by 7.4% relative. Averaged across LLaDA task-model pairs, the full DepCap framework achieves a 3.57x speedup over vanilla decoding.
  • Balanced Speed-Quality Trade-off: DepCap consistently demonstrates favorable speed-quality trade-offs across multiple DLM backbones and benchmarks, often outperforming existing methods like Fast-dLLM and AdaBlock.
  • Effective with Caching: DepCap remains effective and provides a good balance of accuracy and throughput when combined with existing block-wise cache techniques (Prefix Cache, Dual Cache).
  • Component Contributions: Both DepGA-Block and CAP-Decoding contribute to the overall gains. DepGA-Block improves accuracy with competitive throughput, while CAP-Decoding significantly boosts speed with negligible quality degradation.

Limitations and Future Work

  • Theoretical Guarantees: The paper provides an information-theoretic analysis of the dependency score but acknowledges that it doesn't establish strict bounds or stronger formal guarantees.
  • Sliding-Window Decoding: The current work focuses on block-wise decoding. The authors suggest that adapting window sizes in sliding-window diffusion decoding, by incorporating historical denoising information, is a related and interesting future direction.
  • Extending Beyond Block-wise: Extending the ideas of DepCap beyond the block-wise setting to other DLM inference paradigms is also identified as a future research avenue.

Summary updated

Abstract

Diffusion language models (DLMs) have emerged as a promising alternative to autoregressive language generation due to their potential for parallel decoding and global refinement of the entire sequence. To unlock this potential, DLM inference must carefully balance generation quality and decoding speed. Recent block-wise DLM decoding methods improve this trade-off by performing diffusion-based decoding sequentially in blocks. However, existing methods typically rely on fixed block schedules or current-step local signals to determine block boundaries, and use conservative confidence-based parallel decoding to avoid conflicts, limiting the quality-speed trade-off. In this paper, we argue that block-wise DLM inference requires more suitable signals for its two core decisions: cross-step signals for determining block boundaries, and token-level conflict signals for parallel decoding. Based on this view, we propose DepCap, a training-free framework for efficient block-wise DLM inference. Specifically, DepCap instantiates the cross-step signal as the influence of the last decoded block and uses it to adaptively determine how far the next block should extend, while identifying a conflict-free subset of tokens for safe parallel decoding within each block, enabling substantial inference acceleration with negligible quality degradation. DepCap is a plug-and-play method applicable to various DLMs, and compatible with existing KV-cache strategies for block-wise DLM. An information-theoretic analysis further suggests that the cumulative last-block influence on a candidate block is approximately additive across tokens, supporting the proposed block-partitioning criterion. Experimental results show that DepCap achieves favorable speed-quality trade-offs across multiple DLM backbones and reasoning and coding benchmarks, with up to 5.63$\times$ speedup without significant performance degradation.
BibTeX
@misc{xia2026depcap,
  author = {Xiang Xia and Wuyang Zhang and Jiazheng Liu and Cheng Yan and Yanyong Zhang},
  title = {{DepCap: Adaptive Block-Wise Parallel Decoding for Efficient Diffusion LM Inference}},
  year = {2026},
  eprint = {2604.15750},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.15750},
}
Figure