CD4LM: Consistency Distillation and aDaptive Decoding for Diffusion Language Models
Yihao Liang, Ze Wang, Hao Chen, Ximeng Sun, Jialian Wu, Xiaodong Yu, Jiang Liu, Emad Barsoum, Zicheng Liu, Niraj K. Jha
TL;DR
CD$^{4}$LM tackles latency in diffusion language models by decoupling training from inference and enabling adaptive compute through two components: Discrete-Space Consistency Distillation (DSCD) and Confidence-Adaptive Decoding (CAD). DSCD trains a trajectory-robust, trajectory-invariant student by pairing a nested teacher-subset masking scheme with KL-distillation and a reconstruction objective, effectively projecting the teacher’s denoising trajectory onto the student’s reduced information set. CAD leverages the distilled student to dynamically commit high-confidence tokens within a block-diffusion framework, achieving substantial wall-clock speedups while maintaining or improving accuracy, and yielding emergent hierarchical planning (skeleton-first generation). Across code and mathematics benchmarks (notably GSM8K, HumanEval, and MBPP), CD$^{4}$LM attains a strong Pareto improvement, e.g., a mean speedup of $3.62\times$ with better average accuracy, and on GSM8K up to $5.18\times$ wall-clock acceleration, demonstrating practical impact for scalable, structured reasoning tasks. The approach preserves compatibility with existing backbones and opens avenues for dynamic-context diffusion, on-policy training, and caching integrations.
Abstract
Autoregressive large language models achieve strong results on many benchmarks, but decoding remains fundamentally latency-limited by sequential dependence on previously generated tokens. Diffusion language models (DLMs) promise parallel generation but suffer from a fundamental static-to-dynamic misalignment: Training optimizes local transitions under fixed schedules, whereas efficient inference requires adaptive "long-jump" refinements through unseen states. Our goal is to enable highly parallel decoding for DLMs with low number of function evaluations while preserving generation quality. To achieve this, we propose CD4LM, a framework that decouples training from inference via Discrete-Space Consistency Distillation (DSCD) and Confidence-Adaptive Decoding (CAD). Unlike standard objectives, DSCD trains a student to be trajectory-invariant, mapping diverse noisy states directly to the clean distribution. This intrinsic robustness enables CAD to dynamically allocate compute resources based on token confidence, aggressively skipping steps without the quality collapse typical of heuristic acceleration. On GSM8K, CD4LM matches the LLaDA baseline with a 5.18x wall-clock speedup; across code and math benchmarks, it strictly dominates the accuracy-efficiency Pareto frontier, achieving a 3.62x mean speedup while improving average accuracy. Code is available at https://github.com/yihao-liang/CDLM
