mlsanityData to 7 Oct 2026

Softmax-free Linear Transformers

arXiv 2207.03341 ↗First posted 5 Jul 2022cs.CV cs.AI cs.LGcited by 9

Not on the map. Why?

Abstract (arXiv)

Vision transformers (ViTs) have pushed the state-of-the-art for visual perception tasks. The self-attention mechanism underpinning the strength of ViTs has a quadratic complexity in both computation and memory usage. This motivates the development of approximating the self-attention at linear complexity. However, an in-depth analysis in this work reveals that existing methods are either theoretically flawed or empirically ineffective for visual recognition. We identify that their limitations are rooted in the inheritance of softmax-based self-attention during approximations, that is, normalizing the scaled dot-product between token feature vectors using the softmax function. As preserving the softmax operation challenges any subsequent linearization efforts. By this insight, a family of Softmax-Free Transformers (SOFT) are proposed. Specifically, a Gaussian kernel function is adopted to replace the dot-product similarity, enabling a full self-attention matrix to be approximated under low-rank matrix decomposition. For computational robustness, we estimate the Moore-Penrose inverse using an iterative Newton-Raphson method in the forward process only, while calculating its theoretical gradients only once in the backward process. To further expand applicability (e.g., dense prediction tasks), an efficient symmetric normalization technique is introduced. Extensive experiments on ImageNet, COCO, and ADE20K show that our SOFT significantly improves the computational efficiency of existing ViT variants. With linear complexity, much longer token sequences are permitted by SOFT, resulting in superior trade-off between accuracy and complexity. Code and models are available at https://github.com/fudan-zvg/SOFT.

Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 68 of its 85 references that are in the map. First posted on arXiv 5 Jul 2022.

Builds on

68 of 85 references.

References · 68

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  4. 2020Language Models are Few-Shot Learnerscited by 32,199
  5. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  6. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  7. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  8. 2017Mask R-CNNcited by 7,259
  9. 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
  10. 2016Layer Normalizationcited by 5,579
  11. 2015Rethinking the Inception Architecture for Computer Visioncited by 5,451
  12. 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
38 more
  1. 2014Fully Convolutional Networks for Semantic Segmentationcited by 4,845
  2. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  3. 2016The Cityscapes Dataset for Semantic Urban Scene Understandingcited by 4,427
  4. 2022A ConvNet for the 2020scited by 3,545
  5. 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,410
  6. 2018Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentationcited by 3,210
  7. 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,875
  8. 2016Aggregated Residual Transformations for Deep Neural Networkscited by 2,540
  9. 2016Pyramid Scene Parsing Networkcited by 2,472
  10. 2017Non-local Neural Networkscited by 2,290
  11. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  12. 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
  13. 2020Reformer: The Efficient Transformercited by 1,658
  14. 2020Rethinking Attention with Performerscited by 1,584
  15. 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
  16. 2019MMDetection: Open MMLab Detection Toolbox and Benchmarkcited by 1,379
  17. 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,368
  18. 2018Unified Perceptual Parsing for Scene Understandingcited by 1,265
  19. 2021Swin Transformer V2: Scaling Up Capacity and Resolutioncited by 1,215
  20. 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
  21. 2021Perceiver: General Perception with Iterative Attentioncited by 1,089
  22. 2016Semantic Understanding of Scenes through the ADE20K Datasetcited by 1,063
  23. 2020Designing Network Design Spacescited by 954
  24. 2020Efficient Transformers: A Surveycited by 784
  25. 2021Generalizing to Unseen Domains: A Survey on Domain Generalizationcited by 762
  26. 2021Going deeper with Image Transformerscited by 759
  27. 2021PVT v2: Improved Baselines with Pyramid Vision Transformercited by 749
  28. 2018CCNet: Criss-Cross Attention for Semantic Segmentationcited by 717
  29. 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
  30. 2019Segmentation Transformer: Object-Contextual Representations for Semantic Segmentationcited by 573
  31. 2021CoAtNet: Marrying Convolution and Attention for All Data Sizescited by 566
  32. 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565
  33. 2019Bridging the Gap Between Anchor-based and Anchor-free Detection via Adaptive Training Sample Selectioncited by 539
  34. 2020Sparse R-CNN: End-to-End Object Detection with Learnable Proposalscited by 494
  35. 2021ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biasescited by 484
  36. 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 468
  37. 2019Cascade R-CNN: High Quality Object Detection and Instance Segmentationcited by 428
  38. 2022DeiT III: Revenge of the ViTcited by 417

50 most cited of 68 All 68 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 5; 2026: 3.

9 papers.