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

Unifying Autoregressive and Diffusion-Based Sequence Generation

Nima Fathi, Torsten Scholak, Pierre-Andre Noel

TL;DR

This paper bridges the gap between autoregressive (AR) and diffusion-based language models by introducing "hyperschedules" that allow for position-specific noise application. This unification, combined with novel hybrid noising processes and efficient training techniques, leads to state-of-the-art performance in sequence generation.

What Problem Does This Paper Address?

Generative language models have traditionally been split into two main camps: autoregressive (AR) models like GPT, which generate text token by token, and diffusion models, which progressively denoise data. While diffusion models have shown great promise in continuous domains like image generation, their application to discrete sequences like text has faced challenges. AR models, despite their success, can be limited in their ability to "correct" past mistakes during generation. This paper aims to unify these two paradigms, showing that AR models can be seen as a special case of diffusion models and developing new diffusion-based methods that can fix errors, leading to more coherent and diverse text generation.

Methods

The core contributions of this paper are:

  • Hyperschedules: This novel concept allows for different noise schedules to be applied to different token positions within a sequence. This generalizes existing AR models (which can be seen as a "quenched" hyperschedule) and standard diffusion models (which use a uniform schedule).
  • Hybrid Token-Wise Noising Processes: The authors introduce two new noising processes that blend the "absorb" (masking) and "uniform" (random token replacement) strategies. This allows the model to both learn from "known unknowns" (masked tokens) and to potentially correct previously generated tokens, addressing a limitation of pure AR models.
  • Adaptive Correction Sampler (ACS): A new inference algorithm designed to leverage the hybrid noising process, enabling the model to "fix" already unmasked tokens.
  • KV-Caching Compatible Attention Masks: The proposed methods are designed to work with attention masks that enable KV-caching, significantly improving training and inference efficiency.

Datasets

The paper uses the following datasets:

  • OpenWebText (OWT): Used for training and evaluation. The authors reserve the last 100K documents as a held-out set for test perplexity.
  • LM1B (Language Model Benchmark): Used for training and evaluation.

Key Insights and Ideas

  • AR models are a form of diffusion: By framing AR models as a specific instance of diffusion with a "quenched" hyperschedule, the paper unifies two seemingly disparate approaches to sequence generation.
  • The ability to "fix mistakes" is crucial: Traditional AR models lack a mechanism to correct errors once a token is generated. The proposed hybrid noising processes and ACS sampler allow diffusion models to revisit and correct previously generated tokens, leading to more robust generation.
  • Position-dependent noise is powerful: Hyperschedules unlock new possibilities for controlling the diffusion process, allowing for more nuanced and effective sequence generation.
  • Efficiency is key: The development of KV-caching compatible attention masks is critical for making these advanced diffusion models practical for real-world applications.

Key Results

  • State-of-the-art perplexity: The proposed methods achieve state-of-the-art perplexity on the LM1B dataset, outperforming prior diffusion models and narrowing the gap with AR models. For example, they reduce perplexity by approximately 19% relative to SEDD and 3% compared to the strongest existing diffusion models on LM1B.
  • Improved generation quality and diversity: The models generate diverse, high-quality sequences, as evidenced by MAUVE scores and generative perplexity evaluations.
  • Efficient training and inference: The use of hyperschedules and specialized attention masks enables efficient training and inference, with significant speedups through KV-caching.

Limitations and Future Work

  • Hyperparameter tuning: The paper notes that the optimal choice of hyperparameters (like γ and η) can be sensitive and requires careful tuning.
  • ELBO bounds for e-Hybrid: The authors mention that deriving ELBO bounds for the e-Hybrid process (when ε > 0) is more complicated and an area for future research.
  • Exploring more hyperschedules: The paper suggests that the space of possible hyperschedules is vast and remains largely unexplored.
  • Tractable approximations: The limit of w < d presents opportunities for tractable approximations of joint distributions.
  • More sophisticated error correction: Future work could explore distributions that more accurately reflect plausible errors rather than purely random substitutions.
  • Specialized kernels: Developing specialized attention kernels compatible with the proposed attention masks could further accelerate inference.

Summary updated

BibTeX
@inproceedings{fathi2025unifying,
  author = {Nima Fathi and Torsten Scholak and Pierre-Andre Noel},
  title = {{Unifying Autoregressive and Diffusion-Based Sequence Generation}},
  booktitle = {COLM},
  year = {2025},
  url = {https://openreview.net/forum?id=rgq9BFXSFl},
}
Figure