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

Accelerating Diffusion LLMs via Adaptive Parallel Decoding

Daniel Israel, Guy Van den Broeck, Aditya Grover · DOI

TL;DR

This paper introduces Adaptive Parallel Decoding (APD), a novel method to significantly speed up text generation from diffusion Large Language Models (dLLMs). APD dynamically adjusts how many tokens are generated in parallel, striking a better balance between generation speed and output quality than existing methods. This advancement makes dLLMs a more practical and efficient choice for fast text generation.

What Problem Does This Paper Address?

Large Language Models (LLMs) are incredibly powerful, but their generation speed is a major bottleneck, especially for autoregressive models that produce tokens one by one. Diffusion LLMs (dLLMs) offer a theoretical advantage by allowing parallel token generation, but in practice, they struggle to achieve the speed of autoregressive models without sacrificing significant quality. This is because generating multiple tokens in parallel requires considering their joint probability, which is computationally expensive and often ignored, leading to degraded performance. The authors aim to bridge this gap by enabling dLLMs to generate tokens in parallel efficiently while maintaining high fidelity to the target text distribution.

Methods

The core innovation is Adaptive Parallel Decoding (APD). Instead of a fixed number of parallel tokens, APD dynamically adjusts this number. It achieves this by:

  • Left-to-Right Diffusion: The dLLM is adapted to generate tokens in a left-to-right autoregressive manner. This allows for better integration with existing techniques and, surprisingly, maintains generation quality.
  • Mixture of Experts: APD uses a small, auxiliary autoregressive model (PAR) to estimate the joint probability of sequences. It then creates a "multiplicative mixture" between the dLLM's marginal probabilities and PAR's joint probabilities. This mixture, controlled by a parameter $R$, determines the likelihood of accepting parallel tokens.
  • Universal Coupler: A sampling mechanism based on universal coupling (specifically, the Gumbel-Softmax trick) is employed to efficiently sample from the mixture distribution and determine how many tokens can be accepted in parallel.
  • Optimizations: To further boost speed, APD incorporates:
  • KV Caching: Similar to autoregressive models, KV caching is adapted for dLLMs using a sliding window approach.
  • Maximum Masked Lookahead: The size of the masked input to the dLLM is limited to improve attention computation efficiency.

These techniques allow APD to flexibly trade off throughput and quality using three tunable parameters: the mixture weight ($R$), the recompute KV window size ($W$), and the maximum masked lookahead ($M$).

Datasets

The paper evaluates its method on several standard benchmarks:

  • GSM8K: A dataset for grade school math problems.
  • GPQA: A graduate-level question-answering benchmark.
  • MATH: A dataset for mathematical reasoning.
  • HumanEval: A benchmark for code generation.

The authors do not introduce new datasets but focus on evaluating their decoding strategy on existing, challenging benchmarks.

Key Insights and Ideas

  • Dynamic Parallelism is Key: The most significant insight is that a fixed number of parallel tokens is suboptimal. Dynamically adjusting parallelism based on the model's confidence and the auxiliary model's assessment is crucial for balancing speed and quality.
  • dLLMs Don't Need to Be Purely Parallel: Adapting dLLMs to a left-to-right generation order, while counter-intuitive for a diffusion model, surprisingly preserves quality and enables integration with autoregressive techniques.
  • Auxiliary Model as a "Quality Filter": The small autoregressive model acts as a crucial "verifier" for parallel token candidates generated by the dLLM, preventing the quality degradation often seen in naive parallel decoding.
  • Tradeoffs are Manageable: The three tunable parameters ($R, W, M$) offer fine-grained control, allowing users to navigate the speed-quality tradeoff effectively without drastic performance drops.

Key Results

  • Significant Throughput Increase: APD achieves markedly higher throughput compared to standard autoregressive decoding and naive parallel diffusion decoding. For example, on GSM8K, APD can achieve over 5 tokens per iteration on average while maintaining ~80% accuracy, and even over 100 tokens per second is possible at the expense of some quality.
  • Minimal Quality Degradation: Despite the speedups, APD incurs only minimal quality degradations on downstream benchmarks.
  • Pareto Optimality: APD-configured Dream 7B models achieve a Pareto-optimal frontier, meaning they offer superior speed and quality compared to other configurations and even some autoregressive models. For instance, Dream 7B with APD surpasses the speed of autoregressive Qwen 7B and Qwen 0.5B.
  • Effective Optimizations: KV caching and limiting the masked lookahead provide substantial speedups with very little impact on accuracy.

Limitations and Future Work

  • Tradeoff Exists: APD offers a tradeoff; higher throughput generally leads to lower quality. The authors acknowledge that if the base diffusion model is weak in a particular domain, APD will not magically improve it.
  • No Free Lunch: While APD significantly improves the speed-quality tradeoff, it doesn't eliminate it entirely. Parameters like maximum masked lookahead, when decreased too much, can shorten generation length and negatively impact quality, especially for complex reasoning tasks.
  • Future Work: The paper suggests that further exploration of these tunable parameters and their interactions could lead to even more optimized configurations. The authors also highlight that quantization is another orthogonal approach for improving LLM inference speed.

Summary updated

BibTeX
@inproceedings{israel2025accelerating,
  author = {Daniel Israel and Guy Van den Broeck and Aditya Grover},
  title = {{Accelerating Diffusion LLMs via Adaptive Parallel Decoding}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=xwqTt26NJf},
}
Figure