Rethinking Knowledge Distillation for Diffusion Language Models

Yuxuan Sun, Yuanjian Xu, Jianing Hao, Yu Li, Sowmen Das, Zhong Li, Sangwoong Yoon, Miguel R. D. Rodrigues

TL;DR

Standard knowledge distillation breaks down in surprising ways when applied to Diffusion Language Models (DLMs): feeding a student more teacher-generated data actually makes it worse. By diagnosing why—the student never learns how to recover from its own mistakes during parallel text generation—the authors design a two-phase, data-free distillation framework that compresses massive DLMs into tiny models, with one student even outperforming its 10x-larger teacher.

What Problem Does This Paper Address?

Autoregressive (AR) language models generate text one word at a time, like a typewriter. Discrete Diffusion Language Models (DLMs), on the other hand, start with a sequence of blank [MASK] tokens and fill them in simultaneously over several refinement steps—like developing a Polaroid photo. This parallel generation makes DLMs an exciting frontier, especially if we can shrink them down for phones or edge devices using Knowledge Distillation (KD) (training a small "student" model to mimic a large "teacher").

While KD is a staple for AR models, nobody had systematically studied how to compress a DLM into a smaller student without access to the teacher's original, often-proprietary training data. When the authors tried standard KD—minimizing the classical Forward Kullback–Leibler (FKL) divergence on synthetic text generated by the teacher—they hit a wall. Standard recipes failed, revealing a fundamental mismatch between how DLMs are trained and how they actually generate text.

Methods

To fix this, the authors propose a unified, two-phase, data-free distillation pipeline:

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.
  1. Phase 1: Off-Policy Warmup. The student first learns general language patterns from a static batch of teacher-generated text that has been artificially masked (the standard "forward" noising process). Once validation quality plateaus and starts to overfit, a hard switch is flipped.
  2. Phase 2: On-Policy Refinement. Now, the student generates text from scratch using its own multi-step "reverse" unmasking process. This phase introduces three key innovations:
  3. Trajectory Loss: Instead of checking the student's work at just one step, the teacher grades $K=4$ intermediate, partially-unmasked states along the student's generation path, stopping errors from snowballing.
  4. Confidence Reweighting (CW): Because the student wanders into weird, noisy states the teacher never saw during training, the teacher can get confused. CW scales down the loss on tokens where the teacher's probability distribution is flat (uncertain), focusing learning where the teacher is confident.
  5. Trust-Region Anchor (TR): Because the student's generated data is a moving target, training can easily destabilize. A KL-divergence penalty tethers the student to a periodically refreshed copy of its recent self ($\theta_{\text{old}}$), keeping updates smooth.

Finally, while standard FKL works well when learning from a massive 7B teacher (Dream), the authors swap in $\alpha$-$\beta$ divergence—which smoothly blends forward and reverse KL—when distilling from a smaller, weaker 110M teacher (MDLM).

Datasets

Because this is a data-free framework, no real-world datasets are used to train the students; all training tokens (ranging from 1M to 1000M tokens) are synthesized unconditionally by the teacher models (MDLM-110M and Dream-7B).

Real datasets are used strictly for baselines, overfitting checks, and evaluation:

  • OpenWebText (OWT): Used as a baseline comparison against synthetic teacher data, and to monitor validation Negative Log-Likelihood (NLL).
  • Zero-Shot Benchmarks: HellaSwag, PIQA, ARC-Easy, and Winogrande are used to test general reasoning and commonsense capabilities of the distilled Dream student.

Key Insights and Ideas

  • More data can hurt (Non-monotone scaling): In classical FKL distillation, giving the student more teacher-generated text eventually degrades generation quality (e.g., 10M tokens is optimal for MDLM, while 30M and 100M perform worse). Why? Because FKL only trains the student on cleanly masked teacher text. The tighter the student fits those ideal states, the more lost it gets during inference when its own imperfect unmasking creates messy, correlated token states it never saw in training.
Figure 1: Scaling failure of forward-KL dis- tillation in MDLM. GPT-2 perplexity of an MDLM student does not improve monotoni- cally with the size of the teacher-generated cor- pus: 10M tokens are optimal, while larger sets (30M, 100M) yield worse perplexity. Dream exhibits the same pattern (Table 1).
  • Objective mismatch: On the exact same synthetic dataset, standard FKL distillation performs worse than ignoring the teacher's probabilities and simply training the student from scratch with the standard DLM denoising objective.
  • AR tricks don't always transfer: In AR distillation, smoothly blending static data and self-generated (on-policy) data via a curriculum works great. In DLMs, the authors found this causes total model collapse—the forward-masked teacher states and reverse-sampled student states pull the model in incompatible directions, requiring a clean, hard switch between phases instead.

Key Results

  • Surpassing the Teacher (MDLM 110M $\rightarrow$ 10.5M): Compressing a 110M MDLM into a 10.5M student drops GPT-2 generative perplexity from 32.48 (off-policy $\alpha$-$\beta$ baseline, and 122.37 for standard FKL) down to 24.75—beating the 110M teacher's own perplexity of 27.04.
  • Massive Compression (Dream 7B $\rightarrow$ 93M): Shrinking Dream-7B by ~75x into a 93M student cuts Qwen-2.5 perplexity from 25.23 (FKL baseline) to 19.83, while maintaining downstream zero-shot accuracy across HellaSwag, PIQA, ARC-Easy, and Winogrande.
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.
  • Precision vs. Diversity Trade-off: On-policy trajectory training boosts Dream's MAUVE score (text similarity to human reference) from 0.6034 to 0.7643. Adding Confidence Reweighting and the Trust-Region anchor sharpens token accuracy (best perplexity) and eliminates repetitive text loops, though it slightly trims diversity (MAUVE settles at 0.6677).

Limitations and Future Work

  • Hyperparameter Exploration: For the trust-region anchor, the authors only tested standard FKL with a constant weight ($\lambda$) and fixed refresh intervals ($\Delta$). Exploring dynamic schedules for $\lambda$, adaptive refresh rates, and alternative anchor divergences is left for future work.
  • Orthogonal to Step Distillation: This framework compresses parameter count while keeping the number of diffusion sampling steps fixed. Combining model-size distillation with step distillation (reducing generation from dozens of steps down to one or two) is a natural next step for ultra-fast, tiny DLMs.

Summary updated

Abstract

Discrete diffusion language models (DLMs) offer a promising non-autoregressive alternative to large language models by enabling parallel generation, yet their performance still lags behind autoregressive counterparts. 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. These failures hold for both a 110M MDLM teacher and a 7B Dream teacher. To address them, we propose a unified, data-free distillation framework for masked DLMs. The framework first runs an off-policy phase that absorbs general knowledge from a static set of teacher samples and then transitions to an on-policy phase whose objective combines: 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. For the smaller MDLM regime where FKL alone is insufficient, we additionally adopt the $\alpha$-$\beta$ divergence. 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 zero-shot accuracy.
BibTeX
@inproceedings{sun2026rethinking,
  author = {Yuxuan Sun and Yuanjian Xu and Jianing Hao and Yu Li and Sowmen Das and Zhong Li and Sangwoong Yoon and Miguel R. D. Rodrigues},
  title = {{Rethinking Knowledge Distillation for Diffusion Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=RwFzh7uPPD},
}
Figure