An Attention Free Transformer
Not on the map. Why?
Abstract (arXiv)
We introduce Attention Free Transformer (AFT), an efficient variant of Transformers that eliminates the need for dot product self attention. In an AFT layer, the key and value are first combined with a set of learned position biases, the result of which is multiplied with the query in an element-wise fashion. This new operation has a memory complexity linear w.r.t. both the context size and the dimension of features, making it compatible to both large input and model sizes. We also introduce AFT-local and AFT-conv, two model variants that take advantage of the idea of locality and spatial weight sharing while maintaining global connectivity. We conduct extensive experiments on two autoregressive modeling tasks (CIFAR10 and Enwik8) as well as an image recognition task (ImageNet-1K classification). We show that AFT demonstrates competitive performance on all the benchmarks, while providing excellent efficiency at the same time.
Key facts. Cited by 111 papers in the map (data through 7 Oct 2026). Builds on 30 of its 37 references that are in the map. First posted on arXiv 28 May 2021.
Builds on
30 of 37 references.
References · 30
- 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
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2016Layer Normalizationcited by 5,579
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,708
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2020Reformer: The Efficient Transformercited by 1,658
- 2020Rethinking Attention with Performerscited by 1,584
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
18 more
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
- 2020Efficient Transformers: A Surveycited by 784
- 2018Image Transformercited by 770
- 2018CCNet: Criss-Cross Attention for Semantic Segmentationcited by 717
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
- 2019Stand-Alone Self-Attention in Vision Modelscited by 542
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
- 2021Pay Attention to MLPscited by 367
- 2021Random Feature Attentioncited by 350
- 2020Axial-DeepLab: Stand-Alone Axial-Attention for Panoptic Segmentationcited by 326
- 2020Sparse Sinkhorn Attentioncited by 250
- 2019Pay Less Attention with Lightweight and Dynamic Convolutionscited by 211
- 2020Synthesizer: Rethinking Self-Attention in Transformer Modelscited by 204
- 2019Asymmetric Non-local Neural Networks for Semantic Segmentationcited by 196
- 2019Adaptive Attention Span in Transformerscited by 148
- 2021LambdaNetworks: Modeling Long-Range Interactions Without Attentioncited by 107
- 2019Interlaced Sparse Self-Attention for Semantic Segmentationcited by 53
Built on by
Citing papers per year: 2021: 3; 2022: 15; 2023: 22; 2024: 45; 2025: 15; 2026: 11.
111 papers.
Sort:
By area:
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
- 2023RWKV: Reinventing RNNs for the Transformer Eracited by 814
- 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 388
- 2024Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Modelscited by 232
- 2024A Survey on Efficient Inference for Large Language Modelscited by 197
- 2021ResViT: Residual vision transformers for multi-modal medical image synthesiscited by 177
- 2023FastViT: A Fast Hybrid Vision Transformer using Structural Reparameterizationcited by 161
- 2024Eagle and Finch: RWKV with Matrix-Valued States and Dynamic Recurrencecited by 155
- 2024MambaOut: Do We Really Need Mamba for Vision?cited by 142
- 2024Can Mamba Learn How to Learn? A Comparative Study on In-Context Learning Taskscited by 104
38 more
- 2023Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systemscited by 101
- 2022Filter-enhanced MLP is All You Need for Sequential Recommendationcited by 96
- 2022E-Branchformer: Branchformer with Enhanced merging for speech recognitioncited by 90
- 2024In-Context Language Learning: Architectures and Algorithmscited by 86
- 2024A Survey of Resource-efficient LLM and Multimodal Foundation Modelscited by 84
- 2023SpikeGPT: Generative Pre-trained Language Model with Spiking Neural Networkscited by 82
- 2022Efficient Methods for Natural Language Processing: A Surveycited by 78
- 2024Beyond the Limits: A Survey of Techniques to Extend the Context Length in Large Language Modelscited by 71
- 2023Auto-Regressive Next-Token Predictors are Universal Learnerscited by 65
- 2024State Space Model for New-Generation Network Alternative to Transformers: A Surveycited by 59
- 2022Hydra Attention: Efficient Attention with Many Headscited by 55
- 2025End-to-End Test-Time Training for Long Contextcited by 53
- 2024Linearizing Large Language Modelscited by 51
- 2024A Survey on Visual Mambacited by 50
- 2024A Survey on Transformer Compressioncited by 44
- 2022Temporally Consistent Transformers for Video Generationcited by 43
- 2024Large Language Model Inference Acceleration: A Comprehensive Hardware Perspectivecited by 36
- 2023Diffusion Probabilistic Fieldscited by 28
- 2022Fine-Tuning Pre-trained Transformers into Decaying Fast Weightscited by 26
- 2023The Efficiency Spectrum of Large Language Models: An Algorithmic Surveycited by 25
- 2024Language Models Need Inductive Biases to Count Inductivelycited by 25
- 2024DenseMamba: State Space Models with Dense Hidden Connection for Efficient Large Language Modelscited by 22
- 2024Scalable MatMul-free Language Modelingcited by 21
- 2025Efficient Attention Mechanisms for Large Language Models: A Surveycited by 21
- 2024HMT: Hierarchical Memory Transformer for Efficient Long Context Language Processingcited by 20
- 2024MetaLA: Unified Optimal Linear Approximation to Softmax Attention Mapcited by 20
- 2024On the Resurgence of Recurrent Models for Long Sequences -- Survey and Research Opportunities in the Transformer Eracited by 17
- 2023Is attention required for ICL? Exploring the Relationship Between Model Architecture and In-Context Learning Abilitycited by 16
- 2024DiJiang: Efficient Large Language Models through Compact Kernelizationcited by 15
- 2023Blockwise Parallel Transformer for Large Context Modelscited by 12
- 2024Rethinking Transformer for Long Contextual Histopathology Whole Slide Image Analysiscited by 12
- 2023Manifold Diffusion Fieldscited by 11
- 2024Explaining Modern Gated-Linear RNNs via a Unified Implicit Attention Formulationcited by 11
- 2022FeatureBooster: Boosting Feature Descriptors with a Lightweight Neural Networkcited by 10
- 2022FsaNet: Frequency Self-attention for Semantic Segmentationcited by 10
- 2023AutoFocusFormer: Image Segmentation off the Gridcited by 9
- 2024Instance-Conditioned Adaptation for Large-scale Generalization of Neural Routing Solvercited by 9
- 2025Hadamard product in deep learning: Introduction, Advances and Challengescited by 9
50 most cited of 111 All 111 (JSON)
- 2026MixFormer: Linear Transformer with Mixture of Memory Experts10 Aug 2026
- 2026Desc++: Efficient Descriptor Enhancement for Data Association in Existing Visual SLAM Systems13 Jul 2026
- 2026Learning the Koopman Operator using Attention Free Transformers22 Jun 2026
- 2026Do Transformers Need Three Projections? Systematic Study of QKV Variants1 Jun 2026
- 2026Forget Less, Generalize More: Unifying Temporal and Structural Adaptation for Dynamic Graphs28 May 2026
- 2026Kaczmarz Linear Attention9 May 2026
- 2026STLGT: A Scalable Trace-Based Linear Graph Transformer for Tail Latency Prediction in Microservices29 Apr 2026
- 2026Nexusformer: Nonlinear Attention Expansion for Stable and Inheritable Transformer Scaling21 Apr 2026
- 2026Free Energy Mixer6 Feb 2026
- 2026ZeroS: Zero-Sum Linear Attention for Efficient Transformers5 Feb 2026
- 2026SoLA-Vision: Fine-grained Layer-wise Linear Softmax Hybrid Attention16 Jan 2026
- 2025End-to-End Test-Time Training for Long Context29 Dec 2025
38 more
- 2025SCALE: Upscaled Continual Learning of Large Language Models5 Nov 2025
- 2025Triangle Multiplication Is All You Need For Biomolecular Structure Representations21 Oct 2025
- 2025The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures6 Oct 2025
- 2025VRWKV-Editor: Reducing quadratic complexity in transformer-based video editing30 Sep 2025
- 2025Efficient Attention Mechanisms for Large Language Models: A Survey25 Jul 2025
- 2025A unified framework for establishing the universal approximation of transformer-type architectures30 Jun 2025
- 2025Echo State Transformer: Attention Over Finite Memories25 Jun 2025
- 2025Don't Pay Attention12 Jun 2025
- 2025Multi-View Learning with Context-Guided Receptance for Image Denoising5 May 2025
- 2025Hadamard product in deep learning: Introduction, Advances and Challenges17 Apr 2025
- 2025RGB-Event based Pedestrian Attribute Recognition: A Benchmark Dataset and An Asymmetric RWKV Fusion Framework14 Apr 2025
- 2025Decision SpikeFormer: Spike-Driven Transformer for Decision Making4 Apr 2025
- 2025Linear Transformers as VAR Models: Aligning Autoregressive Attention Mechanisms with Autoregressive Forecasting11 Feb 2025
- 2025TflosYOLO+TFSC: An Accurate and Robust Model for Estimating Flower Count and Flowering Period25 Jan 2025
- 2024Efficient Relational Context Perception for Knowledge Graph Completion31 Dec 2024
- 2024A Survey of RWKV19 Dec 2024
- 2024MetaLA: Unified Optimal Linear Approximation to Softmax Attention Map16 Nov 2024
- 2024Long-context Protein Language Modeling Using Bidirectional Mamba with Shared Projection Layers29 Oct 2024
- 2024Rethinking Transformer for Long Contextual Histopathology Whole Slide Image Analysis18 Oct 2024
- 2024Efficiently Scanning and Resampling Spatio-Temporal Tasks with Irregular Observations11 Oct 2024
- 2024Joint Fine-tuning and Conversion of Pretrained Speech and Language Models towards Linear Complexity9 Oct 2024
- 2024Large Language Model Inference Acceleration: A Comprehensive Hardware Perspective6 Oct 2024
- 2024WAVE: Weighted Autoregressive Varying Gate for Time Series Forecasting4 Oct 2024
- 2024Multi-Scale Feature Prediction with Auxiliary-Info for Neural Image Compression19 Sep 2024
- 2024A GREAT Architecture for Edge-Based Graph Problems Like TSP29 Aug 2024
- 2024Why Perturbing Symbolic Music is Necessary: Fitting the Distribution of Never-used Notes through a Joint Probabilistic Diffusion Model4 Aug 2024
- 2024MCSD: An Efficient Language Model with Diverse Fusion18 Jun 2024
- 2024Breaking the Attention Bottleneck16 Jun 2024
- 2024Small-E: Small Language Model with Linear Attention for Efficient Speech Synthesis6 Jun 2024
- 2024Scalable MatMul-free Language Modeling4 Jun 2024
- 2024SUBLLM: A Novel Efficient Architecture with Token Sequence Subsampling for LLM3 Jun 2024
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality31 May 2024
- 2024Language Models Need Inductive Biases to Count Inductively30 May 2024
- 2024Explaining Modern Gated-Linear RNNs via a Unified Implicit Attention Formulation26 May 2024
- 2024Score-CDM: Score-Weighted Convolutional Diffusion Model for Multivariate Time Series Imputation21 May 2024
- 2024MambaOut: Do We Really Need Mamba for Vision?13 May 2024
- 2024Linearizing Large Language Models10 May 2024
- 2024HMT: Hierarchical Memory Transformer for Efficient Long Context Language Processing9 May 2024
50 newest of 111 All 111 (JSON)
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
- 2024MambaOut: Do We Really Need Mamba for Vision?cited by 142
- 2024Can Mamba Learn How to Learn? A Comparative Study on In-Context Learning Taskscited by 104
- 2024A Survey on Visual Mambacited by 50
- 2024Explaining Modern Gated-Linear RNNs via a Unified Implicit Attention Formulationcited by 11
- 2024Joint Fine-tuning and Conversion of Pretrained Speech and Language Models towards Linear Complexitycited by 1
- 2024Long-context Protein Language Modeling Using Bidirectional Mamba with Shared Projection Layerscited by 1
- 2024Long-context Protein Language Modeling Using Bidirectional Mamba with Shared Projection Layers29 Oct 2024
- 2024Joint Fine-tuning and Conversion of Pretrained Speech and Language Models towards Linear Complexity9 Oct 2024
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality31 May 2024
- 2024Explaining Modern Gated-Linear RNNs via a Unified Implicit Attention Formulation26 May 2024
- 2024MambaOut: Do We Really Need Mamba for Vision?13 May 2024
- 2024A Survey on Visual Mamba24 Apr 2024
- 2024Can Mamba Learn How to Learn? A Comparative Study on In-Context Learning Tasks6 Feb 2024
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spaces1 Dec 2023
- 2023Diffusion Probabilistic Fieldscited by 28
- 2023Manifold Diffusion Fieldscited by 11
- 2024Score-CDM: Score-Weighted Convolutional Diffusion Model for Multivariate Time Series Imputationcited by 6
- 2024SDiT: Spiking Diffusion Model with Transformercited by 4
- 2024Why Perturbing Symbolic Music is Necessary: Fitting the Distribution of Never-used Notes through a Joint Probabilistic Diffusion Modelcited by 2
- 2025VRWKV-Editor: Reducing quadratic complexity in transformer-based video editingcited by 0
- 2025VRWKV-Editor: Reducing quadratic complexity in transformer-based video editing30 Sep 2025
- 2024Why Perturbing Symbolic Music is Necessary: Fitting the Distribution of Never-used Notes through a Joint Probabilistic Diffusion Model4 Aug 2024
- 2024Score-CDM: Score-Weighted Convolutional Diffusion Model for Multivariate Time Series Imputation21 May 2024
- 2024SDiT: Spiking Diffusion Model with Transformer18 Feb 2024
- 2023Manifold Diffusion Fields24 May 2023
- 2023Diffusion Probabilistic Fields1 Mar 2023
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2023RWKV: Reinventing RNNs for the Transformer Eracited by 814
- 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 388
- 2024Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Modelscited by 232
- 2021ResViT: Residual vision transformers for multi-modal medical image synthesiscited by 177
- 2023FastViT: A Fast Hybrid Vision Transformer using Structural Reparameterizationcited by 161
- 2024Eagle and Finch: RWKV with Matrix-Valued States and Dynamic Recurrencecited by 155
- 2022Filter-enhanced MLP is All You Need for Sequential Recommendationcited by 96
- 2022E-Branchformer: Branchformer with Enhanced merging for speech recognitioncited by 90
- 2024In-Context Language Learning: Architectures and Algorithmscited by 86
- 2024A Survey of Resource-efficient LLM and Multimodal Foundation Modelscited by 84
- 2023SpikeGPT: Generative Pre-trained Language Model with Spiking Neural Networkscited by 82
12 most cited of 91 All 91 (JSON)
- 2026MixFormer: Linear Transformer with Mixture of Memory Experts10 Aug 2026
- 2026Desc++: Efficient Descriptor Enhancement for Data Association in Existing Visual SLAM Systems13 Jul 2026
- 2026Learning the Koopman Operator using Attention Free Transformers22 Jun 2026
- 2026Do Transformers Need Three Projections? Systematic Study of QKV Variants1 Jun 2026
- 2026Forget Less, Generalize More: Unifying Temporal and Structural Adaptation for Dynamic Graphs28 May 2026
- 2026Kaczmarz Linear Attention9 May 2026
- 2026STLGT: A Scalable Trace-Based Linear Graph Transformer for Tail Latency Prediction in Microservices29 Apr 2026
- 2026Nexusformer: Nonlinear Attention Expansion for Stable and Inheritable Transformer Scaling21 Apr 2026
- 2026Free Energy Mixer6 Feb 2026
- 2026ZeroS: Zero-Sum Linear Attention for Efficient Transformers5 Feb 2026
- 2026SoLA-Vision: Fine-grained Layer-wise Linear Softmax Hybrid Attention16 Jan 2026
- 2025End-to-End Test-Time Training for Long Context29 Dec 2025
12 newest of 91 All 91 (JSON)