DiffusionBERT: Improving Generative Masked Language Models with Diffusion Models

Zhengfu He, Tianxiang Sun, Kuanning Wang, Xuanjing Huang, Xipeng Qiu
11/28/2022
cs.CLcs.AIcs.LG
diffusion-flow

Official code: Hzfinfdu/Diffusion-BERT (343 stars, Python, Apache-2.0, last commit 2024-02-17).

Abstract

We present DiffusionBERT, a new generative masked language model based on discrete diffusion models. Diffusion models and many pre-trained language models have a shared training objective, i.e., denoising, making it possible to combine the two powerful models and enjoy the best of both worlds.

Show full abstract

On the one hand, diffusion models offer a promising training strategy that helps improve the generation quality. On the other hand, pre-trained denoising language models (e.g., BERT) can be used as a good initialization that accelerates convergence. We explore training BERT to learn the reverse process of a discrete diffusion process with an absorbing state and elucidate several designs to improve it. First, we propose a new noise schedule for the forward diffusion process that controls the degree of noise added at each step based on the information of each token. Second, we investigate several designs of incorporating the time step into BERT. Experiments on unconditional text generation demonstrate that DiffusionBERT achieves significant improvement over existing diffusion models for text (e.g., D3PM and Diffusion-LM) and previous generative masked language models in terms of perplexity and BLEU score.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

ACL'2023: DiffusionBERT: Improving Generative Masked Language Models with Diffusion Models

34327Python, ShellNov 29, 20222 years agoApache-2.0
bertconditional-generationdiffusion-modelspretrained-language-modeltext-generation+1 more

Similar Papers

Cite this paper

@article{he2022diffusionbert,
  title  = {DiffusionBERT: Improving Generative Masked Language Models with Diffusion Models},
  author = {Zhengfu He and Tianxiang Sun and Kuanning Wang and Xuanjing Huang and Xipeng Qiu},
  year   = {2022},
  eprint = {2211.15029},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.15029}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2211.15029.svg)](https://codeofpaper.com/paper/2211.15029)

Discussion