arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2612.00989cs.LGcs.AIcs.CL
收藏

推测循环:循环Transformer中推测深度的实证分析

Speculative Loop: An Empirical Analysis of Draft Depth for Loop Transformers

Alibaba Cloud Computing(阿里云计算)

Peihao Yang, Bo Gao, Teng Ma, Tinghe Zhu, Zheng Liu, Tao Ma

AI总结:

本研究针对循环Transformer的推测深度开展实证分析,提出Speculative Loop方法,经实验验证其可提升vLLM推理速度,明确了推测深度等因素对原生推测成本的影响。

摘要:

循环Transformer复用共享块以提升每token的计算量,但每次迭代都会延长自回归解码过程。本报告研究原生自推测中的推测深度:更少的循环迭代生成候选,而标准全深度验证保留目标输出分布。我们在推测循环(Speculative Loop)中记录该过程,并分析每输出token的成本。在Huginn上开展的联合循环深度与推测窗口研究显示,额外的推测迭代可保留更长前缀,同时降低吞吐量。在三个发布的检查点和四个公开基准上,使用全重计算验证、目标深度为4至32时,Huginn上的平均vLLM加速比为1.85×,Parcae为1.93×,Ouro为1.83×。我们还评估了PyTorch实现,并给出复用推测状态的充分条件。在Huginn的HumanEval和MT-Bench工作负载下,训练后的EAGLE-1推测器在深度8时比原生推测更快,尽管原生推测无需额外参数或训练即可保留更长前缀。结果明确了推测深度、推测窗口大小和工作负载如何影响原生推测的成本。

英文摘要:

Loop Transformers reuse a shared block to increase computation per token, but every iteration lengthens autoregressive decoding. This report examines draft depth in native self-speculation: fewer loop iterations produce proposals, and standard full-depth verification preserves the target output distribution. We document this procedure in Speculative Loop and analyze its cost per emitted token. Joint loop depth and draft window examinations on Huginn show that additional draft iterations can retain longer prefixes while reducing throughput. Across three released checkpoints and four public benchmarks, mean vLLM speedups are $1.85\times$ on Huginn, $1.93\times$ on Parcae, and $1.83\times$ on Ouro using full-recomputation verification, with target depths from $4$ to $32$. We also evaluate a PyTorch implementation and give a sufficient condition for reusing draft states. On Huginn's HumanEval and MT-Bench workloads, the trained EAGLE-1 drafter is faster than native drafting at depth $8$, despite the native drafter retaining longer prefixes without additional parameters or training. The results characterize how draft depth, draft window size, and workload affect the cost of native drafting.

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

↑