arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.05992cs.CL
收藏

DSB: 扩散语言模型的动态滑动块调度

DSB: Dynamic Sliding Block Scheduling for Diffusion LLMs

Nanyang Technological University(南洋理工大学)

Lizhuo Luo, Shenggui Li, Yonggang Wen, Tianwei Zhang

AI总结:

针对扩散语言模型固定块调度忽视语义难度的问题,提出无训练的动态滑动块方法DSB及配套KV缓存机制DSB Cache,显著提升生成质量和推理效率。

摘要:

扩散大语言模型(dLLMs)已成为文本生成的一种有前景的替代方案,其特点在于原生支持并行解码。在实践中,块推理对于避免全局双向解码中的顺序错乱以及提高输出质量至关重要。然而,广泛使用的固定、预定义块(朴素)调度忽略了语义难度,使其在质量和效率上均非最优策略:它可能迫使模型对不确定的位置过早做出承诺,同时延迟块边界附近的简单位置。在这项工作中,我们分析了朴素块调度的局限性,并揭示了根据语义难度动态调整调度对于可靠高效推理的重要性。受此启发,我们提出了动态滑动块(DSB),一种无训练的块调度方法,它使用动态大小的滑动块来克服朴素块的刚性。为了进一步提高效率,我们引入了DSB Cache,一种针对DSB量身定制的无训练KV缓存机制。跨多个模型和基准的大量实验表明,DSB与DSB Cache一起,持续提升了dLLMs的生成质量和推理效率。代码已发布在 https://this https URL。

英文摘要:

Diffusion large language models (dLLMs) have emerged as a promising alternative for text generation, distinguished by their native support for parallel decoding. In practice, block inference is crucial for avoiding order misalignment in global bidirectional decoding and improving output quality. However, the widely-used fixed, predefined block (naive) schedule is agnostic to semantic difficulty, making it a suboptimal strategy for both quality and efficiency: it can force premature commitments to uncertain positions while delaying easy positions near block boundaries. In this work, we analyze the limitations of naive block scheduling and disclose the importance of dynamically adapting the schedule to semantic difficulty for reliable and efficient inference. Motivated by this, we propose Dynamic Sliding Block (DSB), a training-free block scheduling method that uses a sliding block with a dynamic size to overcome the rigidity of the naive block. To further improve efficiency, we introduce DSB Cache, a training-free KV-cache mechanism tailored to DSB. Extensive experiments across multiple models and benchmarks demonstrate that DSB, together with DSB Cache, consistently improves both generation quality and inference efficiency for dLLMs. Code is released at https://github.com/lizhuo-luo/DSB.

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

↑