Understanding the differences in Foundation Models: Attention, State Space Models, and Recurrent Neural Networks
Not on the map. Why?
Abstract (arXiv)
Softmax attention is the principle backbone of foundation models for various artificial intelligence applications, yet its quadratic complexity in sequence length can limit its inference throughput in long-context settings. To address this challenge, alternative architectures such as linear attention, State Space Models (SSMs), and Recurrent Neural Networks (RNNs) have been considered as more efficient alternatives. While connections between these approaches exist, such models are commonly developed in isolation and there is a lack of theoretical understanding of the shared principles underpinning these architectures and their subtle differences, greatly influencing performance and scalability. In this paper, we introduce the Dynamical Systems Framework (DSF), which allows a principled investigation of all these architectures in a common representation. Our framework facilitates rigorous comparisons, providing new insights on the distinctive characteristics of each model class. For instance, we compare linear attention and selective SSMs, detailing their differences and conditions under which both are equivalent. We also provide principled comparisons between softmax attention and other model classes, discussing the theoretical conditions under which softmax attention can be approximated. Additionally, we substantiate these new insights with empirical validations and mathematical arguments. This shows the DSF's potential to guide the systematic development of future more efficient and scalable foundation models.
Key facts. Cited by 26 papers in the map (data through 7 Oct 2026). Builds on 52 of its 69 references that are in the map. First posted on arXiv 24 May 2024.
Builds on
52 of 69 references.
References · 52
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,424
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
- 2020Rethinking Attention with Performerscited by 1,584
- 2024Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space Modelcited by 1,051
- 2024VMamba: Visual State Space Modelcited by 955
38 more
- 2022In-context Learning and Induction Headscited by 930
- 2023RWKV: Reinventing RNNs for the Transformer Eracited by 814
- 2022Simplified State Space Layers for Sequence Modelingcited by 776
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
- 2020HiPPO: Recurrent Memory with Optimal Polynomial Projectionscited by 600
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 594
- 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 495
- 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 490
- 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 471
- 2022On the Parameterization and Initialization of Diagonal State Space Modelscited by 418
- 2022DeiT III: Revenge of the ViTcited by 417
- 2023Resurrecting Recurrent Neural Networks for Long Sequencescited by 397
- 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 388
- 2022Diagonal State Spaces are as Effective as Structured State Spacescited by 350
- 2024xLSTM: Extended Long Short-Term Memorycited by 320
- 2024Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Modelscited by 232
- 2019Transformer Dissection: A Unified Understanding of Transformer's Attention via the Lens of Kernelcited by 211
- 2024Simple linear attention language models balance the recall-throughput tradeoffcited by 197
- 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 188
- 2024The Illusion of State in State-Space Modelscited by 181
- 2022It's Raw! Audio Generation with State-Space Modelscited by 171
- 2024HGRN2: Gated Linear RNNs with State Expansioncited by 122
- 2024Transformers are Multi-State RNNscited by 120
- 2023Structured State Space Models for In-Context Reinforcement Learningcited by 109
- 2024Caduceus: Bi-Directional Equivariant Long-Range DNA Sequence Modelingcited by 108
- 2024The Hidden Attention of Mamba Modelscited by 88
- 2022What Makes Convolutional Models Great on Long Sequence Modeling?cited by 86
- 2024Theoretical Foundations of Deep Selective State-Space Modelscited by 73
- 2024Point Mamba: A Novel Point Cloud Backbone Based on State Space Model with Octree-Based Ordering Strategycited by 71
- 2024MambaByte: Token-free Selective State Space Modelcited by 58
- 2022Pretraining Without Attentioncited by 51
- 2023GateLoop: Fully Data-Controlled Linear Recurrence for Sequence Modelingcited by 45
- 2022S4ND: Modeling Images and Videos as Multidimensional Signals Using State Spacescited by 41
- 2023State-space Models with Layer-wise Nonlinearity are Universal Approximators with Exponential Decaying Memorycited by 38
- 2023Universality of Linear Recurrences Followed by Non-linear Projections: Finite-Width Guarantees and Benefits of Complex Eigenvaluescited by 35
- 2024State Space Models as Foundation Models: A Control Theoretic Overviewcited by 18
- 2023The Languini Kitchen: Enabling Language Modelling Research at Different Scales of Computecited by 10
- 2023Gated recurrent neural networks discover attentioncited by 7
50 most cited of 52 All 52 (JSON)
Built on by
Citing papers per year: 2024: 8; 2025: 11; 2026: 7.
26 papers.
Sort:
By area:
- 2025A Systematic Analysis of Hybrid Linear Attentioncited by 38
- 2024Lynx: Enabling Efficient MoE Inference through Dynamic Batch-Aware Expert Selectioncited by 16
- 2024Autocorrelation Matters: Understanding the Role of Initialization Schemes for State Space Modelscited by 8
- 2025Block-Biased Mamba for Long-Range Sequence Processingcited by 7
- 2025Revisiting associative recall in modern recurrent modelscited by 7
- 2024Exploring the Limitations of Mamba in COPY and CoT Reasoningcited by 6
- 2025On the Expressiveness of Softmax Attention: A Recurrent Neural Network Perspectivecited by 6
- 2024Lambda-Skip Connections: the architectural component that prevents Rank Collapsecited by 4
- 2025Uncovering the Computational Roles of Nonlinearity in Sequence Modeling Using Almost-Linear RNNscited by 4
- 2024What comes after transformers? -- A selective survey connecting ideas in deep learningcited by 3
- 2024NIMBA: Towards Robust and Principled Processing of Point Clouds With SSMscited by 3
- 2025SAS: Simulated Attention Scorecited by 3
14 more
- 2025Degrees of Freedom for Linear Attention: Distilling Softmax Attention with Optimal Feature Efficiencycited by 2
- 2025Differential Mambacited by 2
- 2025A Mechanistic Analysis of Transformers for Dynamical Systemscited by 2
- 2024Transformers as Implicit State Estimators: In-Context Learning in Dynamical Systemscited by 1
- 2025On Structured State-Space Dualitycited by 1
- 2025Design Principles for Sequence Models via Coefficient Dynamicscited by 1
- 2026Why Depth Matters in Parallelizable Sequence Models: A Lie Algebraic Viewcited by 1
- 2026Understanding the Theoretical Foundations of Deep Neural Networks through Differential Equationscited by 1
- 2026SHiPPO: Recurrent Memory with Transported Polynomial Projectionscited by 1
- 2024Making Every Frame Matter: Continuous Activity Recognition in Streaming Video via Adaptive Video Context Modelingcited by 0
- 2026Graph Signal Processing Meets Mamba2: Adaptive Filter Bank via Delta Modulationcited by 0
- 2026Continuity Laws for Sequential Modelscited by 0
- 2026Trading Complexity for Expressivity Through Structured Generalized Linear Token Mixingcited by 0
- 2026Flexformer: Flexible Linear Transformer with Learnable Attention Kernelcited by 0
- 2026SHiPPO: Recurrent Memory with Transported Polynomial Projections3 Jul 2026
- 2026Flexformer: Flexible Linear Transformer with Learnable Attention Kernel26 Jun 2026
- 2026Trading Complexity for Expressivity Through Structured Generalized Linear Token Mixing29 May 2026
- 2026Continuity Laws for Sequential Models8 May 2026
- 2026Graph Signal Processing Meets Mamba2: Adaptive Filter Bank via Delta Modulation20 Mar 2026
- 2026Understanding the Theoretical Foundations of Deep Neural Networks through Differential Equations18 Mar 2026
- 2026Why Depth Matters in Parallelizable Sequence Models: A Lie Algebraic View5 Mar 2026
- 2025A Mechanistic Analysis of Transformers for Dynamical Systems24 Dec 2025
- 2025Design Principles for Sequence Models via Coefficient Dynamics10 Oct 2025
- 2025On Structured State-Space Duality6 Oct 2025
- 2025Revisiting associative recall in modern recurrent models26 Aug 2025
- 2025On the Expressiveness of Softmax Attention: A Recurrent Neural Network Perspective31 Jul 2025
14 more
- 2025SAS: Simulated Attention Score10 Jul 2025
- 2025A Systematic Analysis of Hybrid Linear Attention8 Jul 2025
- 2025Differential Mamba8 Jul 2025
- 2025Degrees of Freedom for Linear Attention: Distilling Softmax Attention with Optimal Feature Efficiency4 Jul 2025
- 2025Uncovering the Computational Roles of Nonlinearity in Sequence Modeling Using Almost-Linear RNNs9 Jun 2025
- 2025Block-Biased Mamba for Long-Range Sequence Processing13 May 2025
- 2024Autocorrelation Matters: Understanding the Role of Initialization Schemes for State Space Models29 Nov 2024
- 2024Lynx: Enabling Efficient MoE Inference through Dynamic Batch-Aware Expert Selection13 Nov 2024
- 2024NIMBA: Towards Robust and Principled Processing of Point Clouds With SSMs31 Oct 2024
- 2024Transformers as Implicit State Estimators: In-Context Learning in Dynamical Systems21 Oct 2024
- 2024Making Every Frame Matter: Continuous Activity Recognition in Streaming Video via Adaptive Video Context Modeling19 Oct 2024
- 2024Lambda-Skip Connections: the architectural component that prevents Rank Collapse14 Oct 2024
- 2024Exploring the Limitations of Mamba in COPY and CoT Reasoning4 Oct 2024
- 2024What comes after transformers? -- A selective survey connecting ideas in deep learning1 Aug 2024
- 2025Block-Biased Mamba for Long-Range Sequence Processingcited by 7
- 2024NIMBA: Towards Robust and Principled Processing of Point Clouds With SSMscited by 3
- 2025Differential Mambacited by 2
- 2025On Structured State-Space Dualitycited by 1
- 2026Why Depth Matters in Parallelizable Sequence Models: A Lie Algebraic Viewcited by 1
- 2026Why Depth Matters in Parallelizable Sequence Models: A Lie Algebraic View5 Mar 2026
- 2025On Structured State-Space Duality6 Oct 2025
- 2025Differential Mamba8 Jul 2025
- 2025Block-Biased Mamba for Long-Range Sequence Processing13 May 2025
- 2024NIMBA: Towards Robust and Principled Processing of Point Clouds With SSMs31 Oct 2024
- 2025A Systematic Analysis of Hybrid Linear Attentioncited by 38
- 2024Autocorrelation Matters: Understanding the Role of Initialization Schemes for State Space Modelscited by 8
- 2025Revisiting associative recall in modern recurrent modelscited by 7
- 2025On the Expressiveness of Softmax Attention: A Recurrent Neural Network Perspectivecited by 6
- 2024Lambda-Skip Connections: the architectural component that prevents Rank Collapsecited by 4
- 2025Uncovering the Computational Roles of Nonlinearity in Sequence Modeling Using Almost-Linear RNNscited by 4
- 2024What comes after transformers? -- A selective survey connecting ideas in deep learningcited by 3
- 2025SAS: Simulated Attention Scorecited by 3
- 2025Degrees of Freedom for Linear Attention: Distilling Softmax Attention with Optimal Feature Efficiencycited by 2
- 2025A Mechanistic Analysis of Transformers for Dynamical Systemscited by 2
- 2024Transformers as Implicit State Estimators: In-Context Learning in Dynamical Systemscited by 1
- 2025Design Principles for Sequence Models via Coefficient Dynamicscited by 1
12 most cited of 19 All 19 (JSON)
- 2026SHiPPO: Recurrent Memory with Transported Polynomial Projections3 Jul 2026
- 2026Flexformer: Flexible Linear Transformer with Learnable Attention Kernel26 Jun 2026
- 2026Trading Complexity for Expressivity Through Structured Generalized Linear Token Mixing29 May 2026
- 2026Continuity Laws for Sequential Models8 May 2026
- 2026Graph Signal Processing Meets Mamba2: Adaptive Filter Bank via Delta Modulation20 Mar 2026
- 2026Understanding the Theoretical Foundations of Deep Neural Networks through Differential Equations18 Mar 2026
- 2025A Mechanistic Analysis of Transformers for Dynamical Systems24 Dec 2025
- 2025Design Principles for Sequence Models via Coefficient Dynamics10 Oct 2025
- 2025Revisiting associative recall in modern recurrent models26 Aug 2025
- 2025On the Expressiveness of Softmax Attention: A Recurrent Neural Network Perspective31 Jul 2025
- 2025SAS: Simulated Attention Score10 Jul 2025
- 2025A Systematic Analysis of Hybrid Linear Attention8 Jul 2025
12 newest of 19 All 19 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025How Many Heads Make an SSM? A Unified Framework for Attention and State Space Models
- 2025Eigenvalues as a Metric for Memory Dynamics in Sequence Models
- 2025Advancing Intelligent Sequence Modeling: Evolution, Trade-offs, and Applications of State-Space Architectures from S4 to Mamba
- 2026State Rank Dynamics in Linear Attention LLMs
- 2024Recurrent neural networks: vanishing and exploding gradients are not the end of the story
- 2026A Comparative Analysis of Attention versus State-Space Models for In-Context Learning
- 2025Memory Determines Learning Direction: A Theory of Gradient-Based Optimization in State Space Models
- 2023Is attention required for ICL? Exploring the Relationship Between Model Architecture and In-Context Learning Ability