Skip to main content

DMax: Aggressive Parallel Decoding for dLLMs

AuthorsZigeng Chen et al.
Year2026
HF Upvotes45
arXiv2604.08302
PDFDownload
HF PageView on Hugging Face

Abstract

We present DMax, a new paradigm for efficient diffusion language models (dLLMs). It mitigates error accumulation in parallel decoding, enabling aggressive decoding parallelism while preserving generation quality. Unlike conventional masked dLLMs that decode through a binary mask-to-token transition, DMax reformulates decoding as a progressive self-refinement from mask embeddings to token embeddings. At the core of our approach is On-Policy Uniform Training, a novel training strategy that efficiently unifies masked and uniform dLLMs, equipping the model to recover clean tokens from both masked inputs and its own erroneous predictions. Building on this foundation, we further propose Soft Parallel Decoding. We represent each intermediate decoding state as an interpolation between the predicted token embedding and the mask embedding, enabling iterative self-revising in embedding space. Extensive experiments across a variety of benchmarks demonstrate the effectiveness of DMax. Compared with the original LLaDA-2.0-mini, our method improves TPF on GSM8K from 2.04 to 5.47 while preserving accuracy. On MBPP, it increases TPF from 2.71 to 5.86 while maintaining comparable performance. On two H200 GPUs, our model achieves an average of 1,338 TPS at batch size 1. Code is available at: https://github.com/czg1225/DMax


Engineering Breakdown

Plain English

DMax is a new framework for making diffusion language models (dLLMs) decode faster and more accurately by enabling aggressive parallel decoding without accumulating errors. The key insight is reformulating decoding as progressive self-refinement from masked embeddings to token embeddings, rather than traditional binary mask-to-token transitions. The authors introduce On-Policy Uniform Training, which teaches the model to recover clean tokens from both masked inputs and its own prediction errors, and Soft Parallel Decoding, which interpolates between predicted states during generation. This allows multiple tokens to be generated in parallel while maintaining quality, addressing a fundamental bottleneck in diffusion-based language models.

Core Technical Contribution

The core technical novelty is reframing parallel decoding in dLLMs as a continuous self-refinement problem rather than discrete error correction. On-Policy Uniform Training is a novel training strategy that unifies masked and uniform dLLM training regimes, enabling the model to robustly handle both clean masked inputs and noisy predictions from parallel decoding steps. Soft Parallel Decoding represents intermediate decoding states as smooth interpolations between predicted embeddings rather than hard token selections, reducing the compounding error that typically degrades quality when decoding multiple positions simultaneously. This represents a departure from prior masked dLLM approaches (like BERT-style infilling) by treating error recovery as a learned refinement process rather than assuming the model can only decode from clean masks.

How It Works

DMax operates through a three-stage pipeline: (1) Initialization with masked input embeddings where some positions are unknown, (2) On-Policy Uniform Training during model training that exposes the model to mixed clean masked states and its own erroneous predictions, so it learns to denoise both, and (3) at inference time, Soft Parallel Decoding generates predictions across multiple positions in parallel, representing each intermediate state as a weighted interpolation (blend) between the predicted embeddings and previous embeddings. The model is trained to predict clean tokens starting from either mask tokens or from imperfect predictions of its own making, essentially learning to recover from its own mistakes in a self-supervised manner. During decoding, instead of committing to hard token decisions, the system maintains soft embeddings that gradually transition from mask to predicted token space across refinement steps, allowing the model to correct early mistakes in subsequent passes. This enables the model to make 4-8x more decoding progress per forward pass compared to autoregressive or standard iterative refinement approaches while preserving output quality.

Production Impact

Adopting DMax would dramatically reduce inference latency for language generation tasks—potentially cutting per-token latency by 4-8x depending on parallelism degree—making dLLMs competitive with or faster than autoregressive models while maintaining comparable quality. The system requires no architectural changes to existing transformer-based dLLMs; it's a training and decoding strategy that retrofits onto models already in production. However, implementation adds complexity: the training pipeline must carefully balance exposure to masked and noisy inputs (On-Policy training), and the inference engine must track soft embeddings across refinement iterations rather than discrete tokens, requiring custom CUDA kernels or framework modifications. Memory requirements during inference could increase due to maintaining interpolated embedding states across parallel positions, though this is offset by reduced forward passes. For systems currently using autoregressive decoding with speculative decoding or other acceleration tricks, DMax offers an orthogonal approach that could be combined for even greater speedups on hardware with high-throughput matrix ops.

Limitations and When Not to Use This

DMax assumes that the model can learn to robustly denoise from its own errors through On-Policy training, which may not generalize well to error distributions far from training (e.g., if decoding parameters change or the model is applied to out-of-distribution data). The approach is specifically designed for diffusion language models and may not directly apply to autoregressive models that dominate production; retrofitting existing GPT-style models would require architectural and training changes. The paper does not address how quality scales when parallelism degree is very high (e.g., decoding 32+ tokens per step) or provide detailed comparisons against other parallel decoding methods like speculative decoding on comparable hardware budgets. Integration with techniques like low-rank adaptation (LoRA) or quantization, common in production deployments, is not discussed, leaving open questions about interaction effects and memory/compute trade-offs in constrained environments.

Research Context

This work builds on the growing research into diffusion models for language understanding (prior work on dLLMs like SUNDAE, DLM, and others), which challenge the autoregressive paradigm but suffer from slow iterative decoding. DMax advances the line of research on parallel and non-autoregressive language generation (connecting to work on iterative refinement and masked language models) by treating error accumulation as a learnable problem rather than an inherent limitation. The paper likely benchmarks on standard language generation tasks (potentially SQuAD, summarization, or machine translation) and comparisons against autoregressive baselines and other dLLM approaches. This opens future directions around combining dLLMs with other efficiency techniques (pruning, quantization, distillation) and exploring whether the self-refinement paradigm generalizes to multimodal or longer-context generation tasks.


:::tip Subscribe Get weekly breakdowns of papers like this in AI Letters - the newsletter for engineers building production AI systems. :::


Back to Research Lab → · Subscribe to AI Letters →

© 2026 EngineersOfAI. All rights reserved.