Search arXiv⌕ Search

arXiv subjects

Tinghao Dong

Publications and source records attributed to Tinghao Dong.

1 recordsLinked to original sources

Meet the Future Halfway: Foresight-Guided Speculative Decoding for Looped Transformers

Looped transformers gain effective depth through repeated use of shared layers, but sequential recurrence makes autoregressive generation expensive. Existing self-speculative pipelines overlap shallow prediction with full-depth verification, while their lookahead remains token-wise. We propose \textbf{LoopAhead}, a training-free decoding framework that uses early bonus logits to sustain longer drafts and advance them through the pipeline as blocks. An online draft automaton incorporates first-stage top-$k$ predictions before final verification completes, supplying fresh contextual candidates for compact draft trees. Shallow verification selects token sequences whose computed states advance together through the remaining loops in a block wavefront pipeline, overlapping drafting with verification. Across six models and five benchmarks, our method achieves average speedups of $3.75$--$7.97\times$ over SGLang autoregressive decoding under greedy generation. Code: https://github.com/whucs21Mzy/loopahead.

cs.AI↗