Abstract
State-space models (SSMs) have emerged as efficient alternatives to Transformers for sequence modeling, yet their theoretical foundations regarding expressivity and long-term memory have remained under-explored. This paper investigates the mathematical limits of stacking linear SSMs with layer-wise nonlinear activations. We prove that such architectures are universal approximators, capable of representing any continuous sequence-to-sequence mapping. However, we also demonstrate that these models fundamentally suffer from exponentially decaying memory, a limitation shared with traditional Recurrent Neural Networks (RNNs). Our theoretical findings are supported by numerical verifications across various SSM initializations.
Introduction
In the landscape of deep learning, the quadratic complexity of Transformers has driven a search for more efficient architectures. State-space models (SSMs), such as S4 and Mamba, have gained significant traction due to their ability to process sequences with $O(T \log T)$ or even $O(T)$ complexity using parallel scans or Fast Fourier Transforms (FFTs).
Despite their empirical success, two critical questions have persisted:
- Expressivity: Can a model composed of linear recurrences and simple point-wise nonlinearities truly represent the complexity of any sequence-to-sequence relationship?
- Memory: Do SSMs overcome the "curse of memory"—the tendency of recurrent systems to lose information from the distant past—or do they simply mitigate it through clever initialization?
This research addresses these questions by providing a constructive proof of universality and a rigorous analysis of memory decay in multi-layer SSM architectures.
Theoretical Foundations of Universality
A single-layer SSM is essentially a linear filter, which is insufficient for modeling complex, nonlinear sequence dependencies. To bridge this gap, the authors analyze a stack of linear SSMs interleaved with element-wise nonlinear activations. They employ two distinct mathematical frameworks to establish the universal approximation property:
Kolmogorov-Arnold Representation
The researchers demonstrate that a five-layer SSM architecture is sufficient to approximate any continuous multivariate function. By utilizing the layers to represent the "inner" and "outer" functions required by the Kolmogorov-Arnold theorem, they prove that nonlinearity between layers compensates for the lack of nonlinearity within the temporal recurrence itself.
Volterra Series Expansion
To account for varying sequence lengths, the authors utilize Volterra series—a functional expansion for nonlinear systems. They prove that multi-layer SSMs can approximate the complex kernels of these series. Specifically, the model uses a low-rank tensor product of simple, first-order convolution kernels to reconstruct the intricate dependencies required by the Volterra framework.
The Reality of Memory Decay
While the universality proof establishes the high capacity of SSMs, the paper provides a sobering "reality check" regarding their memory. The authors define a memory function $\rho(t)$, which measures how the model's output at time $t$ changes in response to an input at time zero.
Through inductive proof, the authors show that for any stable multi-layer SSM (where weights are constrained to prevent numerical explosion), the memory function must decay exponentially over time. This implies that while SSMs are more efficient than Transformers, they do not fundamentally resolve the vanishing gradient or memory loss issues inherent in stable recurrent systems. They are mathematically bound by the same constraints that affect traditional RNNs.
Empirical Results and Numerical Verification
The paper validates these theoretical insights through experiments on synthetic datasets designed to measure the decay of $\rho(t)$ across different architectures, including standard RNNs, GRUs, LSTMs, and Naive SSMs.
- Consistency of Decay: Numerical experiments confirm that all tested recurrent architectures, including the highly-optimized S4 model, exhibit exponential memory decay.
- The S4 Advantage: While S4 is subject to the same exponential decay laws, its specialized initialization (using HiPPO matrices) allows it to maintain a significantly flatter decay curve. This explains why S4 performs exceptionally well on long-range arena tasks in practice, even though its memory is technically finite and decaying.
- Architecture Comparison: The study concludes that SSMs match the universal approximation capabilities of RNNs while offering the parallel processing advantages typically associated with Temporal Convolutional Networks (TCNs).
Conclusion and Future Directions
This work provides the first constructive proof for the universal approximation property of multi-layer SSMs, confirming that their efficiency does not come at the cost of theoretical representational power. However, the proof of exponential memory decay highlights a fundamental trade-off: stability in these models necessitates a loss of long-term information.
Future research may explore "marginally stable" systems to see if they can extend memory duration without sacrificing numerical volatility. Additionally, while this paper proves that a universal approximator exists, further work is needed to quantify the "rate" of approximation—determining exactly how many layers and parameters are required for SSMs to match the performance of Transformers on specific complex tasks.
Summary updated