Representational Strengths and Limitations of Transformers
Not on the map. Why?
Abstract (arXiv)
Attention layers, as commonly used in transformers, form the backbone of modern deep learning, yet there is no mathematical description of their benefits and deficiencies as compared with other architectures. In this work we establish both positive and negative results on the representation power of attention layers, with a focus on intrinsic complexity parameters such as width, depth, and embedding dimension. On the positive side, we present a sparse averaging task, where recurrent networks and feedforward networks all have complexity scaling polynomially in the input size, whereas transformers scale merely logarithmically in the input size; furthermore, we use the same construction to show the necessity and role of a large embedding dimension in a transformer. On the negative side, we present a triple detection task, where attention layers in turn have complexity scaling linearly in the input size; as this scenario seems rare in practice, we also present natural variants that can be efficiently solved by attention layers. The proof techniques emphasize the value of communication complexity in the analysis of transformers and related models, and the role of sparse averaging as a prototypical attention task, which even finds use in the analysis of triple detection.
Key facts. Cited by 133 papers in the map (data through 14 Oct 2026). Builds on 30 of its 63 references that are in the map. First posted on arXiv 5 Jun 2023.
Builds on
30 of 63 references.
References · 30
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2016PointNet: Deep Learning on Point Sets for 3D Classification and Segmentationcited by 5,248
- 2018How Powerful are Graph Neural Networks?cited by 4,393
- 2017Deep Setscited by 1,421
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 1,003
- 2018Weisfeiler and Leman Go Neural: Higher-order Graph Neural Networkscited by 881
- 2020A Primer in BERTology: What we know about how BERT workscited by 815
- 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 406
- 2017A simple neural network module for relational reasoningcited by 346
- 2019Theoretical Limitations of Self-Attention in Neural Sequence Modelscited by 288
18 more
- 2022Transformers Learn Shortcuts to Automatacited by 268
- 2016Benefits of depth in neural networkscited by 250
- 2019What graph neural networks cannot learn: depth vs widthcited by 201
- 2015The Power of Depth for Feedforward Neural Networkscited by 183
- 2019Universal Invariant and Equivariant Graph Neural Networkscited by 183
- 2019On the equivalence between graph isomorphism testing and function approximation with GNNscited by 172
- 2019On the Universality of Invariant Networkscited by 152
- 2021Inductive Biases and Variable Creation in Self-Attention Mechanismscited by 144
- 2019On the Turing Completeness of Modern Neural Network Architecturescited by 129
- 2021Self-Attention Networks Can Process Bounded Hierarchical Languagescited by 105
- 2021Statistically Meaningful Approximation: a Case Study on Approximating Turing Machines with Transformerscited by 102
- 2022Formal Language Recognition by Hard Attention Transformers: Perspectives from Circuit Complexitycited by 93
- 2022Simplicity Bias in Transformers and their Ability to Learn Sparse Boolean Functionscited by 70
- 2021On the Expressive Power of Self-Attention Matricescited by 47
- 2017Depth Separation for Neural Networkscited by 46
- 2022Exponentially Improving the Complexity of Simulating the Weisfeiler-Lehman Test with Graph Neural Networkscited by 21
- 2022Exponential Separations in Symmetric Neural Networkscited by 10
- 2022CAT-probing: A Metric-based Approach to Interpret How Pre-trained Models for Programming Language Attend Code Structurecited by 6
Built on by
Citing papers per year: 2023: 14; 2024: 47; 2025: 43; 2026: 29.
133 papers.
Sort:
By area:
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 832
- 2024Repeat After Me: Transformers are Better than State Space Models at Copyingcited by 216
- 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 199
- 2024Let's Think Dot by Dot: Hidden Computation in Transformer Language Modelscited by 191
- 2023What Formal Languages Can Transformers Express? A Surveycited by 124
- 2024Transformers, parallel computation, and logarithmic depthcited by 79
- 2024Why are Sensitive Functions Hard for Transformers?cited by 74
- 2024Understanding Transformer Reasoning Capabilities via Graph Algorithmscited by 67
- 2024Position: Topological Deep Learning is the New Frontier for Relational Learningcited by 66
- 2024RNNs are not Transformers (Yet): The Key Bottleneck on In-context Retrievalcited by 64
- 2024Mamba-360: Survey of State Space Models as Transformer Alternative for Long Sequence Modelling: Methods, Applications, and Challengescited by 64
- 2024On Limitations of the Transformer Architecturecited by 63
38 more
- 2024The Expressive Capacity of State Space Models: A Formal Language Perspectivecited by 46
- 2024Theoretical limitations of multi-layer Transformercited by 45
- 2023How to Capture Higher-order Correlations? Generalizing Matrix Softmax Attention to Kronecker Computationcited by 44
- 2024An Information-Theoretic Analysis of In-Context Learningcited by 40
- 2023On the Optimization and Generalization of Multi-head Attentioncited by 37
- 2024One-layer transformers fail to solve the induction heads taskcited by 32
- 2024Implicit Bias and Fast Convergence Rates for Self-attentioncited by 31
- 2024How Much Can RAG Help the Reasoning of LLM?cited by 31
- 2023InfoPrompt: Information-Theoretic Soft Prompt Tuning for Natural Language Understandingcited by 30
- 2023A Fast Optimization View: Reformulating Single Layer Attention in LLM Based on Tensor and SVM Trick, and Solving It in Matrix Multiplication Timecited by 30
- 2024Training Tensor Attention Efficiently: From Cubic to Almost Linear Timecited by 30
- 2024Separations in the Representational Capabilities of Transformers and Recurrent Architecturescited by 29
- 2025Cramming 1568 Tokens into a Single Vector and Back Again: Exploring the Limits of Embedding Space Capacitycited by 28
- 2024Transformers on Markov Data: Constant Depth Sufficescited by 27
- 2023How to Protect Copyright Data in Optimization of Large Language Models?cited by 26
- 2024Prompting a Pretrained Transformer Can Be a Universal Approximatorcited by 25
- 2024BeHonest: Benchmarking Honesty in Large Language Modelscited by 24
- 2024When Can Transformers Count to n?cited by 24
- 2024In-Context Learning with Transformers: Softmax Attention Adapts to Function Lipschitznesscited by 22
- 2024Transformers Provably Learn Sparse Token Selection While Fully-Connected Nets Cannotcited by 22
- 2024Sample, estimate, aggregate: A recipe for causal discovery foundation modelscited by 21
- 2024Provably learning a multi-head attention layercited by 21
- 2025Density Measures for Language Generationcited by 21
- 2024Do Efficient Transformers Really Save Computation?cited by 20
- 2023Why Softmax Attention Outperforms Linear Attentioncited by 15
- 2024Evaluation of LLM Chatbots for OSINT-based Cyber Threat Awarenesscited by 14
- 2025Language Generation and Identification From Partial Enumeration: Tight Density Bounds and Topological Characterizationscited by 13
- 2023Unmasking Transformers: A Theoretical Approach to Data Recovery via Attention Weightscited by 12
- 2024Theoretical Constraints on the Expressive Power of mathsfRoPE-based Tensor Attention Transformerscited by 12
- 2025Strassen Attention, Split VC Dimension and Compositionality in Transformerscited by 12
- 2024Next-token prediction capacity: general upper bounds and a lower bound for transformerscited by 11
- 2025Depth-Width tradeoffs in Algorithmic Reasoning of Graph Tasks with Transformerscited by 11
- 2024On the Optimal Memorization Capacity of Transformerscited by 10
- 2025Theoretical Guarantees for High Order Trajectory Refinement in Generative Flowscited by 10
- 2026Sequential Group Composition: A Window into the Mechanics of Deep Learningcited by 10
- 2023Local Convergence of Approximate Newton Method for Two Layer Nonlinear Regressioncited by 9
- 2024Fundamental Limitations on Subquadratic Alternatives to Transformerscited by 9
- 2024Training Dynamics of Transformers to Recognize Word Co-occurrence via Gradient Flow Analysiscited by 9
50 most cited of 133 All 133 (JSON)
- 2026SQUARE: Structured Quantum Representation Adapters as Compact Quadratic Feature Maps for Frozen Language Models29 Sep 2026
- 2026MS-MFAD : Multimodal large language models for Face Anti-spoofing Detection18 Aug 2026
- 2026Linearized 2-Simplicial Attention10 Aug 2026
- 2026Attention-based representations for multi-task computation4 Aug 2026
- 2026Higher-Order Fourier Neural Operator: Explicit Mode Mixer for Nonlinear PDEs26 Jun 2026
- 2026Higher-Order Token Interactions via Quantum Attention10 Jun 2026
- 2026The Deterministic Horizon: When Extended Reasoning Fails and Tool Delegation Becomes Necessary29 May 2026
- 2026Lost in Tokenization: Fundamental Trade-offs in Graph Tokenization for Transformers21 May 2026
- 2026A Sharper Picture of Generalization in Transformers20 May 2026
- 2026InfoFlow: A Framework for Multi-Layer Transformer Analysis18 May 2026
- 2026Geometric Factual Recall in Transformers12 May 2026
- 2026Training Transformers for KV Cache Compressibility7 May 2026
38 more
- 2026The Power of Power Law: Asymmetry Enables Compositional Reasoning24 Apr 2026
- 2026How Much Cache Does Reasoning Need? Depth-Cache Tradeoffs in KV-Compressed Transformers20 Apr 2026
- 2026Next-Token Prediction and Regret Minimization30 Mar 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
- 2026CoMI-IRL: Contrastive Multi-Intention Inverse Reinforcement Learning7 Feb 2026
- 2026Parity, Sensitivity, and Transformers5 Feb 2026
- 2026Billion-Scale Graph Foundation Models4 Feb 2026
- 2026Sequential Group Composition: A Window into the Mechanics of Deep Learning3 Feb 2026
- 2026What Structural Inductive Bias Helps Transformers Reason Over Knowledge Graphs? A Study with Tabula RASA2 Feb 2026
- 2026Every Bit Counts: A Theoretical Study of Precision-Expressivity Tradeoffs in Quantized Transformers2 Feb 2026
- 2026A Provable Expressiveness Hierarchy in Hybrid Linear-Full Attention2 Feb 2026
- 2026TensorLens: End-to-End Transformer Analysis via High-Order Attention Tensors25 Jan 2026
- 2026Barriers to Discrete Reasoning with Transformers: A Survey Across Depth, Exactness, and Bandwidth19 Jan 2026
- 2026A Vision for Multisensory Intelligence: Sensing, Science, and Synergy8 Jan 2026
- 2026Tackling the Inherent Difficulty of Noise Filtering in RAG5 Jan 2026
- 2025How Smoothing is N-simplicial Attention?17 Dec 2025
- 2025Language Generation and Identification From Partial Enumeration: Tight Density Bounds and Topological Characterizations7 Nov 2025
- 2025Triangle Multiplication Is All You Need For Biomolecular Structure Representations21 Oct 2025
- 2025Optimality and NP-Hardness of Transformers in Learning Markovian Dynamical Functions21 Oct 2025
- 2025Revisiting Hallucination Detection with Effective Rank-based Uncertainty9 Oct 2025
- 2025The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures6 Oct 2025
- 2025Decoupling Positional and Symbolic Attention Behavior in Transformers3 Oct 2025
- 2025The Transformer Cookbook1 Oct 2025
- 2025Fast attention mechanisms: a tale of parallelism10 Sep 2025
- 2025Customizing the Inductive Biases of Softmax Attention using Structured Matrices9 Sep 2025
- 2025Beyond Memorization: Extending Reasoning Depth with Recurrence, Memory and Test-Time Compute Scaling22 Aug 2025
- 2025Position: We Need An Algorithmic Understanding of Generative AI10 Jul 2025
- 2025Fast and Simplex: 2-Simplicial Attention in Triton3 Jul 2025
- 2025On the Existence of Universal Simulators of Attention23 Jun 2025
- 2025Two Heads Are Better than One: Simulating Large Transformers with Small Ones13 Jun 2025
- 2025Transformers Meet In-Context Learning: A Universal Approximation Theory5 Jun 2025
- 2025Asymptotics of SGD in Sequence-Single Index Models and Single-Layer Attention Networks3 Jun 2025
- 2025Born a Transformer -- Always a Transformer? On the Effect of Pretraining on Architectural Abilities27 May 2025
- 2025Pause Tokens Strictly Increase the Expressivity of Constant-Depth Transformers27 May 2025
- 2025Leaner Transformers: More Heads, Less Depth27 May 2025
- 2025Attention with Trained Embeddings Provably Selects Important Tokens22 May 2025
50 newest of 133 All 133 (JSON)
- 2024Let's Think Dot by Dot: Hidden Computation in Transformer Language Modelscited by 191
- 2024Understanding Transformer Reasoning Capabilities via Graph Algorithmscited by 67
- 2024How Much Can RAG Help the Reasoning of LLM?cited by 31
- 2024Seq-VCR: Preventing Collapse in Intermediate Transformer Representations for Enhanced Reasoningcited by 9
- 2025Lost in Transmission: When and Why LLMs Fail to Reason Globallycited by 9
- 2025Compositional Reasoning with Transformers, RNNs, and Chain of Thoughtcited by 6
- 2025Neural Algorithmic Reasoning for Hypergraphs with Looped Transformerscited by 4
- 2025Beyond Memorization: Extending Reasoning Depth with Recurrence, Memory and Test-Time Compute Scalingcited by 4
- 2026The Deterministic Horizon: When Extended Reasoning Fails and Tool Delegation Becomes Necessarycited by 1
- 2026The Deterministic Horizon: When Extended Reasoning Fails and Tool Delegation Becomes Necessary29 May 2026
- 2025Beyond Memorization: Extending Reasoning Depth with Recurrence, Memory and Test-Time Compute Scaling22 Aug 2025
- 2025Lost in Transmission: When and Why LLMs Fail to Reason Globally13 May 2025
- 2025Compositional Reasoning with Transformers, RNNs, and Chain of Thought3 Mar 2025
- 2025Neural Algorithmic Reasoning for Hypergraphs with Looped Transformers18 Jan 2025
- 2024Seq-VCR: Preventing Collapse in Intermediate Transformer Representations for Enhanced Reasoning4 Nov 2024
- 2024How Much Can RAG Help the Reasoning of LLM?3 Oct 2024
- 2024Understanding Transformer Reasoning Capabilities via Graph Algorithms28 May 2024
- 2024Let's Think Dot by Dot: Hidden Computation in Transformer Language Models24 Apr 2024
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 832
- 2025Cramming 1568 Tokens into a Single Vector and Back Again: Exploring the Limits of Embedding Space Capacitycited by 28
- 2026Training Transformers for KV Cache Compressibilitycited by 7
- 2025Compression Barriers for Autoregressive Transformerscited by 5
- 2025Time and Memory Trade-off of KV-Cache Compression in Tensor Transformer Decodingcited by 2
- 2026Training Transformers for KV Cache Compressibility7 May 2026
- 2025Time and Memory Trade-off of KV-Cache Compression in Tensor Transformer Decoding14 Mar 2025
- 2025Compression Barriers for Autoregressive Transformers21 Feb 2025
- 2025Cramming 1568 Tokens into a Single Vector and Back Again: Exploring the Limits of Embedding Space Capacity18 Feb 2025
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models24 Jun 2023
- 2024Repeat After Me: Transformers are Better than State Space Models at Copyingcited by 216
- 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 199
- 2023What Formal Languages Can Transformers Express? A Surveycited by 124
- 2024Transformers, parallel computation, and logarithmic depthcited by 79
- 2024Why are Sensitive Functions Hard for Transformers?cited by 74
- 2024Position: Topological Deep Learning is the New Frontier for Relational Learningcited by 66
- 2024RNNs are not Transformers (Yet): The Key Bottleneck on In-context Retrievalcited by 64
- 2024On Limitations of the Transformer Architecturecited by 63
- 2024The Expressive Capacity of State Space Models: A Formal Language Perspectivecited by 46
- 2024Theoretical limitations of multi-layer Transformercited by 45
- 2023How to Capture Higher-order Correlations? Generalizing Matrix Softmax Attention to Kronecker Computationcited by 44
- 2024An Information-Theoretic Analysis of In-Context Learningcited by 40
12 most cited of 111 All 111 (JSON)
- 2026SQUARE: Structured Quantum Representation Adapters as Compact Quadratic Feature Maps for Frozen Language Models29 Sep 2026
- 2026Linearized 2-Simplicial Attention10 Aug 2026
- 2026Attention-based representations for multi-task computation4 Aug 2026
- 2026Higher-Order Fourier Neural Operator: Explicit Mode Mixer for Nonlinear PDEs26 Jun 2026
- 2026Higher-Order Token Interactions via Quantum Attention10 Jun 2026
- 2026Lost in Tokenization: Fundamental Trade-offs in Graph Tokenization for Transformers21 May 2026
- 2026A Sharper Picture of Generalization in Transformers20 May 2026
- 2026InfoFlow: A Framework for Multi-Layer Transformer Analysis18 May 2026
- 2026Geometric Factual Recall in Transformers12 May 2026
- 2026The Power of Power Law: Asymmetry Enables Compositional Reasoning24 Apr 2026
- 2026How Much Cache Does Reasoning Need? Depth-Cache Tradeoffs in KV-Compressed Transformers20 Apr 2026
- 2026Next-Token Prediction and Regret Minimization30 Mar 2026
12 newest of 111 All 111 (JSON)