Manuscript Offprint
arXiv:2610.27628PAR: Progress-Aligned Recurrence for Length Generalization in State Tracking
Abstract
Looped language models can run more iterations at test time, but additional iterations need not help them solve longer problems. For sequential state tracking, final-answer supervision does not specify how far each iteration should advance, and repeated updates can change the scale of the recurrent state. We introduce Progress-Aligned Recurrence (PAR), which trains the prediction at iteration k to match the state after the first k operations and rescales recurrent states to their first-iteration norms. On swap- , a Qwen2.5-0.5B model trained on at most 32 moves achieves 95.5% mean full-state accuracy at 512 moves, or 16× the training length, compared with 55.7% reported for RLT and 0.8% for explicit chain of thought on the same backbone. Controlled ablations show that removing norm anchoring reduces the extrapolation factor from 16× to below 2.2×, and replacing progress-aligned targets with final-answer supervision reduces it to at most 8×. A learned completion readout selects when to answer without a supplied stopping depth. When intermediate labels are unavailable, prefix self-distillation induces the correspondence from shorter problem prefixes using only final answers. The gains apply across sequential state-tracking tasks, establishing the task structure required for depth extrapolation. These findings support training intermediate predictions and state scale together to make additional recurrent depth useful for longer problems.
Keywords: looped language models, length generalization, state tracking, recurrent depth, latent reasoning
1 Introduction
Length generalisation asks whether a model trained on short problems can solve longer instances of the same task [1, 7]. Sequential state tracking provides a controlled setting for studying this question: each operation updates a state used by later operations [19]. A rule-table chain, for example, uses each retrieved value to select the next lookup, while object tracking updates the locations of objects after each move [28, 29]. In these tasks, the rules remain unchanged as the sequence grows; the model must apply them correctly over more steps. Throughout this paper, length refers to the number of task operations.
Looped language models offer a way to make computational depth grow with this length. They repeatedly apply a shared transformer block to hidden states, allowing additional computation without generating a text description of each step [5, 9], and can be added to pretrained language models [20]. Iterations have thus been proposed as a scaling axis alongside parameters, improving test-time reasoning [9] and following predictable training trends [22]. On longer problems, however, neither axis helps by itself: on trained with at most 16 operations, an untied model with four times the core depth and a recurrent model run with more iterations both extrapolate less than , and fixed-depth Qwen2.5 models from 1.5B to 7B stay near chance at ( , ). Prior work demonstrates length generalisation by tying the loop count to task length [7], and shows that intermediate-state supervision can teach a pretrained model to perform successive rule lookups [28]. We build on these results to study how to sustain accurate execution over much longer operation sequences.
A central training choice is what to ask each intermediate loop to predict. A final-answer target does not specify the state after only some operations. On graph reachability, Chen [4] finds that asking for the final answer at every loop encourages early predictions and weakens extrapolation. Intermediate-state targets define progress more directly, but their effectiveness also depends on the recurrence itself. In our state-tracking experiments, such targets without norm anchoring lose accuracy beyond short extrapolation distances.
Equal Contributions.
PAR: Progress-Aligned Recurrence for Length Generalization
(§6.1). We therefore study progress-aligned supervision together with control of the scale of states passed between loops.
We introduce Progress-Aligned Recurrence (PAR) for pretrained language models. At a supervised iteration k, the prediction is trained to match the state after the first k operations (Figure 1a). This depth-length correspondence assigns successive task stages to successive loop outputs: on a rule-table chain, for instance, iteration k predicts the value reached after k lookups. To control state scale, PAR rescales each token's recurrent state to its first-iteration root-mean-square norm. The targets specify the intended progress, while norm anchoring fixes state magnitude as the shared block is reused.
The correspondence also guides when to read the answer and how to obtain intermediate targets. A correct answer can deteriorate if the model continues looping after completion ( ). We train the existing output layer to predict whether execution is complete, and use a short confirmation window to select the answer without a supplied stopping depth. When intermediate labels are unavailable, we use prefixes that are themselves valid shorter problems. Our prefix self-distillation uses predictions on such prefixes as targets for the corresponding iterations on the full input, learning from final-answer labels alone.
Our contributions are:
• We formulate length generalization in looped models as establishing a depth-length correspondence, identifying state drift and unaligned loop targets as twin failure modes and proposing Progress-Aligned Recurrence (PAR) to couple progress supervision with RMS norm anchoring.
• We extend PAR with a parameter-free learned halting rule to stop inference autonomously and prefix self-distillation to induce the correspondence without intermediate step labels.
• We demonstrate extrapolation on swap- (95.5% full-state accuracy vs. 55.7% for RLT and 0.8% for explicit CoT), show consistent benefits across backbones up to 7B, and isolate the necessity of both components through controlled ablations.
Latent reasoning and self-supervision. Coconut [12] and stepwise internalization [6] internalize reasoning along the sequence dimension using chain-of-thought data. In contrast, we compute along depth, using intermediate labels or prefix self-distillation inspired by mean-teacher consistency [31], in the spirit of work that derives training signals from a model's own outputs, interactions, or environments [13, 32, 34, 35, 39, 42]. While randomized positional encodings improve sequence generalization [24], our positional stretch stabilizes the recurrent step map when scaling to longer contexts without step labels.
3 Depth-Length Correspondence
Figure 2 outlines the PAR framework. We realize the depth-length correspondence by combining retrofitted recurrence with RMS norm anchoring to maintain a stationary step map ( , ), supervising each loop with progress-aligned targets ( ), reading completion autonomously via learned halting ( ), and extending the supervision to label-free settings through prefix self-distillation ( ).
3.1 A retrofitted looped language model
Following McLeish et al. [20], we split the 24 layers of Qwen2.5-0.5B [14] into a prelude (layers 1–8), a weight-tied core (layers 9–16) and a coda (layers 17–24), as shown in Figure 2a. With static input features and , the adapter projects the concatenated representations into the core, iterating
and reads an answer from any iteration. The adapter is initialised to , so with the retrofitted model initially computes the same function as its parent. All weights are trained, gradients flow through the last 8 iterations, and answers are read with a classification head over the candidate answer tokens at the query position.
3.2 Defining an iteration: progress-aligned targets
Consider a problem whose answer is computed by d sequential steps (for state tracking, d moves applied to a state). Let
PAR: Progress-Aligned Recurrence for Length Generalization

(a) Depth-Length Correspondence
(b) Only the Combination Extrapolates
Figure 1: (a) Depth-length correspondence: iteration predicts intermediate task state , scaling compute with problem length. (b) Test accuracy on single-query (trained on depth , chance 0.2, dashed); PAR sustains near-perfect accuracy to , whereas prior supervision recipes collapse (§6.1).
be the answer after the first j steps, so is the final answer. As depicted in Figure 2b, the correspondence asks iteration k to hold until the problem is finished. With step size c (we use c = 1), the training loss is
where K contains the iterations inside the gradient window. Each iteration must advance the computation by exactly c steps, so the iterations needed for a problem grow as d/c by construction. Supervising at every iteration breaks the correspondence: early iterations are asked for an answer they cannot yet compute, and the loss rewards shortcuts that do not scale with d.
Two depth schedules satisfy Eq. (2). Under forced depth, each batch contains a single depth , the model runs iterations, and there is no loss after completion. Under hold, is drawn from a heavy-tailed distribution with log-normal , mean 12, cap 48; 9) and iterations past keep . Forced depth is our default (PAR); §5.3 removes its need to know at test time.
3.3 Keeping the step map stationary
Extrapolation applies the step map hundreds of times, far beyond the training depths, so anything that drifts with or with absolute position eventually changes what the map computes. We remove two such drifts. State-norm anchoring rescales every token's state to the RMS norm of its first-iteration state after each iteration (Figure 2a), , with a stop-gradient on the reference; is unchanged. Positional stretch addresses long prompts, in which the query lies far from early moves: during a short fine-tuning stage we multiply position indices by , ramping from 1 to 8 [cf. 24], and test with ordinary positions. Label-supervised PAR reaches without the stretch; the label-free variant did not reach until fine-tuned with it (§6.3).
3.4 Reading completion: learned halting
Under the correspondence, whether the computation has finished is a property of the iteration index and the problem, so it can be supervised. As illustrated in Figure 2d, the coda read-out that produces the answer is also trained to put probability on the token Yes when and on No otherwise, using class-balanced cross-entropy with weight 0.5 on every supervised iteration plus one earlier iteration as an extra negative. No parameters are added, and training never runs an iteration beyond d. At test time we select the first answer iteration R with such that at least k of the iterations also exceed . After checking this confirmation window, we return the prediction made at R. We use , , ; §6.2 explains how this rule was chosen.
3.5 Correspondence without step labels: prefix self-distillation
Intermediate answers come for free from a synthetic generator but not from most real data. The correspondence supplies them anyway: the first steps of a problem form a shorter problem whose answer is , and shorter problems are the ones a model learns first. As shown in Figure 2c, prefix self-distillation therefore uses only final answers. Iterations receive cross-entropy on . For each example, up to earlier iterations are trained to match, by KL divergence, the answer distribution of a teacher that reads the same prompt truncated after steps, decoded at its own completion iteration. The teacher is an exponential moving average (EMA) of the student [31] or the live student.
3.6 Training
We use AdamW with learning rate ( for the adapter), 200 warm-up steps and one epoch over examples spread uniformly over training depths (compute details in Appendix A). No intermediate tokens are generated
PAR: Progress-Aligned Recurrence for Length Generalization
(a) A stable recurrent step

Full prompt x
m1
m2
...
m_n
Box?
Prelude P
Layers 1-8
Full prompt available
at every loop
e fixed input
features
previous
latent state
Concat + W
Shared Core C
Layers 9-16
next loop
RMS anchoring
Coda Q
Layers 17-24
(b) Progress-aligned training
Loop k predicts the answer after k moves
Moves
...
Loops
...
Targets
...
(c) Prefix self-distillation
Alternative to intermediate labels
Student
Full prompt
Teacher
Prefix 1:k
...
Box?
...
Box?
Student
update
EMA teacher
Final loop d: CE on final answer
(d) Learned halting
Answer
Yes/No
Existing Coda Q
Confirmation over loops
No
No
Yes
...
Yes
8 consecutive confirmations
Figure 2: Overview of the PAR framework. (a) Architecture (§3.1, §3.3): Retrofitted prelude P, weight-tied core C, and coda Q, stabilized across iterations via RMS norm anchoring. (b) Progress alignment (§3.2): Recurrent iteration k predicts intermediate state after k operations, establishing an explicit depth-length correspondence. (c) Prefix self-distillation (§3.5): An EMA teacher evaluated on prefix 1:k supervises iteration k, inducing intermediate states from final-answer labels alone. (d) Learned halting (§3.4): The coda jointly predicts task completion (Yes/No); inference terminates when a multi-step confirmation window is met.
at training or test time.
4 Experimental Setup
Tasks. Group word problems. A prompt lists moves on five boxes, each holding a distinct item, and queries a box. In swap- each move is the identity or one of the 10 transpositions; in each move is a 3-cycle. Chance accuracy per query is 0.2. Swap- protocol [11, 41]: we train on at most 32 moves and test on 1,024 sequences per length. A sequence counts as correct only if all five boxes are answered correctly (full-state accuracy). Benchmarks from prior literature: the rule-table chain of Shapiro [28] (unary depth, train , test to 64) and the graph reachability task of Chen [4] (train hops, test to 24).
Metrics. Accuracy is reported in % unless stated otherwise. On and we also report the extrapolation factor , where is the first test depth at which accuracy with iterations falls below the midpoint between chance and 100%. With test depths up to 256 and , is the largest measurable value.
Baselines. With the same retrofitted Qwen2.5-0.5B backbone, data and step budget as PAR, we compare explicit CoT fine-tuning that writes the full state trace, a fixed-depth model (R = 1), an untied model with the core repeated four times (48 layers), and random-R recurrence with state-norm [9]. On the swap- protocol we also compare with Transformer and RLT, using the values reported by Zhang et al. [41] for their best split, (mean over 3 seeds). Variants of PAR that remove one of its components, including the supervision schemes of prior work, are studied separately in §6.
5 Main Results
5.1 Depth extrapolation
Table 1 compares PAR with the baselines. On the swap- protocol, PAR maintains over 95% full-state accuracy out to 16× extrapolation, where RLT drops to 55.7% and every PAR seed exceeds RLT's mean. On and , PAR achieves the maximum measurable extrapolation factor (G = 16) across all seeds, whereas fixed-depth, recurrent, and 48-layer untied baselines stay below 2×: neither iteration count nor parameter count alone substitutes for the correspondence. Explicit CoT is perfect within the training range but collapses to chance by 8× on swap- , demonstrating that the pretrained backbone does not inherently confer extrapolation.
5.2 Larger and different backbones
Table 2 evaluates larger Qwen2.5 backbones (1.5B, 3B, and 7B) on . On every backbone, the best PAR seed maintains 100% accuracy through , whereas fixed-depth baselines remain near chance ( ). Across seeds, PAR provides substantial gains at all model sizes, with non-extrapolating seeds accounting for cross-seed variance.
Table 3 reports results on the Qwen3 family [40] across 0.6B, 1.7B, and 4B scales. PAR consistently outperforms fixed depth across all evaluated depths: accuracy remains near ceiling at and maintains a wide margin through . At the horizon ( ), where fixed-depth models
PAR: Progress-Aligned Recurrence for Length Generalization
| Method | Swap- | ||||||
|---|---|---|---|---|---|---|---|
| 32 (2×) | 64 (4×) | 128 (8×) | 256 (8×) | 512 (16×) | |||
| Transformer | - | - | - | - | - | ||
| RLT | - | - | - | - | - | ||
| Explicit CoT | 12 | 4 | 0 | 1.247 | 1.125 | 0.8 | 0.8 |
| Fixed depth () | 19 | 20 | 17 | 1.62 | 1.32 | - | - |
| Untied 4× core (48 layers) | 39 | 14 | - | 1.76 | - | - | - |
| Random- recurrence* | 55 | 20 | 25 | 1.95 | 1.05 | - | - |
| PAR (ours) | 100 | 100 | 99.3 | 16 | 16 | ||
Table 1: Main results. Accuracy (%) with iterations on (one query, chance 20%) and full-state accuracy (%) on the swap- protocol of Zhang et al. [41]; column headers give the test length and its multiple of the training length. : extrapolation factor. *Best per depth. PAR: mean over 3 seeds on , 2 on and 6 on swap- (1,024 test sequences per length). –: not reported.
| Method | Seeds | 1.5B | 3B | 7B |
|---|---|---|---|---|
| Fixed depth | mean | |||
| best | 26.5 | 24.0 | 21.5 | |
| PAR | mean | |||
| best | 100 | 100 | 100 |
Table 2: Larger Qwen2.5 backbones: accuracy (%) at (16×) on (train , one query, chance 20%). mean: mean over 3 seeds; best: best seed.
| Backbone | Method | Test depth | |||
|---|---|---|---|---|---|
| 32 | 64 | 128 | 256 | ||
| Qwen3-0.6B | Fixed depth | 59.2 | 17.7 | 21.3 | 22.0 |
| PAR | 99.7 | 87.5 | 60.2 | 36.2 | |
| Qwen3-1.7B | Fixed depth | 50.0 | 19.8 | 20.3 | 19.2 |
| PAR | 99.8 | 75.5 | 43.8 | 38.8 | |
| Qwen3-4B | Fixed depth | 61.0 | 18.2 | 20.3 | 17.7 |
| PAR | 97.0 | 62.3 | 62.3 | 53.0 | |
Table 3: Qwen3 backbones: accuracy (%) by test depth (2×–16× the training depth) on (train , one query, chance 20%), mean over 3 seeds.
collapse near chance, PAR reaches up to 53% mean accuracy on 4B, retaining an advantage across scales despite increased seed variance on larger models.
5.3 Learning when to stop
Forced-depth models answer correctly at but degrade rapidly thereafter, dropping to near-zero accuracy within a few extra iterations at 16×. Inference therefore requires identifying when execution finishes. With the “6 of 8” rule (§3.4), the jointly trained read-out halts without knowing problem length (Table 4): accuracy closely matches the oracle iteration count across all seeds and reaches 92.9% at 16× (vs. 55.7% for RLT).
This stopping mechanism succeeds because jointly trained models enter a persistent finished state (Figure 3a), with jumping from near zero before to near 1 afterwards. Because the answer representation itself remains valid for only a few steps past completion (Figure 3b), the rule reliably reads the prediction from the onset of the finished signal.
| Method (swap-, train ) | 256 (8×) | 512 (16×) |
|---|---|---|
| RLT | ||
| PAR, oracle | ||
| PAR + learned halting |
Table 4: Learned halting: full-state accuracy (%) without access to the problem length (6 seeds, 1,024 sequences per length, step-6000 checkpoints). Grey: the same models run for exactly iterations, for reference.
| Method (final-answer labels only) | ||
|---|---|---|
| Fixed depth () | - | 1.62 |
| Untied 4× core (48 layers) | - | 1.76 |
| Random- recurrence | - | 1.95 |
| Final answer at every loop | 21 / 21 | 2.14 / 1.99 |
| Final answer at loop | 15 | 1.48 |
| Final answer at loop , norm | 26 / 19 / 36 | |
| PAR + prefix self-distillation | 85 |
Table 5: Extrapolation without intermediate labels on (train , one query, chance 20%; accuracy in %, “/” separates seeds). The final-answer recipes are defined in Table 7. –: not evaluated at ; these models are at chance by (Table 10).
5.4 Learning without step labels
Prefix self-distillation learns the correspondence from final answers alone. Among the label-free models in Table 5, it is the only approach sustaining high accuracy at 16× (85% at , ), whereas alternative final-answer supervision recipes degrade substantially. While label-supervised PAR remains stronger at the longest depths (Figure 1b), positional stretch fine-tuning (§6.3) enables
PAR: Progress-Aligned Recurrence for Length Generalization
Joint training (6 seeds)
Read-out added by fine-tuning (2 seeds)

(a) Completion Read-out
(b) Accuracy against the Final Answer
Figure 3: Halting at the training length (, all 5 queries). Solid purple: joint training (6 seeds, 1,024 sequences); dashed red: read-out added by fine-tuning (2 seeds, 1,024 sequences). The shaded region marks iterations before completion () and the dashed vertical line marks . (a) The completion read-out stays at 0 until the iteration count reaches . For jointly trained models it then stays near 1, while for the fine-tuned read-out it fades within two iterations. (b) Accuracy against the final answer peaks exactly when the read-out fires and decays a few iterations later, so the answer must be read where the “finished” signal starts. Before the iterations hold intermediate states, which differ from the final answer (horizontal dashed line: chance).
| Method | Rule chain(≤ 8 → 64) | Graph reach.(≤ 5 → 24) |
|---|---|---|
| Final answer at every loop | 1.45 | 2.4 |
| Final answer at loop d | - | 3.3 |
| Prefix targets, no norm | 1.78 | 3.45 |
| PAR-hold | ≥ 8 | fail* |
| PAR | 6.0 | 2.6 |
Table 6: G on benchmark tasks from Shapiro [28] (rule chain) and Chen [4] (graph reachability). Methods are defined in Table 7. -: not run. *Predicts the majority class.
strong extrapolation on swap-: fine-tuned models reach up to accuracy at (Table 12), surpassing RLT without requiring step labels.
5.5 Prior benchmarks and scope
Benchmarks from prior literature. Table 6 evaluates the recipes on the benchmark tasks on which the final-answer and unanchored recipes were introduced. On the rule-table chain, an inherently sequential lookup problem, PAR-hold reaches (94% accuracy at depth 64) and PAR reaches 6.0, whereas prefix targets without norm anchoring stall at 1.78.
Inductive bias and task structure. Graph reachability is solved by expanding a frontier in parallel rather than by a fixed sequence of steps, so it has no canonical intermediate state for iteration to hold; all recipes stay below on it. The correspondence targets sequential multi-step computation, the regime in which fixed-depth transformers fail [19, 21].
Natural-language format. On a BIG-Bench-Hard-style [29] tracking shuffled objects format with natural-language swaps, trained on swaps, PAR-hold with positional stretch reaches at 32 and at 64 swaps (chance ), whereas random- and fixed-depth baselines with the same stretch reach at most and . The original BBH items (3, 5 and 7 objects) lie within the training range, and all models score on them.
6 Ablation Studies
6.1 Both conditions are necessary
Table 7 varies one condition at a time on with training depth . Three findings follow.
Final-answer targets do not define an iteration. Supervising at every iteration stalls at , in line with Chen [4], while supervising it only at iteration d reaches G = 1.48. Adding norm anchoring to iteration-d supervision extends extrapolation for a single seed (G = 8), but the remaining seeds degrade earlier; across seeds, accuracy at depth 256 averages 26.8%, far below the near-perfect accuracy maintained by PAR.
The correspondence needs a stationary step map. Prefix targets without norm anchoring stall at under either schedule, consistent with findings in unanchored recurrence [28], as state representations drift when iterated repeatedly.
Together, the two conditions extrapolate at least . PAR reaches G = 16 across all seeds with near-ceiling accuracy at d = 256. PAR-hold also extrapolates beyond , though with lower consistency across seeds.
Positional stretch alone does not create the correspondence. Applied as a fine-tune to the fixed-depth and random-
PAR: Progress-Aligned Recurrence for Length Generalization
| Variant | Target at iteration | Schedule | Norm | Acc. (%) | |
|---|---|---|---|---|---|
| Final answer at every loop | at every | heavy-tailed | ✓ | 2.14 / 1.99 | 21 / 21 |
| Final answer at loop | at only | forced | - | 1.48 | 15 |
| Final answer at loop , norm | at only | forced | ✓ | <4 / <4 / 8 | 26 / 19 / 36 |
| Prefix targets, no norm, hold | heavy-tailed | - | 1.84 | 16 | |
| Prefix targets, no norm | forced | - | 1.81 | 20 | |
| PAR-hold | heavy-tailed | ✓ | 16 / 12 | 75 / 30 | |
| PAR | forced | ✓ | 16 / 16 / 16 | 100 / 100 / 99 |
Table 7: Ablation of the two conditions on (train , test to 256, one query, chance 20%). Norm: state-norm anchoring. and accuracy at are given per seed. All rows share the backbone, data, optimiser and step budget. Rows 1, 2 and 5 instantiate the supervision recipes of Chen [4], Fan et al. [7] and Shapiro [28] on our backbone. Accuracy curves across test depths with iterations are in Figure 1b.
| Stopping rule | 256 (8×) | 512 (16×) |
|---|---|---|
| Single iteration () | - | 77.8 ± 25.7 |
| 8 in a row | 98.7 ± 3.1 | 90.3 ± 16.4 |
| 6 of 8 (PAR) | 98.7 ± 3.1 | 92.9 ± 16.2 |
Table 8: Stopping rules for the jointly trained read-out (swap-, full-state %, same 6 seeds and checkpoints as Table 4). -: not reported.
models, positional stretch leaves both at chance by depth 48 (23% and 18%; Table 10). Applied to a PAR-hold model with step size , which already has the correspondence, the same fine-tune keeps 99% accuracy at depth 512, 32× the training depth, in one run with a fixed . Stationarity makes an existing step map reusable; it does not create one. A one-pass initialisation blocks the correspondence. On , PAR trained from the pretrained parent reaches on both seeds (Table 1). Warm-starting all layers from a fixed-depth model that already solves in a single pass gives : the model keeps its one-pass solution and never learns the step map. Warm-starting only the prelude succeeds on one of two seeds.
6.2 Stopping rule and alternatives to halting
Stopping rule. Evaluating at a single iteration is brittle (Table 8), as transient probability spikes cause premature stopping at long horizons. Conversely, requiring all 8 consecutive iterations to confirm completion is overly strict when probabilities fluctuate, delaying stopping until predictions drift. The “6 of 8” rule balances robustness and responsiveness, matching oracle stopping within 1.6 points across all evaluated sequences.
Joint training versus a fine-tuned read-out. Adding the read-out by fine-tuning an existing PAR checkpoint yields different dynamics (Figure 3a): spikes sharply at completion and decays within two iterations. As a result, multi-step confirmation windows fail to trigger, whereas single-iteration stopping recovers oracle accuracy across both seeds (Table 11). However, fine-tuning causes minor accuracy degradation on one seed at 16× compared to joint training.
| Teacher | |||
|---|---|---|---|
| EMA 0.99 + curriculum | - | - | 2.6 |
| Slow EMA + confidence filter | - | - | 5.6 |
| EMA 0.99, forced depth | 99 | 57 | ≈16 |
| EMA 0.99 | 97 | 61 | ≥ 16 |
| Live student + depth curriculum | 98 | 85 | ≥ 16 |
Table 9: Teacher configurations for prefix self-distillation on (train , single-query accuracy in % at ). -: not evaluated. The last row is the configuration reported in Table 5.
Training on extra iterations is not a substitute. An alternative to an explicit halting signal is making completion an absorbing state by training models on extra iterations that must retain . While this preserves in-distribution accuracy, it severely harms extrapolation: accuracy collapses below 1% at 16× across evaluated seeds. Asking the recurrent core to advance intermediate states while simultaneously acting as a fixed point introduces conflicting objectives; an independent completion read-out avoids this competition.
6.3 Teacher and positional stretch in prefix self-distillation
Teacher. Three of five teacher configurations reach or more (Table 9); the live-student teacher with a depth curriculum keeps the highest accuracy at .
Positional stretch. On swap-, initial label-free models extrapolate partially to 8× but collapse at 16× (Table 12). The failure is abrupt rather than cumulative: per-query accuracy stays high at 256 moves before dropping to chance at 512, pointing to a non-stationary step map driven by absolute position encodings. A short fine-tune combining the label-free objective with positional stretch restores extrapolation across all starting checkpoints, raising 16× accuracy from near-chance levels up to 99.7%. Training with stretch from the start similarly yields runs achieving perfect accuracy at
PAR: Progress-Aligned Recurrence for Length Generalization
both lengths, while label-supervised PAR achieves its results without stretch.
7 Conclusion
A looped language model extrapolates in depth when each of its iterations has a defined job. Aligning iteration k with the first k steps of the problem, and keeping the step map stationary, turns extra iterations into extra reasoning. A retrofitted 0.5B model trained this way surpasses the best published latent-recurrence model on swap- at and the training length. The same correspondence lets the model learn when to stop and lets it learn its intermediate states from final answers alone. Defining what an iteration means is thus a training target in its own right, alongside choosing how many iterations to run.
Limitations
We evaluate on algorithmic and templated state-tracking tasks, where intermediate states are well defined; applying the correspondence to open-ended natural-language reasoning [36–38] is left to future work. Tasks without a sequential decomposition, such as graph reachability, fall outside its scope. Our scaling study covers Qwen2.5 backbones up to 7B and Qwen3 backbones up to 4B, with three seeds each, in the single-query setting only; swap- , learned halting and prefix self-distillation are evaluated only on Qwen2.5-0.5B. On the larger backbones, as with prefix self-distillation, results vary across seeds far more than for PAR on Qwen2.5-0.5B (standard deviations of 33–43 points at 16× on Qwen2.5-1.5B to 7B), accuracy does not rise monotonically with Qwen2.5 size, and no Qwen3 backbone approaches Qwen2.5-0.5B at 16×. These results therefore do not establish a monotonic trend with model size; characterizing the mechanisms of seed variance on larger backbones and stabilizing recurrent scaling remain open questions for future work.
Ethics Statement
This work studies training methods on synthetic reasoning tasks with publicly available models [14, 40]. It involves no human subjects and no personal data. Latent reasoning writes no intermediate steps, which makes it less transparent than chain of thought. Under the correspondence, however, every iteration can be decoded into the intermediate answer it holds, which offers a way to inspect the latent computation.
References
[1] Cem Anil, Yuhuai Wu, Anders Andreassen, Aitor Lewkowycz, Vedant Misra, Vinay Ramasesh, Ambrose Slone, Guy Gur-Ari, Ethan Dyer, and Behnam Neyshabur. Exploring length generalization in large
language models. Advances in Neural Information Processing Systems, 35:38546–38556, 2022.
[2] Andrea Banino, Jan Balaguer, and Charles Blundell. Pondernet: Learning to ponder. arXiv preprint arXiv:2107.05407, 2021.
[3] Arpit Bansal, Avi Schwarzschild, Eitan Borgnia, Zeyad Emam, Furong Huang, Micah Goldblum, and Tom Goldstein. End-to-end algorithm synthesis with recurrent networks: Extrapolation without overthinking. Advances in Neural Information Processing Systems, 35:20232–20242, 2022.
[4] Hung-Hsuan Chen. Thinking deeper, not longer: Memory-efficient test-time reasoning with depth-recurrent transformers for compositional generalization, 2026. URL https://arxiv.org/abs/2603.21676.
[5] Mostafa Dehghani, Stephan Gouws, Oriol Vinyals, Jakob Uszkoreit, and Łukasz Kaiser. Universal transformers. arXiv preprint arXiv:1807.03819, 2018.
[6] Yuntian Deng, Yejin Choi, and Stuart Shieber. From explicit cot to implicit cot: Learning to internalize cot step by step. arXiv preprint arXiv:2405.14838, 2024.
[7] Ying Fan, Yilun Du, Kannan Ramchandran, and Kangwook Lee. Looped transformers for length generalization. In International Conference on Learning Representations, volume 2025, pages 14502–14520, 2025.
[8] Ying Fan, Anej Svete, and Kangwook Lee. Bridging the gap between latent and explicit reasoning with looped transformers. arXiv preprint arXiv:2606.31779, 2026.
[9] Jonas Geiping, Sean McLeish, Neel Jain, John Kirchembauer, Siddharth Singh, Brian Bartoldson, Bhavya Kailkhura, Abhinav Bhatele, and Tom Goldstein. Scaling up test-time compute with latent reasoning: A recurrent depth approach. Advances in Neural Information Processing Systems, 38:41340–41391, 2026.
[10] Alex Graves. Adaptive computation time for recurrent neural networks. arXiv preprint arXiv:1603.08983, 2016.
[11] Riccardo Grazzi, Julien Siems, Arber Zela, Jörg Franke, Frank Hutter, et al. Unlocking state-tracking in linear rnns through negative eigenvalues. In International Conference on Learning Representations, volume 2025, pages 36565–36597, 2025.
[12] Shibo Hao, Sainbayar Sukhbaatar, DiJia Su, Xian Li, Zhiting Hu, Jason Weston, and Yuandong Tian. Training large language models to reason in a continuous latent space. arXiv preprint arXiv:2412.06769, 2024.
PAR: Progress-Aligned Recurrence for Length Generalization
[13] Yihao Hu, Zhihao Wen, Xiujin Liu, Pan Wang, Xin Zhang, and Wei Wu. Seal: Synergistic co-evolution of agents and learning environments. arXiv preprint arXiv:2605.24426, 2026.
[14] Binyuan Hui, Jian Yang, Zeyu Cui, Jiaxi Yang, Dayiheng Liu, Lei Zhang, Tianyu Liu, Jiajun Zhang, Bowen Yu, Keming Lu, et al. Qwen2. 5-coder technical report. arXiv preprint arXiv:2409.12186, 2024.
[15] Ahmadreza Jeddi, Marco Ciccone, and Babak Taati. Loopformer: Elastic-depth looped transformers for latent reasoning via shortcut modulation. arXiv preprint arXiv:2602.11451, 2026.
[16] Hsun-Yu Kuo, El Mahdi Chayti, Patrik Reizinger, Wieland Brendel, and Martin Jaggi. Stabilizing extrapolation in looped transformers via learned stochastic stopping. arXiv preprint arXiv:2606.29983, 2026.
[17] Asher Labovich. Stability and generalization in looped transformers. arXiv preprint arXiv:2604.15259, 2026.
[18] Jia Liang, Xi Jin, and Liangming Pan. Beyond the training horizon: Mechanisms and limits of length generalization in looped transformers. arXiv preprint arXiv:2609.33144, 2026.
[19] Bingbin Liu, Jordan T Ash, Surbhi Goel, Akshay Krishnamurthy, and Cyril Zhang. Transformers learn shortcuts to automata. arXiv preprint arXiv:2210.10749, 2022.
[20] Sean McLeish, Ang Li, John Kirchenbauer, Dayal Singh Kalra, Brian R Bartoldson, Bhavya Kailkhura, Avi Schwarzschild, Jonas Geiping, Tom Goldstein, and Micah Goldblum. Teaching pretrained language models to think deeper with retrofitted recurrence. arXiv preprint arXiv:2511.07384, 2025.
[21] William Merrill, Jackson Petty, and Ashish Sabharwal. The illusion of state in state-space models. arXiv preprint arXiv:2404.08819, 2024.
[22] Hayden Prairie, Zachary Novack, Taylor Berg-Kirkpatrick, and Daniel Y Fu. Parcae: Scaling laws for stable looped language models. arXiv preprint arXiv:2604.12946, 2026.
[23] Samyam Rajbhandari, Jeff Rasley, Olatunji Ruwase, and Yuxiong He. Zero: Memory optimizations toward training trillion parameter models. In SC20: international conference for high performance computing, networking, storage and analysis, pages 1–16. IEEE, 2020.
[24] Anian Ruoss, Grégoire Delétang, Tim Genewein, Jordi Grau-Moya, Róbert Csordás, Mehdi Bennani, Shane
Legg, and Joel Veness. Randomized positional encodings boost length generalization of transformers. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 1889–1903, 2023.
[25] Nikunj Saunshi, Nishanth Dikkala, Zhiyuan Li, Sanjiv Kumar, and Sashank J Reddi. Reasoning with latent thoughts: On the power of looped transformers. In International Conference on Learning Representations, volume 2025, pages 14855–14881, 2025.
[26] Mark Schöne, Babak Rahmani, Heiner Kremer, Fabian Falck, Hitesh Ballani, and Jannes Gladrow. Implicit language models are rnns: balancing parallelization and expressivity. arXiv preprint arXiv:2502.07827, 2025.
[27] Avi Schwarzschild, Eitan Borgnia, Arjun Gupta, Furong Huang, Uzi Vishkin, Micah Goldblum, and Tom Goldstein. Can you learn an algorithm? generalizing from easy to hard problems with recurrent networks. Advances in Neural Information Processing Systems, 34:6695–6706, 2021.
[28] Mark Shapiro. Retrofitting recurrent depth into a pretrained language model: Installation, extrapolation, transfer, and retention at two parameter budgets. arXiv preprint arXiv:2608.11233, 2026.
[29] Mirac Suzgun, Nathan Scales, Nathanael Schärli, Sebastian Gehrmann, Yi Tay, Hyung Won Chung, Aakanksha Chowdhery, Quoc Le, Ed H Chi, Denny Zhou, et al. Challenging big-bench tasks and whether chain-of-thought can solve them. In Findings of the Association for Computational Linguistics: ACL 2023, pages 13003–13051, 2023.
[30] Shota Takashiro, Masanori Koyama, Takeru Miyato, Yusuke Iwasawa, Yutaka Matsuo, and Kohei Hayashi. Exploration of fast-slow latent recurrence for train-short, test-long generalization, 2026. URL https://arxiv.org/abs/2604.01577.
[31] Antti Tarvainen and Harri Valpola. Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results. Advances in neural information processing systems, 30, 2017.
[32] Yongqi Tong, Pan Wang, Hang Wang, Jianshe Li, Xin Zhang, Jiang-Ming Yang, and Wei Wu. Grounded skill synthesis from code at scale for agentic intelligence. arXiv preprint arXiv:2609.05571, 2026.
[33] Ha Van Dau, Thanh Tung Khuat, and Nguyen Thanh Dung. Beyond depth truncation: Controlled evaluation
PAR: Progress-Aligned Recurrence for Length Generalization
of depth utilization in recursive language models. arXiv preprint arXiv:2609.19934, 2026.
[34] Pan Wang. REFLEX: Reflective evolution from LLM experience. In ICML 2026 AI for Science Workshop, 2026. URL https://openreview.net/forum?id=xftknNrW7n.
[35] Pan Wang, Yihao Hu, Hang Wang, Zirui Lv, Xin Zhang, Jianshe Li, Jiang-Ming Yang, Wei Wu, and Yongqi Tong. Diagnosis before recovery: Turning agent failures into selective self-correction. arXiv preprint arXiv:2608.11772, 2026.
[36] Siheng Xiong, Ali Payani, Yuan Yang, and Faramarz Fekri. Deliberate reasoning in language models as structure-aware planning with an accurate world model. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 31900–31931, 2025.
[37] Siheng Xiong, Oguzhan Gungordu, James C Kerce, and Faramarz Fekri. Adaptive information control for search-augmented llm reasoning. arXiv preprint arXiv:2602.01672, 2026.
[38] Siheng Xiong, Ali Payani, and Faramarz Fekri. Enhancing language model reasoning with structured multi-level modeling. In International Conference on Learning Representations, volume 2026, pages 36557–36610, 2026.
[39] Siheng Xiong, Ali Payani, Oguzhan Gungordu, and Faramarz Fekri. Dive: Unlocking self-improvement in frozen language models through diversity-driven skill evolution. arXiv preprint arXiv:2608.12486, 2026.
[40] An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, et al. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025.
[41] Yifan Zhang, Jichen Feng, and Shihan Qin. Recurrent looped transformer, 2026. URL https://arxiv.org/abs/2610.07591.
[42] Yiwen Zhao, Zhihao Wen, Yuchen Mao, Mingxuan Jiang, Yihao Hu, Pan Wang, Xin Zhang, and Wei Wu. Towards better agents for multi-turn user interaction: The next user turn is more than context. arXiv preprint arXiv:2608.17499, 2026.
A Additional Results
Per-depth results for the first recipe version. Table 10 gives accuracy by test depth for PAR-hold and the baselines (train ).
PAR-hold on the swap- protocol. Across 6 seeds evaluated on 1,024 sequences per length, PAR-hold with positional stretch achieves at and at , trailing forced-depth PAR in both mean accuracy and cross-seed consistency.
Explicit CoT by length. On the swap- protocol, the explicit CoT baseline achieves perfect accuracy at the trained length (100% at 32 moves) but collapses rapidly beyond it: full-state accuracy drops to 35.6% at 64 moves, 3.1% at 128 moves, and collapses to 0.8% at 256 and 512 moves. Similarly, on the single-query task (trained on depth ), CoT accuracy falls from 100% at depth 16 to 12% at 32, 4% at 64, and 0% at 128.
Per-seed halting results. Table 11 lists the per-seed results behind Tables 4 and 8.
Per-run label-free results on swap- . Table 12 reports prefix self-distillation results on the swap- protocol, before and after the positional-stretch fine-tune.
Compute. All runs train in bf16 with DeepSpeed ZeRO-2 [23], on two RTX 4090 or 3090 GPUs for Qwen2.5-0.5B and Qwen3-0.6B and on eight H200 GPUs for Qwen2.5-1.5B, 3B, 7B, and Qwen3-1.7B and 4B.
Configurations of the halting and label-free runs. Learned halting is trained jointly from the pretrained parent for one epoch with weight 0.5. The fine-tuned variant starts from two PAR checkpoints and trains for 0.3 epochs with learning rate . The label-free models use forced depth, an EMA teacher with decay 0.99 read at its own completion iteration, and distilled iterations per example, trained for 0.6 and 1 epoch. The positional-stretch fine-tune continues each starting model for 0.5 epochs with the same loss and (step-6000 checkpoint for seed 2, step 5000 for seeds 4 and 5, final model for the seed 0). The stretch-from-the-start models train for one epoch with .
PAR: Progress-Aligned Recurrence for Length Generalization
| Model | 24 | 32 | 48 | 64 | 128 | 256 | 384 | 512 |
|---|---|---|---|---|---|---|---|---|
| Fixed depth | 0.73 | 0.19 | 0.23 | 0.20 | 0.17 | – | – | – |
| Random- (best per depth) | 0.93 | 0.55 | 0.23 | 0.20 | 0.25 | – | – | – |
| Untied 4× core (48 layers) | 0.88 | 0.39 | 0.20 | 0.14 | – | – | – | – |
| Fixed + stretch FT | 0.84 | 0.35 | 0.23 | 0.16 | 0.16 | 0.19 | – | – |
| Random- + stretch FT | 0.93 | 0.60 | 0.18 | 0.18 | 0.17 | – | – | – |
| PAR-hold w/o state-norm | 0.98 | 0.23 | 0.18 | 0.17 | 0.20 | – | – | – |
| PAR-hold (), , seed 0 | 1.00 | 1.00 | 1.00 | 0.97 | 0.95 | 0.86 | 0.72 | 0.72 |
| PAR-hold (), , seed 1 | 1.00 | 0.98 | 0.99 | 0.99 | 0.97 | 0.92 | 0.97 | 0.91 |
| PAR-hold () + stretch FT, | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 0.99 |
| Same FT without stretch | 0.98 | 1.00 | 0.91 | 0.69 | 0.23 | 0.26 | – | – |
Table 10: accuracy by test depth (single-query proportions, chance 0.2). These earlier runs sample in training; the , rows use 16× the largest training loop count at . Positional stretch helps only together with progress-aligned targets.
| Seed | 256 (8×) | 512 (16×) | ||||
|---|---|---|---|---|---|---|
| 6 of 8 | 8 in a row | 6 of 8 | 8 in a row | |||
| 0 | 100.0 | 100.0 | 100.0 | 99.6 | 99.6 | 99.6 |
| 1 | 99.9 | 99.9 | 99.9 | 99.9 | 98.3 | 99.9 |
| 2 | 92.4 | 92.4 | 92.4 | 59.9 | 59.9 | 59.9 |
| 3 | 100.0 | 100.0 | 100.0 | 99.9 | 99.9 | 99.9 |
| 4 | 99.9 | 99.9 | 99.9 | 99.7 | 99.7 | 82.4 |
| 5 | 100.0 | 100.0 | 100.0 | 99.9 | 99.9 | 99.9 |
| mean | 98.7 | 98.7 | 98.7 | 93.2 | 92.9 | 90.3 |
Table 11: Learned halting per seed (swap-, full-state %, 1,024 sequences per length, step-6000 checkpoints). : oracle iteration count. “6 of 8”: select the first answer iteration with at which at least 6 of the iterations exceed 0.5, then return the prediction from after confirmation; “8 in a row”: all 8 must exceed 0.5.
| Starting model | 8× | 16× | q-acc 16× |
|---|---|---|---|
| , seed 0 | 73.8 | 0.4 | 22.1 |
| + positional stretch | 76.2 | 26.7 | 74.9 |
| , seed 2 | 52.7 | 0.0 | 26.7 |
| + stretch | 99.9 | 99.7 | 99.8 |
| + stretch, second FT seed | 99.2 | 98.4 | 99.2 |
| , seed 4 | 72.3 | 5.5 | 39.4 |
| + stretch | 100.0 | 99.7 | 99.9 |
| , seed 5 | 30.9 | 1.2 | 32.7 |
| + stretch | 86.2 | 65.5 | 85.2 |
| Stretch from the start, seed 7 | 100.0 | 100.0 | 100.0 |
Table 12: Prefix self-distillation on swap- (train , full-state %; q-acc: per-query accuracy, chance 20%). Models before the stretch fine-tune use 256 sequences per length, all others 1,024; every stretch fine-tuned model scores at least 99.2% in range (32 moves). The seed-4 and seed-5 starting models are step-5000 checkpoints.