mlsanityData to 7 Oct 2026

Explaining Modern Gated-Linear RNNs via a Unified Implicit Attention Formulation

arXiv 2405.16504 ↗First posted 26 May 2024cs.LGcited by 11

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

Abstract (arXiv)

Recent advances in efficient sequence modeling have led to attention-free layers, such as Mamba, RWKV, and various gated RNNs, all featuring sub-quadratic complexity in sequence length and excellent scaling properties, enabling the construction of a new type of foundation models. In this paper, we present a unified view of these models, formulating such layers as implicit causal self-attention layers. The formulation includes most of their sub-components and is not limited to a specific part of the architecture. The framework compares the underlying mechanisms on similar grounds for different layers and provides a direct means for applying explainability methods. Our experiments show that our attention matrices and attribution method outperform an alternative and a more limited formulation that was recently proposed for Mamba. For the other architectures for which our method is the first to provide such a view, our method is effective and competitive in the relevant metrics compared to the results obtained by state-of-the-art Transformer explainability methods. Our code is publicly available.

Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Placed in Core SSM architectures for language, one of 10 directions in State-space sequence models (S4, Mamba). Builds on 60 of its 67 references that are in the map. First posted on arXiv 26 May 2024.

Builds on

60 of 67 references.

Closest ancestors · 8

Same direction, newest first

  1. 2024Jamba: A Hybrid Transformer-Mamba Language Model28 Mar
  2. 2024The Hidden Attention of Mamba Models3 Mar
  3. 2024BlackMamba: Mixture of Experts for State-Space Models1 Feb
  4. 2024MambaByte: Token-free Selective State Space Model24 Jan
  5. 2023Gated Linear Attention Transformers with Hardware-Efficient Training11 Dec
  6. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spaces1 Dec
  7. 2022Simplified State Space Layers for Sequence Modeling9 Aug
  8. 2021Efficiently Modeling Long Sequences with Structured State Spaces31 Oct

Other references · 52

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  4. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
  5. 2014Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modelingcited by 2,341
  6. 2019ViLBERT: Pretraining Task-Agnostic Visiolinguistic Representations for Vision-and-Language Taskscited by 2,219
  7. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
  8. 2019LXMERT: Learning Cross-Modality Encoder Representations from Transformerscited by 1,548
  9. 2024Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space Modelcited by 1,051
  10. 2024VMamba: Visual State Space Modelcited by 955
  11. 2019Attention is not Explanationcited by 916
  12. 2023RWKV: Reinventing RNNs for the Transformer Eracited by 814
38 more
  1. 2020Quantifying Attention Flow in Transformerscited by 759
  2. 2020Transformer Interpretability Beyond Attention Visualizationcited by 620
  3. 2021Combining Recurrent, Convolutional, and Continuous-time Models with Linear State-Space Layerscited by 607
  4. 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 594
  5. 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 495
  6. 2023Resurrecting Recurrent Neural Networks for Long Sequencescited by 397
  7. 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 388
  8. 2021Generic Attention-model Explainability for Interpreting Bi-Modal and Encoder-Decoder Transformerscited by 316
  9. 2020Self-supervised Equivariant Attention Mechanism for Weakly Supervised Semantic Segmentationcited by 299
  10. 2022Long Range Language Modeling via Gated State Spacescited by 265
  11. 2024Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Modelscited by 232
  12. 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 188
  13. 2022Mega: Moving Average Equipped Gated Attentioncited by 178
  14. 2024Eagle and Finch: RWKV with Matrix-Valued States and Dynamic Recurrencecited by 155
  15. 2024Graph-Mamba: Towards Long-Range Graph Sequence Modeling with Selective State Spacescited by 132
  16. 2017Parallelizing Linear Recurrent Neural Nets Over Sequence Lengthcited by 126
  17. 2024HGRN2: Gated Linear RNNs with State Expansioncited by 122
  18. 2022Learning Affinity from Attention: End-to-End Weakly-Supervised Semantic Segmentation with Transformerscited by 118
  19. 2021An Attention Free Transformercited by 111
  20. 2022XAI for Transformers: Better Explanations through Conservative Propagationcited by 100
  21. 2023Hierarchically Gated Recurrent Neural Network for Sequence Modelingcited by 100
  22. 2024Vision-RWKV: Efficient and Scalable Visual Perception with RWKV-Like Architecturescited by 97
  23. 2024Graph Mamba: Towards Learning on Graphs with State Space Modelscited by 84
  24. 2023RMT: Retentive Networks Meet Vision Transformerscited by 68
  25. 2023Token Contrast for Weakly-Supervised Semantic Segmentationcited by 64
  26. 2024Mechanistic Design and Scaling of Hybrid Architecturescited by 57
  27. 2022Entropy-based Attention Regularization Frees Unintended Bias Mitigation from Listscited by 54
  28. 2022Pretraining Without Attentioncited by 51
  29. 2023Post Hoc Explanations of Language Models Can Improve Language Modelscited by 50
  30. 2019Relative Attributing Propagation: Interpreting the Comparative Contributions of Individual Units in Deep Neural Networkscited by 49
  31. 2023GateLoop: Fully Data-Controlled Linear Recurrence for Sequence Modelingcited by 45
  32. 2022Optimizing Relevance Maps of Vision Transformers Improves Robustnesscited by 41
  33. 2018Multi-Head Attention with Disagreement Regularizationcited by 35
  34. 2020Visualization of Supervised and Self-Supervised Neural Networks via Attribution Guided Factorizationcited by 23
  35. 20232-D SSM: A General Spatial Layer for Visual Transformerscited by 18
  36. 2023Focus Your Attention (with Adaptive IIR Filters)cited by 12
  37. 2023On the Long Range Abilities of Transformerscited by 10
  38. 2023Weigh Your Own Words: Improving Hate Speech Counter Narrative Generation via Attention Regularizationcited by 7

50 most cited of 52 All 52 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 6; 2026: 5.

11 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden States
  2. 2026SMat-Attention: Structured Long-Context Sequence Modeling
  3. 2025Log-Linear Attention
  4. 2024Understanding the differences in Foundation Models: Attention, State Space Models, and Recurrent Neural Networks
  5. 2022Simplifying and Understanding State Space Models with Diagonal Linear RNNs
  6. 2025Linear Attention for Efficient Bidirectional Sequence Modeling
  7. 2025Gated Associative Memory: A Parallel O(N) Architecture for Efficient Sequence Modeling
  8. 2025Advancing Intelligent Sequence Modeling: Evolution, Trade-offs, and Applications of State-Space Architectures from S4 to Mamba