Stabilizing Extrapolation in Looped Transformers via Learned Stochastic Stopping
Not on the map. Why?
Abstract (arXiv)
Looped Transformers, which repeatedly apply a shared transformer block, are an architecturally natural fit for variable-length algorithmic tasks. Although they can exhibit strong length generalization beyond the length of training sequences, this behavior is brittle, yielding high out-of-distribution (OOD) variance, even across well-performing in-distribution solutions. We trace this variance to the spurious correlation in simple algorithmic tasks between sequence length and number of loops. Introducing stochasticity into the number of loops during training sharply reduces OOD variance and stabilizes predictions across inference-time loop counts. To improve upon heuristic randomization schemes, we further analyze RL-Halting as a learned stochastic schedule and find that it generally improves the accuracy-stability trade-off. Across binary addition, Dyck-1, Unique Set, and Copy, learned stochastic stopping often improves this trade-off but can also stabilize a suboptimal computation. Our work suggests that "when to stop" should be treated as a training-time design choice, not merely an inference-time computation-allocation rule.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 25 of its 33 references that are in the map. First posted on arXiv 29 Jun 2026.
Builds on
25 of 33 references.
References · 25
- 2017Attention Is All You Needcited by 60,361
- 2016Deep Networks with Stochastic Depthcited by 979
- 2016Adaptive Computation Time for Recurrent Neural Networkscited by 506
- 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 439
- 2025Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approachcited by 415
- 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 327
- 2019On The Power of Curriculum Learning in Training Deep Networkscited by 286
- 2025Reasoning with Latent Thoughts: On the Power of Looped Transformerscited by 240
- 2023Looped Transformers as Programmable Computerscited by 237
- 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 199
- 2025Hierarchical Reasoning Modelcited by 177
- 2025Scaling Latent Reasoning via Looped Language Modelscited by 165
13 more
- 2023Looped Transformers are Better at Learning Learning Algorithmscited by 149
- 2021Can You Learn an Algorithm? Generalizing from Easy to Hard Problems with Recurrent Networkscited by 117
- 2023Randomized Positional Encodings Boost Length Generalization of Transformerscited by 117
- 2024Looped Transformers for Length Generalizationcited by 99
- 2024Transformers Can Achieve Length Generalization But Not Robustlycited by 86
- 2023Generalization on the Unseen, Logic Reasoning and Degree Curriculumcited by 73
- 2022Path Independent Equilibrium Models Can Better Exploit Test-Time Computationcited by 38
- 2022End-to-end Algorithm Synthesis with Recurrent Networks: Logical Extrapolation Without Overthinkingcited by 33
- 2025Self-Improving Transformers Overcome Easy-to-Hard and Length Generalization Challengescited by 31
- 2024Position Coupling: Improving Length Generalization of Arithmetic Transformers Using Task Structurecited by 23
- 2024Position: Understanding LLMs Requires More Than Statistical Generalizationcited by 21
- 2025Extrapolation by Association: Length Generalization Transfer in Transformerscited by 13
- 2025On Vanishing Variance in Transformer Length Generalizationcited by 6
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026Loop the Loopies!cited by 8
- 2026Improving Test-Time Scaling with Adaptive Looped Transformerscited by 1
- 2026Towards Looped Models Done Right, Part II: Rethinking at Fixed Pointscited by 0
- 2026Learning to Compute Is Not Learning to Retain or Reuse in Looped Transformerscited by 0
- 2026Learning to Compute Is Not Learning to Retain or Reuse in Looped Transformers14 Oct 2026
- 2026Towards Looped Models Done Right, Part II: Rethinking at Fixed Points5 Oct 2026
- 2026Improving Test-Time Scaling with Adaptive Looped Transformers28 Sep 2026
- 2026Loop the Loopies!17 Jul 2026