The Illusion of State in State-Space Models
William Merrill, Jackson Petty, Ashish Sabharwal · 2024 · 106 citationsRead the paper
State-space models (SSMs) have emerged as a potential alternative architecture for building large language models (LLMs) compared to the previously ubiquitous transformer architecture. One theoretical weakness of transformers is that they cannot express certain kinds of sequential computation and state tracking (Merrill & Sabharwal, 2023), which SSMs are explicitly designed to address via their close architectural similarity to recurrent neural networks (RNNs). But do SSMs truly have an advantage (over transformers) in expressive power for state tracking? Surprisingly, the answer is no. Our analysis reveals that the expressive power of SSMs is limited very similarly to transformers: SSMs cannot express computation outside the complexity class $\mathsf{TC}^0$. In particular, this means they cannot solve simple state-tracking problems like permutation composition. It follows that SSMs are provably unable to accurately track chess moves with certain notation, evaluate code, or track entities in a long narrative. To supplement our formal analysis, we report experiments showing that Mamba-style SSMs indeed struggle with state tracking. Thus, despite its recurrent formulation, the "state" in an SSM is an illusion: SSMs have similar expressiveness limitations to non-recurrent models like transformers, which may fundamentally limit their ability to solve real-world state-tracking problems.
What the full text shows
Shown in the lab- S4 and Mamba SSMs are limited to the complexity class TC0, making them unable to solve NC1-hard state-tracking problems like permutation composition (S5 word problem). (Log-precision SSMs with S4 or S6 architecture)
- S4 and Mamba models require model depth to increase monotonically with input sequence length to maintain accuracy on non-commutative word problems. — 90% test accuracy (A5 word problem)
- A single-layer RNN or IDS4 model can solve the A5 word problem for arbitrarily long sequences. (One-layer log-precision model)
- S4 and Mamba perform empirically better than transformers at approximate state tracking on non-commutative tasks, requiring fewer or equal layers. (Length-n sequences from A4 x Z5 or A5)
- Setup
- Models trained on sequences of length n for successively larger values of n; includes 3600 pairwise sequences of length 2 in training data.
- How
- The authors used circuit complexity analysis to prove the expressive power of SSMs is limited to TC0 and conducted empirical experiments training Transformers, RNNs, S4, Mamba, and IDS4 on word problems (A5, A4 x Z5, Z60) as token-tagging tasks.
- Limitations
- Theoretical results assume log-precision. · Empirical results on state tracking are based on synthetic word problems rather than real-world chess or code. · Parallelization of RNN-SSM (nonlinear) is not clearly defined.
Summarized by Gemma 4 from the open-access full text · 10 Nov 2026. Read it