Wide Attention Is The Way Forward For Transformers?
Not on the map. Why?
Abstract (arXiv)
The Transformer is an extremely powerful and prominent deep learning architecture. In this work, we challenge the commonly held belief in deep learning that going deeper is better, and show an alternative design approach that is building wider attention Transformers. We demonstrate that wide single layer Transformer models can compete with or outperform deeper ones in a variety of Natural Language Processing (NLP) tasks when both are trained from scratch. The impact of changing the model aspect ratio on Transformers is then studied systematically. This ratio balances the number of layers and the number of attention heads per layer while keeping the total number of attention heads and all other hyperparameters constant. On average, across 4 NLP tasks and 10 attention types, single layer wide models perform 0.3% better than their deep counterparts. We show an in-depth evaluation and demonstrate how wide models require a far smaller memory footprint and can run faster on commodity hardware, in addition, these wider models are also more interpretable. For example, a single layer Transformer on the IMDb byte level text classification has 3.1x faster inference latency on a CPU than its equally accurate deeper counterpart, and is half the size. We therefore put forward wider and shallower models as a viable and desirable alternative for small models on NLP tasks, and as an important area of research for domains beyond this.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 28 of its 35 references that are in the map. First posted on arXiv 2 Oct 2022.
Builds on
28 of 35 references.
References · 28
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2016Wide Residual Networkscited by 3,057
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2020Reformer: The Efficient Transformercited by 1,658
- 2020Rethinking Attention with Performerscited by 1,584
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
16 more
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2021PVT v2: Improved Baselines with Pyramid Vision Transformercited by 749
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
- 2018Explaining Explanations: An Overview of Interpretability of Machine Learningcited by 508
- 2018Generating Wikipedia by Summarizing Long Sequencescited by 333
- 2020Sparse Sinkhorn Attentioncited by 250
- 2022cosFormer: Rethinking Softmax in Attentioncited by 212
- 2020Synthesizer: Rethinking Self-Attention in Transformer Modelscited by 204
- 2016Wider or Deeper: Revisiting the ResNet Model for Visual Recognitioncited by 184
- 2019The Evolved Transformercited by 180
- 2020HAT: Hardware-Aware Transformers for Efficient Natural Language Processingcited by 136
- 2021Go Wider Instead of Deepercited by 56
- 2019NAT: Neural Architecture Transformer for Accurate and Compact Architecturescited by 33
- 2022Neural Architecture Search on Efficient Transformers and Beyondcited by 17
- 2021RankNAS: Efficient Neural Architecture Search by Pairwise Rankingcited by 12
- 2020Finding Fast Transformers: One-Shot Neural Architecture Search by Component Compositioncited by 10
Built on by
Citing papers per year: 2022: 1; 2023: 4; 2024: 1; 2025: 2.
8 papers.
- 2023Getting ViT in Shape: Scaling Laws for Compute-Optimal Model Designcited by 87
- 2022Compute-Efficient Deep Learning: Algorithmic Trends and Opportunitiescited by 38
- 2023The Impact of Depth on Compositional Generalization in Transformer Language Modelscited by 37
- 2025Gemstones: A Model Suite for Multi-Faceted Scaling Lawscited by 19
- 2023MIMONets: Multiple-Input-Multiple-Output Neural Networks Exploiting Computation in Superpositioncited by 14
- 2024Simulating Weighted Automata over Sequences and Trees with Transformerscited by 4
- 2025Integral Transformer: Denoising Attention, Not Too Much Not Too Littlecited by 3
- 2023Efficient Online Processing with Deep Neural Networkscited by 0
- 2025Integral Transformer: Denoising Attention, Not Too Much Not Too Little25 Aug 2025
- 2025Gemstones: A Model Suite for Multi-Faceted Scaling Laws7 Feb 2025
- 2024Simulating Weighted Automata over Sequences and Trees with Transformers12 Mar 2024
- 2023MIMONets: Multiple-Input-Multiple-Output Neural Networks Exploiting Computation in Superposition5 Dec 2023
- 2023The Impact of Depth on Compositional Generalization in Transformer Language Models30 Oct 2023
- 2023Efficient Online Processing with Deep Neural Networks23 Jun 2023
- 2023Getting ViT in Shape: Scaling Laws for Compute-Optimal Model Design22 May 2023
- 2022Compute-Efficient Deep Learning: Algorithmic Trends and Opportunities13 Oct 2022