paper
active
2026
paper:doi-10-48550-arxiv-2604-11791

A Mechanistic Analysis of Looped Reasoning Language Models

TL;DR

Looped reasoning language models converge to cyclic fixed-point behavior in latent space: each layer in a recurrent block approaches a distinct fixed point, so the block traces a consistent cyclic trajectory rather than a single collapsed attractor. Analyzing Ouro 1.4B, Huginn-0125 (3.5B), and McLeish et al.'s retrofitted Llama (1B) using 256 GSM8k test examples as the primary evaluation substrate, the paper introduces ColSum Concentration—a normalized-entropy metric over column-summed attention weights—as its principal instrument for characterizing mixing stages across recurrences. Empirically, the stages of inference documented in feedforward models repeat wholesale within each recurrent block: retrofitted Llama reproduces its base model's Llama 3.2 1B mixing profile on every loop, and Ouro 1.4B, trained from scratch with a constant recurrence of 4, independently develops the same Llama-like stages despite no feedforward pretraining bias. Huginn-0125 fails to develop these stages because its sandwich norm repeatedly normalizes the residual stream, suppressing the massive activations that cause concentration behavior. Models with input injection (retrofitted series, Huginn-0125) converge to true cyclic fixed points rapidly—often after a single recurrence—whereas Ouro does not, and this divergence carries an operational cost: Ouro's inference stages destabilize when looped beyond training-time recurrences, while fixed-point models maintain stable behavior for arbitrarily many test-time iterations. The paper argues this implies that mechanistic insights from feedforward models transfer directly to looped architectures, and that fixed-point convergence is a prerequisite for reliable test-time compute scaling.

What to take away

  1. 1. Looped Transformers exhibiting cyclic recurrence converge to a cyclic fixed point rather than a single collapsed attractor: Proposition 4.1 proves that if the full stacked block S_k reaches a fixed point X', then every cyclic permutation of its constituent blocks also reaches (potentially distinct) fixed points, so each layer's residual stream stabilizes to a different location in latent space.
  2. 2. Retrofitted Llama (1B, 6-layer recurrent block, trained for 32 recurrences) and Huginn-0125 (3.5B, (2,4,2) sandwich structure) both demonstrate rapid fixed-point convergence—often after the very first recurrence following the prelude—while Ouro 1.4B (24-layer recurrent block, no input injection, no prelude/coda) does not converge to a fixed point over 128 recurrences despite showing small successive differences.
  3. 3. Proposition 4.2 bounds the change in attention patterns between recurrences by (L_sm * kappa_l * (2B * delta_{l,t} + delta_{l,t}^2)) where L_sm = 1/2 (Nair 2025), kappa_l = ||W_Q W_K^T||, and B bounds residual stream norms, proving that attention patterns must stabilize whenever the residual stream stabilizes.
  4. 4. Ouro 1.4B, trained from scratch with a constant recurrence schedule of 4 and a standard single-output cross-entropy loss, independently develops ColSum Concentration stages of inference within each recurrent block that closely mirror those of the feedforward Llama 3.2 1B baseline—a result replicated across configurations (2,4⊗4,2), (2,8⊗4,2), and (2,12⊗4,2) in small-scale pre-training experiments using model dimension 512 and 3.7B training tokens.
  5. 5. Huginn-0125 fails to exhibit clear stages of inference because its norm structure normalizes the residual stream after every sub-block (ˆX = n(X + Attn(n(X)))), preventing the growth in residual stream magnitude that Queipo-de Llano et al. (2025) identify as the causal mechanism for attention sink formation and stage transitions—a hypothesis supported by ablation of massive activations in retrofitted Llama, which eliminates its stages of inference.
  6. 6. The instability of Ouro's stages of inference at test-time recurrences beyond the training budget of 4 is consistent with its published performance degradation (Zhu et al. 2025, Table 10), while Huginn-0125 (trained for 32 recurrences with input injection) maintains constant performance when extrapolating (Geiping et al. 2025, Figure 1), establishing a mechanistic correlate for out-of-distribution recurrence generalization.
  7. 7. Non-fixed-point limiting behaviors (orbits and sliders) are extremely rare: without a system prompt, only ~0.02% of Huginn-0125 tokens across the full GSM8k test set exhibit non-fixed-point behavior, rising to ~0.14% with the long persona system prompt used by Geiping et al. (2025), while retrofitted Llama shows 0.00% non-fixed-point tokens under all tested prompt conditions.
  8. 8. An open question the paper raises: it remains analytically unresolved why specific architectural choices (input injection + non-residual-stream-normalizing norms) are sufficient conditions for stable cyclic fixed-point convergence, and whether this convergence is actually beneficial or restrictive for reasoning task performance under extended test-time compute.
  9. 9. To isolate whether stages of inference arise from training bias rather than architectural inductive bias, the small-scale pre-training experiments are conducted with a constant recurrence of exactly 4 (no Poisson sampling as in Geiping et al. 2025), loss computed only on the final recurrence output (no per-recurrence summed loss as in Zhu et al. 2025), and random initialization with no base-model pretraining—a protocol another researcher could replicate using the publicly available nanochat fork (Karpathy 2025).
  10. 10. The ColSum Concentration metric C = 1 − H_col ∈ [0,1], defined as one minus the normalized entropy of the column-sum distribution of the attention matrix, generalizes attention sink detection to arbitrary token positions, capturing OLMo-2's documented tendency to concentrate attention on punctuation rather than BOS tokens, making it more broadly applicable than binary sink-rate thresholding.

Peer brief — for seminar discussion

This paper conducts a mechanistic analysis of cyclic-recurrence looped language models—architectures that repeatedly apply a shared Transformer block to latent states as a form of test-time compute scaling—focusing on whether and how the well-documented stages of inference from feedforward models persist under recurrent depth. Three publicly available pretrained models anchor the empirical work: Ouro 1.4B (24 recurrent layers, no input injection, trained for 4 recurrences), Huginn-0125 (3.5B, (2,4,2) sandwich structure with input injection, trained for 32 recurrences), and retrofitted Llama (McLeish et al., 1B Llama 3.2 base, (4,6,4) structure with input injection, trained for 32 recurrences), all evaluated on 256 GSM8k test examples. The primary analytical instrument is ColSum Concentration, a normalized-entropy metric over column-summed attention weights that generalizes attention sink detection to any token position, and which the paper uses alongside sink rate, mixing score, and residual entropy to track inference stage transitions across recurrences. The load-bearing finding is twofold. First, most looped models converge to cyclic fixed-point behavior: each layer within the recurrent block approaches a distinct fixed point in latent space, so the block traces a consistent cycle rather than collapsing all layers to the same attractor. Proposition 4.2 proves that this residual-stream convergence entails convergence of attention patterns, and Frobenius-norm matrices of attention similarities across depth confirm the diagonal block structure expected under this theory for all three models. Second, and more consequentially, the familiar early/middle/late stages of inference from feedforward Transformers recur within each iteration of the recurrent block—not merely once across the full realized depth. Retrofitted Llama reproduces its Llama 3.2 1B base-model ColSum Concentration profile on every loop; Ouro 1.4B independently develops a nearly identical profile despite being trained from scratch with recurrence. Small-scale pre-training experiments with configurations (2,4⊗4,2), (2,8⊗4,2), and (2,12⊗4,2)—trained for 3.7B tokens at dimension 512, constant 4 recurrences, standard cross-entropy loss—confirm this self-organization emerges without any feedforward training bias. The paper's central prediction is that fixed-point convergence is a prerequisite for stable test-time compute extrapolation: models that reach cyclic fixed points (retrofitted series, Huginn-0125) maintain stable stages of inference for arbitrarily many test-time recurrences beyond training, while Ouro, which does not reach a fixed point, shows continuously drifting ColSum Concentration profiles at 128 recurrences and published performance degradation. The mechanism for Huginn-0125's failure to develop clear stages of inference is attributed to its norm structure normalizing the residual stream after every sub-block, suppressing the magnitude growth that Queipo-de Llano et al. (2025) identify as causal for sink formation—a claim supported by ablating massive activations in retrofitted Llama, which eliminates its stages of inference. An alternative to ColSum Concentration that could have been used is the mixing score of Queipo-de Llano et al. (the average row entropy of attention matrices), which the paper reports in appendices and finds largely consistent; the choice of ColSum Concentration as the main-text metric is defensible but not uniquely determined. The most significant thing a critical reader would push back on is the causal status of the fixed-point/stages-of-inference link: the paper does not establish analytically why input injection and specific norm structures are sufficient for fixed-point convergence, nor does it show experimentally that inducing fixed-point convergence in Ouro would rescue its test-time extrapolation—the correlation between fixed-point behavior and out-of-distribution performance is demonstrated by pointing to separate published results rather than a controlled intervention. The scope is also limited to cyclic recurrence; the authors acknowledge the analysis does not extend to sequential multi-block recurrent architectures studied by Pappone et al. (2025).

Methods (10)

  • Attention Sink Score
    Per-head metric measuring fraction of attention weight concentrated on first token position
  • Chain-of-thought prompting
    Technique by which LLMs generate intermediate reasoning steps before final output; used by ChatGPT o3.
  • ColSum Concentration
    Primary metric for identifying stages of inference via normalized entropy of column sums of attention matrices
  • Frobenius Norm Comparison
    Used to compare attention matrix similarity across recurrences and validate cyclic fixed point behavior
  • Mixing Score
    Average row entropy of attention matrices per layer and head, measuring information mixing across tokens
  • Orbit Detection Algorithm
    Heuristic algorithm using detrending, Hann windowing, and FFT to classify token-level limiting behavior as FixedPoint, Orbit, Slider, or Unknown
  • PCA Latent Space Trajectory
    Dimensionality reduction applied to residual stream embeddings to visualize cyclic fixed point trajectories
  • Prediction and Suppression Neuron Fraction
    Input-independent metric for stages of inference from Gurnee et al., applied to both feedforward and looped models
  • Residual Entropy
    Matrix-based entropy H(X) of residual stream, measuring compression of representations across depth
  • Sink Rate
    Fraction of attention heads with sink score above threshold 0.3, used to track stages of inference

Frameworks (9)

  • Adaptive Computation Time
    Classic approach to adaptive test-time compute for recurrent networks, cited as precursor to looped LLMs
  • Cyclic Recurrence
    The specific looped mechanism studied: a fixed sequence of layers repeated in a cyclic pattern
  • Deep Equilibrium Models
    Prior work on fixed-point convergence in deep networks, foundational to understanding looped model dynamics
  • Input Injection
    Architectural choice where the original input is projected and re-injected at each recurrence, studied for its effect on fixed-point convergence
  • Looped Transformer
    Core subject of the paper: transformers that reapply layers cyclically to improve reasoning via test-time compute
  • PonderNet
    Probabilistic halting framework for adaptive computation, cited as foundational test-time compute work
  • Sandwich Block Structure
    Architecture pattern with feedforward layers before (prelude) and after (coda) the recurrent block
  • Stages of Inference
    The perspective that LLM inference decomposes into distinct computational stages, which the paper extends to looped models
  • Universal Transformers
    Early architecture reusing same transformer block for multiple iterations, precursor to looped LLMs

Datasets (2)

  • GSM8K
    Grade school math dataset used for math task in E3.
  • HellaSwag
    Commonsense reasoning benchmark used to test whether LLM-vision alignment predicts downstream performance

Findings (20)

Claims (11)

Hypotheses (2)

Questions (4)

Original abstract (expand)

Reasoning has become a central capability in large language models. Recent research has shown that reasoning performance can be improved by looping an LLM's layers in the latent dimension, resulting in looped reasoning language models. Despite promising results, few works have investigated how their internal dynamics differ from those of standard feedforward models. In this paper, we conduct a mechanistic analysis of the latent states in looped language models, focusing in particular on how the stages of inference observed in feedforward models compare to those observed in looped ones. To this end, we analyze cyclic recurrence and show that for many of the studied models each layer in the cycle converges to a distinct fixed point; consequently, the recurrent block follows a consistent cyclic trajectory in the latent space. We provide evidence that as these fixed points are reached, attention-head behavior stabilizes, leading to constant behavior across recurrences. Empirically, we discover that recurrent blocks learn stages of inference that closely mirror those of feedforward models, repeating these stages in depth with each iteration. We study how recurrent block size, input injection, and normalization influence the emergence and stability of these cyclic fixed points. We believe these findings help translate mechanistic insights into practical guidance for architectural design.

Related work— refs + corpus + external arXiv

Cited / in-corpus / arXiv badges show which signals surfaced each row. Multi-source rows weighted higher.

+28 more

Similar preprints — Semantic Scholar