Seed Diffusion: A Large-Scale Diffusion Language Model with High-Speed Inference

Yuxuan Song, Zheng Zhang, Cheng Luo, Pengyang Gao, Fan Xia, Hao Luo, Zheng Li, Yuehang Yang, Hongli Yu, Xingwei Qu, Yuwei Fu, Jing Su, Ge Zhang, Wenhao Huang, Mingxuan Wang, Lin Yan, Xiaoying Jia, Jingjing Liu, Wei-Ying Ma, Ya-Qin Zhang, Yonghui Wu, Hao ZhouarXiv 2025 · DOI

Abstract

Seed Diffusion Preview is a large-scale discrete-state diffusion language model designed to overcome the sequential bottleneck of autoregressive (AR) decoding in code generation. By integrating a two-stage curriculum, constrained-order training, and on-policy learning, the model achieves a state-of-the-art inference speed of 2,146 tokens/s on H20 GPUs. Evaluation across multiple benchmarks demonstrates that Seed Diffusion maintains high quality, outperforming several larger AR models on the MBPP benchmark and establishing a new Pareto frontier for the speed-quality trade-off.

Introduction

The current landscape of Large Language Models (LLMs) is dominated by autoregressive (AR) architectures. While effective, AR models generate tokens sequentially, leading to inference times that scale linearly with sequence length. Non-autoregressive (NAR) models, particularly those utilizing discrete diffusion, offer parallel generation capabilities but often struggle with inductive biases and inference efficiency. Seed Diffusion addresses these challenges by bridging the quality-speed gap through novel training and sampling strategies tailored for code generation.

Methodology

Seed Diffusion introduces several architectural and training innovations to optimize for both accuracy and speed.

Two-Stage Curriculum (TSC)

The training process is divided into two phases. In the first stage, the model learns standard mask-based diffusion. In the second stage (the final 20% of training), an edit-based corruption process based on Levenshtein distance is introduced. This forces the model to perform self-correction (insertions, deletions, substitutions) rather than simple token filling, mitigating the "overconfidence" issue common in mask-based models where the model assumes unmasked tokens are always correct.

Training Objectives

To ensure high-quality generation, the researchers utilized Constrained-Order Diffusion Training, distilling optimal generation trajectories from a pre-trained model. Furthermore, On-Policy Diffusion Learning was employed to directly optimize for shorter generation paths, effectively making inference speed a trainable objective.

Block-wise Parallel Sampling

During inference, Seed Diffusion employs a semi-autoregressive approach. It generates blocks of tokens in parallel while maintaining causal relationships between blocks, allowing for the efficient use of KV-caching and maximizing hardware utilization.

Results and Discussion

Seed Diffusion was evaluated using the Seed Coder data pipeline across a variety of benchmarks, including HumanEval, MBPP, and BigCodeBench.

Performance and Speed Comparison of Seed Diffusion against competitive models across various benchmarks.

Inference Speed

The most striking result is the model's throughput. Seed Diffusion Preview achieves 2,146 tokens/s, significantly outpacing Gemini Diffusion (1,489 tokens/s) and Mercury Coder (1,109 tokens/s). This speedup is a direct result of the on-policy learning and parallel sampling techniques.

Analysis of the speedup ratio over training steps and the impact of block size on relative forward time.

Generation Quality

Despite the focus on speed, quality remains high. On the MBPP benchmark, Seed Diffusion scored 85.2, surpassing Llama-3.1-8B (56.8) and Qwen3-8B (69.3). It also showed strong performance in code editing tasks, scoring 54.3 on CanItEdit, which is competitive with models significantly larger in parameter count. The model effectively defines the new "gold standard" for the trade-off between how fast a model runs and how well it performs.

Conclusion

Seed Diffusion establishes a new Pareto frontier for code generation, proving that discrete diffusion models can match or exceed the quality of AR models while providing massive gains in inference speed. Future work will focus on scaling these techniques to general natural language tasks and exploring larger parameter regimes to see if the "bigger is better" paradigm holds for diffusion architectures.

Summary updated

BibTeX
@misc{song2025seed,
  author = {Yuxuan Song and Zheng Zhang and Cheng Luo and Pengyang Gao and Fan Xia and Hao Luo and Zheng Li and Yuehang Yang and Hongli Yu and Xingwei Qu and Yuwei Fu and Jing Su and Ge Zhang and Wenhao Huang and Mingxuan Wang and Lin Yan and Xiaoying Jia and Jingjing Liu and Wei-Ying Ma and Ya-Qin Zhang and Yonghui Wu and Hao Zhou},
  title = {{Seed Diffusion: A Large-Scale Diffusion Language Model with High-Speed Inference}},
  year = {2025},
  eprint = {2508.02193},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.02193},
}
Figure