Technologies on Effectiveness and Efficiency: A Survey of State Spaces Models

Xingtai Lv, Youbang Sun, Kaiyan Zhang, Shang Qu, Xuekai Zhu, Yuchen Fan, Yi Wu, Ermo Hua, Xinwei Long, Ning Ding, Bowen ZhouarXiv 2025

Abstract

State Space Models (SSMs) have emerged as a promising alternative to the popular transformer-based models and have been increasingly gaining attention. Compared to transformers, SSMs excel at tasks with sequential data or longer contexts, demonstrating comparable performances with significant efficiency gains. In this survey, we provide a coherent and systematic overview for SSMs, including their theoretical motivations, mathematical formulations, comparison with existing model classes, and various applications. We divide the SSM series into three main sections, providing a detailed introduction to the original SSM, the structured SSM represented by S4, and the selective SSM typified by Mamba. We put an emphasis on technicality, and highlight the various key techniques introduced to address the effectiveness and efficiency of SSMs. We hope this manuscript serves as an introduction for researchers to explore the theoretical foundations of SSMs.

1. Introduction

For nearly a decade, the Transformer architecture has dominated artificial intelligence, primarily due to its self-attention mechanism. However, Transformers suffer from a fundamental flaw: quadratic scaling. As the input sequence length ($L$) grows, the computational and memory costs increase by $L^2$, making the processing of massive contexts—such as high-resolution video, long-form documents, or genomic sequences—prohibitively expensive.

State Space Models (SSMs) have emerged as the primary contender to address this bottleneck. By leveraging foundations from classical control theory, SSMs offer a "best of both worlds" scenario: the parallelizable training of Convolutions and the efficient, linear-time inference of Recurrent Neural Networks (RNNs). This survey explores the technological leaps that transformed SSMs from theoretical mathematical constructs into modern deep learning powerhouses.

2. The Evolution of State Space Models

The journey of SSMs in deep learning is defined by three major technological milestones: discretization, structuring for long-range memory, and the introduction of selectivity.

2.1 Discretization and Mathematical Foundations

SSMs originate as continuous-time differential equations. To be implemented on digital hardware, these models must undergo discretization. Techniques such as Euler Discretization, Zero-Order Hold (ZOH), and Bilinear Transforms are used to convert continuous physical descriptions into discrete sequence models. This process allows the model to handle discrete sequential data while maintaining the underlying physical properties of the system.

2.2 Structuring for Efficiency (S4)

Early SSMs struggled with "forgetting" distant information and were computationally heavy. The introduction of Structured SSMs (S4) solved this by incorporating HiPPO (High-Order Polynomial Projection Operators) for robust memory and DPLR (Diagonal Plus Low-Rank) matrix structures. These innovations allowed the model to be computed as a convolution during training (enabling GPU parallelism) and as a recurrence during inference (enabling constant-memory operations).

Evolutionary timeline of key techniques in the development of State Space Models.

2.3 Selectivity and Hardware Awareness (Mamba)

The most recent leap, typified by the Mamba architecture, introduced Selectivity. While previous SSMs used fixed parameters regardless of the input, Mamba allows the model to dynamically "choose" what to remember or ignore based on the current token. To maintain efficiency despite this input-dependency, Mamba utilizes hardware-aware state expansion, optimizing data movement between a GPU’s fast SRAM and slower HBM.

3. Taxonomy and Application Domains

The SSM landscape has expanded rapidly, branching into specialized architectures for diverse data modalities. The current ecosystem can be categorized into three primary branches: Original SSMs, Structured SSMs, and Selective SSMs.

Taxonomy of the SSM series and its broad application landscape.

As shown in the taxonomy above, SSMs are no longer limited to simple sequence modeling. They have been successfully adapted for:

  • Computer Vision: Models like Vision Mamba (ViM) and VMamba apply SSM principles to 2D image data.
  • Medical Imaging: Mamba-UNet and Swin-UMamba are being used for high-precision medical segmentation.
  • Genomics: Architectures like HyenaDNA leverage long-context capabilities to process massive DNA sequences.
  • Multi-Modal Learning: New variants like Cobra and Sigma are integrating SSMs into multi-modal reasoning tasks.

4. Key Insights and Performance

4.1 The Duality Principle

The most elegant feature of modern SSMs is their dual nature. They can be viewed as Convolutions (perfect for parallel training) or as Recurrences (perfect for fast inference). This duality allows them to bypass the $O(L^2)$ complexity of Transformers while avoiding the vanishing gradient issues of traditional RNNs.

4.2 Empirical Results

  • Efficiency: Mamba achieves 20-40x speedups in throughput compared to standard Transformers when processing long sequences.
  • Long Range Arena (LRA): On this standard benchmark for long-distance dependencies, Structured SSMs like DSS have achieved average accuracies of 81.88, rivaling specialized Transformer variants.
  • Scaling: Mamba is the first non-Transformer architecture to demonstrate consistent performance scaling that matches Transformers across various parameter counts.

5. Limitations and Future Directions

Despite their rapid ascent, SSMs face ongoing challenges. Research suggests they may struggle with "copying" or "recalling" specific strings of exponential length as precisely as Transformers, due to their fixed-size latent state.

The most promising path forward appears to be Hybrid Architectures. Models like Jamba interleave Transformer layers (for high-precision reasoning) with SSM layers (for long-context efficiency), suggesting a future where these two paradigms merge into a unified theory of sequence modeling.

Summary updated

BibTeX
@misc{lv2025technologies,
  author = {Xingtai Lv and Youbang Sun and Kaiyan Zhang and Shang Qu and Xuekai Zhu and Yuchen Fan and Yi Wu and Ermo Hua and Xinwei Long and Ning Ding and Bowen Zhou},
  title = {{Technologies on Effectiveness and Efficiency: A Survey of State Spaces Models}},
  year = {2025},
  eprint = {2503.11224},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.11224},
}
Figure