arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2509.01083cs.DCcs.AIcs.ITmath.IT
收藏

DSDE: 面向真实场景服务的具备KLD稳定性的动态投机解码

DSDE: Dynamic Speculative Decoding with KLD Stability for Real-World Serving

Cloud Research Team, Samsung SDS(三星SDS云研究团队)

Mingyu Yang, Jae-Young Choi, Kihyo Moon, Minsung Jang, Eunjoo Jeon

AI总结:

针对固定投机长度在大批量多样请求服务中表现不佳的问题,提出无需训练的DSDE框架,利用KLD方差信号动态调整投机长度上限,实现了与主流基线相当的延迟和更优的鲁棒性。

摘要:

投机解码可加速大语言模型推理,但它依赖固定的投机长度,在请求多样的大批量服务环境中表现欠佳。本文通过探究一类新型的事后诊断信号,探索了动态自适应的新方向。我们提出动态投机解码引擎(Dynamic Speculative Decoding Engine, DSDE)——一个无需训练的框架,它基于两个核心组件:(1)基于库尔贝克-莱布勒散度(KLD)方差的预测信号,用于诊断生成过程的区域稳定性;(2)自适应投机长度上限,用于缓解逐序列解码中的掉队者问题。实验证明了使用基于KLD的稳定性信号实现动态自适应的潜力。由这些信号引导的算法实现了与主流基线相当的端到端延迟,并且在多样工作负载下展现出更优的鲁棒性。这种鲁棒性在具有挑战性的低接受率场景中尤为宝贵,此时所提出的信号仍能保持其诊断效用。总的来说,这些发现验证了事后信号是构建更鲁棒、更智能的大语言模型推理系统的重要组成部分,并为动态投机长度自适应的未来研究指明了一个有前景的方向。

英文摘要:

Speculative decoding accelerates large language model inference, but its reliance on a fixed speculation length is suboptimal in large-batch serving environments with diverse requests. This paper explores a new direction for dynamic adaptation by investigating a novel class of post-hoc, diagnostic signals. We propose Dynamic Speculative Decoding Engine (DSDE), a training-free framework built on two primary components: (1) a predictive signal based on the variance of the Kullback-Leibler (KLD) divergence, which diagnoses the generation's regional stability, and (2) an adaptive speculation length cap to mitigate the straggler problem in per-sequence decoding. Experiments demonstrate the potential of using KLD-based stability signals for dynamic adaptation. An algorithm guided by these signals achieves end-to-end latency competitive with leading baselines and exhibits superior robustness across diverse workloads. This robustness is particularly valuable in challenging low-acceptance-rate regimes, where the proposed signal maintains its diagnostic utility. Collectively, these findings validate post-hoc signals as a valuable component for building more robust and intelligent LLM inference systems, and highlight a promising direction for future research on dynamic speculation length adaptation.

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

↑