PAR: Progress-Aligned Recurrence for Length Generalization in State Tracking
Organizations: Ant International · National University of Singapore
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 to match the state after the first 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 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 to below , and replacing progress-aligned targets with final-answer supervision reduces it to at most . 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.
Figures & tables
| , train | , train | Swap- , train | |||||
| Method | 32 ( ) | 64 ( ) | 128 ( ) | 256 ( ) | 512 ( ) | ||
| 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 core (48 layers) | 39 | 14 | – | 1.76 | – | – | – |
| Method (swap- , train ) | 256 ( ) | 512 ( ) |
|---|---|---|
| RLT | ||
| PAR, oracle | ||
| PAR + learned halting |
| Method (final-answer labels only) | ( ) | |
| Fixed depth ( ) | – | 1.62 |
| Untied 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 | 4 / 4 / 8 |
| Method | Rule chain | Graph reach. |
|---|---|---|
| ( ) | ( ) | |
| Final answer at every loop | 1.45 | 2.4 |
| Final answer at loop | – | 3.3 |
| Prefix targets, no norm | 1.78 | 3.45 |
| PAR-hold | fail ∗ | |
| PAR | 6.0 | 2.6 |
| Stopping rule | 256 ( ) | 512 ( ) |
|---|---|---|
| Single iteration ( ) | – | |
| 8 in a row | ||
| 6 of 8 (PAR) |
| Teacher | |||
| EMA 0.99 + curriculum | – | – | 2.6 |
| Slow EMA + confidence filter | – | – | 5.6 |
| EMA 0.99, forced depth | 99 | 57 | |
| EMA 0.99 | 97 | 61 | |
| Live student + depth curriculum | 98 | 85 |
| 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 | – | – | – |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| 256 ( ) | 512 ( ) | |||||
|---|---|---|---|---|---|---|
| Seed | 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 |
| Starting model | q-acc | ||
|---|---|---|---|
| , 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 |
Length Generalization
Length generalization studies whether sequence models trained on short inputs can reliably solve the same tasks on longer sequences.
See all 47 papers