DAWN: Dependency-Aware Fast Inference for Diffusion LLMs

Lizhuo Luo, Zhuoran Shi, Jiajun Luo, Zhi Wang, Shen Ren, Wenya Wang, Tianwei Zhang · DOI

TL;DR

Diffusion Large Language Models (dLLMs) offer parallel decoding but struggle with inter-token dependencies, leading to quality degradation. This paper introduces DAWN, a training-free method that leverages attention maps to build a dependency graph, enabling more aggressive and efficient parallel decoding without sacrificing generation quality.

What Problem Does This Paper Address?

Diffusion Large Language Models (dLLMs) have emerged as a powerful alternative to traditional autoregressive (AR) models for text generation. A key advantage of dLLMs is their inherent ability to decode multiple tokens in parallel, unlike AR models that generate tokens sequentially. This parallelism promises faster inference. However, existing dLLM inference strategies often adopt conservative approaches to avoid quality degradation. The core challenge lies in the fact that while dLLMs can compute predictions for all positions in parallel, the quality of these predictions is not independent. Tokens are semantically coupled, meaning the correct choice at one position constrains valid choices at others. When parallel decoding ignores these inter-token dependencies, it can lead to inconsistencies and a drop in generation quality. This paper aims to bridge this gap by developing a method that can safely exploit the parallelism of dLLMs by explicitly modeling these dependencies during inference.

Methods

DAWN (Dependency-Aware Fast Inference for Diffusion LLMs) is a training-free method that enhances dLLM inference speed by intelligently selecting which tokens to unmask in parallel. It operates in three main stages within each denoising iteration:

  1. Dependency Graph Construction: DAWN uses attention maps from the model's forward pass as a proxy for token dependencies. To mitigate the impact of "attention sinks" (where attention is abnormally concentrated on irrelevant keys), these sinks are identified and filtered. The attention weights are then aggregated across the last few layers and heads to create a sparse directed dependency graph, where an edge from token j to token i signifies that i's prediction is significantly conditioned by j.
  2. Anchor-Guided Decoding: This module leverages high-confidence positions (either from the prompt or previously unmasked tokens, termed "anchors") to relax the confidence threshold for dependent "induced" positions. This allows more tokens to be unmasked in parallel, even if their individual confidence is not extremely high, as long as they are reliably conditioned by strong anchors.
  3. Conflict-Based Scheduling: For remaining low-confidence positions that are strongly coupled (indicated by edges in the dependency graph), this module prevents simultaneous unmasking of conflicting pairs. It greedily selects a set of non-conflicting positions that meet a lower confidence threshold, further increasing parallelism while avoiding inconsistencies.

The union of positions selected by Anchor-Guided Decoding and Conflict-Based Scheduling are then unmasked simultaneously in each denoising step.

Datasets

The paper evaluates DAWN on several standard benchmarks for reasoning and code generation:

  • GSM8K: A dataset of grade school math problems.
  • MATH: A dataset of challenging math problems.
  • HumanEval: A dataset for code generation tasks.
  • MBPP: A dataset for code generation tasks.

These benchmarks are used with several dLLM variants, including LLaDA-8B-Instruct, LLaDA-1.5, Dream-v0-Base-7B, and Dream-v0-Instruct-7B.

Key Insights and Ideas

  • Attention Maps as Dependency Proxies: The paper demonstrates that attention maps, often used for efficiency, can also serve as a practical and lightweight proxy for estimating token dependencies during inference.
  • Attention Sinks are Problematic: "Attention sinks" can distort dependency estimates derived from attention maps, leading to misleading conclusions. Filtering these sinks is crucial for accurate dependency modeling.
  • Anchors Enable Relaxed Confidence: High-confidence tokens (anchors) provide reliable context that makes dependent tokens predictable even at lower confidence levels, allowing for safer parallel unmasking.
  • Conflict Avoidance is Key: Simply lowering confidence thresholds for parallel unmasking can lead to errors due to coupled positions. DAWN's conflict-based scheduling prevents simultaneous unmasking of strongly coupled tokens, maintaining quality.
  • Dependency Modeling Unlocks Parallelism: By explicitly accounting for inter-token dependencies, DAWN can safely unmask more positions in parallel than previous methods, leading to significant speedups.

Key Results

DAWN achieves substantial improvements in inference speed while maintaining generation quality comparable to or even slightly better than baseline methods.

  • Speedup: DAWN speeds up inference by 1.80× to 8.06× across various models and datasets compared to baselines. For example, it achieves an 8.06× speedup on MBPP using the LLaDA-1.5 model.
  • Quality: On LLaDA-8B-Instruct, DAWN achieves 77.94% accuracy on GSM8K, matching the original method, and 30.80% on MBPP, slightly higher than the original 29.60%. In most cases, DAWN incurs only negligible quality loss.
  • Component Effectiveness: Ablation studies show that Anchor-Guided Decoding is a primary contributor to speedup by expanding the set of safely unmaskable positions. Conflict-Based Scheduling further unlocks parallelism by avoiding inconsistent joint updates, trading a small amount of accuracy for acceleration.

Limitations and Future Work

  • Hyperparameter Sensitivity: The paper notes that DAWN's performance is sensitive to hyperparameters like Tedge, Tinduced, Tsink, and Tlow. They conduct extensive grid searches to find optimal configurations, suggesting that careful tuning is required.
  • Future Directions: The authors hope their work will encourage further investigation into dependency structures in dLLMs and inspire more efficient inference methods that leverage them. They suggest that viewing dLLM decoding through the lens of positional dependencies is a complementary perspective that can address the persistent difficulty of parallel decoding under non-independence.

Summary updated

BibTeX
@inproceedings{luo2026dawn,
  author = {Lizhuo Luo and Zhuoran Shi and Jiajun Luo and Zhi Wang and Shen Ren and Wenya Wang and Tianwei Zhang},
  title = {{DAWN: Dependency-Aware Fast Inference for Diffusion LLMs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=NbRKV16cev},
}
Figure