Dependency-Guided Parallel Decoding in Discrete Diffusion Language Models

Liran Ringel, Ameen Ali, Yaniv RomanoarXiv 2026

TL;DR

Discrete diffusion language models (dLLMs) speed up text generation by unmasking multiple tokens at once, but they often generate incoherent text when those tokens depend heavily on each other. This paper introduces DEMASK, a lightweight module that predicts token dependencies in a single forward pass and uses a greedy algorithm to safely unmask independent tokens in parallel. This approach achieves up to a 2.2× speedup on a 7B model while matching or even improving final text quality.

What Problem Does This Paper Address?

Autoregressive language models generate text token-by-token, which is inherently slow because generating $N$ tokens requires $N$ sequential forward passes. Masked discrete diffusion language models (dLLMs) offer a faster alternative by iteratively denoising and unmasking multiple tokens in parallel.

However, standard parallel decoding suffers from a marginal-joint gap. When a model unmasks multiple tokens simultaneously, it treats them as completely independent (approximating their joint distribution as a product of individual marginal probabilities). This assumption breaks down when tokens are strongly dependent. For example, given the prompt "1 + [MASK] = [MASK]", the model might independently decide that "2" and "5" are highly probable tokens for each slot, resulting in the mathematically incorrect output "1 + 2 = 5".

Existing methods to fix this either require expensive multiple forward passes per step or rely on simple confidence thresholds that ignore explicit inter-token relationships.

Methods

The authors propose DEMASK (DEpendency-guided unMASKing), which consists of two main components:

  1. A Lightweight Dependency Predictor: The authors attach a small auxiliary module (~26M parameters) to the final hidden states of a frozen dLLM backbone. Inspired by scaled dot-product attention, it projects hidden states into Query ($Q$) and Key ($K$) representations to estimate a pairwise dependency matrix $\hat{D}$ in a single forward pass. Each entry in $\hat{D}$ approximates the Total Variation (TV) distance shift—essentially measuring how much the probability distribution of token $i$ would change if token $j$ were revealed.
  2. Greedy Subset Selection Algorithm: At each decoding step, the algorithm filters out low-confidence tokens. From the remaining candidates, it greedily selects tokens to unmask simultaneously, ensuring that the cumulative pairwise dependency of the chosen subset remains below a user-defined threshold $\tau$.

Two-Phase Training Pipeline: To train the predictor without destroying inference efficiency, the authors use a clever decoupling strategy. First, they precompute and cache ground-truth dependency matrices using the full dLLM backbone (which takes 3.5 hours on 8×H200 GPUs). Second, they train the lightweight predictor on this cached data using Mean Squared Error (MSE) loss in just 95 minutes, leaving the massive backbone completely frozen.

Datasets

  • Training & Validation: The dependency predictor was trained on 100K responses from the Tulu 3 SFT Mixture, generating roughly 500K training examples via random masking configurations.
  • Evaluation Benchmarks: The system was evaluated across four diverse downstream tasks using the lm-evaluation-harness library:
  • MMLU-Pro (Complex multi-task reasoning)
  • GSM8K (Grade-school math word problems)
  • HumanEval (Python coding)
  • MBPP (Basic Python programming)

Key Insights and Ideas

  • Dependencies are Encoded in the Hidden States: You don't need multiple forward passes to probe how tokens interact. The final hidden layer of a dLLM already implicitly contains the structural information necessary to predict pairwise conditional influences.
  • Sub-Additivity of Dependencies: The core theoretical justification relies on a sub-additivity assumption: the joint influence of a history of tokens on a new token does not exceed the sum of individual pairwise influences. The authors empirically validated this on the Tulu 3 dataset, showing it holds true in over 94% of cases. This allows simple pairwise statistics to effectively bound complex joint distribution errors.
  • The "EOS Optimization" Pitfall: The authors uncovered an important evaluation nuance. Without an optimization to stop sampling after an End-of-Sequence (EOS) token is generated, baseline models like KLASS appear artificially faster because they easily predict repetitive EOS tokens in bulk. Applying a uniform "avoid sampling after EOS" rule across all baselines leveled the playing field and revealed DEMASK's true superiority.

Key Results

The authors evaluated DEMASK on the Dream-7B dLLM backbone:

  • Speed vs. Accuracy Dominance: DEMASK consistently dominated the Pareto frontier against confidence-based baselines and KLASS (a recent KL-divergence baseline).
  • Significant Speedups: It achieved a 1.7× to 2.2× wall-clock speedup (averaging 1.9×) compared to standard single-token entropy decoding.
  • Quality Preservation (and Improvement): While standard parallel decoding baselines suffer severe accuracy degradation when unmasking multiple tokens, DEMASK maintained or improved performance. Notably, it achieved a +3.6% accuracy boost on MMLU-Pro over the single-token baseline, proving that dependency-aware parallel decoding can actually improve reasoning quality.

Limitations and Future Work

  • The Theory-Practice Gap: The mathematical proof guarantees strict error bounds assuming access to the true dependency matrix $D$, but the actual implementation relies on a learned approximation $\hat{D}$.
  • Single Backbone Constraint: DEMASK was only validated on Dream-7B. Applying it to other prominent dLLM architectures (like LLaDA) requires retraining the dependency predictor on data generated specifically by those backbones.
  • Future Directions: The authors suggest exploring more sophisticated predictor architectures (like multi-head variants), implementing adaptive thresholds ($\tau$ and $\gamma$) that dynamically adjust based on generation progress, and combining dependency tracking with token remasking strategies.

Summary updated

BibTeX
@misc{ringel2026dependency,
  author = {Liran Ringel and Ameen Ali and Yaniv Romano},
  title = {{Dependency-Guided Parallel Decoding in Discrete Diffusion Language Models}},
  year = {2026},
  eprint = {2604.02560},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.02560},
}
Figure