Paper Feed

Issue 43 · Pick 09 AI / ML ✓ read

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

TL;DR: Looped transformers — models that reuse one block of layers over and over — promise "think longer on harder problems," but in practice extra iterations rarely help on longer inputs. This paper identifies exactly why, and fixes it with two cheap interventions: supervise iteration k to hold the answer after exactly the first k operations (a depth–length correspondence), and rescale the recurrent state's norm after every iteration so the step function stays stationary. A retrofitted Qwen2.5-0.5B trained on permutation-tracking problems of at most 32 moves then solves 512-move problems at 95.5% full-state accuracy — 16× extrapolation — where explicit chain-of-thought on the same backbone collapses to 0.8%. The ablations are the real contribution: they cleanly separate the two failure modes and show both fixes are necessary.

The problem: more loops ≠ more progress

State tracking is the canonical "you cannot shortcut this" task. Five boxes each hold an item; a prompt lists d moves, each swapping two boxes; the model must say what's in each box at the end. Formally this is composing d elements of the symmetric group S_5, which is known to require genuinely sequential computation — a fixed-depth transformer provably cannot do it for unbounded d, and empirically fixed-depth models go to chance quickly past their training length. It's the drosophila of length generalization.

Looped language models look like the natural answer. Take a pretrained transformer, keep the first layers as a prelude P, tie the middle layers into a reusable core C, keep the last layers as a coda Q that reads out answers. At test time, run the core R times instead of once:

s_k = C\big(W[e;\, s_{k-1}]\big), \qquad e = P(x),

where e is the static input encoding, s_k is the recurrent state after k iterations, and W is an adapter that merges them. More moves in the problem? Run more iterations. Depth scales with difficulty, no chain-of-thought tokens needed.

Except it doesn't work. The paper's baselines make this stark: trained on S_5 with at most 16 operations, a recurrent model run with more test-time iterations extrapolates to less than 2\times the training length. So does an untied model with 4× the core depth (48 layers). Fixed-depth Qwen2.5 models from 1.5B to 7B sit near chance at 16×. Neither more iterations nor more parameters buys you anything. Extra depth is available but unused — a known pathology of looped models.

Why? Final-answer supervision is silent about what each iteration should do. If you train the model to produce the final answer and nothing else, the loss doesn't care whether iteration 3 has processed three moves, seven moves, or learned some fixed-depth shortcut that happens to work up to length 16. Related work found that asking for the final answer at every loop is actively harmful: it rewards answering early, which is exactly the shortcut that fails to scale.

The insight: give every iteration a job, and keep the job description stable

The paper's framing is that depth extrapolation requires a depth–length correspondence: iteration k of the loop should compute the task state after exactly the first k operations. Then "solve a longer problem" reduces to "run the same step map more times" — and crucially, that step map is something the model has already learned perfectly in-distribution.

Two things break this in practice, and the paper names them as twin failure modes:

  1. Unaligned loop targets. Nothing in final-answer supervision pins iteration k to progress level k. The model is free to compress or smear computation across depth however it likes, and whatever it picks won't be the uniform-rate schedule that extrapolates.

  2. State drift. Even with aligned targets, repeatedly applying the core changes the magnitude of the hidden state. The core was trained on states of a certain scale; after 100 applications the state has drifted, and the same weights now compute a different function. The map isn't stationary in k.

PAR fixes both. The training loss supervises each iteration against the ground-truth intermediate state:

\mathcal{L}_{\text{PAR}} = \sum_{k \in \mathcal{K}} \operatorname{CE}\big(Q(s_k),\; z_{\min(ck,\, d)}\big),

where z_j is the correct answer after the first j operations, c is the step size (how many operations one iteration advances; they use c=1), d is problem length, and \mathcal{K} is the set of iterations inside the gradient window (gradients flow through the last 8 loops). And after every iteration, the state is rescaled to its first-iteration RMS norm:

s_k \leftarrow s_k \cdot \frac{\operatorname{rms}(s_1)}{\operatorname{rms}(s_k)},

with a stop-gradient on the reference. That's it — a per-token scalar rescale, no new parameters.

Depth–length correspondence

Problem: move 1: swap A,C move 2: swap B,E move 3: swap A,D … d moves

Looped core C: iter 1 iter 2 iter 3 iter d

same weights

rescale to rms(s₁)

z₁ z₂ z₃ z_d = final answer

Target at iteration k: the box contents after the first k moves Longer problem → run the same step map more times. No CoT tokens generated.

PAR's two conditions: progress-aligned targets pin iteration k to the state after k operations (green), and RMS norm anchoring (orange) rescales the recurrent state after every loop so the step map stays the same function no matter how many times it is applied.

A useful mental model: the core is being trained to be one "tick" of a simulator — apply one move to the current state. Final-answer supervision asks the model to be a whole simulator of unspecified internal structure; progress-aligned supervision asks it to be a clock, and norm anchoring keeps the clock's gears from wearing down as they turn. Once you have a correct, stationary tick, length generalization is just running the clock longer.

The evidence

The headline result is on the swap-S_5 protocol (train on ≤32 moves, test out to 512, a sequence counts only if all five box queries are correct):

Swap-S5 full-state accuracy (trained on ≤32 moves)accuracy (%)0204060801000.80.8597.399.5256 moves (8×)0.80.8555.795.5512 moves (16×)Explicit CoTTransformerRLT (prior best)PARTable 1. PAR: mean over 6 seeds, 1,024 test sequences per length. RLT and Transformer values as reported by Zhang et al. for the same protocol.

Two things to note. Explicit chain-of-thought — writing out the full state trace, the standard remedy for state tracking — is perfect at the training length and dead at 8×. The pretrained backbone confers nothing; the sequential autoregressive trace doesn't survive length extrapolation here. And RLT, the best published latent-recurrence result on this task, holds at 8× but degrades badly at 16× (55.7% ± 25.8); every PAR seed beats RLT's mean.

But the table that makes the paper is the ablation (Table 7, §6.1), which varies the two conditions one at a time on single-query S_5 (train d \le 16). The key metric is the extrapolation factor G: how many multiples of the training length you reach before accuracy falls halfway to chance.

Ablation: extrapolation factor G on S5 (train d ≤ 16)G (× training length, max measurable = 16)0510152.14Final answer, every loop1.48Final answer, loop d only8Final ans. loop d + norm (best seed)1.81Progress targets, no norm16PAR (both)Table 7. PAR reaches G=16 (the ceiling of the test range) on all 3 seeds with 99–100% accuracy at d=256; the norm-only variant's other seeds stay below 4.

The factorization is clean. Progress-aligned targets without norm anchoring stall around 1.8× — the model knows what each iteration should compute, but the state drifts and the map stops being the same function. Norm anchoring without aligned targets gets one lucky seed to 8× but averages 26.8% at d=256 — the map is stationary but was never trained to advance at a uniform rate. Both together: 16× (the ceiling of the measured range), 99–100% at d=256, all seeds. This is the kind of ablation that actually explains a phenomenon rather than decorating a result.

Two smaller findings deepen the story. First, warm-starting hurts: initializing from a fixed-depth model that already solves d \le 16 in one pass gives G \approx 1.4 — the model clings to its one-pass shortcut and never learns the step map. The shortcut isn't just unhelpful; it's an attractor that blocks the right solution. Second, in §5.3 they show that a correctly-answering model destroys its own answer if you keep looping past completion — accuracy drops to near zero within a few extra iterations at 16×. The recurrent core is an "advance the state" machine, not a fixed point, so you must read the answer at the right moment.

That motivates the halting mechanism: the existing output head is additionally trained to emit Yes/No for "is the computation done" (ck \ge d or not). No extra parameters, no PonderNet-style ponder penalty. At test time they stop at the first iteration where P(\texttt{Yes}) > 0.5 and at least 6 of the next 8 iterations agree. With this, accuracy without knowing the problem length is 92.9% at 16× versus 93.2% with oracle stopping — essentially free. Interestingly, this only works when the completion head is trained jointly: a fine-tuned read-out produces a Yes spike that decays within two iterations, too brief for the confirmation window. Jointly trained models instead enter a persistent "finished" basin.

When you don't have intermediate labels

The obvious objection: progress-aligned supervision needs the ground-truth state after every prefix, which synthetic generators give you for free and real data does not. The paper's answer — prefix self-distillation — is the most transferable idea here. The first k operations of a problem are themselves a valid shorter problem, and shorter problems are learned first. So: run an EMA teacher (or the live student) on the prompt truncated after k operations, decode its answer at its own completion iteration, and use that distribution as the KL target for iteration k on the full input. Only final-answer labels ever touch the pipeline; the depth–length correspondence bootstraps itself from short to long.

It works, with caveats. On S_5 it reaches 85% at d=256 (G \ge 16), while every other label-free recipe (final answer at every loop, at loop d, with or without norm) dies by 4–8×. On swap-S_5 the label-free models initially collapsed at 16× — not gradually, but abruptly between 256 and 512 moves, which the authors trace to absolute positional encodings making the step map non-stationary over very long prompts. A short fine-tune with positional stretch (multiplying position indices by a random factor up to 8 during training) fixes it, recovering up to 99.7% at 16×. Notably, positional stretch applied to baselines without the correspondence does nothing — "stationarity makes an existing step map reusable; it does not create one."

Scope, and where to be skeptical

The paper is honest about its boundaries, and they matter.

Task structure is a hard prerequisite. On graph reachability — solved by parallel frontier expansion, with no canonical "state after k steps" — every recipe including PAR stays below 3.5×. The correspondence is a tool for inherently sequential computation, not a general reasoning booster. This is a feature of the analysis (it predicts its own failure mode) but a real constraint on applicability.

Everything load-bearing is synthetic. S_5, A_5, rule-table chains, templated natural-language swaps (where PAR-hold gets 79% at 64 swaps vs. ≤21% for fixed-depth, chance 17% — encouraging but still templated). Whether real reasoning traces admit a clean notion of "progress level k" for prefix self-distillation to latch onto is entirely open. My guess is that for many natural tasks the honest answer is "partially" — math derivations and code execution have well-defined intermediate states; open-ended argument does not.

Scaling is shaky. On larger backbones, PAR's mean accuracy at 16× varies wildly across seeds (standard deviations of 33–43 points on Qwen2.5-1.5B/3B/7B; mean at 3B is 57.8% despite the best seed hitting 100%). Accuracy is not monotone in model size, and no Qwen3 backbone comes close to Qwen2.5-0.5B at 16× (Qwen3-4B manages 53%). The method finds the right solution reliably at 0.5B and only sometimes at scale — the paper flags this openly as unresolved. If you're hoping to retrofit this into a 70B model, the optimization landscape apparently gets harder, not easier. The warm-start result hints at why: bigger pretrained models have stronger one-pass shortcuts to escape.

The baselines are fair but the comparison to CoT is narrow. CoT here means writing the full state trace within a fixed context; its collapse at long lengths is a known positional/context effect as much as a reasoning failure. The interesting comparison is latent recurrence vs. latent recurrence, where PAR vs. RLT (95.5% vs. 55.7% at 16×) is a genuine gap.

Why this is worth your attention anyway

Looped/recurrent-depth transformers are having a moment (Geiping et al.'s recurrent-depth models, McLeish et al.'s retrofitting, scaling-law studies treating iterations as a compute axis), and the consistent embarrassment has been that extra depth goes unused. This paper offers the sharpest available diagnosis of why: the loop has no defined unit of progress, and the state scale drifts. Both fixes are nearly free — a per-iteration rescale and a target schedule — and the ablations isolate their necessity about as cleanly as synthetic experiments allow. There's also a nice interpretability dividend buried in the ethics statement: under the correspondence, every latent iteration decodes to a human-readable intermediate state, making this latent reasoner more inspectable than most, not less.

The idea most likely to travel is prefix self-distillation: "the prefix of a problem is a shorter problem, so distill your own answers on prefixes into your early iterations" is a general recipe for manufacturing process supervision from outcome labels, and it isn't obviously restricted to permutation groups.

Where to spend your reading time: §6.1 and Table 7 (the two-condition ablation — the intellectual core), then §5.3 and Figure 3 (the "answers decay after completion" dynamics and the halting read-out), then §3.5 for prefix self-distillation. The main results table you've now effectively seen above.