SOFT: Softmax-free Transformer with Linear Complexity
Not on the map. Why?
Abstract (arXiv)
Vision transformers (ViTs) have pushed the state-of-the-art for various visual recognition tasks by patch-wise image tokenization followed by self-attention. However, the employment of self-attention modules results in a quadratic complexity in both computation and memory usage. Various attempts on approximating the self-attention computation with linear complexity have been made in Natural Language Processing. However, an in-depth analysis in this work shows that they are either theoretically flawed or empirically ineffective for visual recognition. We further identify that their limitations are rooted in keeping the softmax self-attention during approximations. Specifically, conventional self-attention is computed by normalizing the scaled dot-product between token feature vectors. Keeping this softmax operation challenges any subsequent linearization efforts. Based on this insight, for the first time, a softmax-free transformer or SOFT is proposed. To remove softmax in self-attention, Gaussian kernel function is used to replace the dot-product similarity without further normalization. This enables a full self-attention matrix to be approximated via a low-rank matrix decomposition. The robustness of the approximation is achieved by calculating its Moore-Penrose inverse using a Newton-Raphson method. Extensive experiments on ImageNet show that our SOFT significantly improves the computational efficiency of existing ViT variants. Crucially, with a linear complexity, much longer token sequences are permitted in SOFT, resulting in superior trade-off between accuracy and complexity.
Key facts. Cited by 128 papers in the map (data through 7 Oct 2026). Builds on 39 of its 48 references that are in the map. First posted on arXiv 22 Oct 2021.
Builds on
39 of 48 references.
References · 39
- 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
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
- 2016Layer Normalizationcited by 5,579
- 2015Rethinking the Inception Architecture for Computer Visioncited by 5,451
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,410
27 more
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,875
- 2017Non-local Neural Networkscited by 2,290
- 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
- 2020Reformer: The Efficient Transformercited by 1,658
- 2020Rethinking Attention with Performerscited by 1,584
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,368
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
- 2021Perceiver: General Perception with Iterative Attentioncited by 1,089
- 2020Designing Network Design Spacescited by 954
- 2020Efficient Transformers: A Surveycited by 784
- 2021Going deeper with Image Transformerscited by 759
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
- 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565
- 2021ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biasescited by 484
- 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 468
- 2021Conditional Positional Encodings for Vision Transformerscited by 402
- 2021Bottleneck Transformers for Visual Recognitioncited by 364
- 2021Random Feature Attentioncited by 350
- 2020Exploring Self-attention for Image Recognitioncited by 313
- 2021Co-Scale Conv-Attentional Image Transformerscited by 224
- 2018ListOps: A Diagnostic Dataset for Latent Tree Learningcited by 128
- 2021LambdaNetworks: Modeling Long-Range Interactions Without Attentioncited by 107
- 2021Finetuning Pretrained Transformers into RNNscited by 94
- 2021Is Attention Better Than Matrix Decomposition?cited by 75
- 2019Dynamic Graph Message Passing Networkscited by 62
Built on by
Citing papers per year: 2021: 2; 2022: 32; 2023: 29; 2024: 34; 2025: 19; 2026: 12.
128 papers.
Sort:
By area:
- 2024PixArt-Sigma: Weak-to-Strong Training of Diffusion Transformer for 4K Text-to-Image Generationcited by 326
- 2023FLatten Transformer: Vision Transformer using Focused Linear Attentioncited by 170
- 2022On The Computational Complexity of Self-Attentioncited by 137
- 2023Run, Don't Walk: Chasing Higher FLOPS for Faster Neural Networkscited by 129
- 2022EdgeViTs: Competing Light-weight CNNs on Mobile Devices with Vision Transformerscited by 116
- 2024Demystify Mamba in Vision: A Linear Attention Perspectivecited by 101
- 2023Modeling Dense Multimodal Interactions Between Biological Pathways and Histology for Survival Predictioncited by 92
- 2023Agent Attention: On the Integration of Softmax and Linear Attentioncited by 90
- 2024The Hidden Attention of Mamba Modelscited by 88
- 2024Beyond the Limits: A Survey of Techniques to Extend the Context Length in Large Language Modelscited by 71
- 2022Flowformer: Linearizing Transformers with Conservation Flowscited by 69
- 2023FasterViT: Fast Vision Transformers with Hierarchical Attentioncited by 65
38 more
- 2025Test-time regression: a unifying framework for designing sequence models with associative memorycited by 63
- 2022THE-X: Privacy-Preserving Transformer Inference with Homomorphic Encryptioncited by 55
- 2024Bridging the Divide: Reconsidering Softmax and Linear Attentioncited by 48
- 2023Replacing softmax with ReLU in Vision Transformerscited by 43
- 2023A survey on efficient vision transformers: algorithms, techniques, and performance benchmarkingcited by 41
- 2023In-Context Learning with Many Demonstration Examplescited by 39
- 2024A Survey of Mambacited by 39
- 2022Self-Guided Diffusion Modelscited by 36
- 2022Transforming medical imaging with Transformers? A comparative review of key properties, current progresses, and future perspectivescited by 32
- 2022SimA: Simple Softmax-free Attention for Vision Transformerscited by 32
- 2023Generative Semantic Segmentationcited by 32
- 2022Linear Complexity Randomized Self-attention Mechanismcited by 31
- 2022Attention Mechanism in Neural Networks: Where it Comes and Where it Goescited by 29
- 2022Castling-ViT: Compressing Self-Attention via Switching Towards Linear-Angular Attention at Vision Transformer Inferencecited by 28
- 2023Primal-Attention: Self-attention through Asymmetric Kernel SVD in Primal Representationcited by 28
- 2022Transformers from an Optimization Perspectivecited by 27
- 2024Efficient Diffusion Transformer with Step-wise Dynamic Attention Mediatorscited by 24
- 2023Efficient Attention via Control Variatescited by 23
- 2023Prune Spatio-temporal Tokens by Semantic-aware Temporal Accumulationcited by 23
- 2022Vicinity Vision Transformercited by 22
- 2022EcoFormer: Energy-Saving Attention with Linear Complexitycited by 21
- 2022MPCViT: Searching for Accurate and Efficient MPC-Friendly Vision Transformer with Heterogeneous Attentioncited by 19
- 2023GTP-ViT: Efficient Vision Transformers via Graph-based Token Propagationcited by 19
- 2021ELSA: Enhanced Local Self-Attention for Vision Transformercited by 18
- 2024Positional Knowledge is All You Need: Position-induced Transformer (PiT) for Operator Learningcited by 17
- 2021Cost Aggregation Is All You Need for Few-Shot Segmentationcited by 16
- 2023EGA-Depth: Efficient Guided Attention for Self-Supervised Multi-Camera Depth Estimationcited by 16
- 2024CascadedGaze: Efficiency in Global Context Extraction for Image Restorationcited by 16
- 2022Accumulated Trivial Attention Matters in Vision Transformers on Small Datasetscited by 15
- 2023ShiftAddViT: Mixture of Multiplication Primitives Towards Efficient Vision Transformercited by 15
- 2023Towards Understanding How Transformers Learn In-context Through a Representation Learning Lenscited by 15
- 2024DiJiang: Efficient Large Language Models through Compact Kernelizationcited by 15
- 2024Encryption-Friendly LLM Architecturecited by 15
- 2022Dynamic N:M Fine-grained Structured Sparse Attention Mechanismcited by 14
- 2023Computation-efficient Deep Learning for Computer Vision: A Surveycited by 14
- 2024Unifying Feature and Cost Aggregation with Transformers for Semantic and Visual Correspondencecited by 14
- 2024Comprehensive Survey of Model Compression and Speed up for Vision Transformerscited by 14
- 2023Eventful Transformers: Leveraging Temporal Redundancy in Vision Transformerscited by 13
50 most cited of 128 All 128 (JSON)
- 2026Efficient and High-Quality Depth Estimation via Pixel-Space Diffusion with Linear Attention31 Aug 2026
- 2026MixFormer: Linear Transformer with Mixture of Memory Experts10 Aug 2026
- 2026EVAS: Efficient Multimodal Temporal Forgery Localization via Audio-Visual Synergy and Steered Boundary Calibration5 Jul 2026
- 2026Generalization Analysis of Transformers in Distribution Regression28 Jun 2026
- 2026DnA: Denoising Attention for Visual Tasks25 Jun 2026
- 2026Context-Guided Semantic Alignment for Feature Fusion Networks12 Jun 2026
- 2026ATT-CR: Adaptive Triangular Transformer for Cloud Removal4 Jun 2026
- 2026Do Transformers Need Three Projections? Systematic Study of QKV Variants1 Jun 2026
- 2026LaplacianFormer:Rethinking Linear Attention with Laplacian Kernel22 Apr 2026
- 2026Self-Attention And Beyond the Infinite: Towards Linear Transformers with Infinite Self-Attention26 Feb 2026
- 2026Nonparametric Teaching of Attention Learners24 Feb 2026
- 2026Finite-Time Analysis of Gradient Descent for Shallow Transformers23 Jan 2026
38 more
- 2025DeepCoT: Deep Continual Transformers for Real-Time Inference on Data Streams21 Nov 2025
- 2025DiScoFormer: Plug-In Density and Score Estimation with Transformers8 Nov 2025
- 2025Linear Differential Vision Transformer: Learning Visual Contrasts via Pairwise Differentials2 Nov 2025
- 2025Accelerating Vision Transformers with Adaptive Patch Sizes20 Oct 2025
- 2025Minimax Rates for Learning Pairwise Interactions in Attention-Style Models13 Oct 2025
- 2025SAGA: Selective Adaptive Gating for Efficient and Expressive Linear Attention16 Sep 2025
- 2025Slice or the Whole Pie? Utility Control for AI Models6 Aug 2025
- 2025PGKET: A Photonic Gaussian Kernel Enhanced Transformer25 Jul 2025
- 2025SAGE: Segment-Aware Gloss-Free Encoding for Token-Efficient Sign Language Translation12 Jul 2025
- 2025VSRM: A Robust Mamba-Based Framework for Video Super-Resolution28 Jun 2025
- 2025DeepTraverse: A Depth-First Search Inspired Network for Algorithmic Visual Understanding11 Jun 2025
- 2025Learning Advanced Self-Attention for Linear Transformers in the Singular Value Domain13 May 2025
- 2025Attention in Diffusion Model: A Survey1 Apr 2025
- 2025Kolmogorov-Arnold Attention: Is Learnable Attention Better For Vision Transformers?13 Mar 2025
- 2025On the Expressivity of Selective State-Space Layers: A Multivariate Polynomial Approach4 Feb 2025
- 2025AI-driven Wireless Positioning: Fundamentals, Standards, State-of-the-art, and Challenges24 Jan 2025
- 2025Softplus Attention with Re-weighting Boosts Length Extrapolation in Large Language Models23 Jan 2025
- 2025Parallel Sequence Modeling via Generalized Spatial Propagation Network21 Jan 2025
- 2025Test-time regression: a unifying framework for designing sequence models with associative memory21 Jan 2025
- 2024Bridging the Divide: Reconsidering Softmax and Linear Attention9 Dec 2024
- 2024Continual Low-Rank Scaled Dot-product Attention4 Dec 2024
- 2024Streamlining Prediction in Bayesian Deep Learning27 Nov 2024
- 2024CARE Transformer: Mobile-Friendly Linear Visual Transformer via Decoupled Dual Interaction25 Nov 2024
- 2024Encryption-Friendly LLM Architecture3 Oct 2024
- 2024Sorbet: A Neuromorphic Hardware-Compatible Transformer-Based Spiking Language Model4 Sep 2024
- 2024Training Ultra Long Context Language Model with Fully Pipelined Distributed Transformer30 Aug 2024
- 2024Autoregressive model path dependence near Ising criticality28 Aug 2024
- 2024From Darkness to Detail: Frequency-Aware SSMs for Low-Light Vision19 Aug 2024
- 2024Attention is a smoothed cubic spline19 Aug 2024
- 2024Linear Attention is Enough in Spatial-Temporal Forecasting17 Aug 2024
- 2024Efficient Diffusion Transformer with Step-wise Dynamic Attention Mediators11 Aug 2024
- 2024A Survey of Mamba2 Aug 2024
- 2024Hierarchical Separable Video Transformer for Snapshot Compressive Imaging16 Jul 2024
- 2024Snakes and Ladders: Two Steps Up for VideoMamba27 Jun 2024
- 2024When Linear Attention Meets Autoregressive Decoding: Towards More Effective and Efficient Linearized Large Language Models11 Jun 2024
- 2024MeMSVD: Long-Range Temporal Structure Capturing Using Incremental SVD11 Jun 2024
- 2024Compute-Efficient Medical Image Classification with Softmax-Free Transformers and Sequence Normalization3 Jun 2024
- 2024Automatic Channel Pruning for Multi-Head Attention31 May 2024
50 newest of 128 All 128 (JSON)
- 2024Demystify Mamba in Vision: A Linear Attention Perspectivecited by 101
- 2024The Hidden Attention of Mamba Modelscited by 88
- 2024A Survey of Mambacited by 39
- 2024Snakes and Ladders: Two Steps Up for VideoMambacited by 10
- 2025VSRM: A Robust Mamba-Based Framework for Video Super-Resolutioncited by 5
- 2025On the Expressivity of Selective State-Space Layers: A Multivariate Polynomial Approachcited by 3
- 2025VSRM: A Robust Mamba-Based Framework for Video Super-Resolution28 Jun 2025
- 2025On the Expressivity of Selective State-Space Layers: A Multivariate Polynomial Approach4 Feb 2025
- 2024A Survey of Mamba2 Aug 2024
- 2024Snakes and Ladders: Two Steps Up for VideoMamba27 Jun 2024
- 2024Demystify Mamba in Vision: A Linear Attention Perspective26 May 2024
- 2024The Hidden Attention of Mamba Models3 Mar 2024
- 2024PixArt-Sigma: Weak-to-Strong Training of Diffusion Transformer for 4K Text-to-Image Generationcited by 326
- 2022Self-Guided Diffusion Modelscited by 36
- 2024Efficient Diffusion Transformer with Step-wise Dynamic Attention Mediatorscited by 24
- 2024Privacy-Preserving Diffusion Model Using Homomorphic Encryptioncited by 4
- 2025Attention in Diffusion Model: A Surveycited by 4
- 2025Attention in Diffusion Model: A Survey1 Apr 2025
- 2024Efficient Diffusion Transformer with Step-wise Dynamic Attention Mediators11 Aug 2024
- 2024Privacy-Preserving Diffusion Model Using Homomorphic Encryption9 Mar 2024
- 2024PixArt-Sigma: Weak-to-Strong Training of Diffusion Transformer for 4K Text-to-Image Generation7 Mar 2024
- 2022Self-Guided Diffusion Models12 Oct 2022
- 2023FLatten Transformer: Vision Transformer using Focused Linear Attentioncited by 170
- 2022On The Computational Complexity of Self-Attentioncited by 137
- 2023Run, Don't Walk: Chasing Higher FLOPS for Faster Neural Networkscited by 129
- 2022EdgeViTs: Competing Light-weight CNNs on Mobile Devices with Vision Transformerscited by 116
- 2023Modeling Dense Multimodal Interactions Between Biological Pathways and Histology for Survival Predictioncited by 92
- 2023Agent Attention: On the Integration of Softmax and Linear Attentioncited by 90
- 2022Flowformer: Linearizing Transformers with Conservation Flowscited by 69
- 2023FasterViT: Fast Vision Transformers with Hierarchical Attentioncited by 65
- 2025Test-time regression: a unifying framework for designing sequence models with associative memorycited by 63
- 2022THE-X: Privacy-Preserving Transformer Inference with Homomorphic Encryptioncited by 55
- 2024Bridging the Divide: Reconsidering Softmax and Linear Attentioncited by 48
- 2023Replacing softmax with ReLU in Vision Transformerscited by 43
12 most cited of 113 All 113 (JSON)
- 2026Efficient and High-Quality Depth Estimation via Pixel-Space Diffusion with Linear Attention31 Aug 2026
- 2026MixFormer: Linear Transformer with Mixture of Memory Experts10 Aug 2026
- 2026EVAS: Efficient Multimodal Temporal Forgery Localization via Audio-Visual Synergy and Steered Boundary Calibration5 Jul 2026
- 2026Generalization Analysis of Transformers in Distribution Regression28 Jun 2026
- 2026DnA: Denoising Attention for Visual Tasks25 Jun 2026
- 2026Context-Guided Semantic Alignment for Feature Fusion Networks12 Jun 2026
- 2026ATT-CR: Adaptive Triangular Transformer for Cloud Removal4 Jun 2026
- 2026Do Transformers Need Three Projections? Systematic Study of QKV Variants1 Jun 2026
- 2026LaplacianFormer:Rethinking Linear Attention with Laplacian Kernel22 Apr 2026
- 2026Self-Attention And Beyond the Infinite: Towards Linear Transformers with Infinite Self-Attention26 Feb 2026
- 2026Nonparametric Teaching of Attention Learners24 Feb 2026
- 2026Finite-Time Analysis of Gradient Descent for Shallow Transformers23 Jan 2026
12 newest of 113 All 113 (JSON)