TL;DR
Diffusion LLMs (dLLMs) promise faster generation through parallel decoding, but struggle with inter-token dependencies. This paper introduces DAPD, a training-free method that uses self-attention to build a dependency graph of masked tokens, enabling parallel decoding of independent token sets. DAPD significantly improves the accuracy-steps trade-off and unlocks more efficient, globally dispersed generation for dLLMs.
What Problem Does This Paper Address?
Diffusion models have been adapted for discrete data like text, leading to Diffusion Large Language Models (dLLMs). A key advantage of dLLMs is their potential for parallel decoding, where multiple tokens are generated simultaneously in each denoising step, drastically reducing inference time compared to autoregressive models. However, dLLMs are typically trained to predict token marginals independently. When multiple tokens are unmasked in parallel, ignoring their inter-dependencies can lead to "joint-marginal mismatch," where locally plausible tokens form globally inconsistent sequences. Existing training-free methods often rely on confidence scores to filter uncertain tokens but fail to address these underlying dependencies, or they resort to complex training regimes or auxiliary models. This paper aims to solve the challenge of efficient and coherent parallel decoding in dLLMs by explicitly accounting for inter-token dependencies without requiring additional training.
Methods
The core of DAPD lies in leveraging the self-attention mechanism within dLLMs to infer token dependencies. At each decoding step, DAPD constructs a Markov Random Field (MRF) where masked tokens are nodes and attention weights between them define edge strengths, representing dependencies. This attention-derived graph is then treated as a dynamic graph coloring problem. The goal is to select an independent set of nodes (tokens) that can be safely unmasked in parallel.
To achieve this, DAPD employs a strategy inspired by the Welsh-Powell algorithm:
- Ordering: Masked tokens are sorted by their estimated degree (sum of attention-based interaction strengths).
- Greedy Selection: Tokens are iteratively added to an independent set if they are not connected by an edge (i.e., have weak dependencies) to any token already in the set.
- Update: All selected tokens are unmasked simultaneously.
This process is repeated until all tokens are generated. DAPD is "training-free" because it uses the model's existing self-attention outputs at inference time, requiring no additional training or auxiliary models. For practical efficiency, they also incorporate a confidence-weighted degree for ordering and switch to a confidence-threshold rule when the remaining mask ratio falls below 50%.
Datasets
The paper evaluates DAPD on two representative open-source dLLMs:
- LLaDA-8B-Instruct (Nie et al., 2025)
- Dream-7B-Instruct (Ye et al., 2025)
For evaluation, they use standard benchmarks for:
- Math Reasoning: GSM8K (Cobbe et al., 2021), Math500 (Hendrycks et al., 2021)
- Code Generation: MBPP (Austin et al., 2021b), HumanEval (Chen et al., 2021)
- Instruction Following: IFEval (Zhou et al., 2023)
Additionally, they use ParallelBench (Kang et al., 2026) to stress-test parallel decoding under strong inter-token dependencies. For analysis of decoding behavior, they curate a dataset by sampling from TriviaQA (Joshi et al., 2017), filtering for simple, common-knowledge queries and aggregating five independent questions into a single prompt.
Key Insights and Ideas
- Self-attention as a dependency proxy: The paper demonstrates that self-attention weights, often used for contextual representation, can effectively serve as a lightweight proxy for inter-token dependencies in dLLMs. This is a crucial insight that avoids the need for explicit dependency modeling modules.
- Graph coloring for parallel decoding: Framing parallel decoding as a dynamic graph coloring problem provides a powerful theoretical lens. Selecting independent sets directly maps to finding batches of tokens that can be decoded together, and minimizing the number of steps becomes analogous to minimizing the number of colors.
- Spatially dispersed generation: Unlike confidence-based methods that tend to unmask tokens in contiguous clusters, DAPD's dependency-aware approach leads to a more spatially dispersed unmasking pattern. This allows it to better exploit the bidirectional context and any-order generation capabilities of dLLMs, especially for independent queries within a single prompt.
- Trade-off between accuracy and steps: DAPD consistently improves the accuracy-steps trade-off, meaning it achieves higher accuracy with fewer decoding steps compared to existing methods. This is achieved by intelligently selecting tokens for parallel unmasking, avoiding problematic co-updates.
Key Results
- Accuracy-Steps Trade-off: DAPD consistently achieves a better accuracy-steps trade-off across LLaDA and Dream models on various tasks (HumanEval, MBPP, GSM8K, Math500, IFEval). For example, on MBPP and IFEval, DAPD attains significantly higher accuracy than block-wise baselines.
- Speedup: DAPD achieves substantial speedups. On LLaDA, it provides more than 1.8x speedup over competing strategies and a 3.8x speedup compared to standard step-by-step decoding by solving independent questions concurrently.
- End-to-End Throughput: DAPD achieves the highest tokens-per-second (TPS) among compared methods, indicating that its graph-processing overhead is negligible relative to model forward passes, leading to practical inference efficiency gains.
- Robustness: DAPD demonstrates robustness in single-block decoding, a regime where other baselines suffer severe performance degradation due to EOS overflow.
- Qualitative Behavior: Visualizations show DAPD's distinct, spatially dispersed unmasking pattern, contrasting with the more sequential, clustered behavior of baselines.
Limitations and Future Work
- Heuristic Choices: DAPD relies on heuristic choices for graph construction, such as the threshold schedule for edge creation and the specific attention layers used for dependency estimation. While ablations suggest later layers are reliable, more principled adaptive thresholding and layer aggregation strategies could improve robustness across different architectures and tasks.
- Proxy for Dependence: The attention-based edge scores are a practical proxy for conditional dependence, not an exact measure of conditional independence. This limitation motivates future work on more principled dependency estimators for dLLM decoding.
- Future Work: The authors suggest exploring more principled dependency estimators and adaptive strategies for graph construction. The graph-based view of parallel decoding is presented as a foundation for future algorithms that move beyond purely marginal token selection.
Summary updated