arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2409.02908cs.LGcs.AIcs.CL
收藏

Masked Diffusion Models 实际上是时间无关的 Masked Models 并利用了不准确的分类采样

Masked Diffusion Models are Secretly Time-Agnostic Masked Models and Exploit Inaccurate Categorical Sampling

Department of Computer Science & Technology, Institute for AI, Tsinghua University(1 计算机科学与技术系,人工智能研究院,清华大学);NVIDIA(2 英特尔)

Kaiwen Zheng, Yongxin Chen, Hanzi Mao, Ming-Yu Liu, Jun Zhu, Qinsheng Zhang

AI总结:

本文揭示 MDMs 在训练和采样上时间无关且等价于掩码模型,提出 FHS 采样器实现 20 倍加速,并发现 32 位浮点精度导致的数值问题会降低有效温度与 token 多样性,使以往评估不够公平。

摘要:

Masked diffusion models (MDMs) 已成为离散数据生成建模的热门研究课题,这得益于它们优于其他离散扩散模型的性能,并在语言建模任务中与自回归模型(ARMs)相抗衡。最近在简化掩码扩散框架方面的努力进一步使其与连续空间扩散模型保持一致,并提供了更有原则的训练和采样方法。然而,在本文中,我们揭示了 MDMs 的训练和采样在理论上都不依赖于时间变量(这可以说是扩散模型的关键特征),而是等价于掩码模型。采样方面的联系由我们提出的首达采样器(FHS)建立。具体而言,我们表明 FHS 在理论上等价于 MDMs 的原始生成过程,同时显著缓解了耗时的分类采样,并实现了 20 倍的加速。此外,我们的调查对 MDMs 是否能在文本生成中真正击败 ARMs 提出了质疑。我们首次发现了一个潜在的数值问题,即使在使用常用的 32 位浮点精度时,该问题也会导致不准确的分类采样。我们从理论和经验上表明,这会降低有效温度,并且由此导致的 token 多样性下降使得以往仅通过不完整的生成困惑度指标来评估生成质量的评估有些不公平。

英文摘要:

Masked diffusion models (MDMs) have emerged as a popular research topic for generative modeling of discrete data, thanks to their superior performance over other discrete diffusion models, and are rivaling the auto-regressive models (ARMs) for language modeling tasks. The recent effort in simplifying the masked diffusion framework further leads to alignment with continuous-space diffusion models and more principled training and sampling recipes. In this paper, however, we reveal that both training and sampling of MDMs are theoretically free from the time variable, arguably the key signature of diffusion models, and are instead equivalent to masked models. The connection on the sampling aspect is drawn by our proposed first-hitting sampler (FHS). Specifically, we show that the FHS is theoretically equivalent to MDMs' original generation process while significantly alleviating the time-consuming categorical sampling and achieving a 20$\times$ speedup. In addition, our investigation raises doubts about whether MDMs can truly beat ARMs in text generation. We identify, for the first time, an underlying numerical issue, even with the commonly used 32-bit floating-point precision, which results in inaccurate categorical sampling. We show that it lowers the effective temperature both theoretically and empirically, and the resulting decrease in token diversity makes previous evaluations, which assess the generation quality solely through the incomplete generative perplexity metric, somewhat unfair.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑