Theoretical Foundations of Deep Selective State-Space Models
Nicola Muca Cirone, Antonio Orvieto, Benjamin Walker, Cristopher Salvi, Terry Lyons
TL;DR
This paper analyzes deep selective state-space models (SSMs) through Rough Path Theory, recasting gated linear recurrences as Linear Controlled Differential Equations driven by input-dependent gates. It proves that dense Linear CDEs achieve universal expressivity via a signature-based expansion, and shows that diagonal, gate-driven recurrences (e.g., Mamba) are expressive but inherently limited unless stacked to recover full power; randomness with a trainable readout can also achieve strong approximation via an RKHS of signatures. The Path-to-Path learning extension demonstrates how an MLP on top of Linear CDEs can approximate time-varying, path-dependent functions, linking architectural design to kernel-method perspectives. Empirically, the framework accounts for observed strengths and weaknesses across S4, Mamba, and linear CDEs on antisymmetric-signature tasks and a state-tracking benchmark, validating the theoretical claims about expressivity, gates, and chaining while guiding future SSM development.
Abstract
Structured state-space models (SSMs) such as S4, stemming from the seminal work of Gu et al., are gaining popularity as effective approaches for modeling sequential data. Deep SSMs demonstrate outstanding performance across a diverse set of domains, at a reduced training and inference cost compared to attention-based transformers. Recent developments show that if the linear recurrence powering SSMs allows for multiplicative interactions between inputs and hidden states (e.g. GateLoop, Mamba, GLA), then the resulting architecture can surpass in both in accuracy and efficiency attention-powered foundation models trained on text, at scales of billion parameters. In this paper, we give theoretical grounding to this recent finding using tools from Rough Path Theory: we show that when random linear recurrences are equipped with simple input-controlled transitions (selectivity mechanism), then the hidden state is provably a low-dimensional projection of a powerful mathematical object called the signature of the input -- capturing non-linear interactions between tokens at distinct timescales. Our theory not only motivates the success of modern selective state-space models such as Mamba but also provides a solid framework to understand the expressive power of future SSM variants.
