Lune

AAAI2025Top-tier venue

On the Expressiveness and Length Generalization of Selective State Space Models on Regular Languages

Aleksandar Terzic, Michael Hersche, Giacomo Camposampiero, Thomas Hofmann, Abu Sebastian, Abbas Rahimi

Abstract

Selective state-space models (SSMs) are an emerging alternative to the Transformer, offering the unique advantage of parallel training and sequential inference. Although these models have shown promising performance on a variety of tasks, their formal expressiveness and length generalization properties remain underexplored. In this work, we provide insight into the workings of selective SSMs by analyzing their expressiveness and length generalization performance on regular language tasks, i.e., finite-state automaton (FSA) emulation. We address certain limitations of modern SSM-based architectures by introducing the Selective Dense State-Space Model (SD-SSM), the first selective SSM that exhibits perfect length generalization on a set of various regular language tasks using a single layer. It utilizes a dictionary of dense transition matrices, a softmax selection mechanism that creates a convex combination of dictionary matrices at each time step, and a readout consisting of layer normalization followed by a linear map. We then proceed to evaluate variants of diagonal selective SSMs by considering their empirical performance on commutative and non-commutative automata. We explain the experimental results with theoretical considerations.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

6 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • PaTH Attention: Position Encoding via Accumulating Householder Transformations cites FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
  • Generalization Error Analysis for Selective State-Space Models Through the Lens of Attention cites On the Parameterization and Initialization of Diagonal State Space Models
  • Generalization Error Analysis for Selective State-Space Models Through the Lens of Attention cites Efficiently Modeling Long Sequences with Structured State Spaces
  • Generalization Error Analysis for Selective State-Space Models Through the Lens of Attention cites HiPPO: Recurrent Memory with Optimal Polynomial Projections
  • Generalization Error Analysis for Selective State-Space Models Through the Lens of Attention cites Combining Recurrent, Convolutional, and Continuous-time Models with Linear State Space Layers
  • On the Parameterization and Initialization of Diagonal State Space Models cites Efficiently Modeling Long Sequences with Structured State Spaces
  • Efficiently Modeling Long Sequences with Structured State Spaces cites On the Parameterization and Initialization of Diagonal State Space Models
  • On the Parameterization and Initialization of Diagonal State Space Models cites HiPPO: Recurrent Memory with Optimal Polynomial Projections
  • Efficiently Modeling Long Sequences with Structured State Spaces cites HiPPO: Recurrent Memory with Optimal Polynomial Projections
  • Combining Recurrent, Convolutional, and Continuous-time Models with Linear State Space Layers cites HiPPO: Recurrent Memory with Optimal Polynomial Projections
  • Structured Sparse Transition Matrices to Enable State Tracking in State-Space Models cites On the Parameterization and Initialization of Diagonal State Space Models
  • Structured Sparse Transition Matrices to Enable State Tracking in State-Space Models cites Efficiently Modeling Long Sequences with Structured State Spaces
  • Structured Sparse Transition Matrices to Enable State Tracking in State-Space Models cites HiPPO: Recurrent Memory with Optimal Polynomial Projections
  • Structured Sparse Transition Matrices to Enable State Tracking in State-Space Models cites Combining Recurrent, Convolutional, and Continuous-time Models with Linear State Space Layers
  • Structured Sparse Transition Matrices to Enable State Tracking in State-Space Models cites FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
  • Fixed-Point RNNs: Interpolating from Diagonal to Dense cites Efficiently Modeling Long Sequences with Structured State Spaces
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. PaTH Attention: Position Encoding via Accumulating Householder TransformationsSonglin Yang, Yikang Shen, Kaiyue Wen, Shawn Tan et al.NeurIPS 2025 · 36 citations
  2. Structured Sparse Transition Matrices to Enable State Tracking in State-Space ModelsAleksandar Terzic, Nicolas Menet, Michael Hersche, Thomas Hofmann et al.NeurIPS 2025 · 18 citations
  3. Generalization Error Analysis for Selective State-Space Models Through the Lens of AttentionArya Honarpisheh, Mustafa Bozdag, Octavia I. Camps, Mario SznaierNeurIPS 2025 · 6 citations
  4. Revisiting Bi-Linear State Transitions in Recurrent Neural NetworksReza Ebrahimi, Roland MemisevicNeurIPS 2025 · 6 citations
  5. Fixed-Point RNNs: Interpolating from Diagonal to DenseSajad Movahedi, Felix Sarnthein, Nicola Muca Cirone, Antonio OrvietoNeurIPS 2025 · 5 citations

Builds on19

  1. Efficiently Modeling Long Sequences with Structured State SpacesAlbert Gu, Karan Goel, Christopher RéICLR 2022 · 3,482 citations
  2. FlashAttention-2: Faster Attention with Better Parallelism and Work PartitioningTri DaoICLR 2024 · 2,600 citations
  3. Combining Recurrent, Convolutional, and Continuous-time Models with Linear State Space LayersAlbert Gu, Isys Johnson, Karan Goel, Khaled Saab et al.NeurIPS 2021 · 1,280 citations
  4. HiPPO: Recurrent Memory with Optimal Polynomial ProjectionsAlbert Gu, Tri Dao, Stefano Ermon, Atri Rudra et al.NeurIPS 2020 · 1,100 citations
  5. On the Parameterization and Initialization of Diagonal State Space ModelsAlbert Gu, Karan Goel, Ankit Gupta, Christopher RéNeurIPS 2022 · 690 citations

Related papers

  1. On the Expressiveness of State Space Models via Temporal LogicsEric Alsmann, Lowejatan Noori, Martin LangeICLR 2026 · 2 citations
  2. Understanding and Mitigating Bottlenecks of State Space Models through the Lens of Recency and Over-smoothingPeihao Wang, Ruisi Cai, Yuehao Wang, Jiajun Zhu et al.ICLR 2025
  3. To Infinity and Beyond: Tool-Use Unlocks Length Generalization in State Space ModelsEran Malach, Omid Saremi, Sinead Williamson, Arwen Bradley et al.ICLR 2026 · 3 citations
  4. Block-State TransformersJonathan Pilault, Mahan Fathi, Orhan Firat, Chris Pal et al.NeurIPS 2023 · 33 citations
  5. Understanding Input Selectivity in Mamba: Impact on Approximation Power, Memorization, and Associative Recall CapacityNingyuan Teresa Huang, Miguel Sarabia, Abhinav Moudgil, Pau Rodríguez et al.ICML 2025
Dusk over the sea between two cliffs drawn in fine vertical lines