Towards Looped Models Done Right: Part II — Rethinking at Fixed Points
Summary (Overview)
- Fixed points enable efficiency shortcuts: When looped language model states converge to fixed points, the endpoint can replace the full recurrent trajectory, enabling truncated backpropagation in training, terminal KV sharing in decoding, distilled prefill, and rollout-state reuse in RL.
- Two training components shape fixed points: The depth prior (distribution of training depths) and input injection (how the input enters each recurrence) determine whether models actually converge to useful fixed points.
- Learned depth prior outperforms fixed priors: A categorical prior learned from prediction feedback with entropy regularization lowers perplexity at every scale (100M–1.6B) compared to Huginn's fixed Poisson-lognormal prior, while keeping terminal KV sharing intact.
- Orthogonal input injection (OrthoInj) improves convergence: Projecting out the state's component along the injected input ensures every recurrence receives the input at consistent strength, outperforming Parcae's injection scheme.
- Two new shortcuts enabled: Distilled prefill achieves up to 1.79× faster prefill on 8K prompts, and rollout-state reuse in RL halves scoring/backward time while maintaining quality.
Introduction and Theoretical Foundation
Looped language models repeatedly apply a shared block of layers, with two competing design philosophies: one camp keeps loop counts small and fixed (forgoing fixed points), while the other shapes fixed points and loops much deeper. The paper argues that fixed points hold the key to cutting costs at every stage: pretraining (activation storage), serving (KV cache), prefill (compute), and post-training (rollout replay in RL).
The core theoretical foundation rests on the fixed-point equation:
where is the fixed-point state, is the shared update map, and is the input. The sensitivity of the fixed point to parameters is given by implicit differentiation:
This depends only on the endpoint, not the path to it — the key insight that enables all the efficiency gains.
Convergence measurement: Tokens converge at heterogeneous depths, measured by the tokenwise relative change:
Token is converged from depth if (threshold ) for all .
Methodology
1. Truncated Backpropagation (TBPTT)
The equilibrium gradient can be expressed via Neumann series:
where and . TBPTT differentiates through only the last recurrences, with gradient:
This is stable from initialization (unlike pure implicit gradients which require warm-up) and recovers the fixed-point gradient as states converge.
2. Rollout-State Reuse for RL
Full BPTT gradient can be approximated using only the endpoint :
The reuse algorithm (Neumann-(b−1)): applies the recurrent block once at , then loops the backward pass times over that single recorded recurrence, iterating .
3. Learned Depth Prior
Replaces the fixed PLN prior with a categorical prior over depths , learned by minimizing:
- Prediction quality: Advantage where (inverse perplexity) and EMA statistics center/rescale the reward
- Entropy regularization: keeps the distribution broad for KV sharing
- Budget control: maintains the target mean depth
4. Orthogonal Input Injection (OrthoInj)
Standard additive injection (Parcae): with diagonal carryover .
OrthoInj projects out the state's component along the input:
This ensures the component along is exactly at every recurrence, with contractive projected carryover: .
5. Distilled Prefill
A lightweight student replaces the iterated recurrent core during prefill, predicting from the prelude output , trained with:
6. Theoretical Guarantee (Lemma 1)
Under contraction conditions () and Lipschitz continuity (-Lipschitz on context), the joint and frozen-prefix iterations:
both converge to the same fixed point , proving terminal KV sharing transfers from training to decoding.
Empirical Validation / Results
Key Results at 1.6B Scale (L)
Table: Learned Prior vs. Baselines (L scale, R=5, terminal KV sharing)
| Training | Val. PPL ↓ | Wiki PPL ↓ | Downstream AVG (%) | GSM8K (%) |
|---|---|---|---|---|
| Fixed R=5 | 3.24 | 8.92 | 56.90 | 21.23 |
| Fixed PLN-5 | 3.10 | 8.76 | 59.30 | 47.61 |
| Learned, λH=0 | 3.12 | 8.75 | 58.44 | 36.47 |
| Learned, λH=0.01 | 3.07 | 8.68 | 60.00 | 47.92 |
| Untied 4 | 3.66 | 11.14 | 51.08 | 7.20 |
| Untied 12 | 2.89 | 7.93 | 61.47 | 48.82 |
Key findings:
- The learned prior with entropy regularization matches the full-cache downstream average of fixed-depth training while using a 3× smaller KV cache
- Fixed-depth training breaks KV sharing: GSM8K drops from 50.6 to 21.2 under sharing
- The learned prior's lead over Untied 4 grows with scale: +2.2 (S), +5.0 (M), +8.9 (L) downstream points
OrthoInj Results
| Scale | Val. PPL (Parcae) | Val. PPL (OrthoInj) | Downstream AVG (Parcae) | Downstream AVG (OrthoInj) |
|---|---|---|---|---|
| S | 5.75 | 5.67 | 41.28 | 41.65 |
| M | 3.96 | 3.94 | 49.03 | 49.16 |
| L | 3.09 | 3.08 | 59.22 | 59.26 |
Rollout-State Reuse (RL)
| Update method | GSM8K Pass@1 | MBPP+ Pass@1 | Time (s) GSM8K | Time (s) MBPP+ |
|---|---|---|---|---|
| Full BPTT | 63.20 | 40.88 | 2.77 | 1.03 |
| Recompute + Neumann-4 | 60.05 | 37.12 | 2.09 | 0.65 |
| Reuse + Neumann-4 | 61.65 | 39.38 | 1.39 | 0.51 |
Reuse achieves 1.99–2.02× faster scoring/backward time with quality within run-to-run variation (whole-model gradient cosines 0.997–0.999 vs. recomputation).
Distilled Prefill
At 8K prompts, distilled prefill is 1.5–1.8× faster than full teacher prefill:
- S: 125.9ms vs 195.0ms (1.55×), trails downstream AVG by 1.0 points
- M: 299.3ms vs 495.8ms (1.66×), trails by 2.3 points
- L: 830.3ms vs 1482.1ms (1.79×), trails by 4.5 points
At matched latency, distilled prefill scores 0.5–0.9 points above teacher prefill at R=2.
Theoretical and Practical Implications
Theoretical implications:
- Provides formal justification (Lemma 1) for why terminal KV sharing works when training supervises near fixed points
- Unifies TBPTT and implicit differentiation: TBPTT is stable early (exact gradient of truncated objective) and recovers equilibrium gradients once fixed points form, with no warm-up or switch needed
- Establishes that truncation alone shapes fixed points (unlike fixed-depth training with full BPTT)
Practical implications:
- Pretraining: TBPTT with matches full BPTT within 1% perplexity at 400M scale
- Decoding: Terminal KV sharing cuts cache 3× at five recurrences with minimal quality loss
- RL post-training: 2× faster updates from saved rollout states, enabling cheaper iterative refinement
- Serving: Distilled prefill trades controllable accuracy for latency, with gains growing at scale
Conclusion
The paper demonstrates that fixed points in looped language models enable decoupling training and inference costs from recurrence depth. The two components that shape fixed points — depth prior and input injection — are both improved: a learned, entropy-regularized depth prior outperforms fixed priors while preserving KV-sharing compatibility, and OrthoInj removes the state's component along the injected input for cleaner convergence.
Future directions identified by the authors:
- Scaling beyond 1.6B parameters and testing other model configurations
- Better distillation objectives and student architectures (e.g., mixture-of-experts)
- Student as standalone language model or speculative decoding drafter
- Connections between recurrent state refinement and flow-based language modeling
- Wider application of fixed-point reuse (e.g., warm-starting solvers on related inputs)
Limitations: Models trained up to 1.6B with one seed per configuration; ablations do not exhaust the design space; real-world feasibility needs further study.
Related papers
- Improving Test-Time Scaling with Adaptive Looped Transformers (TaH2)
TaH2 post-trains looped transformers with token-adaptive depth supervision, improving accuracy-compute scaling by 53% and beating non-looped baselines at matched test-time compute.
- One Model to Loop Them All: Elastic Latent Recurrence for Language Models
Elastic Latent Recurrence eliminates the one-loop tax in looped language models, matching non-recurrent baselines at one loop while gaining up to +7.25 accuracy points with additional loops.
- Gains and Collapse in On-Policy Distillation: A Reinforcement Learning Perspective
On-policy distillation improves sampling efficiency without expanding capability, and its collapse stems from reward hacking when teacher preferences misalign with response quality.