NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Diffusion Models for Non-autoregressive Text Generation: A Survey

Yifan Li, Kun Zhou, Wayne Xin Zhao, Ji-Rong Wen

Abstract

Traditional autoregressive (AR) language models, while highly effective, suffer from high inference latency due to their sequential token-by-token generation process. Non-autoregressive (NAR) models aim to alleviate this by generating sequences in parallel, yet they often struggle with coherence and the "multimodality problem." This survey explores the emergence of diffusion models as a powerful solution for NAR text generation. By framing text generation as an iterative denoising process, diffusion models bridge the gap between the speed of parallel generation and the high-quality output of autoregressive systems.

Introduction

Most modern Large Language Models (LLMs) follow an autoregressive paradigm, where the probability of a token is conditioned on all previously generated tokens. While this ensures local and global coherence, it results in $O(N)$ latency, making long-form generation computationally expensive. Non-autoregressive (NAR) models were introduced to achieve $O(1)$ latency by generating all tokens simultaneously. However, because standard NAR models often assume conditional independence between tokens, they frequently produce repetitive or incoherent text—a phenomenon known as the multimodality problem.

Diffusion models offer a compelling middle ground. By performing constrained iterative refinement, these models start from a state of total noise and gradually reconstruct the target sequence. This allows the model to capture complex dependencies across the entire sequence while maintaining a significantly lower inference cost than token-by-token AR generation.

Taxonomy of Text Diffusion

The survey categorizes the landscape of text diffusion into two primary operational spaces: discrete and continuous.

1. Discrete Diffusion

Discrete diffusion models operate directly on the categorical vocabulary space. The "forward" process gradually corrupts text by replacing tokens with a special [MASK] token or a random word from the vocabulary. The denoising network—typically a Transformer—is trained to reverse this corruption. Notable examples include D3PM and DiffusionBERT. These models are often more "text-native" as they avoid the need for complex embedding mappings.

2. Continuous Diffusion

In continuous diffusion, text is first projected into a high-dimensional embedding space. Gaussian noise is then added to these vectors. The model learns to denoise these continuous representations, which are eventually mapped back to discrete tokens through a "rounding" step. Models like Diffusion-LM and Diffuseq have demonstrated that this approach allows for fine-grained control over the latent space, though it introduces the challenge of ensuring the denoised vector aligns with a valid word embedding.

Key Technical Innovations

Transitioning diffusion from images to text required several architectural and mathematical shifts:

  • Denoising Backbones: While image diffusion relies on U-Nets, text diffusion utilizes Transformers to better capture the long-range sequential dependencies inherent in language.
  • $x_0$-parameterization: In image synthesis, models often predict the noise added to an image. In text, researchers found that training the model to directly predict the original clean text ($x_0$) at each step leads to more stable training and higher fluency.
  • Specialized Noise Schedules: Standard linear noise schedules often fail to capture the nuances of language. The survey highlights schedules like Sqrt (optimized for embedding density) and Spindle (which prioritizes the refinement of high-information tokens early in the process).

Performance and Controllability

Diffusion models have established a new state-of-the-art for NAR generation, narrowing the performance gap with AR models like GPT-2. Their strengths are particularly evident in two areas:

  1. Flexible Inference: Unlike AR models, diffusion models allow for a trade-off between quality and speed. By adjusting the number of denoising steps (e.g., using DDIM sampling), users can accelerate inference at the cost of slight quality degradation, or vice versa.
  2. Global Controllability: Because diffusion models refine the entire sequence simultaneously, they are uniquely suited for controllable generation. Constraints—such as specific syntactic structures, sentiment, or parts-of-speech sequences—can be injected into the latent variables at every step, allowing the model to optimize the entire sentence globally rather than greedily.

Challenges and Future Directions

Despite their promise, several hurdles remain for the widespread adoption of text diffusion:

  • The Rounding Problem: In continuous diffusion, the "clamping trick" (forcing a predicted vector to the nearest valid word) is computationally expensive and can introduce errors if the predicted vector falls between two word meanings.
  • Inference Latency: While faster than AR models for long sequences, 20–50 steps of a large Transformer still pose a challenge for real-time production environments compared to single-pass NAR models.
  • Pre-training Alignment: Most existing Pre-trained Language Models (PLMs) are optimized for masked language modeling or AR objectives. The authors suggest that developing new pre-training tasks, such as Continuous Paragraph Denoising, will be essential to fully unlocking the potential of diffusion-based generators.
  • Multimodal Unification: There is significant interest in creating unified diffusion frameworks that can generate both images and text within a shared latent space, potentially leading to more cohesive multimodal AI systems.

Conclusion

Diffusion models represent a significant leap forward for non-autoregressive text generation. By combining the parallel efficiency of NAR models with the iterative refinement capabilities of diffusion, researchers are creating a new class of generative models that are both fast and highly controllable. As the field addresses current limitations in rounding and pre-training, diffusion models are poised to become a standard tool in the NLP toolkit.

Summary updated

BibTeX
@inproceedings{li2023diffusion,
  author = {Yifan Li and Kun Zhou and Wayne Xin Zhao and Ji-Rong Wen},
  title = {{Diffusion Models for Non-autoregressive Text Generation: A Survey}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.24963/ijcai.2023/750},
}
Figure