# The Illusion of State in State-Space Models

2404.08819

60

0

## Abstract

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.

Get summaries of the top AI research delivered straight to your inbox:

## Overview

- Examines the concept of "state" in state-space models, a widely used framework in machine learning and control theory
- Argues that the notion of "state" in these models is often an illusion, and the models may be better characterized as "history-based" rather than "state-based"
- Provides a new perspective on the foundations of state-space models and their limitations

## Plain English Explanation

State-space models are a popular tool in machine learning and control systems, used to represent and analyze dynamic systems. These models assume the existence of a hidden "state" that captures all the relevant information about the system at a given time. The state is then used to predict the future behavior of the system.

However, the paper presented here argues that the idea of "state" in these models is often an illusion. The authors suggest that state-space models may be better understood as "history-based" models, where the current output of the system depends on its entire past history, rather than a single, well-defined state.

This perspective challenges the traditional view of state-space models and offers a new way of thinking about their foundations. By recognizing the limitations of the state concept, the research can lead to the development of more accurate and robust modeling techniques, with potential applications in fields like machine learning, event-based sensing, and video processing.

## Technical Explanation

The paper begins by outlining the standard architecture of state-space models, which typically consist of a state transition equation and an observation equation. The state transition equation describes how the hidden state evolves over time, while the observation equation relates the state to the observed outputs of the system.

The authors then argue that the notion of "state" in these models is often an illusion. They demonstrate that the state at any given time can be fully determined by the system's entire past history, rather than a single, well-defined state. This suggests that state-space models may be better characterized as "history-based" models, where the current output depends on the system's entire past, rather than a single state.

The paper presents several examples and theoretical analyses to support this perspective, including a discussion of linear state-space models and a comparison to other modeling frameworks, such as event-based sensing and video diffusion models. The authors also explore the implications of this view for the design and interpretation of state-space models.

## Critical Analysis

The paper raises some valid concerns about the foundations of state-space models and the potential limitations of the state concept. By challenging the traditional view of these models, the authors encourage readers to think critically about the assumptions and limitations of state-space modeling.

However, the paper does not provide a comprehensive solution or alternative to state-space models. While the "history-based" perspective offers a new way of thinking about these models, it is not clear how this insight can be directly applied to practical modeling and analysis tasks.

Additionally, the paper does not address some of the well-established strengths and applications of state-space models, such as their ability to handle uncertainty, their connections to Kalman filtering and control theory, and their widespread use in areas like machine learning and signal processing. Further research may be needed to fully assess the implications of the authors' perspective and its potential impact on the field.

## Conclusion

This paper challenges the conventional wisdom surrounding state-space models by arguing that the notion of "state" is often an illusion. The authors propose a "history-based" view of these models, suggesting that the current output may be better characterized by the system's entire past, rather than a single, well-defined state.

While this perspective offers a new way of thinking about the foundations of state-space models, it also raises questions about the practical implications and limitations of this view. The paper encourages critical thinking about the assumptions and interpretations of these widely used models, which may lead to the development of more accurate and robust modeling techniques in the future.

This summary was produced with help from an AI and may contain inaccuracies - check out the links to read the original source documents!

## Related Papers

### The Expressive Capacity of State Space Models: A Formal Language Perspective

Yash Sarrof, Yana Veitsman, Michael Hahn

0

0

Recently, recurrent models based on linear state space models (SSMs) have shown promising performance in language modeling (LM), competititve with transformers. However, there is little understanding of the in-principle abilities of such models, which could provide useful guidance to the search for better LM architectures. We present a comprehensive theoretical study of the capacity of such SSMs as it compares to that of transformers and traditional RNNs. We find that SSMs and transformers have overlapping but distinct strengths. In star-free state tracking, SSMs implement straightforward and exact solutions to problems that transformers struggle to represent exactly. They can also model bounded hierarchical structure with optimal memory even without simulating a stack. On the other hand, we identify a design choice in current SSMs that limits their expressive power. We discuss implications for SSM and LM research, and verify results empirically on a recent SSM, Mamba.

6/4/2024

### State Space Model for New-Generation Network Alternative to Transformers: A Survey

Xiao Wang, Shiao Wang, Yuhe Ding, Yuehang Li, Wentao Wu, Yao Rong, Weizhe Kong, Ju Huang, Shihao Li, Haoxiang Yang, Ziwen Wang, Bo Jiang, Chenglong Li, Yaowei Wang, Yonghong Tian, Jin Tang

0

0

In the post-deep learning era, the Transformer architecture has demonstrated its powerful performance across pre-trained big models and various downstream tasks. However, the enormous computational demands of this architecture have deterred many researchers. To further reduce the complexity of attention models, numerous efforts have been made to design more efficient methods. Among them, the State Space Model (SSM), as a possible replacement for the self-attention based Transformer model, has drawn more and more attention in recent years. In this paper, we give the first comprehensive review of these works and also provide experimental comparisons and analysis to better demonstrate the features and advantages of SSM. Specifically, we first give a detailed description of principles to help the readers quickly capture the key ideas of SSM. After that, we dive into the reviews of existing SSMs and their various applications, including natural language processing, computer vision, graph, multi-modal and multi-media, point cloud/event stream, time series data, and other domains. In addition, we give statistical comparisons and analysis of these models and hope it helps the readers to understand the effectiveness of different structures on various tasks. Then, we propose possible research points in this direction to better promote the development of the theoretical model and application of SSM. More related works will be continuously updated on the following GitHub: https://github.com/Event-AHU/Mamba_State_Space_Model_Paper_List.

4/16/2024

### State Space Models are Comparable to Transformers in Estimating Functions with Dynamic Smoothness

Naoki Nishikawa, Taiji Suzuki

0

0

Deep neural networks based on state space models (SSMs) are attracting much attention in sequence modeling since their computational cost is significantly smaller than that of Transformers. While the capabilities of SSMs have been primarily investigated through experimental comparisons, theoretical understanding of SSMs is still limited. In particular, there is a lack of statistical and quantitative evaluation of whether SSM can replace Transformers. In this paper, we theoretically explore in which tasks SSMs can be alternatives of Transformers from the perspective of estimating sequence-to-sequence functions. We consider the setting where the target function has direction-dependent smoothness and prove that SSMs can estimate such functions with the same convergence rate as Transformers. Additionally, we prove that SSMs can estimate the target function, even if the smoothness changes depending on the input sequence, as well as Transformers. Our results show the possibility that SSMs can replace Transformers when estimating the functions in certain classes that appear in practice.

5/30/2024

### State Space Models on Temporal Graphs: A First-Principles Study

Jintang Li, Ruofan Wu, Xinzhou Jin, Boqun Ma, Liang Chen, Zibin Zheng

0

0

Over the past few years, research on deep graph learning has shifted from static graphs to temporal graphs in response to real-world complex systems that exhibit dynamic behaviors. In practice, temporal graphs are formalized as an ordered sequence of static graph snapshots observed at discrete time points. Sequence models such as RNNs or Transformers have long been the predominant backbone networks for modeling such temporal graphs. Yet, despite the promising results, RNNs struggle with long-range dependencies, while transformers are burdened by quadratic computational complexity. Recently, state space models (SSMs), which are framed as discretized representations of an underlying continuous-time linear dynamical system, have garnered substantial attention and achieved breakthrough advancements in independent sequence modeling. In this work, we undertake a principled investigation that extends SSM theory to temporal graphs by integrating structural information into the online approximation objective via the adoption of a Laplacian regularization term. The emergent continuous-time system introduces novel algorithmic challenges, thereby necessitating our development of GraphSSM, a graph state space model for modeling the dynamics of temporal graphs. Extensive experimental results demonstrate the effectiveness of our GraphSSM framework across various temporal graph benchmarks.

6/4/2024