arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.07568cs.LGcs.AI
收藏

d3LLM:基于伪轨迹蒸馏的超快扩散大语言模型

d3LLM: Ultra-Fast Diffusion LLM using Pseudo-Trajectory Distillation

University of California, San Diego(加州大学圣地亚哥分校);School of Artificial Intelligence, Nanjing University(南京大学人工智能学院);National Key Laboratory for Novel Software Technology, Nanjing University(南京大学新型软件技术国家实验室);Shanghai Jiao Tong University(上海交通大学)

Yu-Yang Qian, Junda Su, Lanxiang Hu, Peiyuan Zhang, Zhijie Deng, Peng Zhao, Hao Zhang

AI总结:

d3LLM通过伪轨迹蒸馏和熵基多块解码技术,在提升并行性的同时保持准确性,实现超快的扩散大语言模型。

摘要:

扩散大语言模型(dLLMs)相比自回归(AR)大语言模型具有更广泛的能力,例如并行解码和随机顺序生成。然而,实际实现这些优势并不容易,因为dLLMs本质上面临准确性和并行性之间的权衡。尽管关注度不断提高,现有方法通常只关注其中一方面,要么追求效率,要么追求性能。为了解决这一限制,我们提出了d3LLM(伪蒸馏扩散大语言模型),在准确性和并行性之间取得平衡:(i)在训练过程中,我们引入伪轨迹蒸馏,教导模型在早期步骤中哪些token可以被自信地解码,从而提高并行性;(ii)在推理过程中,我们采用基于熵的多块解码,并结合KV缓存刷新机制,以实现高并行性的同时保持准确性。为了更好地评估dLLMs,我们还引入了AUP(并行性下的准确性),一个联合衡量准确性和并行性的新指标。实验表明,我们的d3LLM在vanilla LLaDA/Dream模型上实现了高达10倍的加速,在AR模型上实现了5倍的加速,而准确性下降不大。我们的代码可在https://github.com/hao-ai-lab/d3LLM上获取。

英文摘要:

Diffusion large language models (dLLMs) offer capabilities beyond those of autoregressive (AR) LLMs, such as parallel decoding and random-order generation. However, realizing these benefits in practice is non-trivial, as dLLMs inherently face an accuracy-parallelism trade-off. Despite increasing interest, existing methods typically focus on only one-side of the coin, targeting either efficiency or accuracy. To address this limitation, we propose d3LLM (Pseudo-Distilled Diffusion Large Language Model), striking a balance between accuracy and parallelism: (i) during training, we introduce pseudo-trajectory distillation to teach the model which tokens can be decoded confidently at early steps, thereby improving parallelism; (ii) during inference, we employ entropy-based multi-block decoding with a KV-cache refresh mechanism to achieve high parallelism while maintaining accuracy. To better evaluate dLLMs, we also introduce AUP (Accuracy Under Parallelism), a new metric that jointly measures accuracy and parallelism. Experiments demonstrate that our d3LLM achieves up to 10$\times$ speedup over vanilla LLaDA/Dream, and 5$\times$ speedup over AR models without much accuracy drop. Our code is available at https://github.com/hao-ai-lab/d3LLM.

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

↑