Strassen Attention, Split VC Dimension and Compositionality in Transformers
Not on the map. Why?
Abstract (arXiv)
We propose the first method to show theoretical limitations for one-layer softmax transformers with arbitrarily many precision bits (even infinite). We establish those limitations for three tasks that require advanced reasoning. The first task, Match 3 (Sanford et al., 2023), requires looking at all possible token triplets in an input sequence. The second and third tasks address compositionality-based reasoning: function composition (Peng et al., 2024) and binary relations composition, respectively. We formally prove the inability of one-layer softmax Transformers to solve any of these tasks. To overcome these limitations, we introduce Strassen attention and prove that, equipped with this mechanism, a one-layer transformer can in principle solve all these tasks. Importantly, we show that it enjoys sub-cubic running-time complexity, making it more scalable than similar previously proposed mechanisms, such as higher-order attention (Sanford et al., 2023). To complement our theoretical findings, we experimentally studied Strassen attention and compared it against standard (Vaswani et al, 2017), higher-order attention (Sanford et al., 2023), and triangular attention (Bergen et al. 2021). Our results help to disentangle all these attention mechanisms, highlighting their strengths and limitations. In particular, Strassen attention outperforms standard attention significantly on all the tasks. Altogether, understanding the theoretical limitations can guide research towards scalable attention mechanisms that improve the reasoning abilities of Transformers.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 15 of its 27 references that are in the map. First posted on arXiv 31 Jan 2025.
Builds on
15 of 27 references.
References · 15
- 2017Attention Is All You Needcited by 59,932
- 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 496
- 2019Theoretical Limitations of Self-Attention in Neural Sequence Modelscited by 286
- 2019Measuring Compositional Generalization: A Comprehensive Method on Realistic Datacited by 280
- 2019Compositionality decomposed: how do neural networks generalise?cited by 264
- 2020COGS: A Compositional Generalization Challenge Based on Semantic Interpretationcited by 260
- 2018Deep Learning: A Critical Appraisalcited by 214
- 2019CLUTRR: A Diagnostic Benchmark for Inductive Reasoning from Textcited by 155
- 2023Representational Strengths and Limitations of Transformerscited by 132
- 2021Making Transformers Solve Compositional Taskscited by 72
- 2024On Limitations of the Transformer Architecturecited by 63
- 2022A Benchmark for Compositional Visual Reasoningcited by 43
3 more
Built on by
Citing papers per year: 2025: 3; 2026: 9.
12 papers.
- 2025Language models can learn implicit multi-hop reasoning, but only if they have lots of training datacited by 11
- 2025Fast and Simplex: 2-Simplicial Attention in Tritoncited by 8
- 2026How Much Cache Does Reasoning Need? Depth-Cache Tradeoffs in KV-Compressed Transformerscited by 3
- 2025Concise One-Layer Transformers Can Do Function Evaluation (Sometimes)cited by 2
- 2026Positional versus Symbolic Attention Heads: Learning Dynamics, RoPE Geometry, and Length Generalizationcited by 1
- 2026Indexing: the Beginning and the Endcited by 1
- 2026Every Bit Counts: A Theoretical Study of Precision-Expressivity Tradeoffs in Quantized Transformerscited by 0
- 2026Interleaved Head Attentioncited by 0
- 2026Beyond Pairwise Attention: Higher-Order Modular Attention for Efficient Sequence Learningcited by 0
- 2026On the Computational Hardness of Transformerscited by 0
- 2026The Illusion of Replacement: Rethinking Specialized Machine Learning Models in the Foundation Model Eracited by 0
- 2026VC Dimension and Expressivity of Real-Valued Transformerscited by 0
- 2026VC Dimension and Expressivity of Real-Valued Transformers25 Sep 2026
- 2026The Illusion of Replacement: Rethinking Specialized Machine Learning Models in the Foundation Model Era29 Aug 2026
- 2026Indexing: the Beginning and the End24 Jul 2026
- 2026Positional versus Symbolic Attention Heads: Learning Dynamics, RoPE Geometry, and Length Generalization29 May 2026
- 2026How Much Cache Does Reasoning Need? Depth-Cache Tradeoffs in KV-Compressed Transformers20 Apr 2026
- 2026On the Computational Hardness of Transformers11 Mar 2026
- 2026Beyond Pairwise Attention: Higher-Order Modular Attention for Efficient Sequence Learning11 Mar 2026
- 2026Interleaved Head Attention24 Feb 2026
- 2026Every Bit Counts: A Theoretical Study of Precision-Expressivity Tradeoffs in Quantized Transformers2 Feb 2026
- 2025Fast and Simplex: 2-Simplicial Attention in Triton3 Jul 2025
- 2025Language models can learn implicit multi-hop reasoning, but only if they have lots of training data23 May 2025
- 2025Concise One-Layer Transformers Can Do Function Evaluation (Sometimes)28 Mar 2025
Similar, not cited
Close in wording, no citation either way
- 2026The Expressive Power of Low Precision Softmax Transformers with (Summarized) Chain-of-Thought
- 2025Lower Bounds for Chain-of-Thought Reasoning in Hard-Attention Transformers
- 2025Softmax Transformers are Turing-Complete
- 2026Symmetry Breaking in Transformers for Efficient and Interpretable Training
- 2025Pause Tokens Strictly Increase the Expressivity of Constant-Depth Transformers
- 2025The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures
- 2024Fundamental Limitations on Subquadratic Alternatives to Transformers
- 2025SCOUT: Toward Sub-Quadratic Attention via Segment Compression for Optimized Utility in Transformers