Research
DMax: Aggressive Parallel Decoding for dLLMs
Overview Research area: Efficient inference for diffusion language models (dLLMs), specifically parallel decoding and post-training methods for masked diffusion language models. Technical level: Inter

- arXiv
- 2604.08302
- Published
- 2026-04-09
- Authors
- Zigeng Chen, Gongfan Fang, Xinyin Ma, Ruonan Yu, Xinchao Wang
AI summary
Overview
Research area: Efficient inference for diffusion language models (dLLMs), specifically parallel decoding and post-training methods for masked diffusion language models.
Technical level: Intermediate. The paper assumes familiarity with autoregressive language models and with the masked-diffusion formulation of text generation, but explains its own two components (On-Policy Uniform Training and Soft Parallel Decoding) from first principles with equations and pseudocode.
Scope: The paper proposes DMax, a paradigm that turns a pretrained masked diffusion language model into a self-revising uniform-style diffusion model so that many tokens can be decoded in parallel without the accuracy collapse that normally accompanies aggressive parallelism.
What This Paper Is About
Masked diffusion language models decode text by turning [MASK] positions into committed tokens, and once a token is committed it is never revisited. Under aggressive parallel decoding, early mistakes become fixed context and cascade into semantic breakdown, which is why practical parallelism stays low. DMax attacks this error-accumulation bottleneck directly: it trains the model to correct its own predictions and lets the model pass soft, confidence-weighted embeddings — rather than discrete tokens — between refinement steps.
Key Contributions
-
On-Policy Uniform Training (OPUT). A post-training recipe that extends a pretrained masked diffusion language model into a self-corrective uniform diffusion language model by constructing noisy training inputs from the model's own predictive distribution (an on-policy rollout) rather than from uniformly sampled vocabulary tokens. The loss combines a mask-input term and a predicted-input term, supervised over all token positions.
-
Soft Parallel Decoding (SPD). An inference procedure that represents each intermediate decoded state as a hybrid embedding interpolated between the top-1 predicted token embedding and the mask embedding, weighted by the prediction probability and renormalized to avoid norm collapse. This carries forward uncertainty from earlier iterations so the model can focus refinement on low-confidence positions.
-
A block-wise semi-autoregressive decoding algorithm. Positions in a block are split into mask positions and token positions; only the longest contiguous prefix of masked positions whose confidence exceeds a decoding threshold τ_dec is promoted, keeping the masked region contiguous so unreliable right-side tokens cannot interfere with left-side mask predictions. A block is committed once top-1 predictions are stable for two consecutive steps or all confidences exceed τ_acc.
-
Empirical validation on six benchmarks across math/reasoning (GSM8K, MATH500, Minerva-Algebra, ASDIV) and code generation (HumanEval-Instruct, MBPP-Instruct), with an ablation isolating OPUT, SPD, the contiguous-prefix rule, and the convergence criteria.
Main Findings
-
Parallelism roughly doubles while accuracy holds. Against the original LLaDA-2.0-mini, DMax raises average tokens-per-forward (TPF) from 2.8 to 6.2 while preserving the original accuracy, according to the authors' summary of Table 1. On GSM8K, TPF goes from 2.04 to 5.48 (the abstract text states 5.47; the introduction and Table 1 both state 5.48) with accuracy 92.6% versus 92.1% for DMax-Math. On MBPP-Instruct, TPF goes from 2.71 to 5.86, with accuracy 79.2% versus the base model's 80.6%.
-
Throughput. On two H200 GPUs the model achieves an average of 1,338 TPS at batch size 1 (abstract), and the results section states the model achieves a practical inference throughput of over 1000 tokens per second on two H200 GPUs.
-
AUP Score improves across the board. DMax records the highest AUP Score on every benchmark in Table 1 — for example 557 on GSM8K and 637 on HumanEval-Instruct — versus 340 and 369 for LLaDA-2.0-mini.
-
Conventional uniform diffusion training fails. The "Uniform Diffusion Training" baseline, which corrupts inputs with random vocabulary tokens, neither speeds up decoding nor preserves quality: accuracy falls to 68.7% on GSM8K, 33.6% on MATH500, 42.7% on Minerva-Algebra, 80.8% on ASDIV, 15.2% on HumanEval-Instruct, and 23.4% on MBPP-Instruct, with AUP Score 0 in every case. The authors attribute this to the mismatch between randomly sampled noisy sequences and the model's actual inference trajectories.
-
The accuracy–TPF trade-off curve is much flatter. On MATH500, at around 6.5 TPF, DMax retains over 71.6% accuracy while the original model falls to 15.2%. On MBPP, at a similar TPF, DMax achieves 79.2% while the original model drops to 2.3%.
-
Accuracy also improves at low parallelism. Table 2 reports gains of 0.8% to 3.0% across benchmarks at low TPF — for example GSM8K from 92.6% to 93.4% and MATH500 from 75.8% to 78.0% — obtained only with the model's own generated responses as training data.
-
OPUT and SPD are complementary, and OPUT is a prerequisite for SPD. In the ablation on GSM8K, OPUT alone lifts accuracy at τ_dec = 0.5 from 78.0% to 90.1% and at τ_dec = 0.0 from 0.9% to 68.2%. Adding SPD, contiguous prefix, and hybrid embeddings reaches 92.1% at τ_dec = 0.5 and 90.4% at τ_dec = 0.0. Applying SPD without OPUT causes collapse to 0.0% accuracy at τ_dec = 0.5 and 0.0.
-
Both convergence criteria help efficiency without hurting accuracy. In Table 4 at a decoding threshold of 0.5, consistency alone gives TPF 5.13 / 92.1% on GSM8K and 5.16 / 79.9% on MBPP; confidence alone gives 2.28 / 92.2% and 3.36 / 80.1%; combining both gives 5.48 / 92.1% and 5.86 / 79.2%.
-
Training cost and setup. OPUT uses a fixed mask ratio of 0.75, full-parameter fine-tuning for 2 epochs, batch size 8, initial learning rate 2×10⁻⁶ with cosine scheduling, block size 32, and 8 H200 GPUs. Training data is self-distilled: 0.7M math samples and 1.0M code samples, generated with confidence threshold 0.95, block size 32, and maximum generation length 2048, discarding incomplete generations.
Methodology in Plain English
The starting point is a pretrained masked diffusion model, LLaDA-2.0-mini. The authors' first move is a training change. Instead of corrupting training sequences with random vocabulary tokens — which is how uniform diffusion models are normally trained, and which the authors say produces inputs far outside natural language — they mask tokens as usual, run the model on that masked input, and then replace the masked positions with the model's own sampled predictions. That self-generated sequence becomes a second training input. The model is trained with cross-entropy against the clean sequence on both the masked input and the self-predicted input, over all token positions, so it learns to recover correct tokens whether the input is a mask or one of its own possibly-wrong guesses. To keep memory costs flat, the two losses are optimized in separate iterations within the same epoch rather than jointly.
The second move is at inference. Ordinary diffusion decoding commits a token and then treats it as fixed, so an error can never be undone. DMax instead never lets a token be a fully hard commitment during refinement. For each token position, it builds an embedding that is a weighted blend of the embedding of the top-1 predicted token (weighted by its predicted probability) and the mask embedding (weighted by the remaining probability mass). Because the mask embedding represents maximum uncertainty, this blend is an explicit carrier of "how sure was I last step." The blended vector is renormalized so its norm equals the probability-weighted sum of the component norms, preventing magnitude distortion. Mask positions simply use the mask embedding.
Decoding proceeds block by block. Within a block, positions are split into mask positions and token positions. At each step the model predicts, and only the longest contiguous run of masked positions from the left whose confidence exceeds the decoding threshold is promoted to token positions; if none qualify, the leftmost masked position is promoted anyway so progress is guaranteed. Keeping the masked region contiguous means unreliable future tokens on the right cannot pollute mask predictions on the left. A block is finished when top-1 predictions stop changing for two consecutive steps, or when every position's confidence exceeds the acceptance threshold of 0.9; then its tokens are committed.
Two models are trained: DMax-Math (decoding threshold 0.5) for math and reasoning, and DMax-Coder (decoding threshold 0.65) for code. Evaluation uses the dInFer framework on 2 H200 GPUs with tensor parallelism and a 2048-token generation length. Baselines are LLaDA-2.0-mini with its default threshold of 0.95, Hierarchical Decoding with a low threshold of 0.2, dParallel-SFT (the LLaDA-2.0-mini-CAP model with certainty-forcing loss), and the Uniform Diffusion Training variant.
Why This Matters
The paper argues that error accumulation, not decoding-strategy tuning, is the structural reason masked diffusion language models cannot convert their theoretical parallelism into real speedups. By making self-revision intrinsic to the model rather than bolted onto the sampler, DMax suggests a route to dLLM inference that is both fast and stable, and it does so with a post-training stage rather than pretraining from scratch.
Real-world applications:
- Latency-sensitive code assistants. The HumanEval-Instruct and MBPP-Instruct results, with TPF rising to 7.36 and 5.86 respectively, target IDE autocomplete and code-generation tools where wall-clock response time dominates user experience.
- Batched mathematical and reasoning tutoring. GSM8K, MATH500, Minerva-Algebra, and ASDIV use chain-of-thought prompting, matching the step-by-step explanation use case in educational and analytical tools.
- On-premise or cost-constrained deployment. A model that reaches over 1000 tokens per second on two H200 GPUs reduces the GPU footprint needed for a given throughput target, which matters for teams serving inference on limited hardware.
- Self-improving post-training pipelines. Since all supervision comes from the model's own generations with no external high-quality responses, the recipe is applicable where curated labeled outputs are unavailable or expensive.
Industry relevance: Diffusion language models are being scaled by groups such as the LLaDA line (including LLaDA-2.0 and LLaDA-MoE), and the paper situates its work alongside acceleration techniques like KV caching, token dropping, and sparse attention. A post-training method that improves the parallelism-versus-accuracy curve without changing the architecture is directly composable with those existing efficiency levers.
Future Directions
- Composition with orthogonal efficiency methods. The paper positions DMax alongside KV caching, token dropping, sparse attention, and AR/diffusion interpolation, but does not report experiments combining them; whether the gains stack is not reported.
- Scaling beyond LLaDA-2.0-mini. All experiments use one base model. Whether OPUT and SPD transfer to larger dLLMs, mixture-of-experts variants such as LLaDA-MoE, or multimodal and agentic dLLMs is not reported.
- Reducing the data and compute requirement of OPUT. Training used 0.7M math and 1.0M code self-distilled samples, 2 epochs, and 8 H200 GPUs. Whether the self-corrective behavior can be acquired with less data, fewer epochs, or parameter-efficient fine-tuning remains an open question.
- Threshold selection. DMax-Math uses a decoding threshold of 0.5 and DMax-Coder 0.65, and the acceptance threshold is fixed at 0.9. The paper does not report an automatic or adaptive procedure for choosing these per task, leaving a practical tuning question open.
- Extending soft embeddings further. The related-work section notes that prior methods such as SM and EvoToken introduce soft embeddings without translating them into efficiency gains; the boundary conditions under which soft embeddings help versus collapse performance — the ablation shows collapse without OPUT — deserve further characterization.
Target Audience
Researchers and engineers working on diffusion language models, efficient LLM inference, or parallel decoding will get the most from this paper, particularly those already familiar with masked diffusion formulations such as LLaDA and Dream. Practitioners deploying code generation or mathematical reasoning models under latency or GPU-memory constraints will find the TPF, TPS, and AUP Score tables directly actionable. Readers without background in discrete diffusion will need the preliminaries section, since the method is defined in terms of masking schedules, denoising objectives, and embedding-space interpolation.
Authors’ 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