The Surprising Effectiveness of Shared Memory in Looped Transformers
Summary
Looped Transformers add compute without parameters by re-applying the same layers, but each recursion writes its own KV cache, so memory grows with compute. This paper pretrains looped models to share memory instead: only the first recursion writes a cache; later recursions read it while keeping a short window of their own. Sharing memory does not cost quality — it improves it. At 150M-1B parameters, the Looped Prediction Transformer (LPT) and its hybrid variant set a new quality-memory frontier for looped models: with five recursions, the hybrid lowers FineWeb-Edu validation perplexity by 1.12-1.82 vs a same-size standard Transformer while using 76-79% less context memory. Analysis: shared and local memory develop different representations, later recursions attend mostly to the shared memory, which also acts as a gradient highway to the first recursion.
- Venue
- arXiv 2610.02383 [cs.LG/cs.AI], submitted 1 Oct 2026, preprint
- Source
- x
- Access
- free
- Language
- en
- Added
- Oct 5, 2026
- Verified
- Nov 1, 2026
- Found via
- #random-papers
Tags
Topics
looped transformers, KV cache, shared memory, parameter efficiency, pretraining
Research notes
- Discovery: @arXivBangers 'Certified Banger' share 2026-10-05 2:11 AM ET (https://x.com/arXivBangers/status/2106990575883096532), 2.3K views (post linked an arxivb.org mirror; canonical arXiv 2610.02383)
- Cornell University / IBM Research
- Reservation (per curator): gains demonstrated on pretraining perplexity up to 1B params on FineWeb-Edu; downstream benchmarks remain to be checked
- Related: looped-models cluster (670, 952, 1545, 1548, 1549, 1551, 1566, 1579, 1581, 1582)
- Author share: @giomonea (Giovanni Monea, Cornell ML PhD) 2026-10-06 12:00 PM ET (https://x.com/giomonea/status/2107501324409688228), ~3.6K views / 64 likes / 46 bookmarks: "Stop pretraining your looped Transformer with a separate KV cache per recursion! ... memory sharing not only saves memory but is also a net-positive inductive bias! Less memory, same flops, higher quality."
- Discovery chains: @askalphaxiv re-share 2026-10-10 ~2:45 AM ET (~15K views, 276 likes, 253 bookmarks); @askalphaxiv re-share 2026-10-29 02:53 ET (4,979 views, 77 likes, 50 bookmarks, 11 replies; link via alphaxiv.org/abs/2610.02383). Technical detail not yet in 1563: the KV-memory formula L·[T+(R−1)·ω]; the FlexAttention block-mask implementation; plain lt plateauing after three recursions vs lpt improving through five; and the ~3–3.5× inference-compute trade (Table 1: 2.98–4.34× FLOPs). Re-share replies: @KissonL — shared cache helps batch eval far more than latency-sensitive serving; @hanminwang3 — the detach ablation (cutting gradients through shared KV collapses deep runs) is the convincing part, skeptical past 1B/4K context, and cites ~4.3–4.8× decode FLOPs vs a standard Transformer (reply figure; the paper's own Table 1 range is 2.98–4.34×). Refresh date_verified on 1563.
Similar entries
- Paper How Model Growth, Recursion, and Boundary Operators Influence Scaling Exponents
- Paper The State-Prediction Separation Hypothesis
- Paper Scaling Laws for Looped Mixture of Experts
- Idea KV cache as GPU-memory bottleneck in Transformer serving (GQA/MQA, quantization, sliding window)
- Paper LiFT: Loop Flow Transformers
- Paper LoopKV: Loop-Aware KV Cache Compression for Serving Looped Transformers