Knowledge distillation has recently proven highly effective for improving autoregressive models, but its applicability to DLMs remains poorly understood. We present the first systematic study of KD for DLMs and uncover two non-intuitive failures of classical forward-KL (FKL) distillation: (i) student perplexity does not improve monotonically with more teacher-generated data, and (ii) on the same teacher-generated corpus, FKL distillation underperforms simply training the student with the original DLM denoising objective. To address them, we propose a unified, data-free distillation framework for masked DLMs. First, the framework runs an off-policy distillation phase that absorbs general knowledge from a static set of teacher-generated data. Then, the framework employs on-policy distillation which consists of three techniques: a trajectory loss along the student's own reverse process, confidence reweighting that down-weights tokens where the teacher is unsure, and a trust-region anchor that stabilizes the moving target. On MDLM, the resulting student attains a GPT-2 perplexity of 24.75, surpassing the teacher's 27.04; on Dream-7B distillation to a 93M student model, the framework reduces Qwen-2.5 perplexity from the FKL-distilled baseline of 25.23 to 19.83 while preserving performance on zero-shot general capability benchmarks.
Figures & tables
Figure 1: Scaling failure of forward-KL distillation in MDLM. GPT-2 perplexity of an MDLM student does not improve monotonically with the size of the teacher-generated corpus: 10 M tokens are optimal, while larger sets ( 30 M, 100 M) yield worse perplexity. Dream exhibits the same pattern ( Table 2 ).
Table 2
Figure 2: Off-policy α - β divergence overfitting dynamics in MDLM. Validation NLL on OWT keeps decreasing, but GPT-2 generative perplexity rises after the 5k-step checkpoint.
Figure 3: Two-phase distillation pipeline. Phase 1 (off-policy): the student is trained on a static teacher-generated corpus with divergence D . When held-out perplexity stops improving, training switches to Phase 2 (on-policy): the student rolls out partial reverse trajectories, intermediate states xtk are scored by both teacher and student under a trajectory loss, the loss is reweighted by teacher confidence (CW), and a trust-region KL anchor (TR) against a periodically refreshed copy θold stabilizes optimization.
Method
MDLM (GPT-2 PPL) ↓
Dream (Qwen-2.5 PPL) ↓
Off-policy distillation only
32.48
25.23
+ on-policy, trajectory K=4
25.38
24.96
+ on-policy, traj. + CW
27.44
20.88
+ on-policy, traj. + CW + TR
24.75
19.83
Teacher reference
27.04
12.07
Table 3: Perplexity of the distilled MDLM (10.5M, GPT-2 PPL) and Dream (93M, Qwen-2.5 PPL) students under successive ablations. Lower is better. Best value in each column is in bold .
Method
MAUVE ↑
Off-policy distillation only
0.6034
+ on-policy, trajectory K=4
0.7643
+ on-policy, traj. + CW
0.6787
+ on-policy, traj. + CW + TR
0.6677
Table 4: MAUVE scores for Dream (93M) students. Higher is better.
Table 7
Figure 4: Loss dynamics under linear curriculum mixing for Dream. (a) The off-policy loss decreases initially and then rises. (b) The on-policy loss shows abrupt rises and drops despite an overall downward trend.
Setting
HS
PIQA
ARC-E
WG
off-policy ckpt
0.2742
0.5582
0.3481
0.4949
traj. K=4
0.2751
0.5609
0.3514
0.4941
traj. K=4 + CW
0.2723
0.5566
0.3308
0.4957
traj. K=4 + CW + TR
0.2719
0.5566
0.3316
0.4949
Table 7: Zero-shot accuracy of the Dream-93M student on-policy ablations starting from the 300M off-policy checkpoint.
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
Hyperparameter
MDLM Student
Dream Student
Hidden size dmodel
96
384
Layers
4
12
Attention heads
4
4
Sequence length
1024
256
Vocabulary size
50,257 (GPT-2)
151,643 (Qwen)
Appendix
Table 8: Hyperparameters of the MDLM and Dream students.
Parameter
MDLM
Dream
Optimizer
AdamW
AdamW
β1
0.9
0.9
β2
0.999
0.95
ϵ
1×10−8
1×10−8
Weight decay
0
0.01
Gradient clipping
1.0
1.0
Appendix
Table 9: Optimizer hyperparameters for the final student distillation runs.
Hyperparameter
MDLM
Dream
Off-policy batch size
512
1024
Off-policy learning rate
3×10−4
1×10−4
On-policy batch size
16
32
On-policy learning rate
3×10−8
3×10−8
Trajectory states K
4
4
Student sampling steps
1024
256
Appendix
Table 10: Run-level hyperparameters for the final MDLM and Dream distillation experiments.
Phase
MDLM (A100)
Dream (H100)
Off-policy
41
1,433
On-policy
61
394
Total
102
1,827
Appendix
Table 11: Compute cost per phase. MDLM is reported in A100 GPU-hours and Dream in H100 GPU-hours.
Department of Computer Science and Engineering, Texas A&M University · Department of Bioinformatics and Systems Medicine,2026 University of Texas Health Science Center at Houston · Department of Electrical and Computer Engineering, Texas A&M UniversityJun 4