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

循环扩散语言模型

Looped Diffusion Language Models

KAIST(韩国科学技术院);KRAFTON(KRAFTON公司);University of California, Berkeley(加州大学伯克利分校)

Sanghyun Lee, Chunsan Hong, Seungryong Kim, Jonghyun Lee, Jongho Park, Dongmin Park

AI总结:

提出LoopMDM,通过选择性循环早期-中间Transformer层,在训练时实现深度缩放效果而不增加参数,在推理时通过调整循环次数灵活扩展计算量,从而提升掩码扩散模型的训练效率和性能。

摘要:

掩码扩散模型(MDMs)已成为自回归模型在语言建模中的有前途替代方案,然而针对MDMs的Transformer架构有效设计仍未充分探索。在本文中,我们展示选择性循环早期-中间Transformer层显著提升了MDMs的训练效率和模型性能。我们将此方法称为LoopMDM(循环掩码扩散模型),它带来两个关键优势:训练时循环层产生深度缩放效果而不增加参数,而推理时改变循环次数可实现灵活的计算扩展。尽管简单,结果令人瞩目:在多个预训练语料库上,LoopMDM在匹配相同大小MDMs性能的同时,训练FLOPs最多减少3.3倍,并且在各种推理基准上最终性能优于它们,包括在GSM8K上最多提升8.5个百分点。它甚至超越了使用可比每步计算训练的更深非循环MDMs,表明选择性循环比简单深度缩放更有效。此外,LoopMDM可通过增加循环次数来扩展推理时计算。在采样过程中自适应调整循环次数进一步在保持性能的同时提高计算效率。最后,通过注意力分析,我们提供证据表明循环通过促进掩码位置之间的交互在MDMs中有效。我们的代码和权重将公开发布。

英文摘要:

Masked diffusion models (MDMs) have emerged as a promising alternative to autoregressive models for language modeling, yet the effective design of transformer architectures for MDMs remains underexplored. In this paper, we show that selectively looping the early-middle transformer layers significantly improves both training efficiency and model performance in MDMs. We call this approach LoopMDM(Looped Masked Diffusion Model), which brings two key benefits: looping layers at training-time yields a depth-scaling effect without adding parameters, while varying the number of loops at inference-time enables flexible compute scaling. Despite the simplicity, the results are striking: across multiple pre-training corpora, LoopMDM matches the performance of same-size MDMs with up to 3.3 fewer training FLOPs, while its final performance outperforms them on various reasoning benchmarks, including up to 8.5 points on GSM8K. It even surpasses deeper non-looped MDMs trained with comparable per-step compute, indicating that selective looping is more effective than naive depth scaling. Furthermore, LoopMDM can scale inference-time compute by increasing the number of loops. Adaptively adjusting the number of loops throughout the sampling process further yields additional gains in compute efficiency while maintaining performance. Lastly, with attention analysis, we provide evidence that looping is effective in MDMs by promoting interactions among masked positions. Our code and weights will be publicly released.

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

↑