Few-Step Diffusion Language Models via Trajectory Self-Distillation

Tunyu Zhang, Xinxi Zhang, Ligong Han, Haizhou Shi, Xiaoxiao He, Zhuowei Li, Hao Wang, Kai Xu, Akash Srivastava, Chengzhi Mao, Vladimir Pavlovic, Dimitris N. MetaxasNeurIPS 2026

TL;DR

Diffusion large language models promise ultra-fast text generation by spitting out multiple tokens in parallel, yet skipping steps usually turns their output into gibberish—like getting 3 + 1 = 2—because independent token guesses clash with each other. This paper introduces T3D, a self-distillation framework that teaches a model to take giant, accurate leaps by watching its own step-by-step intermediate thought process rather than just copying the final answer. The result is crisp, fast mathematical reasoning and code generation in a fraction of the steps, without giving the model amnesia about how to take its time when needed.

What Problem Does This Paper Address?

Standard autoregressive LLMs generate text one agonizing token at a time. Diffusion Large Language Models (DLLMs)—specifically Masked Diffusion Language Models (MDLMs)—flip the script: they start with a sequence of [MASK] tokens and iteratively unmask them in parallel.

In theory, this means massive speedups. In practice, there is a catch: token factorization error. To keep the math tractable, MDLMs predict each unmasked token independently of the others being unmasked in that exact same step. If you take tiny steps (unmasking one token at a time), this works fine. But if you get greedy and unmask four or eight tokens simultaneously to save time, the tokens can't coordinate. One slot guesses 3, another guesses 2 in x + 1 = y, and suddenly your model writes 3 + 1 = 2.

Prior attempts to compress steps used image-style distillation—training a fast "student" to jump straight from pure noise to the teacher's final output. In discrete text, however, the starting point isn't random Gaussian noise; it's a deterministic wall of [MASK] tokens. Supervising only the final endpoint tells the student nothing about how tokens depend on each other along the way.

Methods

To fix this coordination problem, the authors propose T3D (Trajectory self-Distillation via DDO), combining three distinct ideas:

  1. Trajectory Self-Distillation (New to MDLMs): Instead of just showing the student the final clean text ($x_0$) paired with a fully masked sequence ($x_T$), the authors roll out the full-step pretrained model (the teacher) and record its entire intermediate unmasking trajectory. The student is trained to predict the clean endpoint from intermediate partially-masked states ($x_t$), directly exposing it to the teacher's step-by-step prediction structure.
  2. Direct Discriminative Optimization / DDO (Adapted Objective): Standard distillation uses forward KL divergence, which is "mode-covering"—it tries to average over all plausible answers, leading to blurry, over-smoothed predictions that ruin math and coding logic. T3D swaps this for DDO, a GAN-inspired, discriminator-free objective that uses log-likelihood ratios to act like reverse KL. It is "mode-seeking," forcing the student to lock onto sharp, high-probability reasoning paths.
  3. Path-Consistency Regularization (Novel Tweak): If a model makes a mistake on the very first token it unmasks, that error cascades through the rest of the compressed steps. The authors add a simple step-dependent weighting term that penalizes errors on early-decoded tokens much more heavily than late-decoded ones.

Datasets

No new benchmarks were introduced.

  • Training (Trajectory Collection): MATH (for mathematical reasoning) and PrimeIntellect (for code generation).
  • Evaluation: MATH500, GSM8K (grade-school math), MBPP, and HumanEval (Python coding benchmarks).

Key Insights and Ideas

  • Why image distillation breaks on text: In continuous image diffusion (like Rectified Flow), mapping noise-to-image straightens out trajectories. The authors prove mathematically (Corollary 4.2) that because an MDLM's fully masked prior is deterministic, endpoint-only distillation leaves the conditional total correlation (factorization error) completely untouched—it's a fixed constant of the data! You must supervise intermediate states to shrink factorization error.
  • Explore early, lock in late: Tracking prediction entropy reveals why DDO beats standard KL divergence on reasoning tasks. At the fully masked starting line, DDO actually maintains higher entropy (allowing broad initial exploration), and then drops to much lower entropy in subsequent steps (sharply refining around a single coherent logic chain).
  • Zero "diffusion forgetting": Usually, distilling a diffusion model for 2-step generation ruins its ability to do 32-step generation. Because T3D trains across the whole trajectory, the distilled model retains—and occasionally improves upon—its original full-step, one-token-at-a-time accuracy.

Key Results

The authors tested T3D on block-diffusion models (SDAR-1.7B-Chat and SDAR-4B-Chat) and a full-diffusion model (LLaDA-8B-Instruct), measuring aggressiveness by Tokens Per Step (TokPS).

  • Aggressive Few-Step Gains: On SDAR-4B-Chat at an aggressive 4 TokPS (e.g., decoding an 8-token block in just 2 steps), the base model's average accuracy collapses to 21.43%. T3D brings it up to 39.66% (an 85% relative gain), handily beating prior distillation methods like ReDi (21.57%) and dParallel (29.80%).
Table 1: Few-step accuracy comparison across baselines on SDAR-1.7B-Chat and SDAR-4B- Chat [8]. Few-step performance is evaluated using tokens-per-step (TokPS): for example, Block Size= 4 and TokPS= 2 means decoding uses blocks of 4 tokens while generating 2 tokens per diffusion step, resulting in 4/2 = 2 diffusion steps per block. SD means Self-Distillation methods. T3D is consistently among the strongest methods, demonstrating the effectiveness of trajectory- level distillation for few-step generation.
  • Scaling to Full Diffusion: On LLaDA-8B-Instruct at 8 TokPS, the base model averages 27.96% across reasoning and code extraction. T3D more than doubles this to 63.93% (+128.66% relative gain).
Table 2: Few-step accuracy comparison on LLaDA. Following the same protocol as Table 1, we compare T3D with existing few-step decoding and self-distillation baselines under different TokPS settings. T3D achieves the best average accuracy/extraction at both TokPS = 4 and TokPS = 8.
  • Preserving Full-Step Quality: When reverted to standard 1-token-per-step decoding without retraining, dParallel collapses on GSM8K (dropping from 89.84% to 2.88% on SDAR-4B), whereas T3D scores 89.31%, and even beats the original model on MATH500 (70.00% vs. 68.00%).
Table 3: Preserving diffusion performance under full decoding. We revert few-step distilled mod- els to full diffusion decoding using static decoding (one token per step) without additional training. Re- sults are reported under block size 4 and 4 steps per block, showing that T3D preserves diffusion perfor- mance. Bold numbers denote the best result among self-distillation methods.
  • Dynamic Decoding Speedup: When plugged into a confidence-based adaptive decoder on GSM8K, T3D runs 1.45× faster (throughput in tokens/sec) than the original SDAR-4B model while simultaneously boosting accuracy by +10.8%.

Limitations and Future Work

The authors candidly note two main bottlenecks:

  1. The Teacher Ceiling: Because T3D is a self-distillation method, the student is fundamentally bounded by the capabilities and blind spots of the pretrained teacher.
  2. Offline Rollout Tax: Collecting full step-by-step teacher trajectories isn't free—it requires running full-step inference across the training dataset beforehand, creating an upfront compute cost that scales with dataset size and decoding length. Future directions aren't explicitly mapped out, though bypassing this offline rollout bottleneck is the natural next frontier.

Summary updated

Abstract

Diffusion large language models (DLLMs) have emerged as powerful generative models with the promise of fast text generation through parallel decoding. However, realizing this potential in practice remains challenging: reducing the number of decoding steps, typically causes a substantial degradation in output quality due to token factorization error. To alleviate this, we propose a self-distillation framework that trains a few-step student to match the \emph{generative trajectory} of a full-step teacher. We theoretically and empirically show that trajectory-level supervision mitigates this factorization error, thereby enabling effective few-step decoding. We further incorporate Direct Discriminative Optimization (DDO), a reverse-KL objective that encourages mode-seeking toward the teacher’s modes, yielding stronger performance on challenging reasoning tasks. Across reasoning and code-generation benchmarks, our method substantially narrows the gap between few-step and full-step decoding.
BibTeX
@inproceedings{zhang2026few,
  author = {Tunyu Zhang and Xinxi Zhang and Ligong Han and Haizhou Shi and Xiaoxiao He and Zhuowei Li and Hao Wang and Kai Xu and Akash Srivastava and Chengzhi Mao and Hao Wang and Vladimir Pavlovic and Dimitris N. Metaxas},
  title = {{Few-Step Diffusion Language Models via Trajectory Self-Distillation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=bJzsxLzKK7},
}
Figure