SimA: Simple Softmax-free Attention for Vision Transformers
Not on the map. Why?
Abstract (arXiv)
Recently, vision transformers have become very popular. However, deploying them in many applications is computationally expensive partly due to the Softmax layer in the attention block. We introduce a simple but effective, Softmax-free attention block, SimA, which normalizes query and key matrices with simple ℓ1-norm instead of using Softmax layer. Then, the attention block in SimA is a simple multiplication of three matrices, so SimA can dynamically change the ordering of the computation at the test time to achieve linear computation on the number of tokens or the number of channels. We empirically show that SimA applied to three SOTA variations of transformers, DeiT, XCiT, and CvT, results in on-par accuracy compared to the SOTA models, without any need for Softmax layer. Interestingly, changing SimA from multi-head to single-head has only a small effect on the accuracy, which simplifies the attention block further. The code is available here: https://github.com/UCDvision/sima
Key facts. Cited by 32 papers in the map (data through 14 Oct 2026). Builds on 65 of its 83 references that are in the map. First posted on arXiv 17 Jun 2022.
Builds on
65 of 83 references.
References · 65
- 2017Attention Is All You Needcited by 60,361
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2014Microsoft COCO: Common Objects in Contextcited by 17,608
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,364
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,513
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,403
- 2017Mask R-CNNcited by 7,277
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,968
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,442
38 more
- 2016Layer Normalizationcited by 5,669
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,183
- 2016Feature Pyramid Networks for Object Detectioncited by 5,036
- 2020Bootstrap your own latent: A new approach to self-supervised Learningcited by 4,750
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2017MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applicationscited by 3,845
- 2022A ConvNet for the 2020scited by 3,579
- 2016Gaussian Error Linear Units (GELUs)cited by 3,502
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,884
- 2016Xception: Deep Learning with Depthwise Separable Convolutionscited by 2,332
- 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,269
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,962
- 2020Rethinking Attention with Performerscited by 1,601
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
- 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,446
- 2019MMDetection: Open MMLab Detection Toolbox and Benchmarkcited by 1,385
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,101
- 2016Deep Networks with Stochastic Depthcited by 979
- 2020Designing Network Design Spacescited by 960
- 2021CvT: Introducing Convolutions to Vision Transformerscited by 947
- 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 864
- 2021Going deeper with Image Transformerscited by 764
- 2021MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformercited by 642
- 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565
- 2021MetaFormer Is Actually What You Need for Visioncited by 524
- 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
- 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 471
- 2018Efficient Attention: Attention with Linear Complexitiescited by 368
- 2019Axial Attention in Multidimensional Transformerscited by 358
- 2021Random Feature Attentioncited by 354
- 2021ResMLP: Feedforward networks for image classification with data-efficient trainingcited by 339
- 2021XCiT: Cross-Covariance Image Transformerscited by 338
- 2019Q8BERT: Quantized 8Bit BERTcited by 300
- 2022cosFormer: Rethinking Softmax in Attentioncited by 213
- 2021Multi-Scale Vision Longformer: A New Vision Transformer for High-Resolution Image Encodingcited by 207
- 2021SOFT: Softmax-free Transformer with Linear Complexitycited by 128
- 2021Self-Supervised Learning with Swin Transformerscited by 122
50 most cited of 65 All 65 (JSON)
Built on by
Citing papers per year: 2022: 1; 2023: 5; 2024: 9; 2025: 8; 2026: 9.
32 papers.
Sort:
By area:
- 2024RAG-Driver: Generalisable Driving Explanations with Retrieval-Augmented In-Context Learning in Multi-Modal Large Language Modelcited by 92
- 2023When Foundation Model Meets Federated Learning: Motivations, Challenges, and Future Directionscited by 84
- 2024Beyond the Limits: A Survey of Techniques to Extend the Context Length in Large Language Modelscited by 76
- 2023Replacing softmax with ReLU in Vision Transformerscited by 44
- 2023A survey on efficient vision transformers: algorithms, techniques, and performance benchmarkingcited by 41
- 2022Accumulated Trivial Attention Matters in Vision Transformers on Small Datasetscited by 15
- 2024Rethinking Attention: Polynomial Alternatives to Softmax in Transformerscited by 8
- 2023A Convolutional Vision Transformer for Semantic Segmentation of Side-Scan Sonar Datacited by 7
- 2024Fake News Detection and Manipulation Reasoning via Large Vision-Language Modelscited by 5
- 2024PADRe: A Unifying Polynomial Attention Drop-in Replacement for Efficient Vision Transformercited by 5
- 2024ToSA: Token Selective Attention for Efficient Vision Transformerscited by 4
- 2024Attention is a smoothed cubic splinecited by 4
20 more
- 2026ViT-AdaLA: Adapting Vision Transformers with Linear Attentioncited by 4
- 2023SlowFormer: Universal Adversarial Patch for Attack on Compute and Energy Efficiency of Inference Efficient Vision Transformerscited by 3
- 2025UniAttn: Reducing Inference Costs via Softmax Unification for Post-Training LLMscited by 3
- 2026Do Transformers Need Three Projections? Systematic Study of QKV Variantscited by 3
- 2025Alias-Free ViT: Fractional Shift Invariance via Linear Attentioncited by 2
- 2024SpiralMLP: A Lightweight Vision MLP Architecturecited by 1
- 2025A Low-Power Streaming Speech Enhancement Accelerator For Edge Devicescited by 1
- 2025Towards Sampling Data Structures for Tensor Products in Turnstile Streamscited by 1
- 2025Weaver: Kronecker Product Approximations of Spatiotemporal Attention for Traffic Network Forecastingcited by 1
- 2026Every Bit Counts: A Theoretical Study of Precision-Expressivity Tradeoffs in Quantized Transformerscited by 1
- 2024Compute-Efficient Medical Image Classification with Softmax-Free Transformers and Sequence Normalizationcited by 0
- 2025Converting Transformers into DGNNs Formcited by 0
- 2025Minimax Rates for Learning Pairwise Interactions in Attention-Style Modelscited by 0
- 2025A Framework Based on Graph Cellular Automata for Similarity Evaluation in Urban Spatial Networkscited by 0
- 2026HAViT: Historical Attention Vision Transformercited by 0
- 2026Improving Adversarial Robustness of Attribution via Implicit Regularizationcited by 0
- 2026Context-Guided Semantic Alignment for Feature Fusion Networkscited by 0
- 2026DnA: Denoising Attention for Visual Taskscited by 0
- 2026Edge-Efficient Transformer for End-to-End RF Spectrum Monitoringcited by 0
- 2026MagnifiQ: Patch-aware Text Guided Progressive Upscaling for High-Resolution Image Restorationcited by 0
- 2026MagnifiQ: Patch-aware Text Guided Progressive Upscaling for High-Resolution Image Restoration14 Aug 2026
- 2026Edge-Efficient Transformer for End-to-End RF Spectrum Monitoring30 Jun 2026
- 2026DnA: Denoising Attention for Visual Tasks25 Jun 2026
- 2026Context-Guided Semantic Alignment for Feature Fusion Networks12 Jun 2026
- 2026Do Transformers Need Three Projections? Systematic Study of QKV Variants1 Jun 2026
- 2026Improving Adversarial Robustness of Attribution via Implicit Regularization28 May 2026
- 2026HAViT: Historical Attention Vision Transformer19 Mar 2026
- 2026ViT-AdaLA: Adapting Vision Transformers with Linear Attention17 Mar 2026
- 2026Every Bit Counts: A Theoretical Study of Precision-Expressivity Tradeoffs in Quantized Transformers2 Feb 2026
- 2025Weaver: Kronecker Product Approximations of Spatiotemporal Attention for Traffic Network Forecasting12 Nov 2025
- 2025A Framework Based on Graph Cellular Automata for Similarity Evaluation in Urban Spatial Networks2 Nov 2025
- 2025Alias-Free ViT: Fractional Shift Invariance via Linear Attention26 Oct 2025
20 more
- 2025Minimax Rates for Learning Pairwise Interactions in Attention-Style Models13 Oct 2025
- 2025Towards Sampling Data Structures for Tensor Products in Turnstile Streams4 Oct 2025
- 2025A Low-Power Streaming Speech Enhancement Accelerator For Edge Devices27 Mar 2025
- 2025Converting Transformers into DGNNs Form1 Feb 2025
- 2025UniAttn: Reducing Inference Costs via Softmax Unification for Post-Training LLMs1 Feb 2025
- 2024Rethinking Attention: Polynomial Alternatives to Softmax in Transformers24 Oct 2024
- 2024Attention is a smoothed cubic spline19 Aug 2024
- 2024PADRe: A Unifying Polynomial Attention Drop-in Replacement for Efficient Vision Transformer16 Jul 2024
- 2024Fake News Detection and Manipulation Reasoning via Large Vision-Language Models2 Jul 2024
- 2024ToSA: Token Selective Attention for Efficient Vision Transformers13 Jun 2024
- 2024Compute-Efficient Medical Image Classification with Softmax-Free Transformers and Sequence Normalization3 Jun 2024
- 2024SpiralMLP: A Lightweight Vision MLP Architecture31 Mar 2024
- 2024RAG-Driver: Generalisable Driving Explanations with Retrieval-Augmented In-Context Learning in Multi-Modal Large Language Model16 Feb 2024
- 2024Beyond the Limits: A Survey of Techniques to Extend the Context Length in Large Language Models3 Feb 2024
- 2023SlowFormer: Universal Adversarial Patch for Attack on Compute and Energy Efficiency of Inference Efficient Vision Transformers4 Oct 2023
- 2023Replacing softmax with ReLU in Vision Transformers15 Sep 2023
- 2023A survey on efficient vision transformers: algorithms, techniques, and performance benchmarking5 Sep 2023
- 2023When Foundation Model Meets Federated Learning: Motivations, Challenges, and Future Directions27 Jun 2023
- 2023A Convolutional Vision Transformer for Semantic Segmentation of Side-Scan Sonar Data24 Feb 2023
- 2022Accumulated Trivial Attention Matters in Vision Transformers on Small Datasets22 Oct 2022
- 2023When Foundation Model Meets Federated Learning: Motivations, Challenges, and Future Directionscited by 84
- 2023Replacing softmax with ReLU in Vision Transformerscited by 44
- 2023A survey on efficient vision transformers: algorithms, techniques, and performance benchmarkingcited by 41
- 2022Accumulated Trivial Attention Matters in Vision Transformers on Small Datasetscited by 15
- 2024Rethinking Attention: Polynomial Alternatives to Softmax in Transformerscited by 8
- 2023A Convolutional Vision Transformer for Semantic Segmentation of Side-Scan Sonar Datacited by 7
- 2024Fake News Detection and Manipulation Reasoning via Large Vision-Language Modelscited by 5
- 2024PADRe: A Unifying Polynomial Attention Drop-in Replacement for Efficient Vision Transformercited by 5
- 2024ToSA: Token Selective Attention for Efficient Vision Transformerscited by 4
- 2024Attention is a smoothed cubic splinecited by 4
- 2026ViT-AdaLA: Adapting Vision Transformers with Linear Attentioncited by 4
- 2023SlowFormer: Universal Adversarial Patch for Attack on Compute and Energy Efficiency of Inference Efficient Vision Transformerscited by 3
12 most cited of 30 All 30 (JSON)
- 2026MagnifiQ: Patch-aware Text Guided Progressive Upscaling for High-Resolution Image Restoration14 Aug 2026
- 2026Edge-Efficient Transformer for End-to-End RF Spectrum Monitoring30 Jun 2026
- 2026DnA: Denoising Attention for Visual Tasks25 Jun 2026
- 2026Context-Guided Semantic Alignment for Feature Fusion Networks12 Jun 2026
- 2026Do Transformers Need Three Projections? Systematic Study of QKV Variants1 Jun 2026
- 2026Improving Adversarial Robustness of Attribution via Implicit Regularization28 May 2026
- 2026HAViT: Historical Attention Vision Transformer19 Mar 2026
- 2026ViT-AdaLA: Adapting Vision Transformers with Linear Attention17 Mar 2026
- 2026Every Bit Counts: A Theoretical Study of Precision-Expressivity Tradeoffs in Quantized Transformers2 Feb 2026
- 2025Weaver: Kronecker Product Approximations of Spatiotemporal Attention for Traffic Network Forecasting12 Nov 2025
- 2025A Framework Based on Graph Cellular Automata for Similarity Evaluation in Urban Spatial Networks2 Nov 2025
- 2025Alias-Free ViT: Fractional Shift Invariance via Linear Attention26 Oct 2025
12 newest of 30 All 30 (JSON)