[论文解读] Likelihood-Based Diffusion Language Models
本文介绍了 Plaid 1B,一种基于似然的扩散语言模型,在六个标准基准上实现了零样本似然性能超越 GPT-2 124M。通过开发一种新颖的算法框架,分析与自回归模型不同的计算最优缩放规律,并利用更多计算资源,作者在基于扩散的语言建模中实现了最先进的似然性能。
Despite a growing interest in diffusion-based language models, existing work has not shown that these models can attain nontrivial likelihoods on standard language modeling benchmarks. In this work, we take the first steps towards closing the likelihood gap between autoregressive and diffusion-based language models, with the goal of building and releasing a diffusion model which outperforms a small but widely-known autoregressive model. We pursue this goal through algorithmic improvements, scaling laws, and increased compute. On the algorithmic front, we introduce several methodological improvements for the maximum-likelihood training of diffusion language models. We then study scaling laws for our diffusion models and find compute-optimal training regimes which differ substantially from autoregressive models. Using our methods and scaling analysis, we train and release Plaid 1B, a large diffusion language model which outperforms GPT-2 124M in likelihood on benchmark datasets and generates fluent samples in unconditional and zero-shot control settings.
研究动机与目标
- 通过在扩散模型中实现非平凡的似然性,弥合自回归模型与基于扩散的模型之间的似然差距。
- 开发一种可扩展的、基于似然的训练框架,用于扩散语言模型,以支持流畅且可控的生成。
- 识别出与自回归模型有根本区别的、适用于扩散模型的计算最优训练方案。
- 训练并发布大规模扩散模型 Plaid 1B,使其在标准基准上的似然性能超越 GPT-2 124M。
- 通过计算匹配的消融实验和缩放规律分析,验证算法改进的有效性。
提出的方法
- 采用变分扩散模型(VDM)框架,在嵌入的标记序列上使用连续噪声调度。
- 应用可逆的逐标记嵌入函数,将离散标记映射到连续潜在空间。
- 定义前向扩散过程,通过单调噪声调度逐步向嵌入序列添加高斯噪声。
- 通过最大似然估计学习一个去噪神经网络 $\hat{x}_{\theta}(z_t)$,以近似反向过程 $p_{\theta}(z_{(i-1)/T} | z_{i/T})$。
- 使用变分下界(VLB)优化方法训练模型,以最大化数据的对数似然。
- 推导并应用适用于扩散模型的、与标准自回归缩放规则不同的计算最优缩放规律。
实验结果
研究问题
- RQ1基于扩散的语言模型能否在标准语言建模基准上实现非平凡的似然性?
- RQ2为使基于似然的扩散语言模型在性能上与自回归模型竞争,需要哪些算法改进?
- RQ3扩散语言模型的缩放规律与自回归模型有何不同?
- RQ4何种计算最优训练方案能为扩散语言模型提供最佳的似然性能?
- RQ5大规模扩散模型能否在零样本似然性能上超越广泛使用的自回归模型 GPT-2 124M?
主要发现
- Plaid 1B 是一个参数量为 11 亿的扩散语言模型,在六个标准基准上实现了零样本似然性能超越 GPT-2 124M。
- 该模型在基于扩散的语言模型中实现了最先进的似然性能,证明了非平凡似然性的可实现性。
- 计算匹配的消融实验验证了所提出算法框架的有效性,包括噪声调度和去噪训练目标。
- Plaid 模型的缩放规律显示,随着计算资源的增加,对数似然性能可预测地提升,但其最优计算配置与自回归模型有本质不同。
- Plaid 1B 在无条件和零样本控制设置下均能生成流畅且可控的文本,证实了其实际应用价值。
- 作者在 https://github.com/igul222/plaid 公开了代码和预训练模型,支持可复现性与进一步研究。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。