Dependency-Guided Parallel Decoding in Discrete Diffusion Language Models
Organizations: Department of Computer Science, Technion – Israel Institute of Technology · Department of Electrical and Computer Engineering, Technion – Israel Institute of Technology · Blavatnik School of Computer Science and AI, Tel Aviv, Israel
Abstract
Discrete diffusion language models (dLLMs) accelerate text generation by unmasking multiple tokens in parallel. However, parallel decoding introduces a distributional mismatch: it approximates the joint conditional using a fully factorized product of per-token marginals, which degrades output quality when selected tokens are strongly dependent. We propose DEMASK (DEpendency-guided unMASKing), a lightweight dependency predictor that attaches to the final hidden states of a dLLM. In a single forward pass, it estimates pairwise conditional influences between masked positions. Using these predictions, a greedy selection algorithm identifies positions with bounded cumulative dependency for simultaneous unmasking. Under a sub-additivity assumption, we prove this bounds the total variation distance between our parallel sampling and the model's joint. Empirically, DEMASK achieves 1.7-2.2 speedup on Dream-7B while matching or improving accuracy compared to confidence-based and KL-based baselines.
Figures & tables
| Method | MMLU-Pro | GSM8K | HumanEval | MBPP | Avg |
|---|---|---|---|---|---|
| Entropy (1 tok) | 43.9 0.4 (1.0 ) | 81.2 1.1 (1.0 ) | 53.7 3.9 (1.0 ) | 58.0 2.2 (1.0 ) | 51.8 (1.0 ) |
| Entropy (2 tok) | 39.7 0.4 (2.0 ) | 76.7 1.2 (2.2 ) | 31.1 3.6 (1.1 ) | 43.8 2.2 (1.3 ) | 38.2 (1.5 ) |
| Top-1 (1 tok) | 45.5 0.4 (1.0 ) | 81.2 1.1 (1.0 ) | 53.7 3.9 (1.0 ) | 58.0 2.2 (1.0 ) | 52.4 (1.0 ) |
| Top-1 (2 tok) | 43.5 0.4 (2.0 ) | 76.7 1.2 (2.1 ) | 31.1 3.6 (1.1 ) | 43.8 2.2 (1.4 ) | 39.5 (1.5 ) |
| Token Order (1 tok) | 45.7 0.4 (1.3 ) | 80.7 1.1 (1.1 ) | 55.5 3.9 (1.3 ) | 57.8 2.2 (1.5 ) | 53.0 (1.3 ) |
| Token Order (2 tok) | 43.6 0.4 (2.8 ) | 73.8 1.2 (2.1 ) | 24.4 3.4 (1.1 ) | 40.8 2.2 (1.5 ) | 36.2 (1.8 ) |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| DEMASK | KLASS | |||
|---|---|---|---|---|
| Benchmark | Acc (%) | Time (min) | Acc (%) | Time (min) |
| MMLU-Pro | 47.6 | 89.6 | 45.7 | 126.7 |
| GSM8K | 83.7 | 10.1 | 82.6 | 14.3 |
| HumanEval | 58.5 | 5.8 | 54.3 | 4.1 |
| MBPP | 56.6 | 19.3 | 57.0 | 6.9 |