TL;DR
Diffusion language models promise fast parallel text generation but suffer from severe quality degradation when forced to decode in just a few steps. This paper introduces T3D, a trajectory self-distillation framework that trains a student model to mimic the full intermediate generation path of a teacher model using Direct Discriminative Optimization (DDO). T3D drastically narrows the performance gap between few-step and full-step decoding on complex reasoning and coding tasks while maintaining high inference speeds.
What Problem Does This Paper Address?
Diffusion Large Language Models (DLLMs) generate text by iteratively refining a sequence of tokens in parallel, offering a promising alternative to the token-by-token bottleneck of standard autoregressive models. However, to achieve high-quality outputs, current DLLMs require long decoding chains consisting of many diffusion steps.
When researchers try to accelerate inference by reducing the number of steps (few-step decoding), the output quality drops drastically. The core culprit is token factorization error. During a single decoding step, the model assumes tokens are conditionally independent given the previous state (a mean-field approximation).
As shown in Figure 1, when the step size increases to force more parallel token predictions, this independence assumption fails because tokens actually depend heavily on each other. Prior distillation methods only look at the final output (endpoint supervision), leaving these intermediate structural errors unresolved.
Methods
The authors propose Self-Trajectory Distillation via DDO (T3D), a framework designed to mitigate factorization error through three core components:
- Trajectory Self-Distillation: Instead of supervising only the final target text, T3D trains a few-step student model to match the intermediate states along the full generative trajectory of a full-step teacher model. This exposes the student to the teacher's internal prediction structure across nontrivial decoding intervals.
- Direct Discriminative Optimization (DDO): Standard distillation uses a forward-KL divergence objective, which tends to average out predictions and cause over-smoothing. T3D replaces this with DDO, a GAN-inspired, reverse-KL-like objective that implicitly optimizes likelihood ratios. This forces the student to be "mode-seeking," focusing on the teacher's highest-probability paths and yielding sharper, more precise token choices.
- Path-Consistency Regularization: Errors made early in a diffusion trajectory propagate and amplify down the line. T3D introduces a lightweight regularizer that assigns higher training weights to tokens decoded earlier in the sequence.
Datasets
The authors evaluated T3D across several demanding multi-step reasoning and code-generation benchmarks:
- MATH500 / MATH: For advanced mathematical reasoning.
- GSM8K: Grade school math word problems.
- MBPP: Mostly Basic Python Problems for code generation.
- HumanEval: Python coding tasks.
- WinoGrande: A broader NLP benchmark testing commonsense language understanding.
The framework was validated using both block-diffusion models (SDAR-1.7B-Chat and SDAR-4B-Chat) and a full-diffusion model (LLaDA-8B-Instruct).
Key Insights and Ideas
- Endpoint Supervision is Blind to Factorization Error: The authors mathematically prove that for Masked Diffusion Language Models (MDLMs), endpoint-only distillation cannot reduce conditional total correlation (the metric for factorization error) because the prior is deterministic. Intermediate trajectory supervision is mathematically required to fix the bottleneck.
- The Exploration-Exploitation Entropy Wave: DDO creates a unique entropy profile during generation. As seen in Figure 4, it maintains high entropy early on (allowing broad exploration of solution paths) but drops sharply later (enabling precise, confident refinement around teacher-preferred modes).
- Early Tokens Matter Most: Weighting early tokens higher (Path-Consistency) significantly stabilizes training, confirming that early decoding decisions are the most critical under tight step budgets.
Key Results
- Massive Few-Step Gains: Under aggressive decoding budgets, T3D dramatically outperforms prior baselines. For instance, on SDAR-4B-Chat with a block size of 8 and only 2 decoding steps, T3D achieves 45.00% accuracy on MATH500 compared to the original model's 16.80% and ReDi's 20.20%.
- Preservation of Full Decoding: Unlike other distillation methods that degrade if you revert them back to full-step decoding, T3D preserves or even slightly improves upon the original full-step model's performance (reaching 69.00% on MATH500 vs the original 68.00%).
- Dynamic Decoding Boost: When paired with adaptive/dynamic decoding strategies that adjust step sizes based on confidence, T3D achieves a 1.45x speedup on GSM8K while simultaneously boosting absolute accuracy by +10.8% over the baseline model.
Limitations and Future Work
- Bounded by Teacher Quality: As a self-distillation method, the student's performance ceiling is fundamentally limited by the capabilities and correctness of the full-step teacher model.
- High Offline Compute Cost: Collecting full-step teacher rollouts to build the trajectory dataset incurs a significant offline computational overhead that scales with the dataset size and decoding budget.
Summary updated