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

Block Diffusion: Interpolating Between Autoregressive and Diffusion Language Models

Marianne Arriola, Aaron Gokaslan, Justin T Chiu, Zhihan Yang, Zhixuan Qi, Jiaqi Han, Subham Sekhar Sahoo, Volodymyr Kuleshov

TL;DR

Block Diffusion (BD3-LMs) is a new class of language models that bridges the gap between sequential autoregressive models and parallelized diffusion models. By generating text in discrete blocks using diffusion while maintaining an autoregressive flow between those blocks, the researchers achieved state-of-the-art perplexity for diffusion models and enabled the generation of arbitrary-length sequences with KV caching.

What Problem Does This Paper Address?

In the current LLM landscape, two paradigms dominate: Autoregressive (AR) models (like GPT-4) and Diffusion models.

AR models generate text one token at a time. While they produce high-quality text and support efficient "KV caching" (reusing previous computations), they are inherently sequential and slow. Diffusion models, which have revolutionized image generation, offer the promise of parallelized text generation and better controllability. However, they have historically suffered from three major flaws:

  1. Fixed Length: Most diffusion models can only generate sequences of a pre-defined, fixed length.
  2. Efficiency: Because they use bidirectional context, they can't use KV caching, making long-form inference expensive.
  3. The Perplexity Gap: Diffusion models consistently lag behind AR models in likelihood modeling (quality), often due to high variance during training.
Comparison of Autoregression, Diffusion, and Block Diffusion

The authors introduce Block Discrete Denoising Diffusion Language Models (BD3-LMs) to solve these issues by interpolating between the two methods.

Methods

The core innovation is a semi-autoregressive approach. The model factorizes the probability of a sequence into a series of blocks.

  • Autoregressive Flow: The model moves from block to block sequentially, just like a standard AR model.
  • Diffusion Within Blocks: Inside each block, the model uses a discrete denoising diffusion process to generate all tokens in that block simultaneously.

To make this work effectively, the authors introduced several technical "recipes":

  • Vectorized Training: They developed a specialized training algorithm that uses a custom attention mask (and the new FlexAttention kernel in PyTorch) to process both clean and noisy blocks in a single forward pass, keeping training speed within 2x of standard diffusion.
  • KV Caching: Because the blocks are processed sequentially, the model can cache the "Keys" and "Values" of previous blocks, allowing it to generate sequences much longer than its training window.
  • Clipped Noise Schedules: The authors discovered that extreme masking rates (masking almost nothing or masking everything) create high-variance gradients that hurt learning. They proposed "clipped" schedules that sample mask rates from a specific range (e.g., $U[0.45, 0.95]$), which significantly stabilizes training.

Datasets

The models were trained and evaluated on standard benchmarks for large-scale language modeling, including the One Billion Word Dataset (LM1B) and OpenWebText (OWT). To test generalization, the authors also evaluated zero-shot performance on Penn Tree Bank (PTB), Wikitext, Lambada, AG News, Pubmed, and Arxiv.

Key Insights and Ideas

  • The Variance is the Villain: The most striking insight is that the performance gap between diffusion and AR isn't necessarily due to the model's capacity, but rather gradient variance. The authors show that even when a diffusion model is mathematically equivalent to an AR model (at a block size of 1), it performs worse because its training updates are noisier.
  • Data-Driven Schedules: Instead of using a generic linear noise schedule, the authors found that the "optimal" schedule depends on the block size. Smaller blocks benefit from heavier masking, while larger blocks need a more balanced approach to minimize training variance.
Training NLL comparison showing variance reduction with tuned schedules
  • Parallelism vs. Quality Trade-off: By adjusting the block size ($L'$), users can choose their spot on the spectrum. Smaller blocks look more like AR models (higher quality, slower), while larger blocks look more like pure diffusion (faster, but harder to train to high quality).

Key Results

  • New State-of-the-Art: BD3-LMs set new records for perplexity among discrete diffusion models. On LM1B, a BD3-LM with a block size of 4 achieved a perplexity of 28.23, significantly beating the previous best diffusion model (MDLM at 31.78).
  • Breaking the Length Barrier: Unlike previous diffusion models restricted to 1024 tokens, BD3-LMs successfully generated sequences up to ~10,000 tokens by leveraging their autoregressive block structure.
  • Generative Quality: In terms of generative perplexity (measured by GPT2-Large), BD3-LMs ($L'=4$) scored 25.7, nearly halving the error of previous diffusion methods like MDLM (46.8) and approaching the gold standard of pure AR models (14.1).
  • Inference Speedup: Using the FlexAttention implementation, the authors achieved a 15% speedup in the model forward pass and a ~5x speedup over naive attention implementations.

Limitations and Future Work

  • Training Cost: While the vectorized training is efficient, training a BD3-LM is still roughly twice as expensive as training a standard diffusion model because each token essentially passes through the model twice (once as context, once as a target).
  • Hyperparameter Sensitivity: The optimal block size and noise schedule are task-specific. Finding the "sweet spot" for a new dataset requires a grid search or adaptive learning during validation.
  • The Remaining Gap: While BD3-LMs significantly close the gap, pure autoregressive models still hold a slight edge in raw perplexity and coherence for extremely long-form generation. The authors suggest that further refining the noise schedules and scaling the models could eventually close this final gap.

Summary updated

BibTeX
@inproceedings{arriola2025block,
  author = {Marianne Arriola and Aaron Gokaslan and Justin T Chiu and Zhihan Yang and Zhixuan Qi and Jiaqi Han and Subham Sekhar Sahoo and Volodymyr Kuleshov},
  title = {{Block Diffusion: Interpolating Between Autoregressive and Diffusion Language Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=tyEyYT267x},
}
Figure