SPEED: Sharpened-Teacher Distillation for Parallel Decoding of Diffusion Language Models

Qiuhong Shen, Xingyi Yang, Xinyin Ma, Gongfan Fang, Xinchao WangICML 2026

Masked Diffusion Models (MDMs) offer a tantalizing alternative to standard autoregressive Large Language Models (LLMs) by promising parallel token generation. However, realizing this speedup without degrading output quality has proven difficult. Enter SPEED (Sharpened-Teacher Distillation), a novel framework that accelerates MDMs by up to 12.2× while maintaining near-greedy decoding accuracy through a combination of targeted training and context-aware inference.

The Core Problem: The Speed-Quality Wall

While autoregressive LLMs generate text one token at a time, MDMs generate text by iteratively refining a sequence of masked tokens. In theory, unmasking multiple tokens simultaneously should drastically reduce generation time. In practice, pushing parallelization too far causes generation quality to collapse.

The root cause of this "speed-quality wall" is a violation of conditional independence. When interdependent tokens are grouped into the same decoding step, the model ignores their reliance on one another. It amplifies its reliance on noisy, unresolved context, leading to incoherent or inconsistent text even when the top prediction initially seemed correct.

The SPEED Framework

SPEED tackles this bottleneck by enlarging the "safe" group of tokens that can be decoded in parallel. It achieves this through a two-pronged approach spanning both training and inference.

1. Training: Sharpened-Teacher Distillation

To make the student model more decisive about correct tokens, SPEED employs a selective distillation process:

  • Selective KL Divergence: Using a frozen teacher model, SPEED applies a temperature-scaled KL divergence loss only to the subset of tokens the teacher already predicts correctly.
  • Temperature Scaling: By using a low temperature for the teacher (to "sharpen" its distribution) and a higher temperature for the student, the student is encouraged to place more probability mass on correct token identities. This pushes more tokens above the decoding threshold during inference.
  • Preventing Noise Amplification: By only distilling on teacher-correct positions alongside a standard Masked Language Modeling (MLM) loss, the model avoids learning the teacher's uncertainty or errors.

2. Inference: Slow-Fast Decoding via JSD

Not all tokens are equally risky to decode in parallel. SPEED introduces a dynamic decoding strategy based on Jensen-Shannon Divergence (JSD):

  • Measuring Context Sensitivity: JSD is used to measure a token's reliance on local context by comparing the model's prediction with the preceding context block versus without it.
  • The Slow-Fast Split: Tokens with low JSD are "context-stable"—their identity is driven by global structure. These are assigned to a Fast set and decoded aggressively in large parallel groups. Conversely, tokens with high JSD are "context-sensitive linchpins." These are assigned to a Slow set and decoded sequentially to preserve coherence.

Key Insights

  • Decoding as Iterative Grouping: The challenge of parallel decoding is fundamentally about which tokens belong together, not just how many. Overly permissive grouping is what breaks MDMs.
  • Confidence $\neq$ Independence: A model might be highly confident in a single token, but that does not make it safe to decode alongside others. JSD provides a superior metric for "parallelizability" because it explicitly measures reliance on unresolved local context.

Empirical Results

The authors trained and evaluated SPEED on high-stakes reasoning and coding benchmarks (GSM8K, MATH, HumanEval, MBPP) using LLaDA-8B-Instruct and Dream-7B-Instruct.

  • Massive Speedups: On LLaDA-8B, SPEED achieved a 12.2× speedup on the MBPP coding benchmark and a 9.8× speedup on GSM8K.
  • High Fidelity: On GSM8K, SPEED reached 78.9% accuracy, remarkably close to the greedy baseline of 79.3%, while operating nearly 10 times faster.
  • Outperforming Baselines: SPEED significantly outperformed alternative acceleration methods like "Few-step decoding" and "Consistency Distillation," which typically suffer 10-20 point accuracy drops at similar speeds.
  • Zero-Shot Generalization: Despite being trained primarily on mathematical data, SPEED showed strong cross-domain performance on summarization (CNN/DailyMail) and document QA (QASPER), proving the Slow-Fast logic is a general linguistic property.

Limitations and Future Directions

While highly effective, SPEED requires high-quality trajectories from a teacher model, adding upfront computational costs for data preparation. Furthermore, while the authors use a caching trick to minimize overhead, calculating JSD still introduces minor computational complexity during inference. Future work may explore adaptive JSD thresholds based on model scale or task type, as well as evaluating the framework's performance on long-form, open-ended creative prose.

Summary updated

BibTeX
@inproceedings{shen2026speed,
  author = {Qiuhong Shen and Xingyi Yang and Xinyin Ma and Gongfan Fang and Xinchao Wang},
  title = {{SPEED: Sharpened-Teacher Distillation for Parallel Decoding of Diffusion Language Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=gscVYTfek1},
}
Figure