arXiv(opens in a new tab)cs.CLOct 2026Cited by 3 papers on PaperVantage

Manuscript Offprint

arXiv:2610.27628

PAR: Progress-Aligned Recurrence for Length Generalization in State Tracking

Pan Wang, Yihao Hu, Guangyuan Dong, Yitong Lin, Hang Wang, Zimi Liu, Zhihao Wen, Jianshe Li, Jiang-Ming Yang, Wei Wu, Yongqi Tong

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- S5S_{5}, 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 S5S_{5} 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 S5S_{5} 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 2×2\times, and fixed-depth Qwen2.5 models from 1.5B to 7B stay near chance at 16×16\times ( §5.1\S5.1, §5.2\S5.2). 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 ( §5.3§5.3). 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 16×16\times extrapolation on swap- S5S_{5} (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.

References (38)