arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2512.11718cs.CL
收藏

投机解码速度光速:通过分支随机游走建立最优下界

Speculative Decoding Speed-of-Light: Optimal Lower Bounds via Branching Random Walks

ISTA;Red Hat AI(红帽AI)

Sergey Pankratov, Dan Alistarh

AI总结:

通过分支随机游走分析,研究确定了投机解码算法的最优运行时间下界,并通过实验验证了理论结果的实用性。

摘要:

投机生成已成为一种有前景的技术,用于通过利用并行性同时验证多个草稿标记来加速大型语言模型(LLMs)的推理。然而,可实现加速的基本限制仍然理解不足。在本工作中,我们建立了任何确定性投机生成算法运行时间的第一个“紧”下界。这通过将标记生成过程与分支随机游走进行类比,从而允许我们分析最优草稿树选择问题。我们证明,在基本假设下,每次投机迭代中成功预测的标记数的期望值被限制为$\mathbb{E}[X] \leq (μ+ μ_{(2)})\log(P )/μ^2 + O(1)$,其中$P$是验证器的容量,$μ$是验证器输出分布的期望熵,$μ_{(2)}$是期望的第二对数矩。这一结果为并行标记生成的限制提供了新的见解,并可能指导未来投机解码系统的设计。在Llama模型上的实证评估验证了我们的理论预测,确认了我们的下界在实际应用中的紧致性。

英文摘要:

Speculative generation has emerged as a promising technique to accelerate inference in large language models (LLMs) by leveraging parallelism to verify multiple draft tokens simultaneously. However, the fundamental limits on the achievable speedup remain poorly understood. In this work, we establish the first ``tight'' lower bounds on the runtime of any deterministic speculative generation algorithm. This is achieved by drawing a parallel between the token generation process and branching random walks, which allows us to analyze the optimal draft tree selection problem. We prove, under basic assumptions, that the expected number of tokens successfully predicted per speculative iteration is bounded as $\mathbb{E}[X] \leq (μ+ μ_{(2)})\log(P )/μ^2 + O(1)$, where $P$ is the verifier's capacity, $μ$ is the expected entropy of the verifier's output distribution, and $μ_{(2)}$ is the expected second log-moment. This result provides new insights into the limits of parallel token generation, and could guide the design of future speculative decoding systems. Empirical evaluations on Llama models validate our theoretical predictions, confirming the tightness of our bounds in practical settings.

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

↑