arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2601.02236cs.CL
收藏

CD4LM:一致性蒸馏与自适应解码用于扩散语言模型

CD4LM: Consistency Distillation and aDaptive Decoding for Diffusion Language Models

Princeton University(普林斯顿大学);Advanced Micro Devices, Inc(先进微器件公司)

Yihao Liang, Ze Wang, Ximeng Sun, Jiang Liu, Jialian Wu, Hao Chen, Xiaodong Yu, Emad Barsoum, Zicheng Liu, Niraj K. Jha

AI总结:

CD4LM通过一致性蒸馏和自适应解码提升扩散语言模型的并行解码效率与生成质量。

摘要:

自回归大语言模型在许多基准测试中表现出色,但解码仍受到序列依赖于先前生成标记的限制。扩散语言模型(DLMs)承诺并行生成,但存在静态到动态的对齐问题:训练优化局部转换在固定调度下进行,而高效的推理需要通过未见过的状态进行自适应的“长跳”细化。我们的目标是通过低数量的功能评估实现DLMs的高并行解码,同时保持生成质量。为此,我们提出了CD4LM框架,通过离散空间一致性蒸馏(DSCD)和置信度自适应解码(CAD)将训练与推理解耦。与标准目标不同,DSCD训练学生使其轨迹不变,将多样化的噪声状态直接映射到干净的分布。这种内在的鲁棒性使CAD能够根据标记置信度动态分配计算资源,在不牺牲质量的情况下,激进地跳过步骤。在GSM8K上,CD4LM与LLaDA基线持平,实现了5.18倍的时钟时间加速;在代码和数学基准上,它严格主导了精度-效率帕累托前沿,实现了3.62倍的平均加速,同时提高了平均精度。代码可在https://github.com/yihao-liang/CDLM上获取。

英文摘要:

Diffusion language models (DLMs) accelerate generation by decoding multiple tokens in parallel, but pushing them to fast decoding often sacrifices accuracy. We attribute this to a static-to-dynamic mismatch: training optimizes local denoising under fixed schedules, while fast inference skips steps and encounters irregular mask patterns. Existing accelerators largely address only one side of this problem. Training-free inference methods speed up decoding without changing the model, leaving the mismatch unresolved; training-side distillation methods adapt the model, but often tie the student to a specific decoding trajectory, limiting composability and still suffering accuracy loss. We propose CD4LM, a composable framework for accurate DLM acceleration. Its core training component, Discrete-Space Consistency Distillation (DSCD) trains a trajectory-invariant student on diverse masked states, reducing the mismatch without fixing a decoding policy. We pair DSCD with a lightweight ConfidenceAdaptive Decoder, while keeping the trained student compatible with external inference-side accelerators. On GSM8K, CD4LM preserves accuracy while achieving a 5.18x speedup; stacking CD4LM with per-step cache accelerators further pushes speedup to 9.73x at teacher-level accuracy, suggesting a scalable path for combining training-side robustness with future decoding advances. Code is available at https://github.com/yihao-liang/CDLM.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑