arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2410.17891cs.CL
收藏

通过从自回归模型适配来扩展扩散语言模型

Scaling Diffusion Language Models via Adaptation from Autoregressive Models

The University of Hong Kong(香港大学);University of Illinois at Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Apple(苹果公司);Tencent AI Lab(腾讯AI实验室)

Shansan Gong, Shivam Agarwal, Yizhe Zhang, Jiacheng Ye, Lin Zheng, Mukai Li, Chenxin An, Peilin Zhao, Wei Bi, Jiawei Han, Hao Peng, Lingpeng Kong

AI总结:

提出从开源自回归模型连续预训练适配构建扩散语言模型,将127M至7B参数的AR模型转换为DiffuGPT和DiffuLLaMA,性能优于早期DLM且与AR模型相当。

摘要:

扩散语言模型(DLMs)已成为一种有前景的文本生成建模范式,有望解决自回归(AR)模型的局限性。然而,与对应的AR模型相比,当前对DLMs的研究规模较小,且在语言建模基准上缺乏公平比较。此外,从头大规模训练扩散模型仍然具有挑战性。鉴于开源AR语言模型的普及,我们提出适配这些模型来构建文本扩散模型。我们展示了AR与扩散建模目标之间的联系,并引入了一种简单的连续预训练方法来训练扩散模型。通过在语言建模、推理和常识基准上的系统评估,我们表明可以将参数规模从127M到7B的AR模型(GPT2和LLaMA)转换为扩散模型DiffuGPT和DiffuLLaMA,训练使用少于200B个token。实验结果表明,这些模型优于早期的DLMs,并与其AR对应模型具有竞争力。我们发布了一套DLMs(127M-355M-7B),能够生成流畅文本、执行上下文学习、无需提示重排进行中间填充以及遵循指令 https://github.com/HKUNLP/DiffuLLaMA。

英文摘要:

Diffusion Language Models (DLMs) have emerged as a promising new paradigm for text generative modeling, potentially addressing limitations of autoregressive (AR) models. However, current DLMs have been studied at a smaller scale compared to their AR counterparts and lack fair comparison on language modeling benchmarks. Additionally, training diffusion models from scratch at scale remains challenging. Given the prevalence of open-source AR language models, we propose adapting these models to build text diffusion models. We demonstrate connections between AR and diffusion modeling objectives and introduce a simple continual pre-training approach for training diffusion models. Through systematic evaluation on language modeling, reasoning, and commonsense benchmarks, we show that we can convert AR models ranging from 127M to 7B parameters (GPT2 and LLaMA) into diffusion models DiffuGPT and DiffuLLaMA, using less than 200B tokens for training. Our experimental results reveal that these models outperform earlier DLMs and are competitive with their AR counterparts. We release a suite of DLMs (127M-355M-7B) capable of generating fluent text, performing in-context learning, filling in the middle without prompt re-ordering, and following instructions https://github.com/HKUNLP/DiffuLLaMA.

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

↑