Selective State Space Models (SSMs), most notably Mamba, have emerged as highly efficient alternatives to Transformer architectures. By utilizing input-dependent parameterization, Mamba achieves linear complexity and exceptional empirical performance. However, this "selectivity" fundamentally alters the mathematical nature of the system. While traditional SSMs operate as Linear Time-Invariant (LTI) systems, Mamba's input-dependent nature transforms it into a Linear Parameter-Varying (LPV) or "switched" system.
In classical control theory, LPV systems carry a known risk: even if every individual state matrix is stable, rapidly switching between them can lead to unbounded trajectories. Until now, Mamba's stability has been observed empirically but lacked formal mathematical guarantees. This paper bridges the gap between deep learning and control theory, providing the first comprehensive framework to prove global stability and robustness for selective SSMs—a critical step for deploying these models in safety-critical domains like autonomous driving and medical diagnostics.
The Core Challenge: From LTI to LPV
Traditional SSMs maintain consistent internal logic regardless of the input. Mamba disrupts this by introducing selectivity, where parameters such as $B$, $C$, and the step size $\Delta$ adapt based on the input sequence. While this adaptability is the secret to Mamba's ability to filter irrelevant information and handle extremely long contexts, it complicates theoretical analysis. The central question this paper addresses is: How can we guarantee that Mamba won't become unstable when processing complex, rapidly changing inputs?
A Control-Theoretic Framework
To answer this, the authors introduce a suite of tools adapted from continuous-time control theory:
1. The Scan-as-Sampling Identity The foundational insight of the paper is treating Mamba’s discrete "scan" operation as the exact sampling of a continuous-time system. Continuous-time stability tools are generally more tractable than discrete switched-system analysis, allowing the researchers to rigorously evaluate the model's behavior.
2. BIBO Stability Guarantees Using this continuous-time perspective, the authors prove Bounded-Input Bounded-Output (BIBO) stability. They demonstrate that under standard Mamba parameterization (specifically, when the core transition matrix $A$ is Hurwitz), finite inputs will always produce finite outputs, effectively ruling out the risk of exploding trajectories.
3. Robustness Decomposition and Linear Growth In generic switched systems, errors typically compound exponentially over time. However, the authors prove that Mamba's sensitivity to input noise grows only linearly with the sequence length. They achieve this by decomposing error propagation into two distinct components:
- Forcing mismatch: The direct impact of noise on the input signal.
- Time-warp mismatch: How noise shifts the "timing" or discretization of the sequence, formalizing Mamba's selectivity as a form of learned time-warping.
4. Common Quadratic Lyapunov Functions (CQLF) For generalized versions of Mamba where the transition matrix $A$ is also input-dependent, the authors employ Lyapunov theory. They identify a single mathematical "energy function" that guarantees stability across all possible input-dependent states.
Empirical Validation and Safety Certificates
Because this is a foundational theoretical paper, the authors bypass standard NLP benchmarks in favor of targeted experiments designed to test the limits of stability:
- Stiff ODE Benchmark: Testing a system with both extremely fast and slow dynamics, Mamba’s adaptive step size ($\Delta$) achieved integration errors 2 to 3 orders of magnitude smaller than fixed-step baselines. This proves its superiority in capturing rapid transients.
- Actionable Safety Certificates: The authors developed an algorithm to extract stability constants ($M, \alpha, K_{force}, K_{warp}$) directly from the weight matrices of a trained Mamba layer. Practitioners can now mathematically verify if a model is safe for deployment without running exhaustive simulations. Experiments confirmed that the maximum output error scales linearly with sequence length $T$, perfectly matching the theoretical bound $\|y_t - \tilde{y}_t\| \leq (K_{force} + t \cdot K_{warp})\delta$.
Limitations and Future Directions
While this framework provides a crucial theoretical foundation, several challenges remain. First, the current robustness certificates represent "worst-case" bounds; in practice, actual errors are often significantly smaller (sometimes by a factor of 100). Developing data-dependent or "average-case" bounds is a logical next step.
Second, the analysis currently focuses on a single selective SSM layer. Modern architectures stack multiple layers interleaved with non-linearities (like RMSNorm), and extending this control-theoretic view to the entire multi-layer stack remains an open problem. Finally, the tightest bounds in the paper assume a fixed matrix $A$; while the CQLF framework accommodates variable $A(u)$, the resulting bounds are naturally looser.
Ultimately, this work successfully demystifies Mamba's empirical success, proving that its architecture is not just practically effective, but mathematically sound and robust.
Summary updated