How Looped Transformers Can Make Added Compute More Useful
Key point
At a matched per-token FLOP proxy, 4-loop LOOM cut 700M-model perplexity from 18.36 to 16.58 and raised average zero-shot accuracy from 38.84% to 39.53%.
Details
- In a 700M-parameter mixture-of-experts test, LOOM’s shared-weight loops used a matched per-token compute budget more effectively than activating more experts in one pass; the result is specific to this setup
- Across runs trained on 10B tokens, 4-loop LOOM matched the baseline’s per-token FLOP proxy exactly: validation perplexity fell from 18.36 to 16.58, while average zero-shot accuracy rose from 38.84% to 39.53%
- At 5 loops, perplexity was 16.54 and accuracy was 39.53%, with about 7% more compute by the proxy; a 1.7B model performed best at about 9 loops in the tested range when extra compute was allowed
- In Sudoku-Extreme, InfiLoop reached 90.9% exact accuracy at 1,872 executed layers, while TRM fell from 62.2% at 468 layers to 58.1% at 1,872
From compression to depth
- OWL (Outlier Weighed Layerwise Sparsity) varies pruning by layer based on outlier distribution; in LLaMA, later internal layers were often pruned more, but the pattern was not monotonic and the final layer could remain sensitive
- The Curse of Depth links rising residual-stream variance in Pre-LN to weaker late-layer transformations; this does not mean the output is simply the input, and layer-removal and representation analyses provide separate evidence
- Controlled tests found deeper Post-LN layers more distinct and influential, while Pre-LN representation changes tended to shrink; LayerNorm Scaling scales the normalized branch input by 1/√ℓ
- Kimi’s Attention Residuals use learned, input-dependent weights to combine earlier representations; DepthBench compared width and depth under an approximately 400M-parameter budget, with Full AttnRes and Hyper-Connections (HC) improving more consistently than standard Pre-LN variants, though costs were not fully matched
Looping and memory
- Looped Transformers repeat a shared block instead of duplicating blocks to add computation; uncontrolled residual accumulation can cause variance growth and representation drift, while a shared MoE router can repeatedly select similar experts
- LOOM summarizes past outputs with a normalized exponential moving average using fixed β=0.5, with global memory across loops and local memory reset each loop; its residual-memory state size does not grow with loop count
- Constant-size residual memory does not make total compute, KV cache, or training memory constant; LOOM’s results reflect its full recipe, including residual scaling, embedding re-injection, and loop-specific routers, not the memory alone
Later recurrent results
- In Sudoku-Extreme, TRM lost 19.7% of solutions over 36 updates after reaching an answer, while InfiLoop retained all solutions in the measured interval; InfiLoop also improved beyond 20,000 effective steps in that task, not necessarily in every task
- InfiLoop combines learned temporal decay with content-based weighting in its loop-native attention residual; its persistent aggregation memory stays the same size as loop count grows
- FlashLoop reported up to 1.64× end-to-end speedup and about 6× lower KV-cache memory without extra training, with accuracy largely preserved; proposed directions include adaptive loop allocation, parallel decoding, and joint design of pruning, quantization, and recurrent residuals
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.