How to Build and Train Your Recurrent-Depth Model: A Fixed-Point Perspective
Summary (Overview)
-
Key theoretical contribution: The paper establishes that additive input injection in recurrent-depth models (e.g., Huginn-0125) is exactly equivalent to Halpern iteration with a fixed stepsize (β = 1/2), providing a rigorous theoretical foundation for why truncated backpropagation (TBPTT) works in these architectures.
-
Provable convergence guarantees: The authors show that fixed-step Halpern iteration makes the update a contraction even when the underlying operator is mildly expansive (L < 1/(1−β)), enabling depth-independent TBPTT windows, while a slowly vanishing (logarithmic) stepsize schedule achieves closest-point selection with only polylogarithmic TBPTT windows.
-
Novel Lipschitz certificates: For SwiGLU blocks, the Lipschitz constant depends on a product of row and spectral norms of gate and value matrices, requiring joint constraints in both norms. Gates alone only require row-norm constraints. This reveals that pre-norm (input normalization) is essential for SwiGLU/ReLU² and attention blocks.
-
Sparrow optimizer: A drop-in replacement for Muon/MuonH that applies the spectral oracle at most once per step (no computational overhead), with predetermined constraint radii (κ = min{1, √(d/m)}) requiring no retuning.
-
Empirical validation: Sparrow speeds up training of small language models over Muon both with and without looping, achieves 1.2× the certified robustness radius of spectral-only constraints on synthetic tasks, and improves gated attention training when gates are tall matrices.
Introduction and Theoretical Foundation
Background
Recurrent-depth models scale test-time computation by repeatedly applying a shared block to a latent state. They are trained with truncated backpropagation (TBPTT), differentiating through only the last few iterations. The paper addresses a fundamental puzzle: why does TBPTT work when the truncated gradient ignores how earlier iterations depend on parameters?
Core Theoretical Framework
The paper formulates three desiderata for a recurrent forward pass:
-
Desideratum 1 (Existence and multiple solutions): The fixed-point set is nonempty and permits multiple points (so different queries can select different solutions).
-
Desideratum 2 (Closest-point selection): Iterates converge to the projection of the query onto the fixed-point set:
- Desideratum 3 (Polylogarithmic-window TBPTT): A backward window of size suffices to ensure:
Key Insight: Input Injection = Halpern Iteration
The paper shows that additive input injection, commonly used in recurrent architectures, is exactly Halpern iteration. Given the update , defining and yields:
This is Halpern iteration with .
Methodology
Halpern Iteration Analysis
Fixed-step Halpern (Proposition 4.1): With and :
- The update is a contraction with modulus , converging linearly to a unique fixed point
- TBPTT window: , depth-independent
- The limit is a biased solution with residual
Logarithmic-step Halpern (Proposition 4.2): With :
- Achieves closest-point selection:
- TBPTT error bound:
- Window:
Lipschitz Certificates for Neural Blocks
The paper derives Lipschitz bounds for various architectural blocks:
Theorem 5.1 (Lipschitz MLP block):
Theorem 5.3 (Lipschitz SwiGLU block):
This reveals that SwiGLU requires joint row-norm and spectral-norm constraints on and , with the constraint set:
Sparrow Optimizer
The paper develops the Sparrow optimizer (Algorithm 1) with three parameter-group-specific update directions:
- SwiGLU gate/value matrices ():
- Attention-gate/SSM-gate matrices:
- All other matrices:
The recommended radius split is , derived from the geometry of saturated matrices.
Empirical Validation / Results
Robustness-Accuracy Pareto Frontier (Section 7.1)
Synthetic experiments with SwiGLU blocks (, ) comparing spectral vs. joint constraints:
- Spectral constraint: Certifies 1.6× larger radii than Adam at 70% accuracy
- Joint constraint: Dominates Muon at every accuracy level on the "spread" teacher (1.2× radius at 70% accuracy, higher maximal accuracy: 0.793 vs 0.771)
- Concentrated teacher (κ* ≈ 0.90): The two methods have matching Pareto fronts
- Teacher-free split κ = √(d/m) peaks near the optimal performance, validating the recommended choice
Language Model Training (Section 7.2)
Character-level Shakespeare model (nanoGPT, 4 layers, d=128, SwiGLU width m=4d):
| Method | Step size | Loss improvement vs Muon | Speedup |
|---|---|---|---|
| Sparrow | 1× Muon | −0.013 ± 0.002 | 1.07× |
| Sparrow | 2× Muon | −0.020 ± 0.002 | 1.11× |
| Aurora | 2× Muon | −0.017 ± 0.003 | 1.09× |
Wall-clock time: Sparrow takes the same 2.6 ms per step as Muon (row normalization is essentially free), while Aurora doubles the cost.
Gated Attention Results
- Square gate (128×128): Sparrow on gate alone has no effect (+0.002 ± 0.002)
- Tall gate (512×128): Sparrow improves over Aurora by 1.5× (0.024 vs 0.015), confirming row-norm is the appropriate constraint for gates
- Weight normalization (MuonH): Sparrow + weight normalization further improves by 0.007–0.009 even without update-direction normalization
Looped Models
Sparrow lowers final validation loss for every loop count N and truncation window H on all seeds, by 0.012–0.027.
Theoretical and Practical Implications
Theoretical Contributions
-
Fixed-point foundation for recurrent-depth models: The paper provides the first rigorous explanation for why input injection + TBPTT works, grounding it in Halpern iteration theory.
-
Trade-off characterization: Fixed-step Halpern admits expansive operators (L < 1/(1−β)) with depth-independent TBPTT but biased solutions; logarithmic-step Halpern achieves unbiased closest-point selection at the cost of requiring nonexpansiveness.
-
Novel Lipschitz certificates: The joint row-norm/spectral-norm constraint for SwiGLU is a new result that departs from the traditional spectral-only approach in Lipschitz neural networks.
-
Robustness guarantees: Theorem 4.3 provides query robustness for all finite iterates, even for expansive operators with a floor on the stepsize.
Practical Implications
-
Optimizer design: Sparrow provides a principled, parameter-group-dependent optimizer that respects the geometry implied by Lipschitz certificates, serving as a drop-in replacement for Muon/MuonH with no overhead.
-
Architecture guidance: The theory reveals that pre-norm is essential for SwiGLU/ReLU² and attention, and that gates should be constrained in row norm only (not spectral norm).
-
Training efficiency: The polylogarithmic TBPTT window justifies the common practice of differentiating through only a few iterations.
Conclusion
The paper establishes a rigorous theoretical foundation for recurrent-depth models by connecting input injection to Halpern iteration. Key takeaways:
-
Input injection is Halpern iteration with fixed stepsize β = 1/2, providing contraction even for mildly expansive operators and enabling depth-independent TBPTT.
-
Lipschitz certificates guide optimization: SwiGLU requires joint row-norm and spectral-norm constraints on gate/value matrices, while gates alone need only row-norm constraints.
-
Sparrow optimizer provides a principled, parameter-group-dependent update that respects these constraints with no computational overhead over Muon.
Future Directions
The paper identifies several open questions:
- Can Lipschitz certificates guide optimizer design for Mixture-of-Experts (MoE) modules?
- Is there a recurrence that converges to a fixed point like slowly vanishing Halpern while tolerating non-nonexpansive operators like fixed-step Halpern?
- Is it worthwhile abandoning TBPTT to support the accelerated schedule β_k = 1/(k+2)?
- How should models be scaled with optimizers that properly utilize tall matrix parameters?
Related papers
- FlyingStart: Learned Cross-Token Warm Starts for Fixed-Point Decoding in Recurrent-Depth Language Models
FlyingStart learns a linear warm-start map for recurrent-depth language models, cutting decoding layers by 14–19% while matching accuracy and preserving the exit rule's safety certificate.
- The Teacher Is Already Inside: Self-Distilling Looped Language Models Beyond Their Last Loop
ELPSD enables a looped language model to self-distill without rewards by training its last loop against an extrapolated contrastive teacher from its own frozen weights, beating GRPO on math benchmarks.
- When Answering Is Administering: Permission Replies That Rewrite Coding-Agent Policy
In coding agents, a party trusted only to answer permission prompts can rewrite the operator's security policy, escalating answering authority into administrative control.