TL;DR
Diffusion language models promise fast, parallel text generation, yet they suffer from "amnesia" at every step—locking in confident words while wiping all uncertain positions back to blank masks. Latent Refinement Decoding (LRD) cures this by letting the model "think latently" using soft blends of predicted token embeddings before committing to final words. Without any retraining, this simple shift boosts reasoning and coding accuracy while accelerating inference by up to 18.4× when paired with existing speedups.
What Problem Does This Paper Address?
Standard autoregressive models (like GPT) generate text one token at a time—a sequential bottleneck that makes long outputs slow. Diffusion large language models (dLLMs), like LLaDA and Dream, break this bottleneck by starting with a sequence of blank [MASK] tokens and refining all of them in parallel over multiple steps.
However, standard dLLMs rely on hard assignment. At each step, the model predicts a probability distribution of words for every blank spot, permanently locks in the most confident ones, and resets every other uncertain spot back to a generic [MASK] token.
This creates two headaches:
- Information Loss: All the nuanced "hunches" (probability distributions) the model just calculated for uncertain positions are thrown in the trash. Self-attention can't share partial clues across positions in the next step.
- Brittle Commitment: Locking in tokens aggressively risks propagating early mistakes, while being conservative wastes compute on fixed iteration budgets—even for easy prompts.
Methods
The authors introduce Latent Refinement Decoding (LRD), a training-free, two-stage decoding framework that operates in continuous embedding space before settling into discrete words.
Instead of resetting uncertain positions to pure [MASK] embeddings, LRD uses Soft Diffusion. For any undecided position, it creates a "mixed embedding"—a weighted blend of the [MASK] vector and the expected embeddings of the top-$p$ predicted tokens. The blend is governed by prediction entropy (uncertainty) and capped by a maximum mixing ratio ($r_f$): high uncertainty stays mostly mask-like; high confidence leans toward the predicted words.
LRD orchestrates this across two phases, monitored via the KL-divergence (how much predictions change) between consecutive steps:
- Phase 1: Latent Refinement: No discrete words are locked in. Every position updates its soft mixture in parallel, allowing the model to establish a globally coherent "belief state" across the whole sequence. Once step-to-step KL-divergence drops below a threshold, it transitions to Phase 2.
- Phase 2: Predictive Feedback Loop: Confident tokens are progressively finalized into hard words (one by one, or in batches), while uncommitted spots keep their rich, mixed embeddings as context for the next step. When KL-divergence flattens out again, early stopping kicks in, finishing generation early rather than burning through a fixed step count.
Datasets
Because LRD is strictly an inference-time method, no training datasets are used. Evaluation spans:
- Code Generation: HumanEval and MBPP.
- Math Reasoning: GSM8K and MATH500.
- General Language & QA (in appendices): RACE, CNN/DailyMail, NQ-Open, TruthfulQA, GPQA, and BBH.
No new benchmarks are introduced.
Key Insights and Ideas
- Never Go Full Token (in the Soft Phase): You might assume that if a model is super confident during soft refinement, you should let the
[MASK]embedding vanish completely ($r_f = 1.0$). Surprisingly, this causes accuracy to collapse! Keeping a strong anchor to the[MASK]token (an intermediate cap around $r_f \approx 0.1 - 0.3$) keeps the embeddings inside a locally stable mathematical region that the frozen transformer knows how to handle.
- Genuine Beliefs Beat Random Jitter: Could soft embeddings just be acting like helpful random noise that shakes the model out of bad local optima? An ablation replacing LRD's predictive mixtures with comparable Gaussian noise tanked HumanEval accuracy from 56.1% to 47.0%, whereas LRD boosted it to 60.9%. Sharing actual token-level probabilities across self-attention is doing the heavy lifting.
- Global Consensus Happens Fast: Phase 1 doesn't drag out latency—on HumanEval, nearly 69% of prompts stabilize by step 2, and over 85% by step 3.
Key Results
Tested on frozen models like Dream-7B and LLaDA-8B across sequence lengths of 256 and 512, LRD improves both quality and speed simultaneously:
- Accuracy Gains: Standalone LRD beats standard entropy-minimization decoding across the board, delivering up to +6.3 points on HumanEval, +2.6 on MBPP (up to +3.1 on LLaDA-Ins), +2.9 on GSM8K (+3.2 on LLaDA-Ins), and +3.8 on MATH500.
- Standalone Speedups: Thanks to KL-guided early stopping, standalone LRD accelerates generation up to 10.6× overall (and cuts Dream-Instruct's HumanEval runtime from 41.8s down to 14.4s despite a slight per-step compute overhead).
- Drop-in Composability: LRD plugs cleanly into multi-token andKV-caching accelerators. Pairing Fast-dLLM + LRD reaches 15.2× speedup on Dream-Base and 18.4× on LLaDA-Ins (GSM8K, length 512) while recovering and surpassing the accuracy normally lost to aggressive parallel decoding.
Limitations and Future Work
- Where the Speedup Actually Comes From: Soft mixing actually adds a tiny per-step latency overhead (e.g., 81.8 ms to 94.3 ms). The authors candidly note that headline speedups in large generation windows mainly stem from sequence-level early stopping (avoiding wasted steps after an answer is done)—when normalized strictly by content length without early stopping, speedups are a much more modest 1.06×–1.21×.
- Theoretical Bounds Have Scope Limits: Their mathematical stability guarantees apply to continuous soft updates while holding committed tokens fixed; massive simultaneous batches of hard-token commitments can still jolt self-attention dynamics.
- The Bigger Picture: While LRD makes diffusion LLMs substantially better and faster, the broader head-to-head battle between diffusion and classic autoregressive models remains an open question for future work.
Summary updated