[Paper Review] DiffusionBERT: Improving Generative Masked Language Models with Diffusion Models
DiffusionBERT proposes a novel generative masked language model that combines pre-trained BERT with discrete diffusion models by leveraging their shared denoising objective. It introduces a non-Markovian, token-aware noise schedule (spindle schedule) and time-agnostic decoding, achieving state-of-the-art performance in unconditional text generation with faster convergence and improved perplexity and BLEU scores compared to prior diffusion and autoregressive models.
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. 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.
Motivation & Objective
- To bridge the gap between pre-trained denoising language models (e.g., BERT) and diffusion models for text generation by exploiting their shared denoising objective.
- To improve the generation quality and training efficiency of discrete diffusion models for text by initializing with BERT and adapting the reverse process.
- To address the challenge of applying diffusion models to discrete text data, which remains under-explored despite success in image and audio domains.
- To explore non-Markovian diffusion processes that condition on both the previous step and the original clean sequence, enabling better information flow during denoising.
- To optimize the trade-off between generation quality, convergence speed, and inference efficiency in non-autoregressive text generation.
Proposed method
- Proposes a new noise schedule called 'spindle schedule' that assigns a unique noise level to each token based on its frequency in the training corpus, ensuring uniform distribution of corrupted information across the diffusion process.
- Introduces a non-Markovian forward diffusion process where each step depends not only on the previous corrupted sequence but also on the original clean sequence $\mathbf{x}_0$, enabling richer context for denoising.
- Adapts BERT as the reverse denoising network $p_\theta(\mathbf{x}_{t-1}|\mathbf{x}_t, t)$, leveraging its pre-trained ability to reconstruct masked tokens.
- Investigates multiple strategies to incorporate the time step $t$ into BERT, ultimately finding that removing time information (time-agnostic decoding) yields the best performance.
- Employs $x_0$-parameterization in the reverse process, enabling flexible inference speed control by adjusting the number of reverse steps.
- Trains the model end-to-end using a variational lower bound (ELBO) objective, minimizing reconstruction loss across the diffusion trajectory.
Experimental results
Research questions
- RQ1Can pre-trained denoising language models like BERT be effectively repurposed as the backbone of a discrete diffusion model for text generation?
- RQ2How does a token-specific noise schedule (spindle schedule) affect the quality and stability of text generation in discrete diffusion models?
- RQ3Does conditioning the reverse process on both $\mathbf{x}_{t-1}$ and $\mathbf{x}_0$ (non-Markovian process) improve generation quality compared to standard Markovian diffusion?
- RQ4What is the optimal way to incorporate time step information into a BERT-based denoising model for diffusion-based text generation?
- RQ5Can the combination of BERT and diffusion models achieve better quality-efficiency trade-offs than existing non-autoregressive or autoregressive models?
Key findings
- DiffusionBERT achieves significantly lower perplexity and higher BLEU scores than existing diffusion-based text models like D3PM and Diffusion-LM on unconditional text generation benchmarks.
- The model converges much faster than D3PM, reaching comparable performance with only 30% of the training budget (0.5 million steps).
- Time-agnostic decoding (TAD), where the model ignores the time step during inference, yields the best generation quality, outperforming time-conditioned variants.
- The spindle noise schedule leads to more uniform corruption across the sequence and improves the model’s ability to reconstruct meaningful text at all stages of the reverse process.
- DiffusionBERT achieves a superior quality-variance trade-off in non-autoregressive generation, outperforming BERT-Mouth in both perplexity and decoding efficiency.
- With controlled reverse step counts, DiffusionBERT maintains competitive generation speed while achieving state-of-the-art performance, demonstrating strong efficiency-quality balance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.