通过局部确定性传播加速扩散LLM推理
Accelerating Diffusion LLM Inference via Local Determinism Propagation
AI总结:
针对扩散大语言模型推理中的延迟解码问题,提出无需训练的LocalLeap策略,利用局部确定性传播实现并行解码,在保证质量的同时提升6.94倍吞吐量并大幅减少解码步骤。
摘要:
扩散大语言模型(dLLMs)代表了文本生成领域的重大进步,提供了并行令牌解码能力。然而,现有的开源实现存在质量与速度之间的权衡,阻碍了其实际部署。保守的采样策略通常每步仅解码最自信的令牌以确保质量(即贪心解码),但代价是推理效率低下,因为重复冗余的细化迭代——我们将这一现象称为延迟解码。通过对dLLM解码动态的系统分析,我们刻画了这种延迟解码行为,并提出了一种无需训练的自适应并行解码策略,名为LocalLeap,以解决这些低效问题。LocalLeap基于两个基本的经验原则:以高置信度锚点为中心的局部确定性传播,以及渐进的空间一致性衰减。通过应用这些原则,LocalLeap识别锚点,并在有界邻域内执行局部松弛的并行解码,通过提前提交已确定的令牌,在不损害输出质量的情况下,大幅减少推理步骤。在各种基准上的综合评估表明,LocalLeap实现了6.94倍的吞吐量提升,并将解码步骤减少到原始需求的仅14.2%,同时性能影响可忽略不计。源代码可在https://github.com/friedrichor/LocalLeap获取。
英文摘要:
Diffusion large language models (dLLMs) represent a significant advancement in text generation, offering parallel token decoding capabilities. However, existing open-source implementations suffer from quality-speed trade-offs that impede their practical deployment. Conservative sampling strategies typically decode only the most confident token per step to ensure quality (i.e., greedy decoding), at the cost of inference efficiency due to repeated redundant refinement iterations--a phenomenon we term delayed decoding. Through systematic analysis of dLLM decoding dynamics, we characterize this delayed decoding behavior and propose a training-free adaptive parallel decoding strategy, named LocalLeap, to address these inefficiencies. LocalLeap is built on two fundamental empirical principles: local determinism propagation centered on high-confidence anchors and progressive spatial consistency decay. By applying these principles, LocalLeap identifies anchors and performs localized relaxed parallel decoding within bounded neighborhoods, achieving substantial inference step reduction through early commitment of already-determined tokens without compromising output quality. Comprehensive evaluation on various benchmarks demonstrates that LocalLeap achieves 6.94$\times$ throughput improvements and reduces decoding steps to just 14.2\% of the original requirement, achieving these gains with negligible performance impact. The source codes are available at: https://github.com/friedrichor/LocalLeap.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。