Looped transformers reuse one block of weights many times, so they can spend more computation on a hard input without adding parameters. The current recipe for making such models robust is to train with a random number of loops, which teaches every extra loop to refine the answer rather than wreck it. Stability methods then push the hidden state toward a single resting point, a fixed point it settles into. That is the wrong shape for multi-step problems. A four-step word problem needs the hidden state to pass through four distinct intermediate results, not settle once. Probing work confirms the mismatch. Inside a large looped model, intermediate and final answers become decodable at the same time rather than in sequence, and latent looping reaches only a fraction of what the same model gets by writing out its reasoning in text.
We propose to randomize depth per sub-goal rather than per input. A problem is split into sub-goals at a chosen granularity, meaning how many atomic operations each sub-goal covers. The model loops a random number of times on each sub-goal, and a learned "advance" signal moves it to the next one. Stochastic depth makes extra loops within a sub-goal harmless, so each sub-goal becomes its own local resting point. The chain of these resting points carries out the decomposition. This design lets us ask a question no one has tested: does the inverted-U tradeoff between too-coarse and too-fine decomposition, known for text chain-of-thought, also govern latent recurrence? And does the best granularity shift with the capacity of one loop, as theory predicts?
Core Claim
Our first claim is that per-segment stochastic depth, combined with an advance signal and a readout of each intermediate result at segment boundaries, produces looped models with three properties. Their intermediate results become decodable in order, which is the sequential behavior Latent Chain-of-Thought? Decoding the Depth-Recurrent Transformer failed to find in Huginn-3.5B. They extrapolate to more composition steps than they were trained on. And their accuracy changes monotonically with extra loops, where current methods plateau or drop.
Our second claim is scientific. Accuracy as a function of supervision granularity will follow an inverted U. The peak will move toward coarser sub-goals as the width of the looped block grows. That is the qualitative prediction of the optimal branching degree $m^* = e^{d/2}$ derived by How does Chain of Thought decompose complex tasks?, where $d$ is an intrinsic-dimension capacity term. If both claims hold, the depth-sampling distribution stops being an arbitrary training hyperparameter. It becomes a prior over decomposition granularity that can be set from task structure.
Relation to Prior Work
Three lines of work supply the method and motivate the design.
The first supplies the depth-randomization technique. Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approach samples loop counts during training so that extra iterations refine latent states. Parcae samples depth per sequence and stabilizes the loop with a control-theory parameterization. STARS adds random loop sampling to a penalty that keeps the loop's Jacobian spectral radius below one; the spectral radius is the largest stretching factor the loop applies to small changes in the hidden state. Path Independent Equilibrium Models argues that randomized iteration counts produce path-independent equilibria that support harder test-time problems. All four treat the whole input as one trajectory toward one attractor. We keep their sampling trick but apply it inside each sub-goal segment. We then test whether this removes the conflict between a contractive loop and a multi-phase problem.
The second line motivates the gap. The Huginn probing study above found a "lens paradox" and simultaneous rank rise. It reports 4.62% on GSM8K for latent recurrence versus 24.87% with explicit chain-of-thought. Autoregressive + Chain of Thought = Recurrent shows that text chain-of-thought gains its power by writing intermediate states out and reading them back, which amounts to a recurrent state transition. Our segment readouts and advance signal copy that structure inside the continuous state, without emitting tokens. Inner Thinking Transformer adds learned step embeddings and routes hard tokens through extra loops. Its routing ratios are fixed, however, and its step embeddings mark loop index, not sub-goal identity. Our advance embedding marks sub-goal transitions whose timing is random during training.
The third line constrains the granularity axis. Nadgir et al. derive the U-shaped error curve. Designing Algorithms Empowered by Language Models shows that noise from overly fine decomposition drowns the signal. AutoPRM finds a middle "granularity switch" setting ($\epsilon = 0.8$) that works best for text sub-questions. All of these results concern externalized token steps. None measures granularity inside a recurrent latent computation, and none ties the optimum to per-step capacity in a trained architecture.
Research Program
Each training example comes with an ordered list of sub-goal targets $s_1,\dots,s_K$. The targets are extracted at granularity $g$, meaning one target per $g$ atomic operations. For synthetic tasks these come from the generator. For GSM8K they are the intermediate quantities in the reference solutions.
For each segment $j$ we sample a loop count $n_j$ independently from a fixed distribution. At the start of each segment, a learned advance embedding is added to the hidden state. At the end of each segment, a shared lightweight readout head must decode $s_j$, and the model's output head produces the final answer after segment $K$. The training loss is
$$\mathcal{L} = \mathcal{L}_{\text{ans}} + \lambda \sum_{j=1}^{K} \mathcal{L}_{\text{read}}(h_{T_j}, s_j),$$
where $h_{T_j}$ is the hidden state after the last loop of segment $j$, $\mathcal{L}_{\text{read}}$ is cross-entropy of the readout head, and $\lambda$ weights the intermediate supervision.
Because $n_j$ is random, the readout must succeed after any number of loops within the segment. This pushes each segment toward a local attractor, a state that encodes $s_j$ and stays put. Only the advance signal moves the state to the next attractor.
At test time, a simple controller fires the advance signal after a segment's hidden state stops changing, specifically when the relative change in the hidden state falls below a threshold. The controller halts when the readout emits an end symbol. Test-time compute can then grow in two separate ways: more loops per segment for refinement, and more segments for longer compositions.
We build this on two backbones. For controlled studies we train small looped transformers from scratch at three block widths. For realistic reasoning we fine-tune the Ouro-1.4B looped model used by STARS. This makes the STARS comparison close to like-for-like.
The analysis has three parts. We track, per segment, when each intermediate result reaches top rank under the readout and under a logit lens, using the rank-trajectory protocol of Lu et al. We estimate the loop's Jacobian spectral radius within segments and at boundaries, to check the piecewise-contraction picture directly. We sweep $g$ and block width to map the granularity curve.
Baselines
Plain fixed-depth training. The naive reference is a looped model trained at a fixed loop count with only the final-answer loss. It shows the brittleness that the other methods address. On GSM8K, STARS reports that plain fine-tuning of Ouro-1.4B loses 20.47% accuracy when unrolled from 4 to 8 loops.
STARS. The strongest existing method is STARS: random loop sampling over the whole input plus Jacobian spectral radius regularization. It is the right competitor because it targets exactly our test-time stability metric on the same backbone and benchmark. It reports the unrolling drop falling to 8.26%, a 4.01% gain in peak accuracy, and 100% on 4-digit addition across thousands of loops. We will rerun STARS ourselves on Ouro-1.4B with the same fine-tuning data, the same total loop budget per example, and the same hyperparameter search budget. Our method will get the same number of search trials. Beating STARS means two things. First, a higher peak GSM8K accuracy at matched average loops. Second, a smaller drop from peak when loops are doubled, below the 8.26% figure measured in our own rerun. On synthetic composition tasks, beating STARS means higher accuracy at composition lengths beyond those seen in training. On MATH-500, ASDiv and SVAMP, no reported STARS result was found on Lacuna, so we compare only against our rerun.
Parcae. Parcae serves as a second stability baseline in the from-scratch setting. It uses per-sequence depth sampling with its stable parameterization. The file reports only language-modeling perplexity gains for it: up to 27% over prior looped models. No reported result was found on Lacuna for Parcae on multi-step reasoning.
Two ablations. These isolate the key ingredient. Fixed-segment supervision keeps the readout losses but ties each sub-goal to a fixed loop index, like deep supervision. It removes per-segment randomness and the advance signal. Unsupervised segments keeps random segment lengths and the advance signal but drops $\mathcal{L}_{\text{read}}$. It tests whether the structure alone produces sequential intermediate states without labels.
Explicit chain-of-thought. A text chain-of-thought model of the same backbone, run at matched inference FLOPs, is the reference for what externalized decomposition achieves. Lu et al. report 24.87% on GSM8K for Huginn with text chain-of-thought.
Why not just…?
Why not just write out chain-of-thought tokens? This is the most serious threat. Zhang et al. show text chain-of-thought takes GPT-4 from 0% to 100% on insertion sort and multi-digit addition, and Huginn's text reasoning beats its latent looping roughly fivefold. We do not claim latent recurrence wins outright. We claim it can close most of that gap at far lower token and memory cost. The matched-FLOP comparison on Chomsky-hierarchy tasks and GSM8K will settle this. If our method stays far below text chain-of-thought even at equal compute, the practical case fails. The granularity findings would still stand as science.
Why not just add intermediate supervision at fixed loop indices? This is deep supervision without random timing, and it may well capture most of the benefit on in-distribution lengths. Our argument is that fixed timing recreates the co-adaptation to a specific trajectory that Nah et al. and STARS show breaks under extra loops. The fixed-segment ablation tests this directly. If it matches our method on both extra-loop stability and extrapolation to longer compositions, then random segment lengths are unnecessary, and we would report that.
Why not just sample total depth from a wider distribution, as STARS and Parcae do? Whole-input sampling teaches invariance to total loop count. It does not tell the model where one sub-goal ends and the next begins, which is consistent with the simultaneous rank rise Lu et al. observed. The STARS rerun plus rank-trajectory probes will show whether whole-input sampling ever produces ordered intermediate results. If it does, the advance signal is redundant.
Why not just use a larger feedforward model? The file's evidence consistently favors weight sharing at fixed parameters. PonderLM-2.8B surpasses Pythia-6.9B, and a 12M recurrent ResNet matches a 31M feedforward one (The Uncanny Similarity of Recurrence and Depth). A fixed-depth model also cannot extend its computation for longer compositions. We include a parameter-matched and a FLOP-matched feedforward model on the synthetic tasks for completeness.
Proposed Experiments
Synthetic composition tasks. The controlled testbed uses tasks where the number of sub-goals is known. These are chained composite arithmetic with $K$ operations, the Chomsky-hierarchy tasks of Zhang et al. (parity, list reversal, sorting, multi-digit multiplication), and the 9x9 to 13x13 maze dataset of Schwarzschild et al., where path length sets depth. We train on $K \le 6$ and test up to $K = 16$. We sweep granularity $g$ from 1 to 4 operations per sub-goal across three block widths.
Decisive check 1: extrapolation. Our method must beat STARS and Parcae on accuracy at $K > 6$. It must also keep accuracy flat or rising as loops per segment grow to ten times the training mean.
Decisive check 2: the granularity curve. Accuracy versus $g$ must show an interior peak, and that peak must move to larger $g$ as block width grows. A monotone curve, or a peak that does not move with capacity, would falsify the link to Nadgir et al.'s tradeoff.
Realistic benchmark. We fine-tune Ouro-1.4B on GSM8K using solution-derived intermediate quantities. We evaluate GSM8K, MATH-500, SVAMP and ASDiv, reporting peak accuracy, the drop from peak at doubled loops, and accuracy per inference FLOP.
Decisive check 3: interpretability. Using Lu et al.'s rank-trajectory protocol, the intermediate results in GSM8K problems must reach top readout rank in order, before the final answer. We also measure the within-segment Jacobian spectral radius, which should be below one, with visible jumps at boundaries.
Decisive check 4: supervision dependence. The unsupervised-segment ablation tells us whether sub-goal labels are required. If they are, the method's reach is limited to domains where intermediate targets can be extracted. We report that limitation openly.
References
- Latent Chain-of-Thought? Decoding the Depth-Recurrent Transformer
- How does Chain of Thought decompose complex tasks?
- Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approach
- Parcae: A Dynamical Systems Perspective to Stable Looped LLMs
- Stabilizing Recurrent Dynamics for Test-Time Scalable Latent Reasoning in Looped Language Models
- Path Independent Equilibrium Models Can Better Exploit Test-Time Computation
- Autoregressive + Chain of Thought = Recurrent: Recurrence's Role in Language Models' Computability and a Revisit of Recurrent Transformer
- Inner Thinking Transformer: Leveraging Dynamic Depth Scaling to Foster Adaptive Internal Thinking
- Designing Algorithms Empowered by Language Models: An Analytical Framework, Case Studies, and Insights
- AutoPRM: Automating Procedural Supervision for Multi-Step Reasoning via Controllable Question Decomposition
- Recurrent Neural Networks With Intra-Frame Iterations for Video Deblurring.
- The Uncanny Similarity of Recurrence and Depth