Self Speculative Decoding for Diffusion Large Language Models

Yifeng Gao, Ziang Ji, Yuxuan Wang, Biqing Qi, Hanlin Xu, Linfeng ZhangarXiv 2025 · DOI

TL;DR

Self Speculative Decoding (SSD) is a novel, lossless acceleration framework for Diffusion Large Language Models (dLLMs). By allowing a dLLM to act as its own "drafter" and "verifier" through a hierarchical tree-based verification process, SSD achieves up to a 3.46× speedup without requiring auxiliary models or sacrificing output quality.

Introduction: The Inference Bottleneck in dLLMs

While Autoregressive Models (ARMs) like GPT-4 dominate the landscape, Diffusion-based LLMs (dLLMs) have emerged as a powerful alternative. dLLMs generate text by iteratively denoising masked segments, offering advantages like bidirectional attention and superior performance on reasoning tasks where ARMs often struggle.

However, dLLMs face a major hurdle: inference speed. Standard decoding is often stepwise and slow. While traditional "speculative decoding" can speed up ARMs by using a small "draft" model to guess tokens for a larger "target" model to verify, applying this to dLLMs is difficult. dLLMs operate on masked positions rather than sequential predictions, and maintaining a separate draft model introduces significant memory overhead and complexity.

Methodology: Self Speculative Decoding (SSD)

The authors introduce Self Speculative Decoding (SSD), which eliminates the need for a separate draft model by exploiting the dLLM’s inherent parallel prediction capabilities.

Overview of the SSD hierarchical verification process compared to standard step-by-step decoding.

As shown in the figure above, the SSD process follows four key stages:

  1. Self-Drafting: In a single forward pass, the dLLM generates "draft" tokens for multiple masked positions simultaneously based on its current confidence scores.
  2. Greedy Selection: The system selects the top $N$ positions with the highest confidence that respect the model's generation order (e.g., completing one block of text before moving to the next).
  3. Hierarchical Verification Tree: SSD constructs a tree where each node represents a potential state with a draft token. Instead of verifying one token at a time, the model processes this entire tree in a single batch forward pass.
  4. Lossless Verification: A child node is only accepted if its parent node’s prediction exactly matches the draft. Because the "verifier" is the model itself, the final output is mathematically identical to the standard, slower stepwise decoding process.

Experimental Setup

The researchers evaluated SSD across four diverse benchmarks focusing on mathematical reasoning and code generation:

  • GSM8K: Grade school math word problems.
  • MATH: Challenging competition-level mathematics.
  • HumanEval: Python programming tasks.
  • MBPP: Entry-level Python programming concepts.

The method was tested on two prominent dLLM families: LLaDA (including LLaDA-8B and LLaDA-1.5) and Dream (7B-Base and Instruct).

Key Insights

  • The "Free" Drafter: The core innovation is that dLLMs are already parallel predictors. There is no need for a smaller "student" model to guess what the "teacher" will say; the teacher is already making those guesses during every denoising step.
  • Exploiting Memory-Bound Regimes: Modern dLLMs using KV-caching are often "memory-bound" rather than "compute-bound." This means the GPU spends more time moving data than performing calculations. SSD utilizes this "spare" computational capacity to verify multiple guesses at once for almost no extra time cost.
  • Order Matters: The authors discovered that even when the model predicts the correct tokens, it sometimes predicts them in a different order than the stepwise logic expects (out-of-order failure). While they experimented with "mix-order" trees to fix this, they found a simple greedy strategy remains the most efficient for throughput.

Key Results

SSD demonstrates significant performance improvements across all tested benchmarks without any degradation in output quality.

Throughput (TPS) comparison between standard caching and SSD across various generation lengths and few-shot settings.
  • Significant Speedups: SSD achieved a mean speedup of 2.11× on LLaDA-Instruct and a massive 3.46× on Dream-Instruct.
  • Step Reduction: The number of required decoding steps was reduced by 50% to 77% across various models and tasks.
  • Zero Quality Loss: Because the verification process uses the target model's own logic, the outputs are 100% identical to standard decoding.
  • Architecture Sensitivity: The Dream model family benefited more from SSD than LLaDA, suggesting that certain architectural properties (like intermediate representation caching) make some models more "speculation-friendly."

Limitations and Future Work

Despite its success, SSD faces an "Out-of-Order" Bottleneck: the current greedy strategy fails if the model's parallel guesses don't match the exact sequence of its stepwise logic, even if the tokens themselves are correct. Additionally, while larger verification trees can catch more tokens, they eventually push the model back into a compute-bound regime, where the overhead of the tree outweighs the speed gains.

Future research will explore adaptive verification trees that change shape based on the model's confidence in real-time, as well as extending the self-speculative principle to other non-autoregressive generation paradigms.

Summary updated

BibTeX
@misc{gao2025self,
  author = {Yifeng Gao and Ziang Ji and Yuxuan Wang and Biqing Qi and Hanlin Xu and Linfeng Zhang},
  title = {{Self Speculative Decoding for Diffusion Large Language Models}},
  year = {2025},
  eprint = {2510.04147},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.04147},
}
Figure