TL;DR
Speculative decoding speeds up Large Language Model (LLM) inference by using a small "drafter" model to predict multiple tokens that a larger "target" model verifies in parallel. However, existing parallel diffusion-based drafters hit a performance wall because a single early mistake invalidates all subsequent tokens in the draft block. $D^2\text{SD}$ solves this by using a dual-diffusion approach: a first drafter generates tokens along with confidence scores to locate likely errors, and a second specialized drafter generates alternative branches from those exact failure points in a single batched pass, significantly boosting token acceptance rates and wall-clock speedups.
What Problem Does This Paper Address?
Autoregressive decoding in LLMs is notoriously memory-bandwidth bound because generating each token requires a full forward pass of a massive model. Speculative decoding alleviates this by using a lightweight draft model to propose a sequence of $\gamma$ tokens, which the target model verifies in a single pass.
The catch? Verification follows the longest-correct-prefix rule: the moment a draft token mismatches the target model's output, that token and all subsequent tokens in the block are thrown away.
To fix this, some methods build "prefix trees" to explore multiple paths, but doing this autoregressively introduces a heavy "drafting tax" due to sequential token generation. On the flip side, parallel drafting methods (like DFlash) use diffusion models to predict an entire block of tokens at once, but they hit a "scaling wall." If an error occurs early in a long linear block, the rest of the parallel compute is completely wasted. Simply generating multiple independent samples from the same diffusion model doesn't help either, as they suffer from "error homogeneity"—they tend to make the exact same mistakes at the same difficult decision boundaries.
Methods
$D^2\text{SD}$ (Dual-Draft Diffusion Speculative Decoding) introduces a two-stage parallel drafting pipeline that dynamically allocates its budget to recover from likely mistakes:
- First Draft & Confidence Scoring: A standard block-diffusion drafter (DFlash-style) generates a block of tokens in one parallel pass. Crucially, it also outputs per-position confidence scores ($c_k$).
- Rejection Boundary Estimation: Using these confidence scores, the system calculates a posterior probability distribution $r(i)$ to estimate exactly where the target model is most likely to reject the draft.
- Top-$K$ Shared-Prefix Selection: Instead of guessing a single failure point, $D^2\text{SD}$ selects the top-$K$ most likely prefix lengths that warrant exploration.
- Variable-Prefix Drafting (VP-Drafter): A second, distinct diffusion model—the VP-Drafter—takes these $K$ prefixes, re-masks the remaining positions, and generates alternative continuations (suffixes) for all branches simultaneously in a single batched forward pass.
- Joint Cascade Verification: The original draft plus the $K$ new branches form a prefix tree. The target model verifies all candidates at once using tree-structured cascade attention, minimizing verification overhead.
Training the VP-Drafter
To make the second stage work, the authors train the VP-Drafter with a unique masking schedule. During training, prefix lengths are sampled from a truncated geometric prior so the model learns to complete text from any arbitrary starting point. They also introduce an exponentially decayed cross-entropy loss that penalizes errors heavily if they happen close to the prefix boundary, since early errors are the most catastrophic for speculative decoding.
Datasets
The models were trained on the PerfectBlend dataset, a mixture of instruction-response pairs spanning mathematics, code, chat, and general instruction-following. To ensure alignment, all training responses were generated by the target models themselves.
Evaluation was performed across eight standard benchmarks:
- Math: GSM8K, MATH, AIME25
- Code: HumanEval, MBPP, LiveCodeBench
- Chat: MT-Bench, Alpaca
Key Insights and Ideas
- Diffusion Drafters are Well-Calibrated: The authors discovered that a block-diffusion drafter's internal token probabilities serve as an excellent proxy for actual target-model acceptance rates. This calibration is what makes the rejection boundary estimation mathematically reliable.
- The Danger of Error Homogeneity: Naively sampling multiple times from the same drafter yields diminishing returns because independent draws from the same distribution collapse onto the same high-confidence paths. Effective branching requires a model with a distinct inductive bias—which $D^2\text{SD}$ achieves via the variable-prefix training of the VP-Drafter.
- Two Layers is the Sweet Spot: Trying to stack a third diffusion layer to fix the errors of the second layer actually hurts wall-clock speedup. The third layer only recovers a tiny fraction of residual probability mass while drastically inflating both drafting and verification latencies.
Key Results
The authors evaluated $D^2\text{SD}$ against DFlash (parallel diffusion baseline) and EAGLE-3 (a state-of-the-art autoregressive tree baseline) using Qwen3-8B and GPT-OSS-20B as target models.
- Inference Speedups (Greedy Decoding, $K=4, \gamma=16$):
- On Qwen3-8B, $D^2\text{SD}$ achieved an average wall-clock speedup of $4.98\times$ over standard autoregressive decoding (compared to DFlash's $4.16\times$ and EAGLE-3's $3.80\times$).
- On the larger GPT-OSS-20B, the speedup reached $6.15\times$ (compared to DFlash's $3.53\times$).
- Acceptance Length ($\alpha$):
- For Qwen3-8B, $D^2\text{SD}$ raised the average number of accepted tokens per cycle from $5.31$ (DFlash) to $7.05$.
- For GPT-OSS-20B, the acceptance length nearly doubled from $4.13$ to $8.02$.
The gains were particularly pronounced in structured domains like Math and Code, where decision boundaries are sharper and re-drafting provides a clear recovery path.
Limitations and Future Work
While $D^2\text{SD}$ delivers impressive speedups, its performance edge narrows slightly during stochastic sampling ($T=1$) because the alignment between the drafter and target model naturally weakens when randomness is introduced. Additionally, the framework is currently optimized for a single re-anchoring stage; scaling this approach dynamically or adapting it to even larger target models without increasing the verification footprint remains an open area for exploration.
Summary updated