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

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

17 Apr 2026arXiv:2604.15750added by Syntology

Xiang Xia, Wuyang Zhang, Jiazheng Liu, Cheng Yan, Yanyong Zhang

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

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× speedup without significant performance degradation.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2604.15750")

Code

Syntology Ran 8 of 13 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 4 ran · our draft was wrong; 2 ran · fixture could not drive it; 2 ran with no contract checked.

By repository: found in paper text by Syntology: 13 samples from 1 repository, 8 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

X-Xia0828/DepCap found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 8 ran; 0 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

4ran · our draft was wrong
2ran · fixture could not drive it
2ran
5unverified

Licence: 13 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from X-Xia0828/DepCap. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

repeat_kv X-Xia0828/DepCap/dream/model/modeling_dream.py found in paper text by Syntology ran · fixture could not drive it fingerprinted no licence file found · pointer only · 30d7eec482ebf6b1 · report
causal_attention_bias X-Xia0828/DepCap/llada/model/modeling_llada.py found in paper text by Syntology ran no licence file found · pointer only · f9abf6d74699cc1c · report
get_pairs X-Xia0828/DepCap/dream/model/tokenization_dream.py found in paper text by Syntology ran · our draft was wrong no licence file found · pointer only · c083e60f5001bd38 · report
refine_text X-Xia0828/DepCap/dream/sanitize.py found in paper text by Syntology ran · our draft was wrong fingerprinted no licence file found · pointer only · a1a9545f89348999 · report
rotate_half X-Xia0828/DepCap/dream/model/modeling_dream.py found in paper text by Syntology ran · our draft was wrong fingerprinted no licence file found · pointer only · b99eea6376d1e212 · report
sample_tokens X-Xia0828/DepCap/dream/model/generation_utils.py found in paper text by Syntology ran no licence file found · pointer only · 1891fed3a1008763 · report
top_k_logits X-Xia0828/DepCap/dream/model/generation_utils.py found in paper text by Syntology ran · fixture could not drive it fingerprinted no licence file found · pointer only · d78ba22cffe4710b · report
top_p_logits X-Xia0828/DepCap/dream/model/generation_utils.py found in paper text by Syntology ran · our draft was wrong fingerprinted no licence file found · pointer only · 8139ba2bcf3eb84b · report
apply_rotary_pos_emb X-Xia0828/DepCap/dream/model/modeling_dream.py found in paper text by Syntology unverified no licence file found · pointer only · ac6507e437413e71 · report
extract_function_name X-Xia0828/DepCap/dream/postprocess_mbpp.py found in paper text by Syntology unverified no licence file found · pointer only · 65b9fa737f2d65a7 · report
extract_longest_valid_code X-Xia0828/DepCap/dream/sanitize.py found in paper text by Syntology unverified no licence file found · pointer only · 044f03d955ca1151 · report
scaled_dot_product_attention X-Xia0828/DepCap/llada/model/modeling_llada.py found in paper text by Syntology unverified no licence file found · pointer only · a1e20a66389a45ff · report
syntax_check X-Xia0828/DepCap/dream/sanitize.py found in paper text by Syntology unverified no licence file found · pointer only · d7d30a99e0029e36 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2604.15750, was issued in April 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections