SAI
← All ICML 2026 orals

Learning Unmasking Policies for Diffusion Language Models

Metod Jazbec, Theo X. Olausson, Louis Béthune, Pierre Ablin, Michael Kirchhof, Joao Monteiro, Victor Guilherme Turrisi da Costa, Jason Ramapuram, marco cuturi

OralReplication score 4%Paper PDFCode repoOpenReview

Learning Unmasking Policies for Diffusion Language Models

SAI replication review · Referee report

Summary

This paper replaces the hand-crafted confidence heuristics used to schedule unmasking in diffusion language models with a learned unmasking policy. The base dLLM (LLaDA-8B or Dream-7B) is treated as a frozen environment, and a lightweight (~300K-parameter) single-layer transformer maps per-position token confidences, a mask indicator, and the diffusion timestep to per-position Bernoulli unmasking probabilities, trained end-to-end with GRPO under a multiplicative reward that combines a task correctness term with a step-count penalty scaled by a knob α\alpha. The conceptual move is to reframe unmasking-schedule design as a sequential decision problem and to isolate the "sampler" from the "generator": because the policy consumes only confidence scalars, it can be reused across base dLLMs and generation lengths, as the transfer experiments demonstrate. Empirically the paper argues two things: in the semi-autoregressive regime (BL=32BL=32) the learned policy matches the best hand-tuned Fast-dLLM frontier, and in the full-diffusion regime (BL=L=256BL=L=256) — where confidence heuristics degrade badly, partly because LLaDA overfits to padding tokens — the learned policy plus an "expert steering" trick that mixes in Fast-dLLM rollouts substantially outperforms all heuristics. The scope should be read carefully: the RL policy does not beat Fast-dLLM in its native regime, and the full-diffusion wins borrow semi-AR expert trajectories. The main conceptual limitations are that the reward is terminal-only and broadcast uniformly (so the MDP framing is close to a bandit), the policy inherits any calibration pathology of the base model because it sees only confidences, and α\alpha-controllability is coarse. The paper is careful and honest about most of these tensions, and the qualitative analysis (per-block NFE allocation, adjacency of simultaneous unmaskings, left-to-right vs right-to-left ordering) is genuinely useful. An independent execution attempt confirmed the tiny policy size but was compute-limited and could not exercise the headline frontier comparisons.

Strengths

  • Conceptual contribution. Cleanly separates the "environment" (frozen dLLM) from the "sampler" (learned policy), decoupling sampler design from base-model post-training and yielding a genuinely portable policy — the same LLaDA-trained checkpoint applied to Dream-7B nearly matches the frontier of Dream-specific policies.
  • Lightweight, low-overhead policy — confirmed by execution. The confidence-only design keeps sampling wall-clock indistinguishable from NFE-only cost. Running the shipped config through the training code prints 331,265 parameters, corroborating the paper's ~300K / Table 1 figure and the "under 0.01% of the dLLM" claim (it is ~0.004% of an 8B model).
  • Well-motivated reward-shape choice. The additive-vs-multiplicative reward comparison identifies a concrete failure mode of the additive form (reward-hacking that unmasks everything at once) and shows the multiplicative form fixes it, rather than asserting one works.
  • Honest qualitative analysis. Tracing Fast-dLLM's full-diffusion "reverse" generation to LLaDA's SFT loss over padding tokens is a valuable diagnostic, and the finding that the fast learned policy learns to slow down in the final block to produce the numerical answer is a nice qualitative win.
  • Transferability across models and lengths. Reusing an L=256L=256 policy at L=512L=512 without retraining, and a LLaDA-trained policy on Dream, are convincing demonstrations that the confidence-only interface is more than an aesthetic choice.

Weaknesses

  • Central semi-AR result is 'match', not 'beat', and the optimality inference is not licensed. The full training apparatus pays off by matching Fast-dLLM in its native, dominant regime; the clear wins live in BL=256BL=256 (a regime the dLLM is not deployed in) and require expert steering that itself uses Fast-dLLM rollouts. The claim that this "may suggest [Fast-dLLM] is near-optimal" is not warranted given the paper's own admission that its policies are locally optimal — failure to surpass is equally consistent with insufficient RL search.
  • Reward is terminal-only; the MDP framing is thin. The final-step reward is broadcast uniformly with no discount, shaping, or intermediate signal, making the setup practically a contextual bandit over full trajectories. Section 3.1 formalizes an MDP but never argues the Markov structure is exploited.
  • Learned sampler requires task labels; heuristics do not. The correctness reward needs a task-specific verifier/labels, so the policy is not a drop-in replacement for a label-free heuristic — it must be trained per domain, which is exactly why math-trained policies fail on code. This asymmetry is central to the practical case but is left implicit.
  • The 'Ours' frontier is an envelope over many models. Heuristic frontiers come from a single test-time knob on one model; the learned frontier is the envelope of five separately trained policies (per α\alpha), seed-selected, plus test-time knobs. Comparing them as equivalent understates the training and model-selection cost baked into the learned curve.
  • Hidden-state ablation confounds capacity with input. The confidence policy is ~300K parameters, the hidden-state variant ~300M. Attributing the latter's worse performance to input type (and concluding the unembedding matrix "plays a vital role") is not licensed without a matched-capacity control.
  • Overgeneralized ablation conclusions. The top-50-confidence negative result is used to claim "alternative uncertainty measures are unlikely to yield gains", though only more of the same probability mass was tested (not entropy, margin, KL, or calibrated confidences).
  • Statistical framing of qualitative claims. A Spearman of 0.24±0.51-0.24 \pm 0.51 is essentially indistinguishable from zero yet is used as evidence of a systematic reverse-vs-AR ordering difference; baseline table rows (with non-monotone accuracy vs NFE) carry no error bars while "Ours" does.
  • Poor α\alpha-controllability, single-α\alpha fix. Several α4\alpha \ge 4 values collapse to two attractor policies; the smoother test-time β\beta-scaling fix is demonstrated only on the α=1\alpha=1 base policy — not on the collapsed regimes that motivate a knob.
  • pass@k conclusions rest on one operating point. Figure 19 uses a single dLLM temperature and one Fast-dLLM λ\lambda; a temperature-matched stochastic Fast-dLLM would be a fairer control before invoking "diversity collapse", and the "widens with kk" pattern is not present in every panel.
  • Notational/definitional slips. The terminal-step T^\hat T is defined as a max over the fully-masked set (should be a min over the fully-unmasked set); the policy is written fθf_\theta despite θ\theta indexing the frozen dLLM; the unembedding matrix is written RH×V\mathbb R^{H \times V} despite mapping RHRV\mathbb R^H \to \mathbb R^V; and the argmax fallback is not reconciled with the closed-form Bernoulli likelihood used in GRPO.
  • Seed selection by 'training loss'. Two seeds per α\alpha, choosing by final "training loss" — an odd criterion for a GRPO surrogate whose value is a weak proxy for policy quality — is a load-bearing but barely-described choice.

Reproducibility & code

  • Parameter count and overhead reproduce. Executing the shipped policy config through the training code prints 331,265 parameters (~0.004% of 8B LLaDA), directly confirming the ~300K / <0.01% claim behind the negligible-overhead argument. The Fast-dLLM baseline points that ran also land near the paper's reported Fast-dLLM frontier, indicating the evaluation path is faithful.
  • Headline frontier claims could not be exercised (compute-limited). A faithful reproduction requires GPU-weeks of 8B GRPO per policy; the execution attempt was compute-constrained, so no learned policy was ever evaluated, the BL=256BL=256 sweep produced zero generations, and the expert-steering policy was never trained. The central "match at BL=32BL=32 / outperform at BL=256BL=256" comparison and the "~50% at ~12 NFEs" number were therefore neither confirmed nor contradicted. This reflects the reproduction environment, not a defect in the work — but the undocumented compute cost is itself a real reproducibility barrier.
  • MATH-500 loader hardcodes an internal path. The MATH-500 loader calls load_from_disk on a hardcoded cluster path with no public fallback (unlike the GSM8K loader), so MATH-based evaluation cannot run off-cluster until the reader substitutes the public HuggingFaceH4/MATH-500 split; a single-GPU launch also crashes the distributed eval sampler until patched.
  • Test-time β\beta scaling absent from the sampler. The clamped min(1,βstk)\min(1, \beta s_t^k) scaling behind Figure 6 (and its "20% vs 10% at 25 NFEs" headline) is not exposed in the released sampling code, which offers only temperature-based logit division.
  • Non-greedy pass@k / self-consistency / ORM pipeline absent. None of the four components behind Figure 19 (k-sample generation, pass@k, majority vote, outcome-reward-model scoring) is in the repo, and no ORM checkpoint is referenced, blocking verification of the diversity-collapse claim.
  • Qualitative-analysis instrumentation absent. The generation loop logs only a total step count, so per-block NFE (Figure 5), per-position unmasking time (Figure 7), and adjacency/Spearman statistics (Appendix D) require new instrumentation.
  • Baseline and config coverage gaps. The Margin and EB Sampler baselines (Figure 11, Tables 2-5) are not implemented, and no shipped config sets the reported α\alpha grid or es_thresholds, so the reader must reverse-engineer operating points from the paper.

Recommended Changes

Essential

  • State the training-cost and 'match vs beat' trade-off in the Summary/Conclusion. Make explicit that the learned policy matches Fast-dLLM in the dominant BL=32BL=32 regime and only surpasses it at BL=256BL=256 via expert steering that reuses Fast-dLLM rollouts, and rephrase the "near-optimal" line as a statement about the learned policy rather than about Fast-dLLM (maps to the match-not-beat weakness).
  • Add a supervised-distillation baseline. Behavior-clone Fast-dLLM's unmasking decisions into the same 300K policy and compare in both regimes, to isolate what the RL apparatus contributes over imitation (maps to the missing-distillation weakness).
  • Add a matched-capacity hidden-state ablation (a small hidden-state or a large confidence policy) before concluding the unembedding matrix "plays a vital role" (maps to the capacity-confound weakness).
  • Extend the β\beta-scaling sweep to a collapsed α\alpha policy (e.g. α{3,10}\alpha \in \{3, 10\}), so the smooth-test-time-knob claim covers the regime the α\alpha-only sweep breaks in (maps to the controllability weakness).
  • Fix the terminal-step definition and reconcile the argmax fallback with the Bernoulli likelihood. Correct T^\hat T to a min over the fully-unmasked set, and report how often the fallback fires at the reported operating points and whether it enters the GRPO ratio (maps to the notation and fallback weaknesses).
  • Document the compute needed to reproduce each frontier, and release the raw per-run outputs behind Figures 4/6/8 so the headline comparisons can be checked without GPU-weeks of retraining (maps to the compute-limited reproducibility points).
  • Make MATH-500 (and single-GPU eval) runnable off-cluster. Have the loader fall back to the public HuggingFaceH4/MATH-500 split and guard the distributed sampler for single-process launches (maps to the MATH-500 loader point).

Suggested

  • Ship the β\beta-scaling flag, per-position/per-block unmasking instrumentation, the pass@k/majority-vote/ORM pipeline, and the Margin/EB samplers (or narrow the corresponding figure claims), plus configs for every reported α\alpha and es_thresholds (maps to the code-coverage reproducibility points).
  • Report the distribution of per-sample Spearman correlations rather than mean ±\pm std, and add error bars (or a single-run note) to the baseline table rows (maps to the statistical-framing weakness).
  • Soften over-broad statements: qualify "alternative uncertainty measures are unlikely to help" to raw-probability inputs only, and reframe "learns to disregard corrupted signals" as position-conditioned de-biasing (maps to the ablation-overgeneralization and near-random weaknesses).
  • Foreground the padding-token / SFT mechanism from Appendix D.3 in Section 2.2, restate Eq. (3) inline where "exponential in α\alpha" is claimed, rephrase the 1/L!1/L! motivation as "vanishingly small", and clarify the seed-selection criterion (maps to the motivation, exponential-α\alpha, 1/L!1/L!, and seed-selection weaknesses).
  • Add a stochasticity-matched Fast-dLLM control (top-k or raised temperature) before invoking "diversity collapse" for the pass@k result (maps to the pass@k weakness).