mlsanityData to 14 Oct 2026

Sequential-Parallel Duality in Prefix Scannable Models

arXiv 2506.10918 ↗First posted 12 Jun 2025cs.LGcited by 8

On the map: State-space sequence models (S4, Mamba) → Core SSM architectures for language

Abstract (arXiv)

Modern neural sequence models are designed to meet the dual mandate of parallelizable training and fast sequential inference. Recent developments have given rise to various models, such as Gated Linear Attention (GLA) and Mamba, that achieve such ``sequential-parallel duality.'' This raises a natural question: can we characterize the full class of neural sequence models that support near-constant-time parallel evaluation and linear-time, constant-space sequential inference? We begin by describing a broad class of such models -- state space models -- as those whose state updates can be computed using the classic parallel prefix scan algorithm with a custom associative aggregation operator. We then define a more general class, Prefix-Scannable Models (PSMs), by relaxing the state aggregation operator to allow arbitrary (potentially non-associative) functions such as softmax attention. This generalization unifies many existing architectures, including element-wise RNNs (e.g., Mamba) and linear transformers (e.g., GLA, Mamba2, mLSTM), while also introducing new models with softmax-like operators that achieve O(1) amortized compute per token and log(N) memory for sequence length N. We empirically evaluate such models on illustrative small-scale language modeling and canonical synthetic tasks, including state tracking and associative recall. Empirically, we find that PSMs retain the expressivity of transformer-based architectures while matching the inference efficiency of state space models -- in some cases exhibiting better length generalization than either.

Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Placed in Core SSM architectures for language, one of 10 directions in State-space sequence models (S4, Mamba). Builds on 43 of its 57 references that are in the map. First posted on arXiv 12 Jun 2025.

Builds on

43 of 57 references.

Closest ancestors · 6

Same direction, newest first

  1. 2024Unlocking State-Tracking in Linear RNNs Through Negative Eigenvalues19 Nov
  2. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality31 May
  3. 2024Simple linear attention language models balance the recall-throughput tradeoff28 Feb
  4. 2023Gated Linear Attention Transformers with Hardware-Efficient Training11 Dec
  5. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spaces1 Dec
  6. 2021Efficiently Modeling Long Sequences with Structured State Spaces31 Oct

Other references · 37

  1. 2017Attention Is All You Needcited by 60,361
  2. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  3. 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,057
  4. 2020Longformer: The Long-Document Transformercited by 3,413
  5. 2016Pointer Sentinel Mixture Modelscited by 3,096
  6. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
  7. 2016WaveNet: A Generative Model for Raw Audiocited by 1,722
  8. 2020Big Bird: Transformers for Longer Sequencescited by 1,684
  9. 2016Language Modeling with Gated Convolutional Networkscited by 702
  10. 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 613
  11. 2017Convolutional Sequence to Sequence Learningcited by 552
  12. 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 532
25 more
  1. 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 502
  2. 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 396
  3. 2021Random Feature Attentioncited by 354
  4. 2024xLSTM: Extended Long Short-Term Memorycited by 327
  5. 2019Theoretical Limitations of Self-Attention in Neural Sequence Modelscited by 288
  6. 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 204
  7. 2022The Parallelism Tradeoff: Limitations of Log-Precision Transformerscited by 193
  8. 2024The Illusion of State in State-Space Modelscited by 187
  9. 2018Independently Recurrent Neural Network (IndRNN): Building A Longer and Deeper RNNcited by 143
  10. 2025RWKV-7 "Goose" with Expressive Dynamic State Evolutioncited by 141
  11. 2017Parallelizing Linear Recurrent Neural Nets Over Sequence Lengthcited by 127
  12. 2023What Formal Languages Can Transformers Express? A Surveycited by 124
  13. 2023Hierarchically Gated Recurrent Neural Network for Sequence Modelingcited by 102
  14. 2021Going Beyond Linear Transformers with Recurrent Fast Weight Programmerscited by 89
  15. 2016Quasi-Recurrent Neural Networkscited by 87
  16. 2020On the Computational Power of Transformers and its Implications in Sequence Modelingcited by 85
  17. 2025DeltaProduct: Improving State-Tracking in Linear RNNs via Householder Productscited by 75
  18. 2016Neural Machine Translation in Linear Timecited by 66
  19. 2020A Formal Hierarchy of RNN Architecturescited by 62
  20. 2017Simple Recurrent Units for Highly Parallelizable Recurrencecited by 61
  21. 2023Entity Tracking in Language Modelscited by 44
  22. 2025Log-Linear Attentioncited by 40
  23. 2025(How) Do Language Models Track State?cited by 34
  24. 2023Practical Computational Power of Linear Transformers and Their Recurrent and Self-Referential Extensionscited by 20
  25. 2016Strongly-Typed Recurrent Neural Networkscited by 13

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 4; 2026: 4.

8 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Advancing Intelligent Sequence Modeling: Evolution, Trade-offs, and Applications of State-Space Architectures from S4 to Mamba
  2. 2023Sparse Modular Activation for Efficient Sequence Modeling
  3. 2025On Structured State-Space Duality
  4. 2025Numerical Investigation of Sequence Modeling Theory using Controllable Memory Functions
  5. 2024Understanding the differences in Foundation Models: Attention, State Space Models, and Recurrent Neural Networks
  6. 2026Expressivity-Efficiency Tradeoffs for Hybrid Sequence Models
  7. 2023State-space Models with Layer-wise Nonlinearity are Universal Approximators with Exponential Decaying Memory
  8. 2025Achilles' Heel of Mamba: Essential difficulties of the Mamba architecture demonstrated by synthetic data