AI models that loop the same layers over and over tend to settle into a stable repeating pattern instead of drifting off forever — why?
How do looped transformers converge to fixed points through recursion?
This explores what actually happens inside a transformer that reuses the same layers over and over (a 'looped' or recurrent-depth model), and why its internal state tends to settle into a stable pattern, a fixed point, instead of changing forever.
This explores what happens inside a transformer that runs the same block of layers repeatedly, and why its internal state eventually stops changing. The most direct answer in the collection is a little deflating and a little surprising: looping does not seem to invent a new kind of computation. When researchers looked inside looped language models, they found each recurrent layer settling onto its own fixed point, so the model as a whole traces a stable repeating cycle. What gets repeated is the familiar sequence of stages an ordinary feedforward transformer goes through, re-enacted on each pass, and this pattern appears without anyone training for it How do looped language models actually improve reasoning in depth?. Note that the 'fixed point' here is a stable orbit across layers rather than one frozen state.
Why would that be useful? Because an ordinary transformer has a fixed number of layers, and any state it is tracking has to be pushed deeper with each step until depth runs out. Chain-of-thought is one way around this: write the intermediate state out as tokens and read it back in, which works but is expensive Why do transformers need explicit chain-of-thought reasoning?. Looping is the other way around it: keep the state internal and pass it through the same weights again. Sharing weights across passes also appears to push the model toward learning a reusable step instead of a pile of memorized cases. Recurrent-depth transformers can combine facts in ways they never saw in training and keep working at more iterations than they were trained on, arriving there through a sharp memorize-then-generalize progression Can looped transformers generalize to unseen knowledge combinations?. That contrasts with the finding that standard transformers often solve compositional tasks by matching memorized fragments of computation, with errors compounding step by step Do transformers actually learn systematic compositional reasoning?.
Convergence is also practically useful as a signal. If the state has stopped moving, further passes will not change the answer, so the model can stop. One line of work uses exactly this as the stopping rule and finds it lands closer to the point where accuracy stops improving than a learned 'halt' token does, with no special training regime needed Can fixed points replace learned halt tokens in reasoning models?. Easy problems settle quickly, hard ones take more passes, and the model's own dynamics tell you which is which.
Two caveats keep this honest. First, the collection describes that convergence happens and what it looks like, but it has little on the mathematics of why training produces settling dynamics rather than drift or chaos; that part of the question is not well covered here. Second, recurrence on its own is not a free win. A hierarchical design that runs a slow planning loop over a fast detailed loop reaches effective depth that fixed-depth models cannot, solving Sudoku and mazes with a tiny model Can recurrent hierarchies achieve reasoning that transformers cannot?, and looped models at scale reportedly beat compute-matched standard transformers only when the looping is co-designed with the training and hardware setup Can looped models beat parameter-matched standard Transformers?.
The thing worth taking away: a looped transformer converging is less like a mind thinking longer and more like the same short procedure being applied until nothing changes. That reframes 'more reasoning steps' as 'more repetitions of a learned routine', which explains both why these models extrapolate well on step-by-step problems and why looping alone does not hand them new abilities.
Sources 7 notes
Each recurrent layer converges to distinct fixed points forming stable cyclic trajectories. Looped models learn to mirror and repeat feedforward inference stages rather than discover new computation, emerging naturally without explicit training.
Feedforward transformers lack native recurrent state-tracking and must push evolving state deeper into layers, eventually exhausting depth. Explicit chain-of-thought externalizes this state into tokens as a costly patch for a structural deficiency.
Recurrent-depth transformers with shared parameters across iterations enable systematic generalization and depth extrapolation that vanilla transformers cannot achieve. This emerges through a sharp three-phase process: memorization, in-distribution, then out-of-distribution generalization.
Research shows transformers succeed on in-distribution tasks by memorizing computation subgraphs from training data, not by learning systematic rules. They fail drastically on novel compositions, with errors compounding across reasoning steps.
FPRM shows that looped transformers halt more accurately by detecting when their latent state reaches a fixed point, calibrating compute closer to the accuracy-saturation point than learned halt tokens without requiring special training regimes.
Show all 7 sources
The Hierarchical Reasoning Model couples slow abstract planning with fast detailed computation across two timescales, achieving near-perfect performance on Sudoku and mazes where chain-of-thought methods fail completely. With only 27M parameters and 1,000 samples, HRM escapes the AC0/TC0 complexity ceiling that constrains fixed-depth transformers.
Loopie, a pair of MoE models with layer-loop recurrence, reportedly beats standard Transformers trained on the same pre-training compute budget. The win depends on co-designing recurrence with hardware-aware scaling and training efficiency, not recurrence alone.
Papers this line draws on 8
The research behind the notes this line reads — ranked by how closely each paper relates.
- A Mechanistic Analysis of Looped Reasoning Language Models
- Loop the Loopies!
- Loop, Think, & Generalize: Implicit Reasoning in Recurrent-Depth Transformers
- Can Looped Transformers Learn to Implement Multi-step Gradient Descent for In-context Learning?
- Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approach
- Grokked Transformers are Implicit Reasoners: A Mechanistic Journey to the Edge of Generalization
- The Topological Trouble With Transformers
- Fixed-Point Reasoners: Stable and Adaptive Deep Looped Transformers