SimSD: Simple Speculative Decoding in Diffusion Language Models

Junxia Cui, Haotian Ye, Runchu Tian, Hongcan Guo, Jinya Jiang, Haoru Li, Chaojie Ren, Yiming Huang, Kaijie Zhu, Zhongkai Yu, Kun Zhou, Jingbo Shang

TL;DR

SimSD introduces a training-free, plug-and-play speculative decoding algorithm tailored for diffusion large language models (dLLMs). By designing a novel token-level temporal causal mask, it restores the ability to verify multiple drafted tokens in a single forward pass, achieving up to a 7.46× inference speedup while maintaining or even slightly improving generation quality.

What Problem Does This Paper Address?

Autoregressive (AR) language models generate text sequentially, token-by-token, which is notoriously memory-bandwidth bound and slow. Speculative decoding has emerged as a powerful fix for AR models: a smaller "draft" model quickly guesses a sequence of tokens, and a larger "target" model verifies them all in parallel in a single forward pass. This works because AR models use a causal mask, ensuring that each token's context depends only on its prefixes.

Diffusion large language models (dLLMs) offer a promising alternative by denoising text via bidirectional attention, allowing them to predict multiple tokens per step. However, this bidirectional nature makes them fundamentally incompatible with standard token-level speculative decoding. Because dLLMs rely on [MASK] tokens and look both forward and backward, the effective context changes dynamically across denoising steps. This breaks the stable temporal context needed for a target model to validate multiple drafted tokens at once.

Figure 1: SimSD restores token-level speculative decoding for diffusion language models. Vanilla dLLMs cannot directly support speculative decoding because bidirectional attention breaks temporal token-level contexts. SimSD adopts a temporal causal mask for supporting standard speculative verification in a single forward pass, leading to faster decoding without hurting performance.

Methods

To bridge this gap, the authors propose SimSD (Simple Speculative Decoding), a training-free approach that introduces a token-level temporal causal structure into dLLMs. The method consists of three core components:

  1. Input Layout Preparation: For a given speculative step, the input sequence is structured to contain both a Data section (which holds the candidate reference tokens proposed by the draft model) and a Mask section (which contains [MASK] tokens serving as prediction slots).
  2. Temporal Attention Mask: Instead of full bidirectional attention, SimSD uses a specialized attention mask. This mask ensures that a prediction slot at a specific step can only attend to the prompt, earlier accepted data tokens, and future mask placeholders. This effectively mimics the prefix-conditioned context of AR models.
  3. Position Encoding Alignment (RoPE Copy): Because the data and mask sections contain paired tokens at different absolute sequence indices, standard Rotary Position Embeddings (RoPE) would mismatch their query and key vectors. SimSD resolves this by forcing each mask position to copy the RoPE index of its paired data position, ensuring positional consistency.

This architecture allows the target dLLM to compute valid logits for all drafted tokens simultaneously, enabling standard rejection sampling verification.

Figure 2: Token-level temporal causal attention. (a) A step map assigns each token a temporal decoding order. (b) The input is arranged as prompt, data, and mask tokens, with shared temporal labels and aligned positional encoding. (c) The attention mask enforces token-level temporal causality.

Datasets

The authors evaluated SimSD across four diverse, standard benchmarks using the SDAR dLLM family:

  • GSM8K: Mathematical reasoning tasks.
  • MBPP: Code generation tasks (evaluated via pass@1).
  • TriviaQA: General knowledge and open-domain question answering.
  • MMLU: Multi-task language understanding across humanities, STEM, and social sciences.

Key Insights and Ideas

  • Causal Constraints on Bidirectional Models: The paper demonstrates that you don't need to retrain a dLLM to change how it views context. By carefully restricting attention visibility temporally, a bidirectional model can act like a causally masked model for verification purposes.
  • The Criticality of RoPE Alignment: One of the most striking findings was the ablation study on RoPE alignment. If mask tokens use their physical sequence positions instead of copying their paired data token's position IDs, the model's accuracy drops to 0.0%. Aligning the coordinate space of the draft and mask tokens is non-negotiable.
  • Parallel Verification is a Good Approximation: Evaluating all positions in a single forward pass is technically an approximation of sequential denoising due to higher-order hidden state interactions. However, the authors show that the top-1 token agreement remains extremely high (>94% even at the final unmasking step), proving the approximation error is negligible in practice.
Figure 4: Cross model distribution analysis. We use SDAR-1.7B-Chat as draft and SDAR-8B- Chat as target with B = 4 and temperature 0.

Key Results

  • Throughput Speedups: SimSD achieved substantial speedups over vanilla decoding across all benchmarks. For a block length of $B=4$, it achieved an average 7.46× speedup (71.6 tokens/s vs 9.6 tokens/s). For $B=8$, it achieved a 5.40× speedup.
  • Outperforming Baselines: SimSD consistently outperformed S2D2 (a self-speculative dLLM baseline), delivering significantly higher token throughput.
  • Preserved (and Improved) Quality: Unlike acceleration methods that sacrifice accuracy, SimSD maintained generation quality on par with vanilla decoding, even yielding a slight average performance boost of +1.7% across the benchmarks.

Limitations and Future Work

  • Sequence Length Overhead: Duplicating the drafted sequence into data and mask sections increases the effective sequence length, which scales the attention computation cost by $O(2n\ell + \ell^2)$. While this overhead is bounded and mitigated by KV caching and blockwise decoding, it remains a factor for very long draft lengths.
  • Architectural Scope: The current implementation is validated primarily on block-causal dLLMs (like the SDAR family). Extending this exact token-level temporal verification to fully bidirectional dLLMs that do not use block-causal structures remains an open area for exploration.

Summary updated

BibTeX
@inproceedings{cui2026simsd,
  author = {Junxia Cui and Haotian Ye and Runchu Tian and Hongcan Guo and Jinya Jiang and Haoru Li and Chaojie Ren and Yiming Huang and Kaijie Zhu and Zhongkai Yu and Kun Zhou and Jingbo Shang},
  title = {{SimSD: Simple Speculative Decoding in Diffusion Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=NYqEuoKbxZ},
}
Figure