Sequential-Parallel Duality in Prefix Scannable Models
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
- 2024Unlocking State-Tracking in Linear RNNs Through Negative Eigenvalues19 Nov
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality31 May
- 2024Simple linear attention language models balance the recall-throughput tradeoff28 Feb
- 2023Gated Linear Attention Transformers with Hardware-Efficient Training11 Dec
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spaces1 Dec
- 2021Efficiently Modeling Long Sequences with Structured State Spaces31 Oct
Other references · 37
- 2017Attention Is All You Needcited by 60,361
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,057
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2016WaveNet: A Generative Model for Raw Audiocited by 1,722
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
- 2016Language Modeling with Gated Convolutional Networkscited by 702
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 613
- 2017Convolutional Sequence to Sequence Learningcited by 552
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 532
25 more
- 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 502
- 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 396
- 2021Random Feature Attentioncited by 354
- 2024xLSTM: Extended Long Short-Term Memorycited by 327
- 2019Theoretical Limitations of Self-Attention in Neural Sequence Modelscited by 288
- 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 204
- 2022The Parallelism Tradeoff: Limitations of Log-Precision Transformerscited by 193
- 2024The Illusion of State in State-Space Modelscited by 187
- 2018Independently Recurrent Neural Network (IndRNN): Building A Longer and Deeper RNNcited by 143
- 2025RWKV-7 "Goose" with Expressive Dynamic State Evolutioncited by 141
- 2017Parallelizing Linear Recurrent Neural Nets Over Sequence Lengthcited by 127
- 2023What Formal Languages Can Transformers Express? A Surveycited by 124
- 2023Hierarchically Gated Recurrent Neural Network for Sequence Modelingcited by 102
- 2021Going Beyond Linear Transformers with Recurrent Fast Weight Programmerscited by 89
- 2016Quasi-Recurrent Neural Networkscited by 87
- 2020On the Computational Power of Transformers and its Implications in Sequence Modelingcited by 85
- 2025DeltaProduct: Improving State-Tracking in Linear RNNs via Householder Productscited by 75
- 2016Neural Machine Translation in Linear Timecited by 66
- 2020A Formal Hierarchy of RNN Architecturescited by 62
- 2017Simple Recurrent Units for Highly Parallelizable Recurrencecited by 61
- 2023Entity Tracking in Language Modelscited by 44
- 2025Log-Linear Attentioncited by 40
- 2025(How) Do Language Models Track State?cited by 34
- 2023Practical Computational Power of Linear Transformers and Their Recurrent and Self-Referential Extensionscited by 20
- 2016Strongly-Typed Recurrent Neural Networkscited by 13
Built on by
Citing papers per year: 2025: 4; 2026: 4.
8 papers.
- 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 196
- 2025Dynamic Chunking for End-to-End Hierarchical Sequence Modelingcited by 72
- 2026In-Place Test-Time Trainingcited by 20
- 2025Fast weight programming and linear transformers: from machine learning to neurobiologycited by 8
- 2026Pretraining Recurrent Networks without Recurrencecited by 5
- 2025Recurrence-Complete Frame-based Action Modelscited by 2
- 2026Length Generalization with Log-Depth Recurrent Unitscited by 1
- 2026SMat-Attention: Structured Long-Context Sequence Modelingcited by 1
- 2026SMat-Attention: Structured Long-Context Sequence Modeling28 Sep 2026
- 2026Pretraining Recurrent Networks without Recurrence4 Jun 2026
- 2026Length Generalization with Log-Depth Recurrent Units25 May 2026
- 2026In-Place Test-Time Training7 Apr 2026
- 2025Kimi Linear: An Expressive, Efficient Attention Architecture30 Oct 2025
- 2025Recurrence-Complete Frame-based Action Models8 Oct 2025
- 2025Fast weight programming and linear transformers: from machine learning to neurobiology11 Aug 2025
- 2025Dynamic Chunking for End-to-End Hierarchical Sequence Modeling10 Jul 2025
Similar, not cited
Close in wording, no citation either way
- 2025Advancing Intelligent Sequence Modeling: Evolution, Trade-offs, and Applications of State-Space Architectures from S4 to Mamba
- 2023Sparse Modular Activation for Efficient Sequence Modeling
- 2025On Structured State-Space Duality
- 2025Numerical Investigation of Sequence Modeling Theory using Controllable Memory Functions
- 2024Understanding the differences in Foundation Models: Attention, State Space Models, and Recurrent Neural Networks
- 2026Expressivity-Efficiency Tradeoffs for Hybrid Sequence Models
- 2023State-space Models with Layer-wise Nonlinearity are Universal Approximators with Exponential Decaying Memory
- 2025Achilles' Heel of Mamba: Essential difficulties of the Mamba architecture demonstrated by synthetic data