arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.22450cs.LGcs.AI
收藏

调整掩码扩散语言模型的隐式正则化器:通过$k$-奇偶问题的见解增强泛化能力

Tuning the Implicit Regularizer of Masked Diffusion Language Models: Enhancing Generalization via Insights from $k$-Parity

University of California, Berkeley(加州大学伯克利分校);Stanford University(斯坦福大学)

Jianhao Huang, Baharan Mirzasoleiman

AI总结:

本文通过$k$-奇偶问题研究掩码扩散语言模型的泛化特性,理论分解其目标函数为信号和噪声两部分,并利用噪声作为隐式正则化器,通过优化掩码概率分布显著提升模型性能。

摘要:

掩码扩散语言模型最近成为一种强大的生成范式,但与自回归模型相比,其泛化特性仍未得到充分研究。本文在$k$-奇偶问题(计算$k$个相关位的异或和)的背景下研究这些特性,其中神经网络通常表现出“grokking”现象——长时间的性能平台期后突然泛化。我们从理论上将掩码扩散(MD)目标分解为驱动特征学习的信号机制和作为隐式正则化器的噪声机制。通过在$k$-奇偶问题上使用MD目标训练nanoGPT,我们证明MD目标从根本上改变了学习景观,实现了快速且同时的泛化,而无需经历grokking。此外,我们利用理论见解优化MD目标中掩码概率的分布。我们的方法显著提高了50M参数模型的困惑度,并在从头预训练和监督微调中均取得了优越结果。具体而言,在8B参数模型上,我们观察到性能提升分别达到$8.8\%$和$5.8\%$,证实了我们的框架在大规模掩码扩散语言模型中的可扩展性和有效性。

英文摘要:

Masked Diffusion Language Models have recently emerged as a powerful generative paradigm, yet their generalization properties remain understudied compared to their auto-regressive counterparts. In this work, we investigate these properties within the setting of the $k$-parity problem (computing the XOR sum of $k$ relevant bits), where neural networks typically exhibit grokking -- a prolonged plateau of chance-level performance followed by sudden generalization. We theoretically decompose the Masked Diffusion (MD) objective into a Signal regime which drives feature learning, and a Noise regime which serves as an implicit regularizer. By training nanoGPT using MD objective on the $k$-parity problem, we demonstrate that MD objective fundamentally alters the learning landscape, enabling rapid and simultaneous generalization without experiencing grokking. Furthermore, we leverage our theoretical insights to optimize the distribution of the mask probability in the MD objective. Our method significantly improves perplexity for 50M-parameter models and achieves superior results across both pre-training from scratch and supervised fine-tuning. Specifically, we observe performance gains peaking at $8.8\%$ and $5.8\%$, respectively, on 8B-parameter models, confirming the scalability and effectiveness of our framework in large-scale masked diffusion language model regimes.

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

↑