DiffusionGemma 技术报告

DiffusionGemma Technical Report

Thomas Mesnard Thomas Mesnard · · 2026-07-31 · arXiv:2608.00146 ↗

打开互动全文版(逐段中英对照 + 图/公式 + 论文问答)→

摘要 · Abstract

我们推出了 DiffusionGemma,一个实验性的开放权重语言模型,它使用离散扩散以极高的速度生成文本。DiffusionGemma 不是一次解码一个 token,而是并行迭代细化 256 个 token 的块,避免了传统自回归(AR)大语言模型的顺序解码瓶颈。我们并非从头训练,而是通过对混合专家模型 Gemma 4 进行微调获得 DiffusionGemma,该模型具有 38 亿激活参数和 252 亿总参数。我们计算高效的两阶段训练流程使用了不到初始 AR 模型总训练 token 预算的 10%。第一阶段使用监督微调来教授双向去噪,而第二阶段将强化学习与采样器蒸馏相结合,以共同提高生成质量和推理效率。DiffusionGemma 在生成速度和模型能力之间的权衡上建立了新的帕累托前沿。在我们的完整评估套件中,它每次前向传播生成约 20 个 token,并在单个 NVIDIA H100 GPU 上实现每秒约 1500 个输出 token,这比即使采用最先进的推测解码的 AR 模型也要快得多。DiffusionGemma 还保留了初始模型对思考模式、多模态输入和长上下文的支持。尽管进行了扩散微调,它仍然能够进行 AR 生成,且性能下降很小,这为混合扩散-AR 解码指明了一条道路。

We introduce DiffusionGemma, an experimental open-weight language model that uses discrete diffusion to generate text at exceptionally high speed. Rather than decoding one token at a time, DiffusionGemma iteratively refines blocks of 256 tokens in parallel, avoiding the sequential decoding bottleneck of conventional autoregressive (AR) large language models. Instead of training from scratch, we obtain DiffusionGemma by fine-tuning the mixture-of-experts Gemma 4 model with 3.8B activated and 25.2B total parameters. Our compute-efficient two-stage training pipeline uses fewer than 10% of the starting AR model's total training token budget. The first stage uses supervised fine-tuning to teach bidirectional denoising, while the second stage combines reinforcement learning with sampler distillation to jointly improve generation quality and inference efficiency. DiffusionGemma establishes a new Pareto frontier for the trade-off between generation speed and model capability. Averaged across our full evaluation suite, it generates around 20 tokens per forward pass and achieves roughly 1,500 output tokens per second on a single NVIDIA H100 GPU, which is substantially faster than AR models even with state-of-the-art speculative decoding. DiffusionGemma also retains the starting model's support for thinking mode, multimodal inputs, and long contexts. Despite diffusion fine-tuning, it remains capable of AR generation with only minor performance degradation, suggesting a path toward hybrid diffusion-AR decoding.

核心贡献 · Key contributions

局限 · Limitations

论文章节 · Sections(共 23)

阅读逐段中英对照全文 →