TL;DR
Diffusion Large Language Models (dLLMs) promise massive speedups by decoding multiple tokens in parallel, but this parallelism often introduces errors when tokens are predicted without knowing what their neighbors are doing. This paper introduces Dependency-Aware Revocable Decoding (DARD), a training-free framework that fixes these errors by introducing a three-state token system and a confidence-ordered attention mask. DARD ensures that uncertain tokens don't corrupt the verification of other tokens, delivering up to a 2.71$\times$ speedup and significantly higher generation quality over existing state-of-the-art decoding methods.
What Problem Does This Paper Address?
Standard autoregressive LLMs generate text slowly—one token at a time, from left to right. Diffusion LLMs (dLLMs) offer a faster alternative by iteratively denoising an entire sequence of masked tokens at once, allowing multiple positions to be decoded in parallel.
However, this parallelism introduces a major flaw: because tokens in the same step are predicted simultaneously, the model cannot account for dependencies between them. For example, given the prompt "The city of ___ ___ is on the Southern California coast," a dLLM might generate "Los Diego" because "Los" and "Diego" are both locally plausible, even though the combination is invalid.
Recent "revocable decoding" methods try to fix this by re-evaluating decoded tokens and re-masking unreliable ones. But they suffer from context contamination: they use the entire unmasked sequence as context during verification. As a result, an incorrect token (like "Diego") corrupts the context used to verify its neighbor ("Los"), leading to unresolved conflicts or unnecessary re-masking.
Methods
DARD solves context contamination without requiring any additional model training. It introduces three core mechanisms:
- Three-State Token Classification: Instead of treating tokens as simply masked ($M$) or unmasked ($U$), DARD introduces an intermediate Candidate ($C$) state for tokens that have been decoded but carry low or uncertain model confidence.
- Confidence-Ordered Verification: To prevent uncertain tokens from ruining the verification context, DARD applies a specialized attention mask. Candidate tokens are ordered by their confidence scores; a candidate token can only attend to fully unmasked ($U$) tokens and higher-confidence candidate tokens. This effectively mimics an autoregressive, multi-step decoding process within a single forward pass.
- Adaptive Logit Mixing: For the remaining masked ($M$) tokens, DARD dynamically adjusts how much they should trust the surrounding candidate context. If nearby candidate tokens are successfully verified and promoted to the unmasked state, their contextual weight increases. If they are demoted back to masked, their weight decreases.
Datasets
The authors evaluated DARD across 12 diverse benchmarks spanning both textual and multimodal tasks, using three open-source models (LLaDA-8B-Instruct, LLaDA-1.5, and MMaDA-8B-MixCoT):
- Textual Benchmarks: GSM8K (math), MATH500 (advanced math), MBPP (code), Countdown (arithmetic), Sudoku (logic), and ARC-Challenge (commonsense science).
- Vision-Language Benchmarks: Flickr30K (image captioning), AI2D (diagram understanding), MATH-Vision, MathVista, MMMU (multi-discipline reasoning), and ScienceQA.
Key Insights and Ideas
- Context Contamination is the Real Bottleneck: The "aha moment" of the paper is realizing that parallel decoding algorithms fail not because they make bad initial guesses, but because they allow those bad guesses to break the verification mechanism itself.
- Confidence as a Proxy for Time: By forcing lower-confidence tokens to attend to higher-confidence tokens, DARD elegantly maps model confidence to a pseudo-temporal generation order. It captures the benefits of left-to-right autoregressive generation while maintaining parallel efficiency.
- Training-Free Adaptability: Because DARD operates entirely through clever manipulation of attention masks and logit mixing, it can be dropped into any existing dLLM architecture out of the box.
Key Results
DARD consistently outperforms recent state-of-the-art revocable decoding baselines (like Saber and WINO) across the speed-quality Pareto frontier:
- Image Captioning (Flickr30K): DARD achieved a 2.71$\times$ speedup and a 4.35-point gain in CIDEr score compared to Saber.
- Peak Accuracy Gains: When optimized for pure accuracy, DARD significantly outperformed standard one-token-per-step decoding. For instance, it achieved a +56.4% absolute accuracy gain on the ARC-Challenge while reducing decoding steps by 7.2$\times$.
- Throughput (TPS): DARD consistently delivered higher tokens-per-second (TPS) and better task performance simultaneously across almost all benchmarks.
Limitations and Future Work
While DARD provides a substantial boost to decoding efficiency and consistency, the authors note a few limitations:
- Moderate Absolute Gains: DARD improves sequence-level consistency by reusing the base model's original prediction behavior, meaning it cannot fundamentally alter or improve the underlying model distribution itself.
- Computational Overhead: The use of an augmented shadow sequence and state-specific attention masks introduces a slight per-step latency overhead (less than 6.3% peak GPU memory increase in the worst-case scenario).
Future work will likely focus on creating more optimized hardware implementations to further minimize this runtime overhead.
Summary updated