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

ES-dLLM:通过早期跳过实现扩散大语言模型的高效推理

ES-dLLM: Efficient Inference for Diffusion Large Language Models by Early-Skipping

Zijian Zhu, Fei Ren, Zhanhong Tan, Kaisheng Ma

AI总结:

ES-dLLM通过早期跳过技术提升扩散大语言模型的推理效率,实现高达16.8倍的加速效果。

摘要:

扩散大语言模型(dLLMs)正逐渐成为自回归模型(ARMs)的有前途的替代品,因为它们能够捕捉双向上下文并具有并行生成的潜力。尽管有这些优势,dLLM的推理仍然计算成本很高,因为每次迭代都要处理完整的输入上下文。在本工作中,我们分析了dLLM的生成动态,并发现中间表示,包括键、值和隐藏状态,在连续迭代中变化非常微妙。利用这一见解,我们提出了ES-dLLM,一种针对dLLM的无训练推理加速框架,通过根据估计的重要性跳过早期层中的token来减少计算量。token的重要性通过中间张量变化和先前迭代的置信度分数来计算。在LLaDA-8B和Dream-7B上的实验表明,ES-dLLM在NVIDIA H200 GPU上实现了高达226.57和308.51 tokens per second(TPS)的吞吐量,分别比传统实现快5.6倍至16.8倍,并且比最先进的缓存方法快高达1.85倍,同时保持生成质量。

英文摘要:

Diffusion large language models (dLLMs) are emerging as a promising alternative to autoregressive models (ARMs) due to their ability to capture bidirectional context and the potential for parallel generation. Despite the advantages, dLLM inference remains computationally expensive as the full input context is processed at every iteration. In this work, we analyze the generation dynamics of dLLMs and find that intermediate representations, including key, value, and hidden states, change only subtly across successive iterations. Leveraging this insight, we propose \textbf{ES-dLLM}, a training-free inference acceleration framework for dLLM that reduces computation by skipping tokens in early layers based on the estimated importance. Token importance is computed with intermediate tensor variation and confidence scores of previous iterations. Experiments on LLaDA-8B and Dream-7B demonstrate that ES-dLLM achieves throughput of up to 226.57 and 308.51 tokens per second (TPS), respectively, on an NVIDIA H200 GPU, delivering 5.6$\times$ to 16.8$\times$ speedup over the vanilla implementation and up to 1.85$\times$ over the state-of-the-art caching method, while preserving generation quality.

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

↑