Abstract
Diffusion large language models (DLLMs) have the potential to enable fast text generation by decoding multiple tokens in parallel. However, in practice, their inference efficiency is constrained by the need for many refinement steps, while aggressively reducing the number of steps leads to a substantial degradation in generation quality. To alleviate this, we propose a trajectory self-distillation framework that improves few-step decoding by distilling the model's own generative trajectories. We incorporate Direct Discriminative Optimization (DDO), a reverse-KL objective that promotes mode-seeking distillation and encourages the student to concentrate on high-probability teacher modes. Across benchmarks, our approach consistently outperforms strong few-step baselines and standard training under tight step budgets. Although full-step decoding remains superior, we substantially narrow the gap, establishing a strong foundation towards practical few-step DLLMs. The source code is available at https://github.com/Tyrion58/T3D.
Introduction
Standard autoregressive Large Language Models (LLMs) generate text sequentially, token by token, which creates a significant bottleneck for inference speed. Diffusion Large Language Models (DLLMs) offer a promising alternative by enabling parallel token generation. However, achieving high-quality output typically requires a large number of iterative refinement steps. When the step budget is reduced to improve speed, performance often collapses due to factorization errors—where tokens are incorrectly assumed to be independent during large leaps—and a distribution shift between training (random masking) and inference (heuristic-based unmasking).
To address these challenges, we introduce T3D (Trajectory Self-Distillation via DDO). T3D is a framework designed to train few-step student models by distilling the actual generative trajectories of a full-step teacher model, ensuring the student learns from the exact states it will encounter during inference.
The T3D Framework
The T3D approach is built on three core technical pillars:
- Trajectory Self-Distillation: Unlike standard training that uses randomly masked text, T3D utilizes "on-policy" data. It trains the student model on the intermediate rollout trajectories generated by a teacher model. This eliminates the train-test mismatch by aligning the training distribution with the inference-time decoding process.
- Direct Discriminative Optimization (DDO): Traditional distillation often employs forward-KL divergence, which can lead to over-smoothed or "blurry" results in multimodal settings. T3D utilizes DDO, a reverse-KL style objective inspired by GANs. This encourages mode-seeking behavior, where the student model learns to confidently select high-probability modes from the teacher's distribution rather than averaging across multiple possibilities.
- Path Consistency Regularization: To mitigate cascading errors in block-wise parallel decoding, T3D implements a reweighting scheme. This scheme prioritizes accuracy on early-decoded tokens within a block, as errors in these positions are more likely to degrade the quality of subsequent tokens.
Experimental Results
We evaluated T3D using the SDAR family of block-based diffusion models (SDAR-1.7B-Chat and SDAR-4B-Chat) across rigorous benchmarks including GSM8K, MATH500, MBPP, and HumanEval.
Performance in Fixed Step Regimes
T3D demonstrates significant improvements under tight step budgets. As shown in the comprehensive evaluation table below, T3D consistently outperforms baselines like ReDi and dParallel. For the SDAR-4B-Chat model with a block size of 4, T3D achieved a 124.79% improvement in average accuracy over the original model, reaching 22.27% compared to the ReDi baseline's 13.47%.
Efficiency and Dynamic Decoding
Beyond fixed budgets, T3D excels in dynamic decoding scenarios where the model adaptively chooses the number of tokens to decode per step based on confidence. In these settings, T3D not only improves accuracy but also significantly boosts throughput (Tokens Per Second, TPS). For instance, on the MATH500 benchmark, T3D increased throughput to 791.23 TPS (from the original 657.72 TPS) while simultaneously raising accuracy from 39.00% to 49.40%.
Conclusion
T3D represents a significant step toward making Diffusion LLMs practical for real-world applications. By combining on-policy trajectory distillation with a mode-seeking DDO objective, we have substantially narrowed the performance gap between fast, few-step decoding and high-quality, full-step refinement. While full-step decoding remains the gold standard for quality, T3D provides a robust foundation for ultra-fast, parallel text generation without the catastrophic quality loss seen in previous few-step methods.
Summary updated