TL;DR
Diffusion Language Models (DLMs) generate high-quality text but are slow at inference due to their multi-step sampling. This paper introduces Inverse-Distilled Diffusion Language Models (IDLM), a method that adapts a technique from continuous diffusion models to the discrete text domain. IDLM significantly speeds up text generation (4x-64x fewer steps) while maintaining the quality and diversity of the original, slower models.
What Problem Does This Paper Address?
Large language models based on diffusion processes (DLMs) have shown impressive results in text generation. However, a major hurdle for their practical deployment is their slow inference speed. This is because generating text requires a lengthy, iterative process of "denoising" a sequence over hundreds or even thousands of steps. This paper aims to bridge this gap by making DLMs faster without sacrificing their generation quality.
Methods
The core contribution is extending Inverse Distillation to the discrete domain of language models. Inverse Distillation, previously successful for continuous diffusion models, works by training a "student" model to approximate the target data distribution such that a fixed "teacher" diffusion model would be optimal for the student's distribution.
The authors tackle two main challenges in applying this to discrete text:
- Theoretical Uniqueness: The inverse distillation objective in the discrete setting might not have a unique solution, potentially leading to suboptimal results. The paper provides a theoretical guarantee that their formulation does admit a unique solution, ensuring valid optimization.
- Practical Stability: Backpropagation through discrete choices (like selecting a word) is inherently unstable. To address this, they introduce gradient-stable relaxations, allowing the generator to output probabilities over tokens (a simplex) during training, rather than hard one-hot choices. This enables smoother gradient flow.
They also detail specific adaptations for different DLM types, like masked diffusion (where tokens are replaced by a special mask) and uniform diffusion (where tokens are corrupted towards a uniform distribution).
Datasets
The experiments were conducted on:
- OpenWebText: A large-scale dataset for unconditional text generation.
- TinyGSM: A dataset for conditional text generation, specifically mathematical reasoning problems.
Key Insights and Ideas
- Inverse Distillation is Key: The paper demonstrates that the core idea of inverse distillation, which was successful in continuous domains, can be effectively adapted to discrete language generation. This opens up a new avenue for accelerating DLMs.
- Discrete Challenges are Solvable: The theoretical and practical challenges of applying inverse distillation to discrete data (non-uniqueness and non-differentiability) are addressed through theoretical guarantees and novel relaxation techniques.
- Efficiency Gains are Significant: The method achieves substantial speedups (4x-64x) without a noticeable drop in generation quality, making DLMs much more practical for real-world applications.
- Masked Diffusion Simplifies Things: The "masked diffusion" process, where tokens are replaced by a mask, offers a particularly clean signal for inverse distillation due to its "mask-only cancellation" property. This simplifies the training objective.
Key Results
- Speedup: IDLM reduces inference steps by 4x to 64x compared to teacher models.
- Quality Preservation: The method preserves generation quality (measured by GenPPL) and diversity (measured by Entropy) comparable to the original, slow teacher models.
- MDLM Distillation: IDLM-MDLM achieved a 64x acceleration (1024 steps to 16 steps) while maintaining quality.
- Duo Distillation: IDLM-Duo achieved a 16x acceleration (1024 steps to 64 steps) with comparable results.
- Conditional Generation: On the TinyGSM dataset, IDLM-MDLM reached teacher-level accuracy with an 8x reduction in sampling steps, and IDLM-Duo achieved a 16x reduction.
Limitations and Future Work
- Model Scale: The experiments were conducted on relatively small DLMs (169M parameters). The authors suggest testing IDLM on larger models (like LLaDA) and standardized downstream benchmarks to see if the gains persist.
- Factorized Sequence Loss: The theoretical proofs cover one-token and ideal full-sequence objectives. The practical, factorized sequence-level loss used in experiments is not formally analyzed, which is suggested as a direction for future research.
- Further Exploration: The paper mentions that for uniform diffusion, the DMD-like stop-gradient variant shows different behavior than the full IDLM update, suggesting that the pathwise gradient through intermediate states is empirically important. Further investigation into this could be beneficial.
Summary updated