Do Efficient Transformers Really Save Computation?
Not on the map. Why?
Abstract (arXiv)
As transformer-based language models are trained on increasingly large datasets and with vast numbers of parameters, finding more efficient alternatives to the standard Transformer has become very valuable. While many efficient Transformers and Transformer alternatives have been proposed, none provide theoretical guarantees that they are a suitable replacement for the standard Transformer. This makes it challenging to identify when to use a specific model and what directions to prioritize for further investigation. In this paper, we aim to understand the capabilities and limitations of efficient Transformers, specifically the Sparse Transformer and the Linear Transformer. We focus on their reasoning capability as exhibited by Chain-of-Thought (CoT) prompts and follow previous works to model them as Dynamic Programming (DP) problems. Our results show that while these models are expressive enough to solve general DP tasks, contrary to expectations, they require a model size that scales with the problem size. Nonetheless, we identify a class of DP problems for which these models can be more efficient than the standard Transformer. We confirm our theoretical results through experiments on representative DP tasks, adding to the understanding of efficient Transformers' practical strengths and weaknesses.
Key facts. Cited by 20 papers in the map (data through 14 Oct 2026). Builds on 43 of its 51 references that are in the map. First posted on arXiv 21 Feb 2024.
Builds on
43 of 51 references.
References · 43
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
- 2016Gaussian Error Linear Units (GELUs)cited by 3,502
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
- 2017Decoupled Weight Decay Regularizationcited by 1,831
31 more
- 2020Reformer: The Efficient Transformercited by 1,668
- 2020Rethinking Attention with Performerscited by 1,601
- 2019Generating Long Sequences with Sparse Transformerscited by 1,546
- 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,407
- 2022In-context Learning and Induction Headscited by 964
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 886
- 2022Transformers learn in-context by gradient descentcited by 732
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 700
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 613
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 471
- 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 406
- 2021Random Feature Attentioncited by 354
- 2023Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspectivecited by 294
- 2019Theoretical Limitations of Self-Attention in Neural Sequence Modelscited by 288
- 2022Transformers Learn Shortcuts to Automatacited by 268
- 2020Sparse Sinkhorn Attentioncited by 251
- 2022Why Can GPT Learn In-Context? Language Models Implicitly Perform Gradient Descent as Meta-Optimizerscited by 204
- 2022The Parallelism Tradeoff: Limitations of Log-Precision Transformerscited by 193
- 2019Blockwise Self-Attention for Long Document Understandingcited by 159
- 2021Saturated Transformers are Constant-Depth Threshold Circuitscited by 139
- 2022On The Computational Complexity of Self-Attentioncited by 139
- 2023Representational Strengths and Limitations of Transformerscited by 133
- 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
- 2023Fast Attention Requires Bounded Entriescited by 102
- 2022Formal Language Recognition by Hard Attention Transformers: Perspectives from Circuit Complexitycited by 93
- 2021Stable, Fast and Accurate: Kernelized Attention with Relative Positional Encodingcited by 51
- 2023Sumformer: Universal Approximation for Efficient Transformerscited by 30
Built on by
Citing papers per year: 2024: 11; 2025: 8; 2026: 1.
20 papers.
Sort:
By area:
- 2024RNNs are not Transformers (Yet): The Key Bottleneck on In-context Retrievalcited by 64
- 2024Can Graph Learning Improve Planning in LLM-based Agents?cited by 43
- 2024How Do Nonlinear Transformers Learn and Generalize in In-Context Learning?cited by 35
- 2024DAPE: Data-Adaptive Positional Encoding for Length Extrapolationcited by 31
- 2024ALPINE: Unveiling the Planning Capability of Autoregressive Learning in Language Modelscited by 18
- 2024Training Nonlinear Transformers for Chain-of-Thought Inference: A Theoretical Generalization Analysiscited by 14
- 2024ReMamba: Equip Mamba with Effective Long-Sequence Modelingcited by 13
- 2024Towards Infinite-Long Prefix in Transformercited by 10
- 2024DAPE V2: Process Attention Score as Feature Map for Length Extrapolationcited by 10
- 2025TransMamba: A Sequence-Level Hybrid Transformer-Mamba Language Modelcited by 7
- 2024Exploring the Limitations of Mamba in COPY and CoT Reasoningcited by 6
- 2025MaTVLM: Hybrid Mamba-Transformer for Efficient Vision-Language Modelingcited by 6
8 more
- 2025SAS: Simulated Attention Scorecited by 4
- 2024CLIP-Mamba: CLIP Pretrained Mamba Models with OOD and Hessian Evaluationcited by 3
- 2025CodeSSM: Towards State Space Models for Code Understandingcited by 3
- 2025Fast attention mechanisms: a tale of parallelismcited by 3
- 2026Barriers to Discrete Reasoning with Transformers: A Survey Across Depth, Exactness, and Bandwidthcited by 3
- 2025End to End AI System for Surgical Gesture Sequence Recognition and Clinical Outcome Predictioncited by 1
- 2025How Does Sequence Modeling Architecture Influence Base Capabilities of Pre-trained Language Models? Exploring Key Architecture Design Principles to Avoid Base Capabilities Degradationcited by 0
- 2025Transformers in Pseudo-Random Number Generation: A Dual Perspective on Theory and Practicecited by 0
- 2026Barriers to Discrete Reasoning with Transformers: A Survey Across Depth, Exactness, and Bandwidth19 Jan 2026
- 2025End to End AI System for Surgical Gesture Sequence Recognition and Clinical Outcome Prediction14 Nov 2025
- 2025Fast attention mechanisms: a tale of parallelism10 Sep 2025
- 2025Transformers in Pseudo-Random Number Generation: A Dual Perspective on Theory and Practice2 Aug 2025
- 2025SAS: Simulated Attention Score10 Jul 2025
- 2025How Does Sequence Modeling Architecture Influence Base Capabilities of Pre-trained Language Models? Exploring Key Architecture Design Principles to Avoid Base Capabilities Degradation24 May 2025
- 2025CodeSSM: Towards State Space Models for Code Understanding2 May 2025
- 2025TransMamba: A Sequence-Level Hybrid Transformer-Mamba Language Model31 Mar 2025
- 2025MaTVLM: Hybrid Mamba-Transformer for Efficient Vision-Language Modeling17 Mar 2025
- 2024DAPE V2: Process Attention Score as Feature Map for Length Extrapolation7 Oct 2024
- 2024Exploring the Limitations of Mamba in COPY and CoT Reasoning4 Oct 2024
- 2024Training Nonlinear Transformers for Chain-of-Thought Inference: A Theoretical Generalization Analysis3 Oct 2024
8 more
- 2024ReMamba: Equip Mamba with Effective Long-Sequence Modeling28 Aug 2024
- 2024Towards Infinite-Long Prefix in Transformer20 Jun 2024
- 2024Can Graph Learning Improve Planning in LLM-based Agents?29 May 2024
- 2024DAPE: Data-Adaptive Positional Encoding for Length Extrapolation23 May 2024
- 2024ALPINE: Unveiling the Planning Capability of Autoregressive Learning in Language Models15 May 2024
- 2024CLIP-Mamba: CLIP Pretrained Mamba Models with OOD and Hessian Evaluation30 Apr 2024
- 2024RNNs are not Transformers (Yet): The Key Bottleneck on In-context Retrieval28 Feb 2024
- 2024How Do Nonlinear Transformers Learn and Generalize in In-Context Learning?23 Feb 2024
- 2024Can Graph Learning Improve Planning in LLM-based Agents?cited by 43
- 2024Can Graph Learning Improve Planning in LLM-based Agents?29 May 2024
- 2024RNNs are not Transformers (Yet): The Key Bottleneck on In-context Retrievalcited by 64
- 2024How Do Nonlinear Transformers Learn and Generalize in In-Context Learning?cited by 35
- 2024DAPE: Data-Adaptive Positional Encoding for Length Extrapolationcited by 31
- 2024ALPINE: Unveiling the Planning Capability of Autoregressive Learning in Language Modelscited by 18
- 2024Towards Infinite-Long Prefix in Transformercited by 10
- 2024DAPE V2: Process Attention Score as Feature Map for Length Extrapolationcited by 10
- 2025SAS: Simulated Attention Scorecited by 4
- 2025CodeSSM: Towards State Space Models for Code Understandingcited by 3
- 2025Fast attention mechanisms: a tale of parallelismcited by 3
- 2026Barriers to Discrete Reasoning with Transformers: A Survey Across Depth, Exactness, and Bandwidthcited by 3
- 2025End to End AI System for Surgical Gesture Sequence Recognition and Clinical Outcome Predictioncited by 1
- 2025How Does Sequence Modeling Architecture Influence Base Capabilities of Pre-trained Language Models? Exploring Key Architecture Design Principles to Avoid Base Capabilities Degradationcited by 0
12 most cited of 13 All 13 (JSON)
- 2026Barriers to Discrete Reasoning with Transformers: A Survey Across Depth, Exactness, and Bandwidth19 Jan 2026
- 2025End to End AI System for Surgical Gesture Sequence Recognition and Clinical Outcome Prediction14 Nov 2025
- 2025Fast attention mechanisms: a tale of parallelism10 Sep 2025
- 2025Transformers in Pseudo-Random Number Generation: A Dual Perspective on Theory and Practice2 Aug 2025
- 2025SAS: Simulated Attention Score10 Jul 2025
- 2025How Does Sequence Modeling Architecture Influence Base Capabilities of Pre-trained Language Models? Exploring Key Architecture Design Principles to Avoid Base Capabilities Degradation24 May 2025
- 2025CodeSSM: Towards State Space Models for Code Understanding2 May 2025
- 2024DAPE V2: Process Attention Score as Feature Map for Length Extrapolation7 Oct 2024
- 2024Towards Infinite-Long Prefix in Transformer20 Jun 2024
- 2024DAPE: Data-Adaptive Positional Encoding for Length Extrapolation23 May 2024
- 2024ALPINE: Unveiling the Planning Capability of Autoregressive Learning in Language Models15 May 2024
- 2024RNNs are not Transformers (Yet): The Key Bottleneck on In-context Retrieval28 Feb 2024
12 newest of 13 All 13 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2024Let's Think Dot by Dot: Hidden Computation in Transformer Language Models
- 2024A Survey of Transformer-based Language Models with Focus on Efficiency
- 2023Faith and Fate: Limits of Transformers on Compositionality
- 2025Equivalence of Context and Parameter Updates in Modern Transformer Blocks
- 2026Adaptive Loops and Memory in Transformers: Think Harder or Know More?
- 2023The Expressive Power of Transformers with Chain of Thought
- 2023Learning Transformer Programs
- 2025Speed Always Wins: A Survey on Efficient Architectures for Large Language Models