arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.18514cs.AIcs.CLcs.LG
收藏

扩展文本上的掩码扩散模型

Scaling up Masked Diffusion Models on Text

Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学高瓴人工智能学院);Sea AI Lab, Singapore(新加坡Sea AI实验室);Singapore University of Technology and Design(新加坡科技设计大学)

Shen Nie, Fengqi Zhu, Chao Du, Tianyu Pang, Qian Liu, Guangtao Zeng, Min Lin, Chongxuan Li

AI总结:

本文为掩码扩散模型建立首个缩放定律,证明其与自回归模型相当的可扩展性,并提出无监督无分类器引导,在语言理解和生成上达到或超越更大模型,且采样更快。

摘要:

掩码扩散模型(MDMs)在语言建模中展现出潜力,但其在核心语言任务(如文本生成和语言理解)中的可扩展性和有效性仍未被充分探索。本文首次为MDMs建立了缩放定律,证明了其缩放速率与自回归模型(ARMs)相当,且计算差距相对较小。受其可扩展性的启发,我们训练了一系列参数高达11亿(B)的MDMs,以系统评估其与规模相当或更大的ARMs的性能。充分利用MDMs的概率公式,我们提出了一种简单而有效的无监督无分类器引导,有效利用大规模未配对数据,提升条件推理的性能。在语言理解方面,11亿参数的MDM在八个零样本基准中的四个上优于在同一数据上训练的11亿参数的TinyLlama模型。值得注意的是,它在GSM8K数据集上达到了与70亿参数的Llama-2模型相当的数学推理能力。在文本生成方面,预训练时间多16倍的MDMs通过加速采样技术KV-Cache提供了与ARMs的灵活权衡:MDMs在性能上与ARMs相当,同时采样速度快1.4倍。此外,MDMs通过有效处理双向推理和适应数据的时间偏移,解决了ARMs面临的挑战性任务。值得注意的是,一个11亿参数的MDM打破了规模更大、数据和计算量显著更多的ARMs(如130亿参数的Llama-2和1750亿参数的GPT-3)所遇到的逆向诅咒。我们的代码可在https://github.com/ML-GSAI/SMDM获取。

英文摘要:

Masked diffusion models (MDMs) have shown promise in language modeling, yet their scalability and effectiveness in core language tasks, such as text generation and language understanding, remain underexplored. This paper establishes the first scaling law for MDMs, demonstrating a scaling rate comparable to autoregressive models (ARMs) and a relatively small compute gap. Motivated by their scalability, we train a family of MDMs with up to 1.1 billion (B) parameters to systematically evaluate their performance against ARMs of comparable or larger sizes. Fully leveraging the probabilistic formulation of MDMs, we propose a simple yet effective unsupervised classifier-free guidance that effectively exploits large-scale unpaired data, boosting performance for conditional inference. In language understanding, the 1.1B MDM outperforms the 1.1B TinyLlama model trained on the same data across four of eight zero-shot benchmarks. Notably, it achieves competitive math reasoning ability with the 7B Llama-2 model on the GSM8K dataset. In text generation, MDMs with 16 times more pre-training time offer a flexible trade-off against ARMs with the accelerated sampling technique KV-Cache: MDMs match ARMs in performance while being 1.4 times faster during sampling. Moreover, MDMs address challenging tasks for ARMs by effectively handling bidirectional reasoning and adapting to temporal shifts in data. Notably, a 1.1B MDM breaks the reverse curse encountered by much larger ARMs with significantly more data and computation, such as 13B Llama-2 and 175B GPT-3. Our code is available at https://github.com/ML-GSAI/SMDM.

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

↑