扩散大语言模型(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.
Streaming-dLLM: Accelerating Diffusion LLMs via Suffix Pruning and Dynamic Decoding
School of information(信息学院);Electronics, Beijing Institute of Technology, Beijing(电子学院,北京理工大学,北京);Department of Computer Science, City University of Hong Kong, Hong Kong(计算机科学系,香港城市大学,香港);School of Computer Science, Wuhan University, Wuhan(计算机科学学院,武汉大学,武汉);School of Economics(经济学院);Management, Communication University of China, Beijing(管理学院,中国传媒大学,北京);School of Science(科学学院);Engineering, The Chinese University of Hong Kong (Shenzhen), Shenzhen(工程学院,香港中文大学(深圳),深圳)
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(上海交通大学)
Skip-It? Theoretical Conditions for Layer Skipping in Vision-Language Models
Department of Electrical and Computer Engineering, The University of Illinois, Champaign, IL, United States(电气与计算机工程系,伊利诺伊大学香槟分校);Department of Mathematics, The University of Illinois, Champaign, IL, United States(数学系,伊利诺伊大学香槟分校);AI Innovation Institute, Stony Brook University, Stony Brook, NY, United States(人工智能创新研究所,石溪大学)
DiffuGuard: How Intrinsic Safety is Lost and Found in Diffusion Large Language Models
Beijing University of Posts and Telecommunications(北京邮电大学);National University of Singapore(新加坡国立大学);Nanyang Technological University(南洋理工大学);Tsinghua University(清华大学);The Chinese University of Hong Kong(香港中文大学);Squirrel Ai Learning(松鼠AI);Peking University(北京大学)
A rigor-matched audit of periodic-step layer skipping for efficient llm inference: conflayers versus swift, with a supplemental analysis of trained routing alternatives
QuickSilver -- Speeding up LLM Inference through Dynamic Token Halting, KV Skipping, Contextual Token Fusion, and Adaptive Matryoshka Quantization
Manipal University Jaipur(马尼帕尔大学斋浦尔分校);Vellore Institute of Technology(韦洛尔理工学院);NIT Silchar(西尔查尔国立理工学院);Harrisburg University of Science and Technology(哈里斯堡科技大学);Meta AI;Amazon AI;IISER Kolkata(加尔各答印度科学教育与研究所);BITS Pilani, Goa(比尔拉理工学院果阿分校)
Re-evaluating Confidence Remasking in Masked Diffusion Language Models
UvA-Bosch Delta Lab, University of Amsterdam(阿姆斯特丹大学UvA-Bosch Delta实验室);Bosch Center for AI(博世人工智能中心);University of Basel(巴塞尔大学);Johns Hopkins University(约翰霍普金斯大学)
What Layers When: Learning to Skip Compute in LLMs with Residual Gates
Humboldt University Berlin(洪堡大学柏林);Qualcomm-UvA Lab, University of Amsterdam(高通-乌得勒支实验室,阿姆斯特丹大学);FunAI Lab, University of Technology Nuremberg(FunAI实验室,纽伦堡技术大学)
FFN-SkipLLM: A Hidden Gem for Autoregressive Decoding with Adaptive Feed Forward Skipping
University of Texas at Austin(德克萨斯大学奥斯汀分校);Eindhoven University of Technology(埃因霍温理工大学);University of Aberdeen(阿伯丁大学);University of North Carolina at Chapel Hill(北卡罗来纳大学教堂山分校);University of Oxford(牛津大学)
You Need Multiple Exiting: Dynamic Early Exiting for Accelerating Unified Vision Language Model
North Carolina State University(北卡罗来纳州立大学);Google Research(谷歌研究院);Northeastern University(东北大学);University of Michigan(密歇根大学);The University of North Carolina at Chapel Hill(北卡罗来纳大学教堂山分校);University of Connecticut(康涅狄格大学)