Breaking Block Boundaries: Anchor-based History-stable Decoding for Diffusion Large Language Models
Organizations: MoE Key Lab of BIPC, University of Science and Technology of China · AMAP, Alibaba Group
Abstract
Diffusion Large Language Models (dLLMs) have recently become a promising alternative to autoregressive large language models (ARMs). Semi-autoregressive (Semi-AR) decoding is widely employed in base dLLMs and advanced decoding strategies due to its superior performance. However, our observations reveal that Semi-AR decoding suffers from inherent block constraints, which cause the decoding of many cross-block stable tokens to be unnecessarily delayed. To address this challenge, we systematically investigate the identification of stable tokens and present three key findings: (1) naive lookahead decoding is unreliable, (2) token stability closely correlates with convergence trend, and (3) historical information is isolated. Building on these insights, we propose Anchor-based History-stable Decoding (AHD), a training-free, plug-and-play dynamic decoding strategy. Specifically, AHD monitors the stability trend of tokens in real time through dynamic anchors. Once a token reaches stability, it initiates early cross-block decoding to enhance efficiency and performance. Extensive experiments across language, vision-language, and audio-language domains demonstrate that AHD simultaneously improves both performance and inference efficiency. Notably, AHD effectively reverses the performance degradation typically observed in existing advanced decoding acceleration strategies. For instance, on the BBH benchmark, our approach reduces decoding steps by 80% while improving performance by 3.67%.
Figures & tables
| Task | Metric | Vanilla | PC-sampler | Fast-dLLM | KLASS | Saber | Ours |
| HumanEval | Score ↑ | 40.85 | 40.24 (-0.61) | 41.46 (+0.61) | 40.85 (0.00) | 36.59 (-4.26) | 43.29 (+2.44) |
| Step ↓ | 256 | 256 | 78.36 ( ) | 131.48 ( ) | 82.83 ( ) | 77.24 ( ) | |
| MBPP | Score ↑ | 29.20 | 31.20 (+2.00) | 29.40 (+0.20) | 29.20 (0.00) | 26.00 (-3.20) | 31.20 (+2.00) |
| Step ↓ | 256 | 256 | 70.05 ( ) | 113.26 ( ) | 71.79 ( ) | 66.03 ( ) | |
| BBH | Score ↑ | 53.11 | 48.55 (-4.56) | 53.17 (+0.06) | 53.03 (-0.08) | 52.88 (-0.23) | 56.78 (+3.67) |
| Step ↓ | 256 | 256 | 55.85 ( ) | 98.04 ( ) | 87.31 ( ) | 51.48 ( ) |
| Task | Metric | Vanilla | PC-sampler | Fast-dLLM | KLASS | Saber | Ours |
| HumanEval | Score ↑ | 42.68 | 31.88 (-10.80) | 43.29 (+0.61) | 43.29 (+0.61) | 42.07 (-0.61) | 43.90 (+1.22) |
| Step ↓ | 256 | 256 | 75.88 ( ) | 131.01 ( ) | 82.07 ( ) | 75.85 ( ) | |
| MBPP | Score ↑ | 27.20 | 25.60 (-1.60) | 28.00 (+0.80) | 27.20 (0.00) | 25.40 (-1.80) | 28.60 (+1.40) |
| Step ↓ | 256 | 256 | 73.01 ( ) | 119.34 ( ) | 77.70 ( ) | 72.88 ( ) | |
| BBH | Score ↑ | 50.35 | 47.03 (-3.32) | 49.85 (-0.50) | 50.28 (-0.07) | 50.02 (-0.33) | 51.90 (+1.55) |
| Step ↓ | 256 | 256 | 57.89 ( ) | 101.11 ( ) | 88.90 ( ) | 56.00 ( ) |
| Task | Method | Score ↑ | Speed-up ↑ |
| MathVista-mini | MMaDA | 32.90 | 1.00 |
| Ours | 36.00 (+3.10) | 2.37 | |
| MATH-Vision | MMaDA | 9.44 | 1.00 |
| Ours | 10.00 (+0.56) | 2.16 | |
| ScienceQA | MMaDA | 48.88 | 1.00 |
| Ours | 49.93 (+1.15) | 2.70 |
| Task | Method | Score ↑ | Step ↓ |
| AlpacaEval | DIFFA | 3.75 | 128 |
| Ours | 3.78 (+0.03) | 80.19 ( ) | |
| OpenBookQA | DIFFA | 36.50 | 128 |
| Ours | 38.50 (+2.00) | 28.67 ( ) | |
| CommonEval | DIFFA | 2.90 | 128 |
| Ours | 2.94 (+0.04) | 72.45 ( ) |
| Method | BBH | HumanEval | ||
| Score | Step | Score | Step | |
| LLaDA | 53.28 | 1024 | 43.90 | 1024 |
| PC-sampler | 54.03 | 1024 | 42.07 | 1024 |
| Fast-dLLM | 53.68 | 65.54 | 42.68 | 184.79 |
| KLASS | 53.42 | 122.66 | 43.90 | 309.97 |
| Saber | 52.80 | 213.02 | 43.90 | 210.43 |
| Task | Method | 128 | 256 | 512 | |||
| Score | Step | Score | Step | Score | Step | ||
| MBPP | LLaDA | 39.00 | 128 | 29.20 | 256 | 16.20 | 512 |
| Ours | 40.40 | 47.65 | 31.20 | 66.03 | 16.40 | 116.75 | |
| MMLU-Pro | LLaDA | 37.42 | 128 | 35.57 | 256 | 37.46 | 512 |
| Ours | 38.12 | 65.51 | 37.42 | 133.06 | 39.00 | 197.20 | |
| BBH | LLaDA | 45.71 | 128 | 53.11 | 256 | 53.14 | 512 |
| Block | Method | MBPP | MMLU-Pro | BBH | |||
| length | Score | Step | Score | Step | Score | Step | |
| 16 | LLaDA | 28.60 | 256 | 33.74 | 256 | 52.51 | 256 |
| Ours | 30.80 | 72.73 | 37.36 | 137.02 | 56.12 | 59.88 | |
| 32 | LLaDA | 29.20 | 256 | 35.57 | 256 | 53.11 | 256 |
| Ours | 31.20 | 66.03 | 37.42 | 133.06 | 55.69 | 52.62 | |
| 64 | LLaDA | 27.40 | 256 | 36.67 | 256 | 54.32 | 256 |
| Method | 16 | 32 | 64 | 128 | ||||
| Score | Speed Up | Score | Speed Up | Score | Speed Up | Score | Speed Up | |
| MMaDA | 31.3 | 1.00 | 32.1 | 1.00 | 32.9 | 1.00 | 32.5 | 1.00 |
| Ours | 33.9 | 2.01 | 34.0 | 2.08 | 36.0 | 2.37 | 32.9 | 2.04 |
| Method | temperature=0 | temperature=0.1 | temperature=0.4 | temperature=0.7 | temperature=1 | |||||
| Score | Step | Score | Step | Score | Step | Score | Step | Score | Step | |
| LLaDA | 35.57 | 256 | 35.86 | 256 | 35.80 | 256 | 35.73 | 256 | 35.20 | 256 |
| Ours | 37.42 | 133.06 | 37.99 | 132.77 | 37.46 | 132.08 | 37.22 | 131.06 | 36.93 | 131.62 |
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
| Task | ICL |
| HumanEval | 0-shot |
| MBPP | 3-shot |
| BBH | 3-shot |
| MMLU-Pro | 0-shot |
| TruthfulQA | 0-shot |
| Math | 3-shot |
| Task | LLaDA-8B-Instruct | LLaDA-1.5 | ||
| HumanEval | 0.02 | 6 | 0.01 | 6 |
| MBPP | 0.01 | 6 | 0.01 | 4 |
| BBH | 0.05 | 6 | 0.01 | 6 |
| MMLU-Pro | 0.01 | 6 | 0.01 | 6 |
| TruthfulQA | 0.01 | 6 | 0.01 | 6 |
| Method | 1024 | 2048 | ||||
| Score | TPF | Step | Score | TPF | Step | |
| LLaDA | 43.90 | 1.00 | 1024 | 44.51 | 1.00 | 2048 |
| PC-sampler | 42.07 | 1.00 | 1024 | 41.46 | 1.00 | 2048 |
| Fast-dLLM | 42.68 | 5.54 | 184.79 | 44.51 | 10.50 | 195.13 |
| KLASS | 43.90 | 3.30 | 309.97 | 44.51 | 6.39 | 320.63 |
| Saber | 43.90 | 4.87 | 210.43 | 48.17 | 9.34 | 219.25 |
| Method | Score ↑ | TPF ↑ | Step ↓ |
| LLaDA | 79.53 | 1.00 | 256 |
| PC-sampler | 79.98 (+0.45) | 1.00 | 256 |
| Fast_dLLM | 80.29 (+0.76) | 3.41 ( 3.41) | 75.10 ( ) |
| KLASS | 80.06 (+0.53) | 1.99 ( 1.99) | 128.64 ( ) |
| Saber | 79.61 (+0.08) | 3.35 ( 3.35) | 76.49 ( ) |
| Ours | 80.51 (+0.98) | 3.41 ( 3.41) | 75.06 ( ) |
| Task | Method | 128 | 256 | 512 | |||
| Score | Step | Score | Step | Score | Step | ||
| MMLU-Pro | LLaDA | 37.42 | 128 | 35.57 | 256 | 37.46 | 512 |
| PC-sampler | 35.59 (-1.83) | 128 | 33.90 (-1.67) | 256 | 35.31 (-2.15) | 512 | |
| Fast_dllm | 37.36 (-0.06) | 67.72 ( ) | 35.70 (+0.13) | 134.76 ( ) | 37.32 (-0.14) | 199.31 ( ) | |
| KLASS | 37.43 (+0.01) | 88.96 ( ) | 35.67 (+0.10) | 187.17 ( ) | 37.43 (-0.03) | 293.96 ( ) | |
| Saber | 36.48 (-0.94) | 55.65 ( ) | 36.10 (+0.53) | 128.83 ( ) | 37.16 (-0.30) | 195.01 ( ) | |
| Block | Method | MMLU-Pro | BBH | ||
| length | Score | Step | Score | Step | |
| 16 | LLaDA | 33.74 | 256 | 52.51 | 256 |
| PC-sampler | 33.98 (+0.24) | 256 | 48.44 (-4.07) | 256 | |
| Fast_dllm | 33.65 (-0.09) | 138.76 ( ) | 52.47 (-0.04) | 63.37 ( ) | |
| KLASS | 33.73 (-0.01) | 192.61 ( ) | 52.57 (+0.06) | 112.90 ( ) | |
| Saber | 34.55 (+0.81) | 125.00 ( ) | 51.64 (-0.87) | 91.47 ( ) | |
Diffusion Language Model Decoding
Diffusion language model decoding generates text through iterative parallel refinement, balancing fewer denoising steps with accuracy, coherence, and control.
See all 249 papers