Diffusion large language models (dLLMs) have attracted increasing research attention due to their bidirectional attention and arbitrary order decoding. However, there are two issues in dLLMs inference: the decoding difficulty is dominated by the tokens on the right side of the block, and the block-wise decoding inherently suffers from boundary contextual discontinuity. To tackle these limitations, we propose HaloBlock, a difficulty-aware adaptive halo mechanism for dLLM inference. We first leverage bidirectional cumulative entropy to characterize block decoding difficulty. Then, based on the bidirectional decoding difficulty, we adaptively allocate bidirectional halo regions on both sides of each block to mitigate boundary contextual discontinuity. The difficulty-aware design of HaloBlock smooths cross-block context propagation and lowers decoding difficulty for hard tokens, yielding better generation quality and faster convergence. Evaluated on LLaDA-8B-Instruct, Dream-7B-Instruct and LLaDA-1.5 across mathematical reasoning and code generation benchmarks, HaloBlock demonstrates consistent accuracy improvements and higher inference efficiency. Source codes are publicly available at https://github.com/PolyU-VCLab/HaloBlock.
Figures & tables
Figure 1: Illustration of the inference for dLLMs using LLaDA-8B-Instruct. (a) Token-wise Number of Function Evaluations (NFE). (b) An example of mathematical reasoning. The reasoning errors are highlighted in red bold . We see the left-dominance effect in block-wise decoding. Zoom in for a better view.
Figure 2: Visualization of token confidence and token entropy on LLaDA-8B-Instruct (GSM8K) with generation length Tx=256 and block size t=32 .
Figure 3: Computational graph of the HaloBlock. The halo lengths are determined by the bidirectional decoding difficulty, which is cumulated by the positional coefficients and the initial token entropy.
Benchmark
Method
Training-Free
Acc. ↑
TPS ↑
NFE ↓
Time ↓
GSM8K (5-shot)
LLaDA
78.5
4.0
256.0
5:19:24
dParallel [ 22 ]
76.4
27.1
32.3
0:40:30
D2F [ 24 ]
73.9
56.0
47.4
0:13:25
d3LLM [ 25 ]
73.5
43.0
25.8
0:26:12
Fast dLLM [ 7 ]
✓
76.0
58.5
62.8
0:22:24
AdaBlock [ 9 ]
✓
78.6
34.5
91.2
0:40:37
Table 1: Quantitative results of dLLM inference on LLaDA-8B-Instruct. The inference time is measured in average over three indepentent runs.
Benchmark
Method
Training-Free
Acc. ↑
TPS ↑
NFE ↓
Time ↓
GSM8K (5-shot)
Dream
82.9
19.2
256.0
1:13:20
dParallel [ 22 ]
81.3
138.1
41.8
0:10:11
D2F [ 24 ]
77.5
50.9
48.7
0:12:06
d3LLM [ 25 ]
81.7
162.0
24.0
0:07:58
Fast dLLM [ 7 ]
✓
77.8
88.1
66.1
0:14:46
AdaBlock [ 9 ]
✓
77.8
94.1
66.2
0:14:10
Table 2: Quantitative results of dLLM inference on Dream-7B-Instruct. The inference time is measured in average over three indepentent runs.
Figure 4: Visualization of the max token entropy for each block when the tokens are unmasked. HaloBlock reduces the max token entropy, which indicates lower uncertainty.
Method
Tx
t=8
t=16
t=32
Acc. ↑
TPS ↑
Time ↓
Acc. ↑
TPS ↑
Time ↓
Acc. ↑
TPS ↑
Time ↓
LLaDA
256
80.5
4.4
4:49:38
79.2
4.5
4:48:55
78.5
4.0
5:19:24
Fast dLLM
256
78.9
24.1
0:52:40
77.4
35.9
0:35:32
76.0
58.5
0:22:24
HaloBlock
256
80.7
25.5
0:50:11
79.8
38.7
0:33:00
79.5
61.4
0:20:46
LLaDA
512
80.4
2.1
11:30:26
77.7
2.1
11:31:15
76.1
2.5
10:14:10
Fast dLLM
512
76.7
15.5
1:36:27
76.9
25.5
0:56:01
74.5
40.4
0:37:17
Table 3: Quantitative results of dLLM inference with various generation length Tx and block size t . The inference time is measured in average over three indepentent runs.
Figure 5: Visualization of accuracy heatmap with static halo region on LLaDA-8B-Instruct (GSM8K).
Table 9
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
Benchmark
Method
Training-Free
Acc. ↑
TPS ↑
NFE ↓
Time ↓
GSM8K (5-shot)
LLaDA-1.5 [ 27 ]
80.5
3.8
256.0
5:14:26
Fast dLLM [ 7 ]
✓
80.3
46.3
84.0
0:25:15
AdaBlock [ 9 ]
✓
79.8
31.7
88.1
0:37:06
HaloBlock (Ours)
✓
81.1
49.4
79.4
0:24:03
MATH (4-shot)
LLaDA-1.5 [ 27 ]
33.2
5.2
256.0
13:12:47
Fast dLLM [ 7 ]
✓
32.5
40.6
106.5
1:51:09
Appendix
Table B.1: Quantitative results of dLLM inference on LLaDA-1.5. The inference time is measured in average over three indepentent runs.
Figure C.1: Visualization of CDU difference for every block. The difference is calculated by subtracting the CDU of our HaloBlock from the CDU of Fast dLLM. The block size t=32 .
Figure C.2: Visualization of accuracy heatmap with static halo region and the statistical count of halo length by our HaloBlock. Our adaptive halo allocation generally performs better than static halos.
Figure C.3: Example 1 : Comparison of inference results between the baseline Fast dLLM and HaloBlock. We visualize the dynamic halo length in colors. Reasoning errors are highlighted in red .
Figure C.4: Example 2 : Comparison of inference results between the baseline Fast dLLM and HaloBlock. We visualize the dynamic halo length in colors. Reasoning errors are highlighted in red .
Figure C.5: Example 3 : Comparison of inference results between the baseline Fast dLLM and HaloBlock. We visualize the dynamic halo length in colors. Reasoning errors are highlighted in red .
Diffusion language models (dLLMs) generate text by iteratively denoising multiple token positions in parallel, offering an attractive alternative to strictly autoregressive decoding. In practice, however, block-wise dLLM inference exposes a difficult granularity trade-off: small blocks preserve local conditioning but require many denoising steps, whereas large blocks expose more parallelism but can make premature commitments and accumulate cache error. Existing acceleration methods typically choose a single block size per request, leaving the complementarity among block sizes unused. We show that block size itself is a useful branching dimension. Different block sizes induce related but non-identical KV-cache trajectories: branches often share an initial prefix, bifurcate at semantically decisive positions, and later agree on syntactically lightweight tokens. Motivated by this structure, we propose BlockBatch, a training-free online inference framework that executes multiple block-size branches for the same request inside a batched forward pass. BlockBatch coordinates these branches through confidence-gated token merging, leader-based synchronization, and periodic full-sequence refreshes that re-anchor local block updates to a globally consistent KV state. Across 3 representative dLLMs and 4 datasets, BlockBatch reduces denoising NFEs by 26.6% on average and achieves a 1.33× average end-to-end speedup over Fast-dLLM while preserving accuracy. These results identify block-size diversity as a practical and previously underexplored axis for branch-parallel dLLM inference.
Diffusion large language models (dLLMs) offer a promising parallel decoding paradigm as an alternative to autoregressive generation through iterative unmasking. However, dLLMs typically require many steps before token confidence reaches the decoding threshold, resulting in inefficient inference even with block-wise KV caching. To accelerate dLLM inference, we for the first time propose an "early-bird (EB)" decoding framework, motivated by the observation that tokens with similarly low entropy tend to cluster and can be jointly decoded earlier, before reaching the confidence threshold. In particular, our EB-Decode framework integrates two key enablers: (1) a learnable network that adaptively groups tokens with similar uncertainty into variable-length blocks, rather than relying on fixed block sizes; (2) a position-aware sampler that learns to unmask tokens in parallel using fewer decoding steps within predicted variable-length blocks. Both components are developed without modifying pretrained dLLM weights and can therefore be directly deployed as plug-ins during serving, with negligible training and inference overhead. Extensive experiments across three models and four benchmarks consistently validate our observation and the effectiveness of EB-Decode, achieving 3.53-18.76× higher throughput than the vanilla decoding method and up to 1.58× higher throughput over the strongest baseline, Fast-dLLM, with comparable accuracy.
Lixuan Wei, Wei Zhou, Jianwen Wu +3
Harvard University · Georgia Institute of Technology · Purdue University
Diffusion large language models (dLLMs) offer a promising alternative to autoregressive generation by decoding multiple tokens in parallel through iterative denoising. However, increasing decoding parallelism often degrades generation quality, as early errors can contaminate later contexts. Revocable decoding mitigates this issue by re-evaluating decoded tokens and remasking unreliable ones, but existing methods overlook that unreliable tokens may also corrupt the verification context itself. We identify this failure mode and propose Dependency-Aware Revocable Decoding (DARD), a training-free framework that separates tokens into masked, candidate, and unmasked states. DARD verifies candidate tokens using a selective context that excludes less reliable tokens and adaptively regulates their influence on subsequent decoding. Experiments across 12 textual and multimodal benchmarks on 3 open-source dLLMs show that DARD consistently improves the speed-quality Pareto frontier over recent revocable decoding methods, achieving a 2.71× speedup and a 4.35-point CIDEr score gain over Saber on Flickr30K.
Wooje Park, Insu Lee, Minyoung Noh +4
Seoul National University · Sungkyunkwan University