NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

The Illusion of State in State-Space Models

William Merrill, Jackson Petty, Ashish Sabharwal

Introduction

State-Space Models (SSMs) like Mamba are frequently lauded for their ability to handle long sequences by incorporating RNN-like "stateful" recurrence. This architectural choice suggests a superior capacity for state-tracking compared to the quadratic-scaling Transformer. However, this paper demonstrates that this perceived advantage is largely an illusion. Standard SSMs are theoretically constrained to the same complexity class as Transformers ($TC^0$), rendering them unable to solve inherently sequential state-tracking tasks—such as chess move tracking or code evaluation—without a proportional increase in depth as sequences grow.

Theoretical Framework: Circuit Complexity

The researchers utilize circuit complexity theory to categorize the expressive power of various architectures. They demonstrate that standard SSMs, including S4 and Mamba (S6), belong to the complexity class $TC^0$. This class encompasses problems solvable by "shallow" but wide parallel circuits.

In contrast, "hard" state-tracking problems, such as the word problem for the symmetric group $S_5$, are $NC^1$-complete. This class is theoretically more powerful than $TC^0$. The authors prove that practical tasks like tracking chess moves in UCI notation or evaluating Python code are $NC^1$-hard. Consequently, $TC^0$ models like Transformers and standard SSMs cannot solve these tasks for arbitrary lengths using a fixed number of layers.

Complexity class mapping of architectures and tasks.

To address this gap, the authors propose Input-Dependent S4 (IDS4). This extension utilizes input-dependent, non-diagonal transition matrices, effectively bridging the gap between SSMs and the more expressive RNNs.

Key Insights: The Parallelism Paradox

The efficiency of SSMs stems from their ability to be computed via parallel associative scans or convolutions. However, this very parallelism limits their expressivity. Truly "hard" recurrence is inherently sequential and cannot be reduced to a shallow parallel circuit.

While Mamba (S6) introduces "selectivity" and appears more RNN-like than its predecessor S4, its reliance on diagonal transition matrices keeps it within the $TC^0$ class. It lacks the necessary inter-dimensional interaction during state updates required for complex permutation tracking. Consequently, these models can only solve $NC^1$ problems by increasing depth (number of layers) as the input length grows, rather than learning a universal, length-invariant algorithm.

Empirical Validation and Results

The theoretical findings were validated using synthetic benchmarks involving group multiplication across three groups: $A_5$ (non-solvable, $NC^1$-complete), $A_4 \times \mathbb{Z}_5$ (solvable but non-abelian), and $\mathbb{Z}_{60}$ (abelian).

Minimum layers required to solve group multiplication tasks as sequence length increases.

The results confirm the scaling failure of $TC^0$ architectures. While RNNs and the proposed IDS4 solved the $A_5$ task with 100% accuracy using a single layer regardless of sequence length, Transformers, S4, and Mamba required increasing depth. For $A_5$ sequences of length 20, these models required four or more layers, whereas they could handle length-5 sequences with only one or two. Interestingly, SSMs often appeared empirically more efficient than Transformers, requiring fewer layers to achieve similar accuracy on non-commutative tasks despite sharing the same theoretical limits.

Conclusion and Future Directions

The study highlights a fundamental trade-off: the parallelization that makes SSMs efficient also constrains their formal expressivity. While IDS4 offers a more powerful alternative, it is computationally more expensive and presents challenges in training stability. Future research is needed to determine if the theoretical advantages of IDS4-style layers translate to improved performance on real-world long-context reasoning tasks where $TC^0$ models might currently rely on "shortcuts" rather than true state tracking.

Summary updated

BibTeX
@inproceedings{merrill2024illusion,
  author = {William Merrill and Jackson Petty and Ashish Sabharwal},
  title = {{The Illusion of State in State-Space Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=QZgo9JZpLq},
}
Figure