On the Expressiveness of Softmax Attention: A Recurrent Neural Network Perspective
Not on the map. Why?
Abstract (arXiv)
Since its introduction, softmax attention has become the backbone of modern transformer architectures due to its expressiveness and scalability across a wide range of tasks. However, the main drawback of softmax attention is the quadratic memory requirement and computational complexity with respect to the sequence length. By replacing the softmax nonlinearity, linear attention and similar methods have been introduced to avoid the quadratic bottleneck of softmax attention. Despite these linear forms of attention being derived from the original softmax formulation, they typically lag in terms of downstream accuracy. While strong intuition of the softmax nonlinearity on the query and key inner product suggests that it has desirable properties compared to other nonlinearities, the question of why this discrepancy exists still remains unanswered. This work demonstrates that linear attention is an approximation of softmax attention by deriving the recurrent form of softmax attention. Using this form, each part of softmax attention can be described in the language of recurrent neural networks (RNNs). Describing softmax attention as an RNN allows for the ablation of the components of softmax attention to understand the importance of each part and how they interact. In this way, our work helps explain why softmax attention is more expressive than its counterparts.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 38 of its 42 references that are in the map. First posted on arXiv 31 Jul 2025.
Builds on
38 of 42 references.
References · 38
- 2017Attention Is All You Needcited by 60,361
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2017Graph Attention Networkscited by 8,923
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
- 2024Scaling Rectified Flow Transformers for High-Resolution Image Synthesiscited by 4,181
- 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,057
- 2020wav2vec 2.0: A Framework for Self-Supervised Learning of Speech Representationscited by 3,905
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2014Sequence to Sequence Learning with Neural Networkscited by 2,986
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
26 more
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2022A Time Series is Worth 64 Words: Long-term Forecasting with Transformerscited by 2,039
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2020GLU Variants Improve Transformercited by 1,804
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
- 2020Rethinking Attention with Performerscited by 1,601
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
- 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,160
- 2018Efficient Attention: Attention with Linear Complexitiescited by 368
- 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 355
- 2021Random Feature Attentioncited by 354
- 2024Titans: Learning to Memorize at Test Timecited by 328
- 2025Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Freecited by 283
- 2022cosFormer: Rethinking Softmax in Attentioncited by 213
- 2023Stabilizing Transformer Training by Preventing Attention Entropy Collapsecited by 161
- 2025RWKV-7 "Goose" with Expressive Dynamic State Evolutioncited by 141
- 2023SlimPajama-DC: Understanding Data Combinations for LLM Trainingcited by 72
- 2025ATLAS: Learning to Optimally Memorize the Context at Test Timecited by 66
- 2025Forgetting Transformer: Softmax Attention with a Forget Gatecited by 53
- 2024Bridging the Divide: Reconsidering Softmax and Linear Attentioncited by 48
- 2024Understanding the differences in Foundation Models: Attention, State Space Models, and Recurrent Neural Networkscited by 26
- 2024In-Context Learning with Transformers: Softmax Attention Adapts to Function Lipschitznesscited by 22
- 2023Why Softmax Attention Outperforms Linear Attentioncited by 15
- 2024TaylorShift: Shifting the Complexity of Self-Attention from Squared to Linear (and Back) using Taylor-Softmaxcited by 7
- 2024Cottention: Linear Transformers With Cosine Attentioncited by 5
Built on by
Citing papers per year: 2026: 6.
6 papers.
- 2026Affine-Scaled Attention: Towards Flexible and Stable Transformer Attentioncited by 3
- 2026Energy-Entropy Regularization: The True Power of Minimal Looped Transformerscited by 2
- 2026Don't Read Everything: A Curvature-Conditioned Query for Linear Attentioncited by 2
- 2026Softmax Linear Attention: Reclaiming Global Competitioncited by 1
- 20262Mamba2Furious: Linear in Complexity, Competitive in Accuracycited by 1
- 2026Black-Mamba: Biologically-Inspired Leaky Accumulation for Conceptual Knowledge under Distribution Driftcited by 0
- 2026Black-Mamba: Biologically-Inspired Leaky Accumulation for Conceptual Knowledge under Distribution Drift21 Jul 2026
- 2026Don't Read Everything: A Curvature-Conditioned Query for Linear Attention31 May 2026
- 2026Affine-Scaled Attention: Towards Flexible and Stable Transformer Attention26 Feb 2026
- 20262Mamba2Furious: Linear in Complexity, Competitive in Accuracy19 Feb 2026
- 2026Softmax Linear Attention: Reclaiming Global Competition2 Feb 2026
- 2026Energy-Entropy Regularization: The True Power of Minimal Looped Transformers14 Jan 2026