Skip to content

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

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

cs.LG

Abstract

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×1.85\times on Huginn, 1.93×1.93\times on Parcae, and 1.83×1.83\times on Ouro using full-recomputation verification, with target depths from 44 to 3232. 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 88, 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.

Create a lesson

Metadata

Categories
cs.LG, cs.AI, cs.CL
Comments
15 pages, 5 figures, 6 tables