Decoding Large Language Diffusion Models with Foreseeing Movement

Yichuan Mo, Quan Chen, Mingjie Li, Zeming Wei, Yisen Wang

TL;DR

Large Language Diffusion Models (LLDMs) suffer when tokens are unmasked in suboptimal decoding orders, yet standard heuristic samplers rely purely on short-sighted local confidence metrics. This paper introduces the Foreseeing Decoding Method (FDM) and its accelerated counterpart FDM-A, combining immediate token confidence with expected long-term distribution impact ("global confidence"). FDM acts as an effective test-time scaling method, while FDM-A achieves substantial speedups (over $3\times$ to $5\times$) while outperforming existing dynamic decoders.

What Problem Does This Paper Address?

Unlike autoregressive language models that generate text left-to-right, masked language diffusion models iteratively denoise and unmask multiple tokens across arbitrary positions. While this enables parallel inference and bidirectional context modeling, generation quality is exceptionally sensitive to decoding order—the sequence in which masked positions are decided.

Current methods determine decoding order using greedy local heuristics: unmasking positions with the highest predicted probability, lowest entropy, or largest probability margin between top candidates. However, these local choices ignore downstream ripple effects: choosing a token might look confident locally, but could steer future token generation into poor states.

Methods

The authors decompose the ideal transition probability into two terms:

  1. Local Confidence ($\mathcal{C}_{\text{local}}$): The model’s immediate log-probability of choosing token $x_t$ at step $t$ given masked sequence $x_{t-1}$.
  2. Global Confidence ($\mathcal{C}_{\text{global}}$): An expectation over the full sequence log-likelihood under future model predictions, capturing how committing to $x_t$ impacts the unmasking of the remaining tokens.

Based on this framework, the authors introduce two decoding algorithms:

  • Foreseeing Decoding Method (FDM): To make evaluating future states tractable, FDM first filters candidate tokens with a dynamic pruning threshold ($\gamma$) based on local confidence, narrowing down to the top-$K$ candidates. It then evaluates each candidate by taking a forward pass to compute its $\mathcal{C}_{\text{global}}$ and selects the token maximizing $\mathcal{C}_{\text{local}} + \mathcal{C}_{\text{global}}$.

  • Accelerated FDM (FDM-A): Observing that global lookahead is crucial early on but unnecessary once sufficient context has formed, FDM-A splits decoding into three stages using two probability thresholds ($\eta_1, \eta_2$):

  • Exploration stage: When no predicted token probability exceeds $\eta_1$, search using FDM with beam width $K$ to unmask 1 critical token.

  • Balance stage: When high-confidence ("qualified") and borderline tokens co-exist, run FDM on a pooled set to parallel-unmask $n$ tokens.
  • Acceleration stage: When context is abundant, switch to greedy local confidence ($K=1$) to unmask multiple tokens in parallel up to a maximum chunk size $N$.

Datasets

The authors evaluated the method across four standard zero-shot benchmarks covering distinct reasoning domains:

  • GSM8K: Multi-step grade-school mathematical reasoning.
  • HumanEval: Python code generation and functional correctness.
  • Countdown: Arithmetic and search-based logic puzzle tasks.
  • ARC (AI2 Reasoning Challenge): Complex common-sense science multiple-choice reasoning.

Evaluations were performed across four model architectures: LLaDA-8B-Instruct, LLaDA-1.5, LLaDA-MoE-7B-Instruct, and MMaDA-8B-MixCoT.

Key Insights and Ideas

  • Theoretical Bound: The authors prove that selecting tokens with global foreseeing ($\pi_F$) strictly reduces the KL divergence to the ground-truth data distribution by the conditional mutual information $I_{p_{\text{data}}}(x_t; x_T \mid x_{t-1})$ compared to local greedy decoding ($\pi_H$).
  • Diminishing Value of Lookahead: Comparing token selections made by local heuristics versus FDM reveals an agreement rate of only $\sim 50\%$ in early diffusion steps, but over $90\%$ toward the end. Context accumulation naturally constrains the search space, rendering deep exploration redundant in later steps.
  • The "Winner’s Curse" of Excessive Search ($K$): Increasing the search width $K$ initially boosts accuracy (acting as test-time compute scaling), but performance eventually degrades at very large $K$ (e.g., $K > 6\text{--}8$). Extreme-value analysis shows that because the model distribution slightly mismatches the true data distribution, widening $K$ inflates the probability of selecting noisy, sub-optimal candidate outliers.

Key Results

  • FDM as Test-Time Scaling: Scaling search width $K$ from 2 to 4 systematically improved accuracy across all tasks. For instance, on Countdown with LLaDA, accuracy scaled from 19.14% ($K=2$) to 25.00% ($K=4$). On ARC with LLaDA, FDM ($K=2$) achieved 86.00%, outperforming the best heuristic (Margin at 82.55%).
  • FDM-A Efficiency & Performance:
  • On GSM8K with LLaDA, FDM-A reached 81.96% accuracy at 42.65 tokens/sec (TPS), outpacing recent dynamic samplers like WINO (79.45% accuracy at 40.02 TPS) and Entropy Bounded sampling (79.61% accuracy at 36.46 TPS).
  • Relative to fixed-step FDM ($K=2$, 8.28 TPS), FDM-A delivered a $5.15\times$ speedup with virtually zero accuracy loss ($82.03\% \to 81.96\%$).
  • Across HumanEval, Countdown, and ARC, FDM-A consistently yielded the top accuracy among fast/dynamic decoders while maintaining the highest TPS.

Limitations and Future Work

  • Hyperparameter Sensitivity: FDM-A introduces stage-division thresholds ($\eta_1, \eta_2$) and pruning thresholds ($\gamma$), which must be balanced to prevent under-exploration or admitting noisy tokens.
  • Additional Forward Passes in FDM: While FDM-A reduces redundant steps, full FDM requires extra forward evaluations proportional to the candidate width $K$, making larger beam searches computationally costly without specialized caching mechanisms (such as non-causal KV caching).

Summary updated

BibTeX
@inproceedings{mo2026decoding,
  author = {Yichuan Mo and Quan Chen and Mingjie Li and Zeming Wei and Yisen Wang},
  title = {{Decoding Large Language Diffusion Models with Foreseeing Movement}},
  booktitle = {DeLTa @ ICLR},
  year = {2026},
  url = {https://openreview.net/forum?id=15aE5ZuFkt},
}

Loading related content...

Figure