Paper: 2602.15014 Authors: Subham Sekhar Sahoo, Jean-Marie Lemercier, Zhihan Yang, Justin Deschenaux, Jingyu Liu, John Thickstun, Ante Jukic Categories: cs.LG, cs.CL
Abstract
This paper presents the first comprehensive scaling law study of discrete diffusion language models, comparing uniform-state, interpolating, and masked diffusion approaches. The authors demonstrate that masked diffusion models can achieve approximately 12% better FLOPs efficiency through a simple cross-entropy training objective. Critically, they find that perplexity, while informative within a diffusion family, can be misleading when comparing across different diffusion methods. Models with worse likelihood scaling may actually be preferable due to faster and more practical sampling characteristics. At 1.7B parameters, uniform-state diffusion remains competitive on likelihood benchmarks and outperforms both autoregressive and masked diffusion models on GSM8K mathematical reasoning tasks, despite having worse validation perplexity.
Key Contributions
- First scaling law analysis for uniform-state and interpolating discrete diffusion methods, providing empirical evidence across multiple model sizes
- Discovery that masked diffusion can be made ~12% more FLOPs-efficient using cross-entropy objectives instead of traditional diffusion losses
- Demonstration that perplexity is not a reliable cross-family metric, with speed-quality Pareto frontiers revealing different trade-offs
- Evidence that uniform-state diffusion at 1.7B parameters outperforms masked diffusion and autoregressive models on GSM8K reasoning tasks
- Open-source release of code, model checkpoints, and video tutorials for reproducibility
Methodology and Experimental Design
The research employs a systematic scaling approach, training models across multiple parameter counts to establish scaling laws for different diffusion families. The authors compare three primary discrete diffusion approaches: masked diffusion (which masks tokens during the forward process), uniform-state diffusion (which transitions tokens to a uniform distribution), and interpolating diffusion (which gradually interpolates between data and noise distributions).
For masked diffusion, the authors introduce a modified training objective using cross-entropy loss rather than the standard diffusion objective. This modification simplifies the training process while maintaining model quality, leading to the observed 12% FLOPs efficiency gain. The training procedure involves:
where represents the original data, is the noised version at timestep , and is the model’s predicted distribution.
The evaluation framework encompasses both traditional language modeling metrics (perplexity on validation sets) and downstream task performance, including mathematical reasoning (GSM8K), common sense reasoning, and other benchmarks. This dual evaluation strategy proves crucial for revealing the limitations of perplexity as a sole metric.
Results and Analysis
The scaling law experiments reveal distinct patterns for each diffusion family. Masked diffusion shows the best perplexity scaling, which explains its current dominance in the field. However, when examining the speed-quality Pareto frontier—plotting generation speed against output quality—uniform-state diffusion demonstrates competitive performance with significantly faster sampling.
At the 1.7B parameter scale, the results challenge conventional wisdom:
- Uniform-state diffusion achieves competitive perplexity despite simpler dynamics
- On GSM8K mathematical reasoning, uniform-state diffusion outperforms both masked diffusion and autoregressive baselines
- The cross-entropy trained masked diffusion models match or exceed standard masked diffusion performance while requiring fewer FLOPs
The GSM8K results are particularly striking, suggesting that perplexity and reasoning capability may not be as tightly coupled as previously assumed. The uniform-state model’s superior performance on mathematical reasoning, despite worse validation perplexity, indicates that different diffusion processes may learn different inductive biases that favor certain types of tasks.
The speed-quality analysis reveals that uniform-state diffusion can generate samples 2-3× faster than masked diffusion for comparable quality levels. This advantage stems from the simpler transition dynamics and more efficient sampling procedures inherent to uniform-state approaches.
Implications for Diffusion Language Modeling
This work has significant implications for the future direction of diffusion language models. The field has largely converged on masked diffusion due to its strong perplexity numbers, but this research suggests that such convergence may be premature. The findings indicate that:
Metric Selection Matters: Perplexity serves as a useful metric within a model family but fails as a universal comparison tool across different diffusion approaches. Researchers should adopt multi-faceted evaluation frameworks that include sampling efficiency, downstream task performance, and computational requirements.
Efficiency Considerations: The 12% FLOPs improvement for masked diffusion through cross-entropy training demonstrates that even established methods have room for optimization. This finding suggests that other diffusion families might similarly benefit from objective function redesign.
Task-Specific Advantages: The superior GSM8K performance of uniform-state diffusion hints at task-specific advantages for different diffusion processes. Future work should investigate which diffusion families excel at which types of reasoning or generation tasks.
Practical Deployment: For real-world applications where generation speed matters, uniform-state diffusion’s faster sampling may outweigh its perplexity disadvantage. The speed-quality Pareto frontier provides a more practical lens for model selection than perplexity alone.
Takeaways
- Perplexity is informative within diffusion families but misleading across them—speed-quality trade-offs matter more for practical deployment
- Masked diffusion can be made ~12% more FLOPs-efficient using simple cross-entropy objectives without sacrificing quality
- Uniform-state diffusion remains competitive at scale (1.7B parameters) and outperforms masked diffusion on mathematical reasoning tasks
- The speed-quality Pareto frontier reveals that models with worse likelihood scaling may be preferable due to faster sampling
- The field should move beyond perplexity-only evaluation and adopt multi-dimensional assessment frameworks for diffusion language models
- Different diffusion processes may encode different inductive biases, making them suitable for different downstream applications
- Open-source release of models and code enables further research into scaling laws and diffusion method comparison
论文: 2602.15014 作者: Subham Sekhar Sahoo, Jean-Marie Lemercier, Zhihan Yang, Justin Deschenaux, Jingyu Liu, John Thickstun, Ante Jukic 分类: cs.LG, cs.CL
摘要
本文首次对离散扩散语言模型进行了全面的规模化定律研究,比较了均匀状态、插值和掩码扩散方法。研究表明,通过简单的交叉熵训练目标,掩码扩散模型可以实现约12%的FLOPs效率提升。关键发现是,困惑度虽然在同一扩散家族内具有参考价值,但在跨方法比较时可能产生误导。由于采样速度更快、更实用,似然度规模化较差的模型实际上可能更优。在17亿参数规模下,均匀状态扩散在似然基准测试中保持竞争力,并在GSM8K数学推理任务上超越了自回归和掩码扩散模型,尽管其验证困惑度更差。
主要贡献
- 首次对均匀状态和插值离散扩散方法进行规模化定律分析,提供跨多个模型规模的实证证据
- 发现使用交叉熵目标替代传统扩散损失可使掩码扩散的FLOPs效率提升约12%
- 证明困惑度不是可靠的跨家族指标,速度-质量帕累托前沿揭示了不同的权衡关系
- 证实17亿参数的均匀状态扩散在GSM8K推理任务上优于掩码扩散和自回归模型
- 开源发布代码、模型检查点和视频教程以支持可复现性研究
方法论与实验设计
研究采用系统化的规模化方法,在多个参数量级上训练模型以建立不同扩散家族的规模化定律。作者比较了三种主要的离散扩散方法:掩码扩散(在前向过程中掩盖token)、均匀状态扩散(将token转换为均匀分布)和插值扩散(在数据和噪声分布之间逐渐插值)。
对于掩码扩散,作者引入了使用交叉熵损失而非标准扩散目标的改进训练目标。这一修改简化了训练过程同时保持模型质量,带来了观察到的12% FLOPs效率提升。训练过程涉及:
其中表示原始数据,是时间步的加噪版本,是模型预测的分布。
评估框架涵盖传统语言建模指标(验证集困惑度)和下游任务性能,包括数学推理(GSM8K)、常识推理等基准测试。这种双重评估策略对于揭示困惑度作为唯一指标的局限性至关重要。
结果与分析
规模化定律实验揭示了每个扩散家族的独特模式。掩码扩散显示出最佳的困惑度规模化特性,这解释了其当前在该领域的主导地位。然而,在检查速度-质量帕累托前沿(绘制生成速度与输出质量的关系)时,均匀状态扩散展现出具有竞争力的性能和显著更快的采样速度。
在17亿参数规模下,结果挑战了传统观点:
- 均匀状态扩散尽管动力学更简单,仍实现了有竞争力的困惑度
- 在GSM8K数学推理上,均匀状态扩散超越了掩码扩散和自回归基线
- 交叉熵训练的掩码扩散模型匹配或超越标准掩码扩散性能,同时需要更少的FLOPs
GSM8K结果尤其引人注目,表明困惑度与推理能力的耦合可能不如先前假设的那样紧密。均匀状态模型在数学推理上的优越表现,尽管验证困惑度更差,表明不同的扩散过程可能学习到有利于特定任务类型的不同归纳偏置。
速度-质量分析揭示,在可比质量水平下,均匀状态扩散的样本生成速度比掩码扩散快2-3倍。这一优势源于均匀状态方法固有的更简单的转换动力学和更高效的采样程序。
对扩散语言建模的影响
这项工作对扩散语言模型的未来方向具有重要意义。该领域主要因强劲的困惑度数据而趋同于掩码扩散,但本研究表明这种趋同可能为时过早。研究发现表明:
指标选择至关重要: 困惑度在模型家族内是有用的指标,但作为跨不同扩散方法的通用比较工具则失效。研究人员应采用包含采样效率、下游任务性能和计算需求的多维评估框架。
效率考量: 通过交叉熵训练使掩码扩散获得12% FLOPs改进,证明即使是成熟的方法也有优化空间。这一发现表明其他扩散家族可能同样受益于目标函数的重新设计。
任务特定优势: 均匀状态扩散在GSM8K上的优越性能暗示不同扩散过程具有任务特定优势。未来工作应研究哪些扩散家族在哪些类型的推理或生成任务上表现出色。
实际部署: 对于生成速度重要的实际应用,均匀状态扩散更快的采样可能超过其困惑度劣势的影响。速度-质量帕累托前沿为模型选择提供了比单纯困惑度更实用的视角。
要点总结
- 困惑度在扩散家族内具有参考价值,但跨家族比较时会产生误导——速度-质量权衡对实际部署更重要
- 使用简单的交叉熵目标可使掩码扩散的FLOPs效率提升约12%,且不牺牲质量
- 均匀状态扩散在大规模(17亿参数)下保持竞争力,并在数学推理任务上超越掩码扩散
- 速度-质量帕累托前沿揭示,由于采样更快,似然度规模化较差的模型可能更可取
- 该领域应超越仅用困惑度评估,采用多维评估框架来评价扩散语言模型
- 不同的扩散过程可能编码不同的归纳偏置,使其适用于不同的下游应用
- 模型和代码的开源发布促进了规模化定律和扩散方法比较的进一步研究