How to build and train your recurrent-depth model: A fixed-point perspective
Abstract
Recurrent-depth models are trained with truncated backpropagation, yet it remains unclear why this works. We show that input injection, commonly used in recurrent-depth models, is exactly Halpern iteration, and that a slowly vanishing stepsize provably converges with a backpropagation window polylogarithmic in the depth. The guarantees require a Lipschitz operator, which for SwiGLU leads to a weight constraint in both row and spectral norm, while only a row norm constraint for gates. Based on these constraints, we develop an optimizer tailored to each parameter group, Sparrow, which provides a drop-in replacement of Muon/MuonH with no overhead, that speeds up training even beyond recurrent models.
Figures & tables
| Method | Converges to ? | Backward horizon | Operator |
|---|---|---|---|
| Fixed- Halpern | No † | Depth-independent | |
| Logarithmic Halpern | Yes | Polylogarithmic in | Nonexpansive |
| Block | Normalize | Constrained matrices | Lipschitz bound | |
|---|---|---|---|---|
| Spectral ( ) | Row ( ) | |||
| MLP ( Theorem 5.1 ) | None † | — | ||
| MLP ( Theorem B.5 ) | Input | |||
| SwiGLU ( Theorem 5.3 ) | Input | |||
| Attention ( Theorem B.7 ) | Input | — | ||
| Gated attention ( Theorem B.9 ) | Input | |||
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
| Adaptive / exact | Fixed-rank DRS | |||||||
|---|---|---|---|---|---|---|---|---|
| Best-of-three gap | iDRS | Exact DRS | ||||||
| 1 | 6 | 34% | 4.33 (128) | 6.33 | stall (7e-2) | stall (3e-2) | stall (9e-3) | 4.03 |
| 1 | 8 | 29% | 1.46 (64) | 3.76 | stall (4e-2) | stall (1e-2) | 1.20 | 2.40 |
| 1 | 12 | 20% | 0.37 (16) | 1.87 | 0.25 | 0.37 | 0.66 | 1.30 |
| 1.5 | 6 | 39% | 10.82 (64) | 30.79 | stall (2e-2) | stall (4e-3) | 9.83 | 19.97 |
| 1.5 | 8 | 37% | 3.48 (32) | 13.82 | stall (5e-3) | 2.38 | 4.08 | 8.75 |
| Hyperparameter | SGD + Frobenius | Adam + entrywise | Muon + spectral | Ours + joint |
|---|---|---|---|---|
| Model | SwiGLU block, , , unconstrained linear head | |||
| Teachers | spread ( ), concentrated ( ) | |||
| Data | , 10 classes, 512 fresh samples per step | |||
| Steps | 1000 (3000 for the long runs) | |||
| Step-size schedule | ||||
| Head | Adam, step size , initialized with entries | |||
| Spread teacher ( ) | Concentrated ( ) | |||||
|---|---|---|---|---|---|---|
| 1000 steps | 3000 steps | 1000 steps | ||||
| Method | max. accuracy | max. accuracy | max. accuracy | |||
| SGD + Frobenius | – | |||||
| Adam + entrywise | ||||||
| Muon + spectral | ||||||
| Ours + row/spectral | ||||||
| Hyperparameter | Muon | Aurora | Sparrow |
|---|---|---|---|
| Dataset | Tiny Shakespeare, characters, first for training | ||
| Layers / heads / width | 4 / 4 / 128 | ||
| Head width | 32 (tall gate: 128) | ||
| MLP / normalization | SwiGLU with / RMSNorm | ||
| Context / batch size | 64 / 12 | ||
| Steps | 1307 (one epoch) | ||
Neural Network Optimization
Neural network optimization studies algorithms and training dynamics that help models learn efficiently, reliably, and generalize well.
See all 368 papers