Reorganizing attention-space geometry with expressive attention
Not on the map. Why?
Abstract (arXiv)
Attention regulates information transfer between tokens. For this, query and key vectors are compared, typically in terms of a scalar product, QTK, together with a subsequent softmax normalization. In geometric terms, the standard dot-product attention (DPA) leads to large/small attention weights for parallel/antiparallel queries and keys. Here we study expressive attention (EA), which is based on (QTK)2, the squared dot product. In this case, attention is enhanced when query and key are either parallel or antiparallel, and suppressed for orthogonal configurations. EA can be introduced into any attention-based code without additional compute costs or memory requirements. For a series of autoregressive prediction tasks, we find that expressive attention performs at least as well as vanilla DPA. Increasing task complexity, EA is observed to outperform DPA with increasing margins, which also holds for multi-task settings. For a given model size, EA manages to achieve 100% performance for a range of complexity levels not accessible to DPA. Our results show that it is possible to reorganize the geometry of the matching condition in the space of attention heads without loss of performance.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 35 of its 40 references that are in the map. First posted on arXiv 26 Jul 2024.
Builds on
35 of 40 references.
References · 35
- 2017Attention Is All You Needcited by 59,932
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,424
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2020Rethinking Attention with Performerscited by 1,584
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 886
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
- 2024Large Language Models: A Surveycited by 506
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
23 more
- 2023Harnessing the Power of LLMs in Practice: A Survey on ChatGPT and Beyondcited by 409
- 2021Random Feature Attentioncited by 350
- 2014The Loss Surfaces of Multilayer Networkscited by 278
- 2023Challenges and Applications of Large Language Modelscited by 251
- 2022cosFormer: Rethinking Softmax in Attentioncited by 212
- 2023FLatten Transformer: Vision Transformer using Focused Linear Attentioncited by 170
- 2023SGD learning on neural networks: leap complexity and saddle-to-saddle dynamicscited by 142
- 2023The Quantization Model of Neural Scalingcited by 137
- 2023What Formal Languages Can Transformers Express? A Surveycited by 120
- 2022The Devil in Linear Transformercited by 98
- 2023Exposing Attention Glitches with Flip-Flop Language Modelingcited by 74
- 2024Why are Sensitive Functions Hard for Transformers?cited by 74
- 2023Generalization on the Unseen, Logic Reasoning and Degree Curriculumcited by 73
- 2022Flowformer: Linearizing Transformers with Conservation Flowscited by 69
- 2024Sparser is Faster and Less is More: Efficient Sparse Attention for Long-Range Transformerscited by 51
- 2022Scaling Laws for a Multi-Agent Reinforcement Learning Modelcited by 37
- 2024Mechanics of Next Token Prediction with Self-Attentioncited by 34
- 2022Attention Mechanism in Neural Networks: Where it Comes and Where it Goescited by 29
- 2023Primal-Attention: Self-attention through Asymmetric Kernel SVD in Primal Representationcited by 28
- 2024LLMs for Relational Reasoning: How Far are We?cited by 21
- 2024Attention as an RNNcited by 6
- 2023Are LLMs Rigorous Logical Reasoners? Empowering Natural Language Proof Generation by Stepwise Decoding with Contrastive Learningcited by 2
- 2021Local homeostatic regulation of the spectral radius of echo-state networkscited by 1
Built on by
Citing papers per year: 2025: 1.
1 paper.
- 2025Small transformer architectures for task switchingcited by 1
- 2025Small transformer architectures for task switching6 Aug 2025