Progress-Aligned Recurrence for Length Generalization in State Tracking
Summary (Overview)
-
Core contribution: The paper introduces Progress-Aligned Recurrence (PAR), a training method for looped language models that establishes a depth–length correspondence by training iteration to predict the state after the first operations, combined with RMS norm anchoring to stabilize recurrent state scale.
-
Key result: On swap- state tracking, a Qwen2.5-0.5B model trained on at most 32 moves achieves 95.5% mean full-state accuracy at 512 moves (16× the training length), compared to 55.7% for RLT and 0.8% for explicit chain-of-thought on the same backbone.
-
Two essential components: 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×.
-
Additional mechanisms: PAR includes a learned halting rule (no parameters added) for autonomous stopping without a supplied depth, and prefix self-distillation that induces the correspondence from final-answer labels alone when intermediate labels are unavailable.
-
Scope: Gains generalize across sequential state-tracking tasks and multiple backbones (Qwen2.5 up to 7B, Qwen3 up to 4B), but not to tasks without sequential decomposition (e.g., graph reachability).
Introduction and Theoretical Foundation
Background and Motivation
Length generalization asks whether a model trained on short problems can solve longer instances of the same task. Sequential state tracking provides a controlled setting: each operation updates a state used by later operations (e.g., rule-table chains, object tracking). The rules remain unchanged as the sequence grows; the model must apply them correctly over more steps.
Looped language models offer a way to make computational depth grow with length by repeatedly applying a shared transformer block to hidden states. However, on longer problems, neither additional parameters nor additional iterations help by itself:
- An untied model with 4× core depth extrapolates less than 2×
- A recurrent model with more iterations extrapolates less than 2×
- Fixed-depth Qwen2.5 models from 1.5B to 7B stay near chance at 16×
Theoretical Foundation: Depth–Length Correspondence
The paper frames length generalization in looped models as establishing a depth–length correspondence: iteration should hold the intermediate task state (the answer after the first operations). This addresses two twin failure modes:
- Unaligned loop targets: Final-answer supervision at every iteration encourages early predictions and weakens extrapolation (consistent with Chen et al. [4] on graph reachability).
- State drift: Recurrent states change scale as iterations accumulate, breaking the stationarity of the step map when the shared block is reused.
The correspondence is formalized by the training loss:
where is the answer after the first steps, is the step size (typically ), is the total number of operations, and contains iterations inside the gradient window.
Methodology
Architecture: Retrofitted Looped Language Model
Following McLeish et al. [20], the 24 layers of Qwen2.5-0.5B are split into:
- Prelude (layers 1–8): computes static input features
- Weight-tied core (layers 9–16): iterated recurrently
- Coda (layers 17–24): reads answers
The recurrence is:
where is an adapter initialized to , so with the retrofitted model initially computes the same function as its parent.
Key Components
1. Progress-Aligned Targets: Each iteration is trained to predict — the state after exactly operations. Two depth schedules satisfy this:
- Forced depth (default): each batch has a single depth , model runs iterations, no loss after completion
- Hold: drawn from heavy-tailed distribution (1 + Poisson(λ)), iterations past keep
2. RMS Norm Anchoring: Rescales each token's state to its first-iteration RMS norm after each iteration:
with a stop-gradient on the reference. This removes drift in state magnitude as the shared block is reused.
3. Learned Halting: The coda read-out is jointly trained to predict completion (Yes when , No otherwise) using class-balanced cross-entropy with weight 0.5. At test time, a "6 of 8" confirmation window selects the answer: first iteration with such that at least 6 of iterations also exceed ().
4. Prefix Self-Distillation (for label-free settings): Uses the fact that the first steps of a problem form a shorter problem with answer . Iterations receive cross-entropy on ; earlier iterations are trained via KL divergence to match a teacher (EMA of student, or live student) evaluated on the prompt truncated after steps.
5. Positional Stretch: During a short fine-tuning stage, position indices are multiplied by with ramped from 1 to 8, addressing long-prompt drift.
Empirical Validation / Results
Main Results: Depth Extrapolation
Table 1 (key results on Qwen2.5-0.5B):
| Method | 32 (2×) | 64 (4×) | 128 (8×) | G | G | Swap- 256 (8×) | Swap- 512 (16×) |
|---|---|---|---|---|---|---|---|
| Transformer | - | - | - | - | - | 0.85 ± 0.30 | 0.85 ± 0.30 |
| RLT | - | - | - | - | - | 97.3 ± 2.8 | 55.7 ± 25.8 |
| 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 | 39 | 14 | - | 1.76 | - | - | - |
| Random- recurrence* | 55 | 20 | 25 | 1.95 | 1.05 | - | - |
| PAR (ours) | 100 | 100 | 99.3 | 16 | 16 | 99.5 ± 1.2 | 95.5 ± 11.0 |
G = extrapolation factor (), where is the first test depth at which accuracy falls below the midpoint between chance and 100%.
Larger Backbones
Table 2 (accuracy at , 16×, on ):
| Method | 1.5B | 3B | 7B |
|---|---|---|---|
| Fixed depth (mean) | 22.2 ± 3.8 | 21.3 ± 2.4 | 18.2 ± 3.8 |
| PAR (mean) | 71.7 ± 42.7 | 57.8 ± 42.5 | 80.7 ± 33.1 |
| PAR (best seed) | 100 | 100 | 100 |
Learned Halting Results
Table 4 (swap-, full-state accuracy without knowing problem length):
| Method | 256 (8×) | 512 (16×) |
|---|---|---|
| RLT | 97.3 ± 2.8 | 55.7 ± 25.8 |
| PAR, oracle | 98.7 ± 3.1 | 93.2 ± 16.3 |
| PAR + learned halting | 98.7 ± 3.1 | 92.9 ± 16.2 |
Label-Free Learning (Prefix Self-Distillation)
Table 5 (on , train , final-answer labels only):
| Method | (16×) | G |
|---|---|---|
| Final answer at every loop | 21 / 21 | 2.14 / 1.99 |
| Final answer at loop , norm | 26 / 19 / 36 | <4 / <4 / 8 |
| PAR + prefix self-distillation | 85 | ≥ 16 |
Ablation: Both Conditions Are Necessary
Table 7 (on , train ):
| Variant | Target at iteration k | Schedule | Norm | G | Acc. (%) |
|---|---|---|---|---|---|
| Final answer at every loop | at every k | heavy-tailed R | ✓ | 2.14 / 1.99 | 21 / 21 |
| Final answer at loop d | at k = d only | forced R = d | - | 1.48 | 15 |
| Final answer at loop d, norm | at k = d only | forced R = d | ✓ | <4 / <4 / 8 | 26 / 19 / 36 |
| Prefix targets, no norm | forced R = d | - | 1.81 | 20 | |
| PAR | forced R = d | ✓ | 16 / 16 / 16 | 100 / 100 / 99 |
Prior Benchmarks
Table 6 (G values on prior benchmark tasks):
| Method | Rule chain (≤8→64) | Graph reach. (≤5→24) |
|---|---|---|
| Final answer at every loop | 1.45 | 2.4 |
| Prefix targets, no norm | 1.78 | 3.45 |
| PAR-hold | ≥8 | fail* |
| PAR | 6.0 | 2.6 |
Graph reachability has no canonical intermediate state (solved by parallel frontier expansion), so all recipes stay below 3.5×.
Theoretical and Practical Implications
Theoretical Implications
-
Defining iteration semantics matters: The paper demonstrates that "what an iteration computes" is a training target in its own right, alongside choosing how many iterations to run. Simply having more iterations or parameters does not confer extrapolation ability.
-
Stationarity of the step map: RMS norm anchoring is not an optional regularizer but a necessary condition for reusing a shared block hundreds of times. Without it, state representations drift and the step map changes what it computes.
-
Task structure determines feasibility: The correspondence targets sequential multi-step computation — the regime where fixed-depth transformers fail. Tasks without a sequential decomposition (like graph reachability's parallel frontier expansion) fall outside its scope.
-
Conflicting objectives break recurrence: Training the core to simultaneously advance intermediate states and act as a fixed point (absorbing state) introduces conflicting objectives that severely harm extrapolation. An independent completion read-out avoids this competition.
Practical Implications
-
Autonomous stopping: The learned halting rule works without knowing problem length at test time, matching oracle stopping within 1.6 accuracy points — critical for real-world deployment where input lengths are unknown.
-
Label efficiency: Prefix self-distillation enables learning the correspondence from final-answer labels alone, making the approach applicable to real data where intermediate states are not annotated.
-
Backbone compatibility: PAR works across Qwen2.5 (0.5B–7B) and Qwen3 (0.6B–4B) families, though results vary across seeds on larger models (standard deviations of 33–43 points at 16×), suggesting open questions about stabilizing recurrent scaling.
-
Comparison to alternatives: PAR surpasses RLT (a state-of-the-art latent recurrence method) and explicit chain-of-thought on the same backbone, demonstrating that retrofitted recurrence with proper supervision can outperform both token-level feedback and explicit reasoning traces.
Conclusion
Main Takeaways
-
A looped language model extrapolates in depth when each iteration has a defined job: aligning iteration with the first steps of the problem, and keeping the step map stationary via norm anchoring, turns extra iterations into extra reasoning.
-
A retrofitted 0.5B model trained with PAR surpasses the best published latent-recurrence model (RLT) on swap- at both 8× and 16× the training length.
-
The same correspondence enables the model to learn when to stop (via a parameter-free learned halting rule) and to learn its intermediate states from final answers alone (via prefix self-distillation).
Limitations and Future Directions
-
Scope: Evaluated only on algorithmic and templated state-tracking tasks with well-defined intermediate states; open-ended natural-language reasoning is left to future work.
-
Task constraints: Tasks without sequential decomposition (e.g., graph reachability) fall outside the method's scope.
-
Scaling concerns: Results do not establish a monotonic trend with model size; Qwen3 backbones do not approach Qwen2.5-0.5B at 16×. Characterizing seed variance on larger backbones and stabilizing recurrent scaling remain open questions.
-
Future work: Applying the correspondence to open-ended natural-language reasoning, understanding the mechanisms of seed variance on larger backbones, and stabilizing recurrent scaling across model families.
Related papers
- LiveMACE: Process-Aware Evaluation of LLM Agent Capabilities in Evolving Markets
LiveMACE shows outcome-based LLM agent rankings diverge sharply from process-based capability scores, revealing that similar returns can mask distinct tool-use, memory, and rule-following bottlenecks.
- CodeMidas: Scaling Agentic Coding RL Environments from Code Itself
CodeMidas automatically converts existing codebases into 5,545 verifiable RL training tasks, improving coding agent performance across all five external benchmarks without requiring issues, tests, or documentation.
- Learning to Think and Explore in 3D World
ACT3D learns active 3D exploration via outcome-driven reinforcement learning, achieving 53.2% average accuracy across six benchmarks and surpassing Gemini 3.6 Flash with 50–70% fewer input frames.