mlsanityData to 14 Oct 2026

Stabilizing Extrapolation in Looped Transformers via Learned Stochastic Stopping

arXiv 2606.29983 ↗First posted 29 Jun 2026cs.LG cs.AIcited by 4

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2016Deep Networks with Stochastic Depthcited by 979
  3. 2016Adaptive Computation Time for Recurrent Neural Networkscited by 506
  4. 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 439
  5. 2025Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approachcited by 415
  6. 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 327
  7. 2019On The Power of Curriculum Learning in Training Deep Networkscited by 286
  8. 2025Reasoning with Latent Thoughts: On the Power of Looped Transformerscited by 240
  9. 2023Looped Transformers as Programmable Computerscited by 237
  10. 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 199
  11. 2025Hierarchical Reasoning Modelcited by 177
  12. 2025Scaling Latent Reasoning via Looped Language Modelscited by 165
13 more
  1. 2023Looped Transformers are Better at Learning Learning Algorithmscited by 149
  2. 2021Can You Learn an Algorithm? Generalizing from Easy to Hard Problems with Recurrent Networkscited by 117
  3. 2023Randomized Positional Encodings Boost Length Generalization of Transformerscited by 117
  4. 2024Looped Transformers for Length Generalizationcited by 99
  5. 2024Transformers Can Achieve Length Generalization But Not Robustlycited by 86
  6. 2023Generalization on the Unseen, Logic Reasoning and Degree Curriculumcited by 73
  7. 2022Path Independent Equilibrium Models Can Better Exploit Test-Time Computationcited by 38
  8. 2022End-to-end Algorithm Synthesis with Recurrent Networks: Logical Extrapolation Without Overthinkingcited by 33
  9. 2025Self-Improving Transformers Overcome Easy-to-Hard and Length Generalization Challengescited by 31
  10. 2024Position Coupling: Improving Length Generalization of Arithmetic Transformers Using Task Structurecited by 23
  11. 2024Position: Understanding LLMs Requires More Than Statistical Generalizationcited by 21
  12. 2025Extrapolation by Association: Length Generalization Transfer in Transformerscited by 13
  13. 2025On Vanishing Variance in Transformer Length Generalizationcited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 4.

4 papers.