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

Diffusion-NAT: Self-Prompting Discrete Diffusion for Non-Autoregressive Text Generation

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

TL;DR

This paper introduces Diffusion-NAT, a novel approach that combines discrete diffusion models with the BART language model for non-autoregressive text generation. By unifying the denoising process of diffusion models with BART's masked token recovery capabilities and introducing a self-prompting strategy, Diffusion-NAT achieves state-of-the-art results, outperforming both non-autoregressive and even autoregressive models on several text generation tasks.

What Problem Does This Paper Address?

Text generation is a core NLP task, aiming to produce human-like text that fulfills a given demand. While autoregressive (AR) models generate text token by token, non-autoregressive (NAR) models generate all tokens simultaneously, offering faster inference. However, NAR models often struggle to match the coherence and fluency of AR models due to their inability to fully capture token dependencies. Recent attempts to improve NAR models have leveraged diffusion models, but these typically use continuous diffusion in the latent space of token embeddings. This approach faces challenges with the discrete nature of text, requiring additional steps like rounding embeddings to tokens and often leading to incompatibility issues with powerful pre-trained language models (PLMs) like BART. The authors aim to bridge this gap by developing a discrete diffusion approach that seamlessly integrates with PLMs for improved NAR text generation.

Methods

The core innovation of Diffusion-NAT lies in unifying the inference process of BART and the denoising process of discrete diffusion models (DDM) into a single "masked token recovering" task.

  • Discrete Diffusion Models (DDM): Instead of continuous diffusion, the paper utilizes DDM, which operates directly on discrete states (like vocabulary tokens). This is more natural for text.
  • BART Integration: The authors adapt BART, a powerful sequence-to-sequence PLM, to fit the NAR paradigm. They revise BART's decoding process to perform masked token recovery in a non-autoregressive manner. This means BART is trained to fill in multiple masked tokens simultaneously, mirroring its pre-training objective.
  • Unified Inference: The denoising process of the DDM is reformulated as a masked token recovering task. This allows BART to act as the "denoiser," leveraging its rich pre-trained knowledge. The DDM's forward process gradually masks tokens, and BART's role is to recover them.
  • Markov Transition Matrices with [MASK]: The DDM's transition matrices are modified to include a special [MASK] token, acting as an absorbing state. This ensures that after enough diffusion steps, the entire target sequence becomes masked, ready for BART to reconstruct.
  • Training Objective: The training objective is designed to predict the original tokens (Y0) at each denoising step, aligning with BART's capabilities.
  • Removing Time Step Embeddings: To further align DDM with BART, time step embeddings, common in diffusion models, are removed. BART can infer temporal information from the number of masked tokens.
  • Iterative Self-Prompting: To enhance generation quality, a novel iterative self-prompting strategy is introduced. In this strategy, the model uses its own generated output (Y0) as a prompt to refine the input condition for subsequent denoising steps, allowing for multi-turn deliberation and improvement.

Datasets

The paper evaluates Diffusion-NAT on seven datasets across four text generation tasks:

  • Dialog Generation: DailyDialog, PersonaChat
  • Text Summarization: XSUM, MSNews
  • Question Generation: MSQG, SQUAD v1.1
  • Conversational Question Answering: CoQA

Key Insights and Ideas

  • Discrete Diffusion is Key for Text: The paper strongly suggests that discrete diffusion models are a more natural and effective fit for text generation compared to continuous diffusion models, which require awkward adaptations.
  • Unifying PLMs and Diffusion: The core insight is that by reformulating the problem as masked token recovery, the powerful generative capabilities of PLMs like BART can be seamlessly integrated into the iterative refinement process of diffusion models. This creates a synergistic effect.
  • Self-Prompting for Deliberation: The iterative self-prompting strategy is a clever way to imbue NAR models with a form of "deliberation," allowing them to refine their own outputs over multiple steps, leading to higher quality.
  • BART as a Denoiser: Using BART not just as a base model but as the explicit denoiser within the diffusion framework is a significant architectural choice that leverages its pre-trained knowledge effectively.

Key Results

Diffusion-NAT demonstrates strong performance across various tasks:

  • Outperforms NAR/Semi-NAR: It consistently outperforms competitive NAR and Semi-NAR methods on metrics like BLEU, Distinct, ROUGE, and F1-score. For instance, on PersonaChat, it achieved +2.48 BLEU-2 improvement over the best NAR models.
  • Surpasses AR Models: Remarkably, Diffusion-NAT even surpasses state-of-the-art autoregressive (AR) models on several datasets. For example, on DailyDialog, it achieved 62.68 BLEU-2 compared to BART's 49.59.
  • Efficiency Trade-offs: Using DDIM for inference allows for a trade-off between diffusion steps and performance, enabling faster generation with minimal quality loss.
  • Human Evaluation: Human evaluations on PersonaChat show that Diffusion-NAT balances fluency, informativeness, and relevance, often outperforming strong baselines.

Limitations and Future Work

  • Inference Latency: While Diffusion-NAT is non-autoregressive, diffusion models inherently have higher inference latency compared to simpler NAR models. The paper notes that techniques like DDIM help, but further research into solving this problem (citing Lu et al., 2022) is suggested.
  • PLM Biases: As the approach relies on pre-trained PLMs like BART, it may inherit biases present in the pre-training data.
  • Hyperparameter Tuning: The model has parameters like diffusion steps and self-prompting turns that require tuning to balance performance and latency. The paper provides experimental insights into this trade-off.
  • Future Work: The authors suggest exploring methods to further mitigate inference latency and potentially address biases inherited from PLMs.

Summary updated

BibTeX
@inproceedings{zhou2024diffusion,
  author = {Kun Zhou and Yifan Li and Xin Zhao and Ji-Rong Wen},
  title = {{Diffusion-NAT: Self-Prompting Discrete Diffusion for Non-Autoregressive Text Generation}},
  booktitle = {EACL},
  year = {2024},
  url = {https://openreview.net/forum?id=qcCVh52JLp},
}
Figure