掩码扩散模型(MDMs)已作为一种有前途的替代方案出现,用于语言建模,替代自回归模型(ARMs)。然而,MDMs 被发现比 ARMs 学习要慢得多,这在扩展 MDMs 到更大模型时可能变得有问题。因此,我们提出问题:如何加速标准 MDM 的训练,同时保持其最终性能?为此,我们首先详细分析了 MDM 训练缓慢的原因。我们发现主要因素是语言的局部性偏差:一个令牌的预测信息集中在附近位置。我们进一步研究了这种偏差如何减慢学习,并建议一种简单而有效的解决方案:作为训练策略的钟形时间采样。值得注意的是,使用我们的训练配方训练的 MDMs 在 One Billion Word Benchmark(LM1B)上达到相同的验证负对数似然(NLL)的速度可达到标准训练的约 4 倍。我们还展示了在各种基准上生成困惑度、零样本困惑度和下游任务性能的更快改进。
英文摘要:
Masked diffusion models (MDMs) have emerged as a promising alternative to autoregressive models (ARMs) for language modeling. However, MDMs are known to learn substantially more slowly than ARMs, which may become problematic when scaling MDMs to larger models. Therefore, we ask the following question: how can we accelerate standard MDM training while maintaining its final performance? To this end, we first provide a detailed analysis of why MDM training is slow. We find that the main factor is the locality bias of language: the predictive information for a token is concentrated in nearby positions. We further investigate how this bias slows learning and suggest a simple yet effective remedy: bell-shaped time sampling as a training strategy. Notably, MDMs trained with our training recipe reach the same validation negative log-likelihood (NLL) up to $\sim4\times$ faster than standard training on One Billion Word Benchmark (LM1B). We also show faster improvements in generative perplexity, zero-shot perplexity, and downstream task performance on various benchmarks.
Department of Computer Science, Cornell Tech, NYC, USA(康奈尔科技学院计算机科学系);Department of Computer Science, Cornell University, Ithaca, USA(康奈尔大学计算机科学系);School of Computer and Communication Sciences, EPFL Lausanne, Switzerland(洛桑联邦理工学院计算机与通信科学学院);Department of Computer Science, University of Chicago, Illinois(芝加哥大学计算机科学系);NVIDIA, Santa Clara, USA(英伟达)
Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学首都人工智能学院);Beijing Key Laboratory of Research on Large Models and Intelligent Governance(北京大模型与智能治理重点实验室);Engineering Research Center of Next-Generation Intelligent Search and Recommendation, MOE(下一代智能搜索与推荐工程技术研究中心,教育部);Huawei Noah’s Ark Lab(华为诺亚实验室)
Mechanism Shift During Post-training from Autoregressive to Masked Diffusion Language Models
Graduate School of Data Science, Seoul National University(首尔国立大学数据科学研究生院);Department of Biosystems & Biomaterials Science and Engineering, Seoul National University(首尔国立大学生物系统与生物材料科学与工程系)
Revealing the Attention Floating Mechanism in Masked Diffusion Models
School of Computer Science and Engineering, Northeastern University(东北大学计算机科学与工程学院);Department of Computer Science and Technology, Tsinghua University(清华大学计算机科学与技术系)
Training-Free Self-Correction for Multimodal Masked Diffusion Models
University of California, Los Angeles(加州大学洛杉矶分校);Mohamed bin Zayed University of Artificial Intelligence(莫莫德·本·扎耶德人工智能大学);East China Normal University(华东师范大学);University of Virginia(弗吉尼亚大学);University of Minnesota(明尼苏达大学);Drexel university(德雷塞尔大学);The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));University of Toronto(多伦多大学)
One-step lowest-variance selection in a Gaussian random-field model motivated by masked diffusion: Total correlation and a square root collision threshold
ScDiVa: Masked Discrete Diffusion for Joint Modeling of Single-Cell Identity and Expression
Gaoling School of Artificial Intelligence, Renmin University of China, Beijing, China(中国人民大学人工智能学院);School of Statistics, Renmin University of China, Beijing, China(中国人民大学统计学院);CRE Life Institute, China(中国CRE生命科学研究院);School of Computer Science and Technology, Huazhong University of Science and Technology, Wuhan, China(华中科技大学计算机科学与技术学院);School of Mathematics, Jilin University, Changchun, China(吉林大学数学学院);Beijing Academy of Artificial Intelligence,Beijing,China(北京人工智能研究院)
IDRF: Inverse-Distilled Reward Fine-tuning of Masked Discrete Diffusion Models
Applied AI Institute(应用人工智能研究所);MBZUAI(穆罕默德·本·扎耶德人工智能大学);CMAP, École Polytechnique(巴黎综合理工学院应用数学中心);Institute of Foundation Models(基础模型研究所);LRE, EPITA(EPITA 研究与工程实验室)