NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DiffuSpec: Unlocking Diffusion Language Models for Speculative Decoding

Guanghao Li, Zhihui Fu, Min Fang, Qibin Zhao, Ming Tang, Chun Yuan, Jun Wang

TL;DR

DiffuSpec is a training-free framework that uses pretrained diffusion language models (DLMs) to accelerate LLM inference through speculative decoding. By generating multi-token drafts in a single forward pass and using a novel "causal-consistency" search, it achieves up to a 3x wall-clock speedup over standard autoregressive decoding without requiring any additional model training.

What Problem Does This Paper Address?

Large Language Models (LLMs) are notoriously slow because they generate text autoregressively—one token at a time. Each token requires a full forward pass of the massive model. Speculative decoding tries to fix this by using a smaller, faster "drafter" model to guess a sequence of tokens (a "draft"), which the large "target" model then verifies in parallel.

However, existing drafters have flaws:

  1. AR Drafters: Most use smaller autoregressive models, which are still sequential and limit speed gains.
  2. Training Overhead: Some methods require training specialized "heads" or distilling new models, which is expensive and complex.
  3. The Diffusion Mismatch: Diffusion models can generate entire blocks of tokens at once (non-autoregressively), but they lack the "left-to-right" causality that standard LLMs expect. This often leads to drafts that the target model rejects, wasting time.

Methods

The authors introduce DiffuSpec, a "drop-in" framework that turns a pretrained diffusion language model into a high-performance drafter. It consists of two main innovations:

  • Causal-Consistency Path Search (CPS): Because diffusion models are bidirectional (they look at the whole draft at once), the most likely token at position 3 might not make sense given the most likely token at position 2. CPS treats the diffusion model's output as a "token lattice" and searches for a path that is both high-confidence for the diffusion model and "fluent" according to a small, fast causal proxy (like a simple n-gram model). This aligns the draft with how the target AR model "thinks."
  • Adaptive Draft-Length (ADL) Controller: Drafting too many tokens is wasteful if they get rejected; drafting too few leaves speed on the table. ADL dynamically adjusts the draft length for every step based on recent acceptance rates and how much content the diffusion model is "ready" to produce before hitting an End-of-Sequence (EOS) token.

Datasets

The researchers evaluated DiffuSpec using the Spec-Bench protocol, which covers six diverse task families:

  • MT-Bench: Multi-turn conversations.
  • WMT: Machine translation.
  • CNN/DailyMail: Text summarization.
  • Natural Questions: Open-domain QA.
  • GSM8K: Mathematical reasoning.
  • DPR/Wikipedia: Retrieval-augmented generation (RAG).

The target model used for most tests was Qwen2.5-32B, with Dream-7B serving as the diffusion drafter.

Key Insights and Ideas

  • The "One-Shot" Advantage: Unlike traditional drafters that need $K$ passes to draft $K$ tokens, a diffusion model can propose a whole block in a single pass. This significantly reduces the "drafting tax" on wall-clock time.
  • Bridging the Causality Gap: The "aha moment" is realizing that you don't need to retrain a diffusion model to be causal. You just need a smart search algorithm (CPS) to extract a causal path from its bidirectional predictions.
  • Drafting Saturation: The paper observes that as draft length increases, quality eventually plateaus or "drifts." The ADL controller is essential because it finds the "sweet spot" where the drafter is most efficient for a specific prompt.

Key Results

  • Significant Speedup: DiffuSpec achieved an average 3.08x wall-clock speedup across the Spec-Bench suite, with peaks of over 4x on mathematical reasoning tasks.
  • Superior Acceptance: It achieved a Mean Accepted Tokens (MAT) of 6.99, meaning on average, nearly 7 tokens were accepted per speculative step.
  • Outperforming Baselines: It consistently beat other training-free methods like SPS (1.67x) and Lookahead (1.30x). Remarkably, it approached the performance of state-of-the-art training-based methods (like EAGLE2) without needing any custom training or fine-tuning.

Limitations and Future Work

  • System Overhead: While the algorithmic speedup is high, the authors note that the actual implementation of diffusion drafting could be further optimized at the system level (e.g., through better KV-cache reuse or fused kernels).
  • Causal Proxies: Currently, CPS uses a simple n-gram model as a proxy. Using a more sophisticated (but still tiny) causal model might further improve the acceptance rate.
  • Refinement Steps: The study primarily used a single-step diffusion process to keep costs low. Exploring how a small number of refinement steps might trade off drafting time for even higher draft quality is a potential area for future research.

Summary updated

BibTeX
@inproceedings{li2026diffuspec,
  author = {Guanghao Li and Zhihui Fu and Min Fang and Qibin Zhao and Ming Tang and Chun Yuan and Jun Wang},
  title = {{DiffuSpec: Unlocking Diffusion Language Models for Speculative Decoding}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.findings-acl.1048},
}
Figure