· Masked / discrete diffusion, Reasoning, Post-training, Code generation · Source · Code (Mention in inspected excerpt)

dOPSD: On-Policy Self-Distillation for Diffusion Language Models

SourceFull paper

Article overview

Verdict

dOPSD is a convincing self-distillation method for diffusion language models: it consistently improves mathematical reasoning and transfer to code generation on Dream and LLaDA. The advantage is supported on the reported benchmarks, but should not be treated as universal without testing other models and decoding regimes.

Main idea

Use later, partially decoded states from the model’s own denoising trajectory as privileged teachers for earlier masked states. This adapts on-policy self-distillation to diffusion generation without architectural changes or reference reasoning traces.

Mechanism

The student state is sampled from an actual decoding step whose masked fraction exceeds τ, keeping training on the inference trajectory. For each still-masked position, the teacher averages predictions from later states in which that position remains masked; an endpoint state is used when needed. The target is token-level generalized Jensen–Shannon divergence, with the forward-KL component performing best. Already decoded positions are excluded. When a checkable answer exists, incorrect rollouts are discarded; without a reference answer, all rollouts may be distilled. The architecture is unchanged, but one extra teacher forward pass is required per distinct remaining trajectory step. Training uses roughly 12K MixChain-Z-PRM12K problems with checkable final answers and does not require reference CoT. Reproduction: (1) sample a genuine intermediate rollout; (2) select positions that remain masked; (3) collect predictions from future states; (4) average them and compute token-level distillation; (5) filter incorrect rollouts when an answer is available; (6) train with τ=0.5 and the full teacher horizon. Dream uses temperature-0.1 entropy remasking, while LLaDA uses native greedy low-confidence remasking; both use one diffusion step per generated token.

What this is useful for

The method is especially applicable to masked-diffusion language models with sequential denoising trajectories, checkable final answers, and tasks where information from future states can be useful. It fits mathematical post-training with transfer to code and does not require intermediate reasoning annotations.

Risks / not proven

Extra teacher passes increase computation in proportion to the number of distinct remaining trajectory steps. Rollout verification requires an available checkable answer and is therefore not universal. The source does not establish transfer to other diffusion architectures, a broader task set, multi-sample metrics, or regimes beyond the specified Dream and LLaDA settings.

Full abstract

Diffusion large language models (dLLMs) generate text by iteratively denoising a masked sequence, offering a parallel alternative to autoregressive models, but eliciting strong reasoning through post-training remains difficult: supervised fine-tuning is off-policy and suffers from exposure bias, while reinforcement learning gives only sparse, sequence-level rewards and is hard to apply without tractable sequence likelihoods. On-policy self-distillation (OPSD) offers a promising alternative, using one model as both student and teacher to provide dense, token-level, on-policy supervision, but its effectiveness hinges on giving the teacher privileged information (PI) - typically an instance-specific ground-truth reference unavailable at inference - so the student ends up distilling a weak PI-free consensus policy that yields little improvement on dLLM reasoning. We introduce dOPSD, which instead derives the teacher's privilege directly from the student's own denoising trajectory, evaluating masked positions using later, more-decoded steps of that same trajectory rather than an external label, so the teacher's advantage emerges from the model's own decoding process; on Dream and LLaDA, dOPSD improves both in-domain math reasoning and out-of-domain code generation, outperforming supervised and on-policy baselines.

Source

Paper resources

Code

BibTeX · RIS · Markdown · JSON