Towards Looped Models Done Right, Part II: Rethinking at Fixed Points
Problem Statement
Looped LMs reuse weights across recurrences to buy depth. But each extra loop multiplies cost in training (backprop through iterations), decoding (per-iteration KV caches), prefill, and RL. Existing training choices undermine the fixed-point behavior that would let practitioners avoid these costs. Fixed-depth training breaks KV sharing, Huginn's broad depth prior dilutes supervision at the target depth more than necessary, and standard input-injection schemes let the state's component along the input amplify or cancel the injection.
Key Novelty
- A unified framing: near-fixed-point recurrent states make the path irrelevant, which justifies four efficiency techniques: truncated backprop in training, terminal KV sharing in decoding, a distilled fast-prefill student, and RL gradients computed from saved rollout states.
- A learned depth prior: the distribution over recurrence counts is trained from prediction feedback, with an entropy regularizer that keeps it broad enough to support KV sharing while concentrating supervision near the target depth.
- Orthogonal input injection, which removes the hidden state's component along the input embedding before injecting it, so the state cannot amplify or cancel the injected signal.
Evaluation Highlights
- From 100M to 1.6B parameters, the learned prior beats Huginn's prior and orthogonal injection beats existing injection schemes on perplexity, at every scale tested.
- At 1.6B, the learned prior with a 3x smaller KV cache (terminal KV sharing) matches the downstream average of fixed-depth training with the full cache.
- The distilled student prefills up to 1.79x faster.
- RL updates from saved rollout states are 2x faster than backpropagating through the replayed trajectory.
- Terminal KV sharing during decoding causes almost no loss in accuracy.
Signal Assessment
Methodology
- Analyze looped LMs through fixed-point dynamics: as recurrent states converge, final states and gradients become nearly path-independent.
- Exploit path-independence for efficiency: truncated BPTT in training, sharing only terminal-iteration KV entries during decoding, distilling a faster-prefill student, and computing RL gradients from cached rollout states instead of replaying full trajectories.
- Replace Huginn's hand-designed broad depth prior with a learned prior driven by per-depth prediction quality, regularized by an entropy term to stay broad enough for KV sharing.
- Redesign input injection to be orthogonal: project out the state's component along the input before adding it, so injection magnitude is stable.
- Train models from 100M to 1.6B and compare perplexity and downstream accuracy against Huginn's prior, fixed-depth training, and existing injection schemes.
System Components
A shared block applied repeatedly to a latent state with input injection at each recurrence. It scales test-time compute via depth instead of parameters.
Backpropagates through only the last few recurrences, justified because near-fixed-point states make earlier path contributions negligible.
Caches and reuses KV entries from the terminal recurrence instead of storing per-iteration caches. This shrinks the KV cache (about 3x at 1.6B) with almost no accuracy loss.
A student model distilled to produce comparable states with less compute during prefill, achieving up to 1.79x faster prefill.
Computes policy gradients from rollout states saved during generation instead of backpropagating through a replayed recurrent trajectory, giving a 2x speedup.
Learns the sampling distribution over recurrence depths from prediction feedback. The entropy term keeps it broad enough for KV sharing without over-diluting target-depth supervision.
Removes the hidden state's projection onto the input embedding before injection, preventing the state from amplifying or cancelling the injected input signal.
Results
| Metric/Benchmark | Baseline | This Paper | Delta |
|---|---|---|---|
| Perplexity, 100M–1.6B (depth prior) | Huginn broad depth prior | Learned prior + entropy term | Lower at every scale |
| Perplexity, 100M–1.6B (injection) | Existing injection schemes | Orthogonal injection | Lower at every scale |
| Downstream average @1.6B | Fixed-depth training, full KV cache | Learned prior, 3x smaller KV cache | Matched accuracy with 3x less KV memory |
| Decoding accuracy with KV sharing | Full per-iteration KV cache | Terminal KV sharing | Almost no loss |
| Prefill speed | Full looped model | Distilled student | Up to 1.79x faster |
| RL update speed | Backprop through replayed trajectory | Gradients from saved rollout states | 2x faster |
Key Takeaways
- If you train looped or recurrent-depth LMs, encourage convergence toward fixed points. It enables truncated backprop, KV-cache sharing, and cheaper RL without significant accuracy loss.
- Avoid pure fixed-depth training if you want inference-time KV sharing. A learned, entropy-regularized depth prior gives memory savings (about 3x KV reduction) while matching fixed-depth accuracy.
- Orthogonal input injection is a cheap architectural change: project out the state's component along the input before injecting. It reduced perplexity at every scale tested (100M–1.6B).
- For RL on recurrent-depth models, caching rollout states and computing gradients from them can roughly halve update cost relative to replaying the full recurrence.
Abstract
Every recurrence of a looped language model adds cost in training, decoding, prefill, and reinforcement learning (RL). The closer recurrent states get to fixed points, the less the path to them matters. This enables truncated backpropagation in training; terminal key-value (KV) sharing for decoding with almost no loss in accuracy; a distilled student that prefills up to 1.79x faster; and RL updates that compute gradients from saved rollout states, 2x faster than backpropagating through the replayed trajectory. We therefore improve the two components of training that shape these fixed points: the depth prior and input injection. Fixed-depth training breaks KV sharing, and Huginn's broad depth prior supports sharing but dilutes supervision at the target depth more than sharing requires; we learn the prior from prediction feedback, with an entropy term that keeps it broad. Existing injection schemes let the state's component along the input amplify or cancel the injection; we remove this component with orthogonal injection. From 100M to 1.6B parameters, the learned prior and orthogonal injection lower perplexity at every scale relative to Huginn's prior and existing injection schemes, respectively. At 1.6B, the learned prior with a 3x smaller KV cache matches the downstream average of fixed-depth training with the full cache.