LoopSpec
LoopSpec is a training-free, self-speculative decoding framework for Looped Transformers. An early recurrent state drafts a token and starts computing its continuation while the original branch continues toward verification. Because every depth uses the same recurrent block, active branches can advance together in one batch.
A deeper residual second proposal with a gating mechanism provides a recovery path when the early draft is wrong. Verification keeps the accepted continuation and prunes incompatible branches, preserving the target model’s output distribution.
Decoding demo: Looped Transformer and LoopSpec
The Capital of France isTarget continuation: Paris and it…
Ready to decode
Speedups relative to autoregressive decoding
Results across benchmarks, models, and decoding settings.
How LoopSpec Works
LoopSpec uses intermediate recurrent states to draft future tokens, without an additional draft model or training. Each draft starts a speculative continuation while its parent branch continues toward full-depth verification. These branches share the same recurrent block and advance together in a batched forward pass.
A residual second proposal with gating mechanism provides a fallback for the first proposal. We sample the second proposal from the residual distribution between the distribution of first proposal depth and second proposal depth, instead of directly sample from the second proposal depth distribution. The gating mechanism creates the additional branch only when confidence in the first proposal drops, reducing the number of active branches and their computational cost.
At full depth, LoopSpec verifies the first proposal and, if needed, the second. It accepts the draft token with standard rejection sampling. This preserves the target model’s output distribution while keeping computation already performed for future tokens.
Citation
@misc{cho2026loopspecpipelinedselfspeculativedecoding,
title={LoopSpec: Pipelined Self-Speculative Decoding for Looped Transformers},
author={SangLyul Cho and Langqing Cui and Sehoon Kim and Dongsu Han and Insu Han},
year={2026},
eprint={2609.17184},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2609.17184}
}