Introduction
As deep learning models scale, training them efficiently becomes a complex challenge of hyperparameter tuning. For architectures like Multi-Layer Perceptrons (MLPs) and Transformers, the Maximal Update Parameterization ($\mu$P) elegantly solved this by ensuring that as a model grows wider, its internal signals—activations and gradients—remain at a consistent scale. This enables "hyperparameter transfer," allowing researchers to find the optimal learning rate on a small, cheap model and apply it directly to a massive, billion-parameter version.
However, Structured State Space Models (SSMs) like Mamba—which have recently surged in popularity as efficient alternatives to Transformers—do not play by the same rules. Their sequential nature and specific mathematical structures break the standard "Tensor Programs" framework that $\mu$P relies on. Without proper scaling, large SSMs often suffer from vanishing or exploding signals, leading to unstable training or "lazy" models that fail to learn useful features. This paper introduces $\mu$P-SSM, a novel scaling framework derived from rigorous signal propagation analysis that ensures stable feature learning and enables hyperparameter transfer for SSMs.
Deriving $\mu$P-SSM
The authors perform a first-principles analysis of signal propagation in SSMs, focusing specifically on the Mamba (S6) architecture.
First, they provide a theoretical proof that structured SSMs cannot be represented as standard Tensor Programs. The structured transition matrix ($A$) causes hidden states to have non-identical distributions across coordinates, violating a core assumption of existing scaling theories. To overcome this, the authors track the $l_2$-norm of activations and gradients through both forward and backward passes as the network width approaches infinity.
Based on this signal propagation analysis, they derive a unique set of scaling rules for initialization ($\sigma$) and learning rates ($\eta$) for the $B$, $C$, and $A$ matrices.
Unlike MLPs, which typically have a single width parameter, SSMs have two: the input/output dimension ($N_u$) and the latent state dimension ($N_x$). $\mu$P-SSM is unique because it balances the scaling of both simultaneously. Furthermore, the authors found that the choice of discretization (Zero-Order Hold vs. Euler) fundamentally changes how the model scales, and $\mu$P-SSM provides specific adjustments to ensure stability regardless of the numerical method used.
Key Results and Stability at Scale
The researchers validated their scaling rules by training Mamba models of varying widths (from 256 to 4096) on standard language modeling benchmarks like WikiText-103 and a subset of FineWeb.
Under Standard Parameterization (SP), large Mamba models saw their latent states and updates either explode or vanish. Even heuristic adaptations of $\mu$P failed to maintain stability. In contrast, $\mu$P-SSM kept these signals perfectly stable across all tested widths.
Crucially, $\mu$P-SSM achieves the "Holy Grail" of scaling: Hyperparameter Transfer. The authors demonstrated that the optimal learning rate for a Mamba model with a width of 256 remains the optimal learning rate for a model with a width of 4096. Additionally, with $\mu$P-SSM, model performance (test loss) improved consistently and monotonically as width increased. Standard scaling often showed non-monotonic behavior, where making the model wider actually degraded performance due to underlying instability.
Limitations and Future Work
While $\mu$P-SSM successfully stabilizes width scaling for SSMs, the current analysis assumes a "sequential limit" (letting one dimension go to infinity, then the other). The authors note that analyzing a "proportional limit" (where both $N_u$ and $N_x$ go to infinity at a fixed ratio) is a necessary next step for a fully rigorous theory. Furthermore, because SSMs break the current Tensor Programs framework, there is a broader need to generalize the framework itself to accommodate non-identically distributed coordinate distributions. Finally, investigating how these scaling rules interact with increasing network depth remains an open and exciting area for future research.
Summary updated