A Mechanistic Analysis of Looped Reasoning Language Models
Paper · 2026 · Hugh Blayney, Alvaro Arroyo, Johan Obando-Ceron et al.
Summary
Giving a language model more time to work on a problem can mean letting it produce a longer answer. A looped Transformer offers another option. It can run the same stack of layers several times on its internal representation before making a prediction. The extra passes reuse the same parameters, but the representation entering the stack can change with every pass. Blayney and colleagues ask what the layers actually do with that extra depth. They follow the hidden state after each layer and examine how attention distributes information across the input.
A loop can settle into a repeatable sequence without settling to the same state at every layer. If a complete pass returns a hidden state to where it started, each intermediate state also recurs when the corresponding layer is applied again. The authors prove this property of a fixed point of the complete stack and show why convergence at the same position in the stack makes its attention pattern converge. By the paper’s diagnostic measures, both retrofitted Llama and Huginn-0125 quickly approached stable states in tests on 256 randomly selected examples from the GSM8k test split. Ouro 1.4B has similar attention patterns between nearby passes, yet its hidden states and attention continue to drift when the run is extended to 128 passes.
The authors also ask whether layers take on different roles inside a repeating stack. They measure how heavily attention concentrates on a small set of token positions. In retrofitted Llama and OLMo, the pattern through a pass resembles the corresponding part of the original feedforward network. The initial and final parts of the profile occur in the layers outside the loop, which run once. Ouro 1.4B develops a Llama-like attention profile within the usual range of passes in spite of being trained from scratch with recurrence. Small training runs show that similar profiles can emerge with a fixed number of passes and a next-token loss applied only at the end. Huginn-0125 is an important exception. Its attention stabilizes, but it lacks the clear feedforward-like stages seen in those examples.
The architectural comparisons help explain why these findings come apart. Feeding the original input back into every pass promotes a stable cycle under several of the normalization schemes tested. Where normalization is applied also matters, both for convergence and for the changes in activation magnitude associated with different attention stages. In an intervention on retrofitted Llama, suppressing the output of the layer component responsible for its unusually large activations disrupts the feedforward-like profile. Together the results distinguish a repeatable hidden-state trajectory, a recognizable sequence of attention stages, and the ability to use extra passes for reasoning. The paper directly studies the first two and leaves their effect on the third open.
Deep dive: A Mechanistic Analysis of Looped Reasoning Language Models
Blayney and colleagues trace repeated Transformer layers to explain when hidden states settle and patterns of attention recur. · about 35 minutes to read
The problem and its context
Where the extra computation takes place
The standard Transformer architecture in the paper’s account moves from an input representation through a succession of layers on the way to predicting the next token. Each layer has a particular place in that sequence. A feedforward network can learn different operations at different depths because the layers along that path have separate parameters. The original architecture is the starting point for the paper’s comparison of how ordinary and recurrent networks organize their work. Attention Is All You Need
One way to give such a system more computation at inference is to let it generate intermediate text. The authors describe chain-of-thought prompting and reinforcement-learning-based fine-tuning as routes to eliciting this kind of behavior. A looped architecture spends the additional computation inside the network. It can take another pass through its layers while continuing to work with internal representations, with no intervening step written out as text. This changes what an investigator can observe. A generated intermediate answer can be read directly, while the significance of an intermediate hidden state has to be inferred from its properties and from what the network does with it. Chain-of-Thought Prompting Elicits Reasoning in Large Language Models and DeepSeek-R1
The idea of using recurrent computation in this way has precedents. The paper traces repeated application of Transformer layers to Universal Transformers and notes later extensions involving sparsity and conditional computation. It also places the work alongside adaptive computation methods that vary how long a network works on an input. In the architecture studied here, a central question is what another application of the same stack does. A separate question, addressed in earlier work on halting and adaptive computation, is how to decide when to stop. Universal Transformers and Adaptive Computation Time for Recurrent Neural Networks
The authors distinguish systems trained with recurrence from the beginning and systems in which recurrence is added to an existing pretrained network. That distinction matters when interpreting a familiar internal pattern. If a retrofit preserves parts of its original network, a recurring attention profile could reflect operations the layers learned before they were ever run in a loop. A system trained from random initialization starts without that inherited organization. Its training procedure can still favor feedforward-like behavior through the choice of how many passes it sees and which pass outputs receive a training signal. Scaling up Test-Time Compute with Latent Reasoning and Scaling Latent Reasoning via Looped Language Models
Why examine the layers inside the loop
Earlier work had already described recurrent systems that approach a steady state. That observation concerns what happens at a chosen point in the execution, commonly the boundary where a complete pass ends. It leaves open how the state gets from that boundary back to itself. The intermediate layers could make progressively smaller updates until all of them leave the same representation in place. They could also keep making substantial changes whose combined effect takes the representation back to its starting point. At the boundary the two cases can look alike. Inside the stack they imply different pictures of what remains active.
The paper’s target is cyclic recurrence. A single stack contains several distinct layers, and successive passes reuse those layers in a fixed order. The authors distinguish this setup from the earlier two-scale analysis by Pappone and colleagues, in which a network has several separate recurrent blocks and each loop contains 1 or 2 layers. In that arrangement it is natural to compare updates within one block with transitions between blocks. Blayney and colleagues instead emphasize deeper cycles of 4+ layers and compare the states left by different layers of the same block. They also point to earlier evidence from Lu and colleagues that predictions read out from inside a cyclic block change cyclically with depth. Their own study makes the hidden representation and the attention matrices the central objects of measurement.
A reason to look at those attention matrices comes from earlier work on stages of inference. In feedforward Transformers, the behavior of layers can change sharply across depth. Lad and colleagues introduced the stage terminology, and Queipo-de Llano and colleagues developed an account based on mixing, meaning how attention takes up information from other token positions. The same layer can give a great deal of weight to a narrow set of positions or spread that weight more broadly. A sequence of such behaviors across depth gives the authors an empirical way to identify a stage profile. The line of work also connects changes in mixing to large activations in the residual stream, which is the representation passed from one layer to the next. Massive Activations in Large Language Models
This perspective makes the interpretation of extra depth more specific. A long feedforward network can devote different parts of its depth to different behaviors without revisiting an earlier layer. A looped network revisits the same learned operations, but it could use them differently on successive passes if their inputs continue to evolve. A repeatable stage profile within each pass would imply a different division of labor from one that changes across the entire run. Learning which description fits requires looking both across layers in a pass and across repeated applications of each layer.
The method, step by step
From tokens to the output of one pass
The starting point is an array of token representations. Each row contains features for one position in the input sequence. A Transformer layer modifies this array in two steps. Attention lets each position collect a weighted combination of information from positions it can use. A position-wise multilayer perceptron, or MLP, then transforms each position’s features separately. Both operations contribute updates to the residual stream. Normalization can be applied around these operations to control the scale of the representations or updates.
A sequence of these layers forms a stack. In the architectures with a prelude, the input goes through an initial stack once to prepare the representation for recurrence. Next comes the recurrent stack, which is executed as many times as the setup specifies. At each new pass, the same layer in the stack uses the same parameters it used on the previous pass. Different layers within the stack can have different weights. A coda, where present, processes the output after the last pass. The paper calls a recurrent stack with a prelude and coda a sandwich structure.
Some architectures use input injection. They retain the input to the recurrent section and bring it back at the beginning of every pass. The recurrent state then has two sources of information at the start of a pass. One is the representation prepared for the loop. The other is the state passed on from the preceding application of the entire stack. The two arrays are joined along the feature dimension and projected to the width expected by the first recurrent layer. The layers inside the pass continue to read from the evolving residual stream.
Hidden-state processing in a cyclic Transformer
The steps in order.
The architecture in equations
The authors write the sequence representation as follows.
X ∈ ℝᵀˣᴰ
Here X is the array of token features, ℝ denotes real-valued entries, T is the sequence length and D is the feature width. The shape indicates T rows and D columns. That is the shape of the residual stream at the boundaries between layers.
The paper first gives the scaled dot-product scores used in attention.
A(X) = XW_Q W_Kᵀ Xᵀ / √d
A is the map from the input X to the matrix of attention scores before normalization. W_Q and W_K are the query and key projections, each mapping D features to a space of width d. The superscript ᵀ transposes a matrix. The product pairs the projected query at each position with projected keys at other positions. Dividing by the square root of d scales the scores.
The head uses the scores to weight projected values.
Attn(X) = softmax(A(X)) XW_V
Attn is the attention operation, and W_V is the value projection from D features to d. Softmax is applied separately to the rows of the score matrix so that each row of realized attention weights sums to one. The multiplication by XW_V makes each output row a weighted combination of the value vectors. The paper uses attention at the block level as a map that supplies an update in the residual-stream space, and its comparisons of attention patterns inspect the realized weights themselves. There is a notation change later in the paper, where A in the metric definitions denotes the realized weights after softmax. The distinction matters because the unnormalized scores do not have rows that sum to one.
The attention step within a block is written as follows.
X̂ = n₂(X + Attn(n₁(X)))
X̂ is the intermediate state following the attention part of the block. X is the incoming residual stream. The optional normalization n₁ acts on the attention input, while n₂ can normalize the result after the attention update has been added. The addition preserves a residual path from X. With an optional normalization omitted, that position in the formula has no effect.
The MLP step then produces the layer output.
X′ = n₄(X̂ + MLP(n₃(X̂)))
X′ is the outgoing residual stream, X̂ is the result of the attention step, and MLP is the position-wise multilayer perceptron. The optional n₃ normalizes its input and the optional n₄ acts on the state after its update has been added. These expressions describe normalization around the residual additions. The Ouro variant examined in the paper also normalizes the output of each sublayer before adding it, a placement with different consequences for the accumulated residual stream.
To represent an entire stack, the paper composes the layer functions.
Sₖ(X) = Bₖ(Bₖ₋₁(… B₁(X) …))
Sₖ is the stack, k is the number of layers in it, and Bⱼ denotes the Transformer block at position j. The ellipses indicate the intervening blocks in the same order. X enters B₁ first. The output of each block is the input to the next until Bₖ produces the result of the stack.
With input injection, the calculation begins with a projection of the joined inputs.
Sₖ(X, Z) = Bₖ(Bₖ₋₁(… B₁([X, Z]W_I) …))
Here X is the saved input to the recurrent section and Z is its current state. Both have T rows and D columns. The brackets with a comma concatenate the features at corresponding token positions. W_I is a learned projection of shape 2D by D. Its output again has width D and is passed to B₁. The remaining blocks in Sₖ apply their usual operations.
The uninjected network can be written in terms of the repeated application of one particular stack.
Xᵢ ← S′ₖ(Xᵢ₋₁)
Xᵢ is the state after pass i, Xᵢ₋₁ is the state before it, and the arrow denotes assignment. The prime marks the recurrent stack as a distinct set of weights from those of the prelude and coda. The prelude Sₚ first produces X₀ from the network input. The recurrent rule is applied for each i from 1 through l, the number of passes. The coda S″𝑐 then acts on Xₗ. The subscripts p and c are the prelude and coda layer counts, and the double prime identifies another separate stack. In the paper’s notation, a configuration is written as (p, k, c), or as (p, k ⊗ l, c) when the number of passes is specified. The ⊗ in that notation means the k-layer stack is applied l times.
The injection version keeps the prelude output fixed within the loop and advances Z.
Zᵢ ← S′ₖ(X, Zᵢ₋₁)
Zᵢ and Zᵢ₋₁ are consecutive states of the recurrent section, X is the saved prelude output and S′ₖ is the injection version of the stack. The coda reads Zₗ. An I subscript on the configuration indicates input injection. For the initial Z₀ in this description, the paper gives a centered normal distribution.
𝒩(0, σ²I_D)
The symbol 𝒩 denotes a normal distribution. The mean is 0, σ is the scale, σ² is the variance, and I_D is the identity matrix of size D in the covariance expression. The initialization supplies the first recurrent state alongside the saved input.
What it means for a stack to settle
The first theoretical step describes what must happen inside a pass if the complete stack has a fixed point.
Sₖ(X′) = X′
X′ here denotes a fixed point of the full stack Sₖ. It is a state that can be fed through the entire ordered stack and recovered at the end. The statement concerns the input and output of the composition. The intermediate layers can move the representation away from X′.
To see how a cycle follows, take the state produced by the first layer at that fixed point.
Y′ = B₁(X′)
Y′ is the state at the next boundary in the stack, after B₁ has acted on X′. Start from Y′ and apply the remaining layers. Because this is the rest of a pass that started at X′, the final layer takes the state back to X′. Applying B₁ again gives Y′. Thus Y′ is fixed by the stack whose starting position has been shifted forward, with B₁ moved to the end. Repeating the argument at each boundary gives a fixed point for every cyclic shift. For the injection case, the saved input is held constant and the injection operation can be included in the first map of the cycle.
The argument explains how two sorts of stability can appear together. States at corresponding boundaries can approach the same values across passes, and neighboring boundaries can have different values. A recurrent stack can therefore continue to make layer-by-layer changes after a full pass has ceased to change its boundary state. If the boundary states all coincide, each layer leaves that common state in place. The fixed-point statement permits that case too. It begins with a fixed point of the full stack and describes the resulting structure within the pass.
The second theoretical step concerns an individual layer’s attention. The authors compare its realized attention matrix on successive passes. The two passes use tied query and key weights, so the change in the scores depends on how much the attention input changes.
M = W_Q,ℓ (W_K,ℓ)ᵀ
M is the product of the query projection W_Q,ℓ and the transposed key projection W_K,ℓ at layer ℓ. The index ℓ picks a particular position in the recurrent stack. The weights in M are constant across the passes being compared.
Δℓ,ₜ = Xℓ,ₜ − Xℓ,ₜ₋₁
Δℓ,ₜ is the difference between attention inputs at that layer on passes t and t−1. The two matrices denoted by X carry the corresponding layer and pass indices. Each pass provides a matrix of the same shape for the same input sequence.
The score difference can be expanded into terms that each contain this input difference.
Aℓ(Xℓ,ₜ) − Aℓ(Xℓ,ₜ₋₁) = (Δℓ,ₜ M Xℓ,ₜᵀ + Xℓ,ₜ₋₁ M Δℓ,ₜᵀ) / √d
Aℓ is the attention score map at layer ℓ. The other terms are the two attention inputs, their difference Δℓ,ₜ and the fixed matrix M. The transposes pair features across token positions, and √d is the attention scaling factor. The first term accounts for the difference in the input on the query side of the product. The second accounts for the difference on the key side.
Bounding the sizes of those terms and applying the softmax bound gives the following inequality.
‖Sℓ(Xℓ,ₜ) − Sℓ(Xℓ,ₜ₋₁)‖ ≤ (L_sm 2B κℓ / √d) ‖Xℓ,ₜ − Xℓ,ₜ₋₁‖
Here Sℓ denotes the realized attention matrix as a function of its input at layer ℓ. The norm signs measure matrix size in a norm that is invariant under transposition and submultiplicative, meaning the norm of a product is bounded by the product of the norms. B bounds the norm of each attention input. The factor κℓ is the norm of M, and L_sm is a Lipschitz constant for row-wise softmax in the chosen norm. Such a constant bounds how much softmax can enlarge a difference in its inputs. The inequality compares the size of the attention change with the size of the hidden-state input change, multiplied by constants for the layer and its input bound.
If the same layer’s input approaches a fixed state, its attention approaches a fixed pattern because the score map and softmax are continuous. The bound additionally explains why nearby passes can have very similar attention even in a run that has yet to settle. Small successive differences are enough to make individual updates small under the bound. Establishing convergence requires evidence about where the sequence of states is going as a whole.
How the paper measures stages
The central statistic is ColSum concentration. It treats attention as a matrix with one row for each position sending attention and one column for each position receiving it. A column sum counts how much attention reaches a particular position across all the queries. The paper then scales those column totals to obtain a distribution.
cⱼ = ∑ᵢ Aᵢⱼ
Here Aᵢⱼ is the realized attention weight from query position i to key position j. The sum runs over the query positions, and cⱼ is the total received by position j.
ĉⱼ = cⱼ / T
The symbol ĉⱼ is the normalized column total for position j, and T is the number of positions in the input. Because every row of the realized attention matrix sums to one, adding up the column totals gives T. The normalized totals therefore sum to one.
C = 1 − H_col
C is ColSum concentration and H_col is the normalized entropy of the distribution of ĉⱼ. Entropy is higher when attention received is spread more evenly across positions. Normalization by the logarithm of sequence length places the entropy on the paper’s common scale. An explicit way to write the entropy form of concentration is the following.
C = 1 + (∑ⱼ ĉⱼ log ĉⱼ) / log T
The sum runs over receiving positions j, and log is the logarithm, used in the same base in the numerator and denominator. A position that receives no attention contributes zero to the entropy sum. High C means that a small part of the sequence receives much of the total attention. The favored position can be the beginning of the sequence, but the measure has no built-in preference for it. For instance, the authors note that OLMo-2 frequently directs concentrated attention to punctuation. The broader measure complements earlier work on positions that attract unusually large amounts of attention, known as attention sinks. Efficient Streaming Language Models with Attention Sinks
The paper also uses a sink score to ask about a specific position.
sink-scoreₖ(ℓ, h) = (1/T) ∑ₜ Aₜₖ⁽ℓ,ʰ⁾
The subscript k is the position whose received attention is being measured. Here k is a token index, independent of the layer count denoted by k in the architecture. The index l written as ℓ identifies a layer, h denotes a head, and t runs over the query positions. Aₜₖ⁽ℓ,ʰ⁾ is the realized attention from query t to position k in that layer and head. The score averages received attention over T query positions.
sink-rateₖ(ℓ) = (1/H) ∑ₕ 𝟙[sink-scoreₖ(ℓ, h) ≥ τ]
H is the number of heads and h runs over them. The indicator 𝟙 contributes one when the head meets the threshold τ and zero otherwise. The paper uses τ = 0.3. The resulting sink rate is the fraction of heads at layer ℓ that give position k a sink score at or above that cutoff.
A further statistic looks at attention row by row.
mixing-score(ℓ, h) = (1/T) ∑ᵢ H(Aᵢ,:⁽ℓ,ʰ⁾)
The row Aᵢ,:⁽ℓ,ʰ⁾ contains the weights assigned by query i across all key positions in head h at layer ℓ. H of a row denotes its entropy here, a different use of the letter from the head count in the preceding equation. The score averages row entropy over T query positions. It tells how distributed individual queries tend to be. ColSum concentration instead asks whether the sequence as a whole funnels attention towards the same receiving positions. The two measurements can reveal different aspects of the same attention matrix.
For the residual stream, the paper additionally examines matrix-based entropy as an indicator of compression, asking how concentrated the representation has become. These results complement attention measurements because they concern the array that the layers actually pass onward. The authors also compare fractions of prediction and suppression neurons, which are properties of the layer and recur with its weights. Those fractions can describe differences between positions in the stack. They are insensitive to changes in what the same layer does on different inputs or passes. Layer by Layer: Uncovering Hidden Representations in Language Models
How the comparisons are organized
The authors take three views of the same forward run. A plot in realized depth places every application of a layer in execution order. That view can show a recurrent pattern interrupted by the prelude or coda. A plot by pass overlays the profiles through successive applications of the stack so the same relative positions can be compared. A plot by layer follows a specific position across all passes and shows whether that layer settles. These views answer complementary questions. A detailed profile within a pass can become more pronounced or less pronounced over time, even while the order of its features stays recognizable.
For the main pretrained comparisons, the authors generally average over the same 256 randomly selected examples from the GSM8k test split. A HellaSwag comparison uses 256 randomly selected examples from that dataset’s test split under the same inference setup. Selected illustrations trace the last token of a single prompt. The pretrained checkpoints come from Hugging Face, and the authors use their standard tokenizer settings. Those settings vary in whether an explicit beginning-of-sequence token is inserted, a relevant detail when interpreting a statistic tied to the first position. Training Verifiers to Solve Math Word Problems
The paper complements the checkpoint comparisons with two kinds of experiment under the authors’ control. A set of randomly initialized stacks tests whether architectural choices can change the limiting behavior in the absence of learned weights. Separately, small looped networks are pretrained from scratch with a fixed recurrence count and a next-token cross-entropy loss on the final output. Their training procedure adapts a public recursive fork of Nanochat. These runs test whether a feedforward-like stage profile can emerge under a training setup that gives no separate prediction loss to the intermediate passes.
Experiments and results
Stability depends on the comparison being made
The main comparison uses Ouro 1.4B, Huginn-0125 and retrofitted Llama. Their parameter counts are 1.4B, 3.5B and 1B, respectively. They also differ in layout. Ouro uses a loop of 24 layers with no prelude or coda. Huginn-0125 uses 2 prelude layers, 4 recurrent layers and 2 coda layers. Retrofitted Llama uses 4 prelude layers, 6 recurrent layers and 4 coda layers. Huginn-0125 and retrofitted Llama inject their inputs at the start of each pass, whereas Ouro feeds the previous output into the next pass without this additional input.
The most direct attention comparison records the matrices throughout a run of 8 passes. The authors compare matrices pairwise with the Frobenius norm of their difference, a measure sensitive to changes across their entries. They average across the examples and heads. In the resulting depth-by-depth comparisons, the most conspicuous bands of similarity align different applications of the same layer. Ouro shows this repeated pattern after its first pass, and Huginn-0125 and retrofitted Llama show it from the recurrent section that follows the prelude.
The corresponding state comparison examines cosine similarity of residual representations across depths. Cosine similarity measures alignment in direction, so it can reveal similar states even if their magnitudes differ. The repeated structure is visible in those comparisons as well. Appendix runs extend the pairwise attention analysis to 32 passes for Huginn-0125 and the retrofitted networks, including OLMo and TinyLlama. Huginn-0125 has relatively similar outputs across different layer positions as well as a visible component of cyclic similarity. Repetition at corresponding positions can be evident even when the states within a pass are less sharply separated.
To distinguish close successive states from a stable limit, the authors use a longer run. For each layer they save its state at the 128th recurrence and compare states from earlier passes with that layer’s saved reference. They call it an approximate fixed point. The comparison is informative when an earlier state comes close to the reference and stays there across many recorded passes. It is inherently exact at the final recorded state, so the earlier part of the curve carries the evidence.
Huginn-0125 and retrofitted Llama reach the vicinity of their late references quickly. Ouro 1.4B has low successive differences but continues to move relative to the late reference. The result is visible using differences in residual states and is corroborated by residual-stream cosine similarities and attention-matrix distances. In other words, the early attention comparisons capture repetition across nearby passes, while the longer runs reveal whether that repeated pattern is slowly changing. Ouro exhibits both local repetition and appreciable late drift.
The authors illustrate the difference by plotting the hidden states of the final token of a test prompt. They fit principal component analysis to the layerwise states so that a trajectory through the high-dimensional feature space can be viewed in two dimensions. The later retrofitted Llama trajectories overlap in that projection. Huginn-0125 also shows an approximately repeating path. Ouro on the illustrative conversational input appears to follow a similar path on successive passes, with more visible deviations. On a short prompt about the square root of 16, its projected path looks stable during recurrences 8-16 and then moves away. These illustrations make the distinction between apparent short-term repetition and prolonged stability visible for individual inputs.
The repeated stack can have an internal sequence of stages
The next comparison takes ColSum concentration as an attention profile through depth. For retrofitted Llama, the ordered sequence of layers produces a changing profile within each pass. Following the individual layers across passes yields fairly flat curves after an early transition. Taken together, the two views show how a single layer can settle to a characteristic behavior while the full stream of layer applications continues to alternate among behaviors.
The feedforward base networks provide the reference for interpreting that alternation. Retrofitted Llama and retrofitted OLMo retain a recognizable profile from their respective bases. The early and late portions line up with work done in the prelude and coda, which run once. The middle portion recurs because it is carried out by the repeated stack. Retrofitted TinyLlama shows the corresponding resemblance to its own base in the appendix. These comparisons localize the repeated portion of the profile within the overall architecture.
Ouro 1.4B presents a different case. There is no separate prelude or coda, and its recurrent layers were pretrained as part of a looped architecture. Over the usual recurrence range its ColSum profile nonetheless resembles the feedforward Llama profile within each pass. The comparison is about the change in concentration across depth, instead of the identities of individual heads or the semantic content in their hidden states. The appendix comparison for Ouro 2.6B adds another example. That system was formed by taking the 24-layer Ouro 1.4B and duplicating the layers to give a 48-layer network. Each half of its recurrent block separately resembles the feedforward Llama stage profile, consistent with the authors’ interpretation that the depth expansion also duplicated the organization learned by the earlier network.
Huginn-0125 gives a different combination of results. Its layers settle in the long-run comparisons, while its profile lacks the clear feedforward-like succession of mixing stages found in the other examples. The authors connect that result to how the architecture controls the magnitude of the residual stream. The central empirical point is already visible without adopting that explanation. Convergence of each layer’s attention across passes does not ensure that the different layers collectively trace a particular mixing profile within a pass.
Other metrics give some checks on this interpretation. At 8 passes, attention sink rates and row-entropy mixing scores show recurring patterns across the tested systems, although the shapes need not match the concentration profiles exactly. Residual entropy behaves differently in Ouro. It changes more noticeably across successive passes and aligns less closely with feedforward behavior. The authors suggest that the large activations involved in compression could be disrupted when the residual stream is normalized at the output of the Ouro stack. This result puts a boundary on the resemblance established by ColSum concentration. The resemblance concerns how attention mass is allocated across depth and need not extend to every property of the hidden representation.
On HellaSwag, the measured profiles broadly follow the descriptions obtained on GSM8k. The authors observe somewhat higher sink rates and a slightly higher ColSum concentration profile for retrofitted OLMo-2. The comparison extends the observations beyond mathematical word problems. It still concerns the networks’ internal responses to the examples, with neither dataset used here to assign an accuracy gain to a particular stage.
What happens beyond the usual pass count
The 128-pass runs also show how the layerwise profiles extrapolate. Retrofitted Llama preserves its distinctive concentration profile over the extended run. The plots for Huginn-0125 and retrofitted OLMo-2 also show attention statistics settling, with the former retaining its own profile. Across different inputs, stable mixing scores can have considerable variation because stable states can be input-dependent. The authors distinguish that spread across inputs from ongoing change across passes on a given input.
Ouro 1.4B’s concentration changes through the extended run, and the profile across a late pass departs from the one observed at more familiar recurrence depths. It is therefore possible to see a stage profile clearly in a typical run and lose that profile when giving the architecture many more passes. The authors relate this observation to results reported by the architecture papers. Those reports describe performance deterioration for Ouro beyond its trained recurrence regime and sustained performance for Huginn-0125 when extrapolating. Blayney and colleagues’ own extended-run measurements track the internal signatures. The performance comparison comes from the earlier reports, so the relationship between the signatures and task performance remains an interpretation.
How often the trajectory follows another pattern
The paper separately checks for sustained behavior such as orbits and sliders in Huginn-0125 and retrofitted Llama. Here the unit of analysis is a token position, and the authors use the full GSM8k test set. They compare the residual state of each token at the last layer of the recurrent stack with its reference state at the end of a 128-pass run. An orbit is identified through a prominent periodic component in the resulting similarity series. A slider is identified through a sustained trend. Both are defined operationally by a heuristic, which also has a category for cases it cannot classify more specifically.
To identify an orbit, the classifier fits and removes a linear trend, applies a Hann window to reduce spectral leakage and takes a real Fourier transform. Informally, it asks whether a similarity series with its overall slope removed contains a strong repeating signal. The algorithm discards the constant-frequency component and checks the amplitude and frequency of the largest remaining component. It checks resemblance to a fixed point first, using the original series. Its threshold is 0.05 and the required fraction of close observations is 0.9. The order of the checks matters because a small oscillation inside a largely close trace can be labeled a fixed point.
The chart compares prompting conditions within Huginn-0125. The long persona is an assistant description used in earlier orbit illustrations. For the padded comparison, the authors replace its tokens with padding while keeping its length. The short math prompt is the mathematical-assistant instruction from the earlier GSM8k evaluation. The asterisk identifies the lowest observed rate among these Huginn-0125 conditions.
Huginn-0125 non-fixed-point token rate by system prompt on the GSM8k test set
The long persona prompt has the highest detected rate, including when compared with its length-matched padded version.
The numbers
| System or setting | non-fixed-point tokens % |
|---|---|
| Long Persona | 0.14 |
| Long Persona (Padded) | 0.05 |
| No System Prompt | 0.02 |
| Short Math (this paper) | 0.01 |
A second denominator shows how those token-level counts are distributed across questions. With the long persona instruction, 2.81% of GSM8k test examples for Huginn-0125 have a non-fixed-point classification on at least one question token. With the padded version the example-level rate is 0.83%. Without a system prompt it is 0.76%, and with the short math prompt it is 0.45%. For retrofitted Llama, the no-system-prompt rate is 0.08% at the example level even though the token-level table reports 0.00%. The example-level result signals the presence of a detected case despite the displayed token-level precision.
The paper follows some of the unusual cases into the intermediate layers. In an illustrated Huginn-0125 orbit, several positions within the stack exhibit orbiting trajectories. Across the test examples, a token with an orbit or a slider at one layer can have a fixed-point classification at another layer. The reported comparison finds no co-occurrence of orbits and sliders across layers on the same token. The authors also examine the prompts with the strongest detected orbits. Over the final 64 passes of the 128-pass runs, the measurements of attention stages remain broadly consistent. Sink rate varies somewhat in the Huginn-0125 example. An orbit in a particular hidden-state trajectory can therefore coexist with a recognizable aggregate attention profile over the stack.
What the ablations show
Input injection and normalization change the limiting trajectory
The pretrained checkpoints differ in several respects at once. To isolate specific architectural choices, the authors construct randomly initialized recurrent networks using different normalization schemes, each with and without input injection. The main comparison uses a block of 12 layers, with no prelude or coda, and averages over 3 random initializations per configuration. The authors also report qualitatively similar behavior for tested blocks of 4 and 16 layers. The random-weight setup makes learned specialization unnecessary for any repeatable trajectory that appears in this test.
The normalization schemes differ in what they control. The pre-norm scheme used in the retrofitted networks normalizes the input to attention and to the MLP. Their outputs are added to the residual stream, which can retain the scale of earlier contributions. Huginn-0125 also normalizes after those additions. This means the accumulated stream itself is repeatedly normalized. Ouro uses a normalization on the output of each sublayer before its update is added and a further normalization on the residual stream at the end of the whole stack. Calling both Huginn-0125 and Ouro sandwich-normalized leaves an important distinction unresolved unless the locations of the normalization steps are specified.
Each experiment follows the state after the first layer over successive passes. It compares that state with its own layer’s late reference from the 128th recurrence and with a different layer’s reference selected for being the most dissimilar to it. The comparisons use cosine similarity and, in separate plots, norms of differences. Comparing the first layer only with itself could show it had settled while leaving open whether its state differed from every other state. The cross-layer reference is what allows the authors to diagnose a cycle with distinct states.
With input injection, the tested normalization schemes reach a stable fixed-point regime except for the Ouro scheme. For the settings in which distinct layer states persist, the same-layer similarity approaches its stable reference while the opposing comparison shows separation between layers. Without injection, only pre-norm reaches a stable point in this experiment. In that case the cross-layer cosine comparison also approaches 1, even against the least similar layer reference, and the authors describe the limit as a degenerate cycle. The stable state is shared rather than forming a distinctly separated path. The difference-norm analysis offers another view of those comparisons alongside the directional measure.
The comparison supports two conclusions about the tested architectures. The repeated input can help stabilize the trajectory, and its effect depends on what is normalized and where. The result in pre-norm also shows why the presence of a fixed point and the presence of a nontrivial cycle are separate observations. A shared state can be stable even when the problem of explaining transitions among distinct layer states no longer arises. The Ouro result establishes an exception to the improvement from injection within the tested configurations. It keeps the paper’s architectural conclusion conditional on the design paired with injection.
A fixed training schedule still permits stage formation
The pretrained comparisons leave multiple routes by which a loop could acquire a stage profile. Retrofitted layers can start with an organization learned during feedforward pretraining. A sampled recurrence schedule that includes single-pass examples can train the stack in circumstances resembling an ordinary feedforward network. A loss applied at each recurrence can encourage intermediate passes to produce outputs useful for prediction. The authors design the small training experiment to remove these routes together.
The looped networks start from scratch and run for a constant 4 recurrences during training. They are trained on 3.7B tokens. The residual width is 512, with 4 attention heads of dimension 128. Each uses pre-norm and the final-output cross-entropy objective. The next-token loss is computed after the full forward calculation, leaving earlier passes to contribute through the state they hand to later ones. The main configurations use 2 prelude and 2 coda layers, with recurrent stacks of 4, 8 or 12 layers and no input injection. A feedforward control of depth 12 is trained with the same general procedure. The control gives the authors a profile against which to judge whether the looped runs develop a recognizable organization.
The ColSum measurements show stages resembling those of the feedforward control in these small looped networks. This establishes that such profiles can develop under a fixed recurrence schedule and a final-only objective. The system gets no training advantage for producing a separately decodable prediction after each earlier pass under that loss. Its earlier passes nevertheless develop attention structure that can be inspected after training. The evidence identifies a possible outcome of ordinary next-token optimization in a recurrent architecture. The experiments track the internal profiles and give no numerical estimate of how much those profiles improve predictions.
The appendix varies input injection and the presence of the prelude and coda in otherwise comparable training runs. The closest overall match to the feedforward stages occurs with the prelude and coda intact and injection absent. When injection is added, the final recurrence can look more like the control, but the earlier recurrences tend to match it less closely. Removing the surrounding layers also changes the resemblance. The division between layers that run once and layers that keep repeating is therefore relevant to where a stage profile appears.
This does not give injection a single effect across the paper. The random-initialization experiments ask whether states converge to a repeatable trajectory over many passes. The training comparisons ask how closely the stages resemble a feedforward profile at the pass counts used for the small trained systems. An architecture can stabilize a profile whose shape differs from the feedforward control. Another architecture can learn a familiar profile under its training schedule without maintaining it indefinitely. The comparisons make the diagnostic at issue explicit.
Disrupting unusually large activations changes the profile
The authors’ explanation for Huginn-0125 begins with measurements of residual-stream magnitude. Repeated normalization of that stream limits the growth in magnitude associated in earlier work with compression and the formation of attention sinks. The Huginn-0125 norms show relatively little of the change in activation scale linked to the feedforward-like profile. Ouro, by comparison, allows the accumulated stream to evolve within its block before applying its end-of-block normalization. These observations suggest a connection between the location of the normalization, the opportunity for unusually large activations to form, and the resulting sequence of attention behaviors.
The paper tests part of that explanation with a direct intervention in retrofitted Llama. There the authors identify the second layer’s MLP as responsible for its unusually large activations. They zero that MLP’s output and measure the resulting stage profile. The modified network loses the close resemblance to the feedforward stages visible in the unmodified version. This supports the idea that the source of the large activations matters to the stage profile in that checkpoint.
The intervention removes an entire MLP contribution. Its output can affect the representation through features beyond the particular large activations motivating the experiment. The result establishes that the contribution of this component matters to the observed profile, with the activation account supported by the separate magnitude measurements. It leaves room for a narrower intervention to distinguish the effect of the large activations from other effects of deleting the update.
The prompt comparison tests a different source of variation
The long persona and padded instructions make sequence length comparable while changing the tokens supplied. In Huginn-0125, detected non-fixed-point behavior is more common with the persona content than with the padding. The result argues against explaining the entire change by the number of input positions. Prompt content can affect which trajectories the heuristic detects. The comparison changes a whole instruction, so it provides no localization to a specific phrase or token.
The authors’ use of fixed-point, orbit and slider labels is also a controlled way to revisit a claim about necessity. The convergence argument gives a sufficient condition for stable attention at a layer. The unusual-prompt analysis finds that broad mixing profiles can remain stable even when some hidden-state paths oscillate. Aggregating attention by head or by column total can preserve a profile despite changes in an underlying state. The combination of the theorem and the prompt analysis sets the scope of the explanation. Fixed-point convergence explains stability where it occurs. Other latent dynamics can also sustain similar measurements of attention.
Limitations
Limits stated by the authors
The authors restrict the analysis to cyclic recurrence through one stack. Architectures with several separate recurrent stacks introduce another level of organization, because a state can settle within one block and then enter a different recurrent computation. The paper’s comparisons within a repeating stack do not describe that arrangement. The authors refer to the earlier two-scale analysis by Pappone and colleagues for that case.
The paper establishes what follows if a fixed point is reached and reports architectural configurations in which convergence is observed. It leaves open an analytical account of why the tested design choices produce those regimes. The proof about cyclic shifts begins with an assumed fixed point of the composition. The attention bound begins with tied projections and bounded inputs. Neither result determines from a given normalization and injection scheme whether the recurrent map converges on a particular input or how many passes it will take.
The authors also leave open whether convergence helps reasoning or restricts it. A steady profile means that extra passes preserve an established organization. Task performance could depend on when that organization emerges, what the state encodes at that time, or what a useful additional pass would need to change. The paper associates its stability results with earlier extrapolation findings and stops short of identifying a causal benefit of convergence for solving problems. Its ideas about stage-dependent sparsification or smaller MLPs are architectural implications of the measurements, without experiments demonstrating those proposed changes.
The simplified training study is small in scale. Its contribution is evidence that stages can emerge without feedforward initialization, a varying loop count or losses attached to intermediate recurrences. The authors caution against generalizing the result from these training runs to much larger systems. They also point out that the pre-norm runs here avoid stability problems reported for larger settings, with scale a possible explanation.
For the rare-behavior analysis, the authors state that exact rates depend substantially on the classification thresholds. They chose the parameters by visual inspection of trajectories and similarity traces in the absence of an external criterion. Across threshold choices they report the same broad finding that unusual trajectories are rare and more frequent with the persona instruction. The absolute percentages retain their dependence on the classifier. A fuller account of the types of trajectories and what produces them remains open.
Limits of what the measurements establish
The empirical reference at the 128th pass gives a finite observation window. A run that appears stable well before the end supplies evidence for a fixed point, but a small enough drift could escape observation. Conversely, a run that keeps moving over the observed range might settle at a greater depth. The paper’s Ouro example that initially appears stable and later moves away shows why the length of the observation window matters. The strongest empirical statement concerns the stability or drift seen over the tested passes, alongside the separate mathematical result for any actual fixed point.
Projected trajectories have an additional constraint. They display the final token position on selected prompts and keep only the principal components drawn in the illustration. Apparent overlap is evidence that those projected coordinates recur. Subtler differences in other directions, or different behavior at earlier token positions, need the separate full-state and per-token comparisons. Likewise, a mean across examples or heads may obscure variation in individual cases. The detailed orbit analysis partially addresses that problem for the two systems studied there.
A ColSum profile identifies stages through a particular view of attention. Many matrices can share the same column totals, and the same level of concentration can result from attention to different positions. Query-level statistics and residual entropy widen the analysis, but resemblance in these profiles does not identify the same algorithm, the same information at a particular layer, or the same contribution to an answer. Ouro’s more pronounced changes in residual entropy illustrate this distinction inside the paper’s own experiments.
The feedforward control and the looped training configurations give a concrete comparison under a common training procedure. Their depths and weight sharing differ, so the profiles alone cannot determine which arrangement is more efficient or which is a better use of training or inference computation. Likewise, the comparison between pretrained architectures mixes multiple design and training differences. The random-weight studies isolate architecture more directly, at the cost of studying systems without learned language behavior. The trained comparisons and the random-initialization comparisons support complementary conclusions under their respective conditions.
Finally, the long-run internal measurements, the prompt analysis and the small training runs leave task-level questions unresolved. The experiments mainly compare hidden states and attention on test inputs. They do not manipulate stability while holding the rest of a trained system fixed and then measure whether the change improves answer accuracy. HellaSwag gives evidence that the attention patterns are not confined to the mathematical setting, while the two datasets together still provide a limited range of contexts for a claim about reasoning in general.
What came after
There are no later works to discuss. The recurrent architectures, fixed-point studies and analyses of attention stages described above are antecedents that the authors use for their comparison.
Cite
Cite as Hugh Blayney, Alvaro Arroyo, Johan Obando-Ceron, Pablo Samuel Castro, Aaron Courville, Michael M. Bronstein and Xiaowen Dong. 2026. A Mechanistic Analysis of Looped Reasoning Language Models. arXiv:2604.11791.
@misc{blayney2026mechanistic,
title = {{A Mechanistic Analysis of Looped Reasoning Language Models}},
author = {Hugh Blayney, Alvaro Arroyo, Johan Obando-Ceron, Pablo Samuel Castro, Aaron Courville, Michael M. Bronstein and Xiaowen Dong},
year = {2026},
doi = {10.48550/arxiv.2604.11791},
eprint = {2604.11791},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2604.11791}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/blayney-2026-mechanistic-analysis-looped-reasoning-language/