2025-02-17 · 专家 · 自然语言处理 · 机器学习

Large Language Diffusion Models

这篇论文提出了LLaDA,一种基于扩散模型的大规模语言模型,挑战了自回归模型在LLMs中的主导地位,并展示了其在可扩展性、上下文学习和指令遵循方面的强大能力。

更新于 2025-02-17。作者:Shen Nie、Fengqi Zhu、Zebin You、Xiaolu Zhang、Jingyang Ou、Jun Hu、Jun Zhou、Yankai Lin、Ji-Rong Wen、Chongxuan Li。

中文摘要

自回归模型(ARMs)被广泛认为是大型语言模型(LLMs)的基石。我们通过引入LLaDA,一个在预训练和监督微调(SFT)范式下从头开始训练的扩散模型,来挑战这一观点。LLaDA通过正向数据掩码过程和反向过程来建模分布,这两个过程由一个普通的Transformer进行参数化,以预测掩码的标记。通过优化似然界限,它提供了一种原则性的生成方法,用于概率推理。在广泛的基准测试中,LLaDA展示了强大的可扩展性,优于我们自构建的ARM基线。值得注意的是,LLaDA 8B在与LLaMA3 8B等强大LLMs的比较中,在情境学习方面表现出竞争力,并在多轮对话等案例研究中,经过SFT后展现了令人印象深刻的指令遵循能力。此外,LLaDA解决了反转诅咒问题,在反转诗歌补全任务中超越了GPT-4o。我们的发现将扩散模型确立为ARMs的有前途的替代方案,挑战了上述关键LLM能力本质上与ARMs相关的假设。

英文摘要

Autoregressive models (ARMs) are widely regarded as the cornerstone of large language models (LLMs). We challenge this notion by introducing LLaDA, a diffusion model trained from scratch under the pre-training and supervised fine-tuning (SFT) paradigm. LLaDA models distributions through a forward data masking process and a reverse process, parameterized by a vanilla Transformer to predict masked tokens. By optimizing a likelihood bound, it provides a principled generative approach for probabilistic inference. Across extensive benchmarks, LLaDA demonstrates strong scalability, outperforming our self-constructed ARM baselines. Remarkably, LLaDA 8B is competitive with strong LLMs like LLaMA3 8B in in-context learning and, after SFT, exhibits impressive instruction-following abilities in case studies such as multi-turn dialogue. Moreover, LLaDA addresses the reversal curse, surpassing GPT-4o in a reversal poem completion task. Our findings establish diffusion models as a viable and promising alternative to ARMs, challenging the assumption that key LLM capabilities discussed above are inherently tied to ARMs.

解读

一句话总结

这篇论文提出了LLaDA,一种基于扩散模型的大规模语言模型,挑战了自回归模型在LLMs中的主导地位,并展示了其在可扩展性、上下文学习和指令遵循方面的强大能力。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源