Peking University's LoopCache speeds LoopedTransformer inference over 10x with speculative decoding

青稞AI · wechat · 2026-11-23

A Peking University team proposes LoopCache, a self-speculative decoding framework for Looped Transformers, fixing two bottlenecks in prior work (WFD, LoopSpec): stale drafts from fixed loop depths and heavy KVCache memory traffic from batched cross-loop reads.

Three key designs: confidence-guided dynamic draft updates that replace predictions mid-loop; cyclic KVCache scheduling so each decode step reads only one full prefix cache with an exact verification path; and selective decoupling of shallow KVCache layers, where inter-loop differences are largest. Across 6 Looped models (Ouro, Huginn, Raven) on LongBench, RULER and LongReason up to 128K context, LoopCache averages 10.25x speedup over WFD, 14.56x over LoopSpec, and 5.12x/2.52x over standard AR and Draft-then-Verify decoding.

The method applies only to transformers with looped, weight-sharing structures, not general-purpose acceleration.

Original post →

More from Infra

Infra channel →