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

Fast-dLLM v2:高效的块扩散大语言模型

Fast-dLLM v2: Efficient Block-Diffusion LLM

The University of Hong Kong(香港大学);NVIDIA(英伟达);MIT(麻省理工学院)

Chengyue Wu, Hao Zhang, Shuchen Xue, Shizhe Diao, Yonggan Fu, Zhijian Liu, Pavlo Molchanov, Ping Luo, Song Han, Enze Xie

AI总结:

针对自回归大语言模型推理效率受限的问题,提出Fast-dLLM v2块扩散模型,通过少量微调、块扩散机制与分层缓存实现2.5倍解码加速,在保持生成质量的同时达到dLLM领域最优效率。

摘要:

自回归(AR)大语言模型(LLM)已在广泛的自然语言任务中取得了卓越性能,但其固有的序列解码特性限制了推理效率。在本研究中,我们提出了Fast-dLLM v2,这是一款经过精心设计的块扩散语言模型(dLLM),能够高效地将预训练AR模型适配为可并行文本生成的dLLM,仅需约10亿个token的微调数据。与Dream这类全注意力扩散大语言模型(需5800亿个token)相比,训练数据量减少了500倍,同时保留了原始模型的性能。我们的方法提出了一种全新的训练方案,将块扩散机制与互补注意力掩码相结合,在不牺牲AR训练目标的前提下实现了分块双向上下文建模。为进一步加速解码,我们设计了分层缓存机制:块级缓存用于存储跨块的历史上下文表示,子块缓存则支持在部分解码的块内进行高效并行生成。结合我们的并行解码流水线,Fast-dLLM v2在不降低生成质量的情况下,相比标准AR解码实现了最高2.5倍的速度提升。在多个不同基准上的大量实验表明,Fast-dLLM v2在准确率上持平或超越了AR基线,同时在dLLM中达到了最优效率——这是迈向快速精准大语言模型实际部署的重要一步。代码和模型将公开发布。

英文摘要:

Autoregressive (AR) large language models (LLMs) have achieved remarkable performance across a wide range of natural language tasks, yet their inherent sequential decoding limits inference efficiency. In this work, we propose Fast-dLLM v2, a carefully designed block diffusion language model (dLLM) that efficiently adapts pretrained AR models into dLLMs for parallel text generation, requiring only approximately 1B tokens of fine-tuning. This represents a 500x reduction in training data compared to full-attention diffusion LLMs such as Dream (580B tokens), while preserving the original model's performance. Our approach introduces a novel training recipe that combines a block diffusion mechanism with a complementary attention mask, enabling blockwise bidirectional context modeling without sacrificing AR training objectives. To further accelerate decoding, we design a hierarchical caching mechanism: a block-level cache that stores historical context representations across blocks, and a sub-block cache that enables efficient parallel generation within partially decoded blocks. Coupled with our parallel decoding pipeline, Fast-dLLM v2 achieves up to 2.5x speedup over standard AR decoding without compromising generation quality. Extensive experiments across diverse benchmarks demonstrate that Fast-dLLM v2 matches or surpasses AR baselines in accuracy, while delivering state-of-the-art efficiency among dLLMs - marking a significant step toward the practical deployment of fast and accurate LLMs. Code and model will be publicly released.

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

↑