· Masked / discrete diffusion, Reasoning, Post-training · Source

Scheduling Thoughts: Learning the Order of Thought in Diffusion Language Models

SourceFull paper

Article overview

Verdict

SAS provides convincing evidence that the unmasking order can be learned as a generation-control problem: it outperforms heuristics on several tasks, but the advantage depends on the decoding regime and comparison conditions.

Main idea

The method learns a model-aware, self-aware token-reveal order for a frozen masked-diffusion model. Instead of locally selecting the most confident position, the policy accounts for the order’s long-horizon effect on the likelihood of the entire trajectory.

Mechanism

The state contains detached per-position features: top-1 probability, entropy, normalized position, and reveal state; a hidden-state variant is also possible. A small Transformer encoder with self-attention scores positions. Action masking excludes padding, prompt, and already revealed tokens by assigning them −∞. At each step, a masked-softmax categorical policy selects one position or a block; sequential decoding reveals one token, while block decoding reveals several tokens under a shared context.

The frozen denoiser evaluates the selected teacher-forced trajectory: Rθ(x,σ)=log pθ(x|σ), the sum of token log-likelihoods along the path. GRPO optimizes group-normalized cumulative returns without changing the diffusion backbone. For deterministic tasks, the parallel reward equals the negative KL to the teacher-forced path; the self-aware loss is connected to joint KL and an upper bound on marginal mismatch. The policy is queried once per diffusion step and requires no backbone retraining.

Reproduction: (1) freeze a masked diffusion model and construct the valid-action mask; (2) extract per-position features; (3) train a small order policy by sampling trajectories; (4) compute the frozen denoiser’s teacher-forced path likelihood; (5) update the policy with GRPO; (6) evaluate sequential and blockwise decoding separately, then optionally fine-tune the diffusion model on fixed learned trajectories.

What this is useful for

The method is most useful for masked diffusion language models whose quality depends on reveal order: structured tasks, mathematical reasoning, code, and long generations. It can attach to compatible frozen backbones and train either position- or block-selection strategies without retraining the model. Transfer between math and code is supported experimentally, but new denoisers and tasks require validation.

Risks / not proven

Training uses teacher forcing while inference is free-running, creating a distribution mismatch. The policy is generally trained per task, and transfer is only partially characterized. Training adds compute, and inference has nonzero overhead. A policy trained sequentially does not directly optimize parallel top-k decoding, causing task- and block-dependent drops. Block decoding assumes conditional independence within a block, and the resulting error depends on within-block conditional dependence.

Full abstract

Masked diffusion language models decode by iteratively unmasking tokens, where the unmasking order defines an "order of thought" that strongly influences generation quality yet is typically chosen heuristically. We derive a tractable upper bound on the sequential decoding mismatch, measured by the Kullback-Leibler divergence and expressed in terms of the model's pathwise log-likelihood, with tightness under sufficient model expressivity. This bound induces a dense self-aware reward over ordered trajectories, casting order selection as a principled policy optimization problem with a frozen denoiser. We instantiate this idea as Self-Aware Scheduling (SAS), which learns a lightweight order policy using Group Relative Policy Optimization and applies seamlessly to both any-order and semi-autoregressive decoding. On Sudoku with 1B MDM, SAS improves puzzle accuracy from 82.0% (best heuristic schedule) to 91.8%, and reaches 97.5% with second-stage fine-tuning along learned trajectories. On mathematical reasoning with LLaDA-8B, SAS improves pass@1 on GSM8K from 64% to 76% and on MBPP from 39.5% to 41%, consistently matching or exceeding heuristic schedules across generation lengths and block sizes. Project page: https://jimmyxu123.github.io/SAS

Source

Paper resources

Project

BibTeX · RIS · Markdown · JSON