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

Sequential Diffusion Language Models

Yangzhou Liu, Yue Cao, Hao Li, Gen Luo, Zhe Chen, Weiyun Wang, Xiaobo Liang, Biqing Qi, Lijun Wu, Changyao Tian, Yanting Zhang, Yuqiang Li, Tong Lu, Yu Qiao, Jifeng Dai, Wenhai Wang · DOI

Abstract

Sequential Diffusion Language Models (SDLM) bridge the gap between slow, one-token-at-a-time autoregressive models and fast but rigid diffusion models. By "retrofitting" pre-trained LLMs with a new Next Sequence Prediction objective, SDLM enables adaptive parallel decoding—achieving over 2x throughput gains with virtually no loss in reasoning or coding performance.

Introduction

Standard Large Language Models (LLMs) are primarily autoregressive (ALMs), generating text one token at a time. While this sequential approach ensures high quality, it creates a significant inference bottleneck. Conversely, Diffusion Language Models (DLMs) offer parallel generation but often require expensive training from scratch, struggle with variable-length output, and lack compatibility with standard efficiency optimizations like the KV cache. Existing "Block Diffusion" attempts to combine these ideas but typically forces the model to predict a fixed number of tokens (a block) every time, which is inefficient for non-uniform language patterns.

The SDLM Framework

The authors introduce the Sequential Diffusion Language Model (SDLM) to combine the strengths of both paradigms. The core innovation is the Next Sequence Prediction (NSP) objective, which allows the model to predict sequences of tokens in parallel while maintaining the context of a causal prefix.

Comparison of ALM, Block Diffusion, and SDLM paradigms alongside performance vs. speed metrics.

Key components of the framework include:

  1. Retrofitting ALMs: Instead of training from scratch, SDLM fine-tunes pre-trained autoregressive models (e.g., Qwen-2.5). This allows the model to retain vast amounts of pre-existing knowledge while learning a new decoding strategy.
  2. Structured Attention Mask: During training, SDLM employs a hybrid attention mechanism. It processes the "prefix" (historical context) causally, but uses bidirectional attention within the "prediction block." This allows tokens within the block to interact during the denoising process, improving coherence.
  3. Shift Prediction: To stabilize the process, the model is trained to predict the next token at each mask position, leveraging the base ALM's inherent strength in predicting the immediate next step.

Adaptive Decoding and Efficiency

A major hurdle for diffusion models has been compatibility with the Key-Value (KV) cache. SDLM overcomes this by maintaining a causal prefix. As shown in the prefill and decoding flow, the model updates its KV cache for confirmed tokens while using mask tokens for parallel prediction.

The prefill and decoding stages of SDLM, highlighting the integration with the KV cache.

The "secret sauce" for efficiency is Longest Prefix Decoding. During inference, the model predicts a block of tokens and evaluates its own confidence for each. It retains the longest contiguous sequence of high-confidence tokens and discards the rest. This allows the model to "jump" ahead by multiple tokens when certain, while falling back to single-token generation when uncertain, avoiding the "hallucination" traps of fixed-block models.

Experimental Results

The models were fine-tuned on a diverse dataset of 3.5 million samples (2.3 billion tokens) covering general instruction, math, science, and code. Evaluation across 13 benchmarks demonstrated significant advantages:

  • Throughput Gains: SDLM-3B achieved a 2.1× increase in throughput compared to the standard Qwen-2.5-3B. The 32B model showed even more pronounced efficiency gains.
  • Performance Parity: On the GSM8K math benchmark, SDLM-32B scored 92.4, nearly matching its autoregressive SFT counterpart (93.2).
  • Comparison with DLMs: SDLM-3B significantly outperformed larger dedicated diffusion models like LLaDA-8B and Dream-7B across almost all benchmarks.

Conclusion

SDLM demonstrates that parallel decoding can be integrated into existing LLMs with minimal training overhead. By making block sizes adaptive based on model confidence, it avoids the pitfalls of fixed-size diffusion while delivering substantial speedups for real-world applications. Future work may explore larger block sizes or alternative confidence heuristics to further unlock inference performance.

Summary updated

BibTeX
@misc{liu2025sequential,
  author = {Yangzhou Liu and Yue Cao and Hao Li and Gen Luo and Zhe Chen and Weiyun Wang and Xiaobo Liang and Biqing Qi and Lijun Wu and Changyao Tian and Yanting Zhang and Yuqiang Li and Tong Lu and Yu Qiao and Jifeng Dai and Wenhai Wang},
  title = {{Sequential Diffusion Language Models}},
  year = {2025},
  eprint = {2509.24007},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.24007},
}
Figure