Rethinking Attention: Polynomial Alternatives to Softmax in Transformers
Not on the map. Why?
Abstract (arXiv)
This paper questions whether the strong performance of softmax attention in transformers stems from producing a probability distribution over inputs. Instead, we argue that softmax's effectiveness lies in its implicit regularization of the Frobenius norm of the attention matrix, which stabilizes training. Motivated by this, we explore alternative activations, specifically polynomials, that achieve a similar regularization effect. Our theoretical analysis shows that certain polynomials can serve as effective substitutes for softmax, achieving strong performance across transformer applications despite violating softmax's typical properties of positivity, normalization, and sparsity. Extensive experiments support these findings, offering a new perspective on attention mechanisms.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 26 of its 32 references that are in the map. First posted on arXiv 24 Oct 2024.
Builds on
26 of 32 references.
References · 26
- 2017Attention Is All You Needcited by 59,932
- 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
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2017Mask R-CNNcited by 7,259
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
- 2021How to train your ViT? Data, Augmentation, and Regularization in Vision Transformerscited by 562
14 more
- 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 468
- 2021XCiT: Cross-Covariance Image Transformerscited by 335
- 2022cosFormer: Rethinking Softmax in Attentioncited by 212
- 2020The Lipschitz Constant of Self-Attentioncited by 171
- 2023Drive Like a Human: Rethinking Autonomous Driving with Large Language Modelscited by 158
- 2019Adaptively Sparse Transformerscited by 154
- 2023PINNsFormer: A Transformer-Based Framework For Physics-Informed Neural Networkscited by 62
- 2020Trajectron++: Dynamically-Feasible Trajectory Forecasting With Heterogeneous Datacited by 58
- 2023A Study on ReLU and Softmax in Transformercited by 53
- 2023Replacing softmax with ReLU in Vision Transformerscited by 43
- 2022SimA: Simple Softmax-free Attention for Vision Transformerscited by 32
- 2020Exploring Alternatives to Softmax Functioncited by 16
- 2021Escaping the Gradient Vanishing: Periodic Alternatives of Softmax in Attention Mechanismcited by 7
- 2022Transformers with Learnable Activation Functionscited by 5
Built on by
Citing papers per year: 2025: 2; 2026: 6.
8 papers.
- 2025Enhancing Transformers Through Conditioned Embedded Tokenscited by 3
- 2025SineProject: Machine Unlearning for Stable Vision Language Alignmentcited by 3
- 2026XCTFormer: Leveraging Cross-Channel and Cross-Time Dependencies for Enhanced Time-Series Analysiscited by 1
- 2026Mask-Based Priors Are More Persistent than Query-Key Initializationscited by 1
- 2026A Unifying View of Attention Sinks: From Mechanisms to Architectural Interventionscited by 0
- 2026DnA: Denoising Attention for Visual Taskscited by 0
- 2026Attention Function as an Intrinsic Inductive Bias: How Models' Behavior Diverges in Novel Contextscited by 0
- 2026Attention Kernels for Learning Maps Between Heavy-Tailed Measurescited by 0
- 2026Attention Kernels for Learning Maps Between Heavy-Tailed Measures30 Sep 2026
- 2026Attention Function as an Intrinsic Inductive Bias: How Models' Behavior Diverges in Novel Contexts30 Sep 2026
- 2026Mask-Based Priors Are More Persistent than Query-Key Initializations1 Aug 2026
- 2026DnA: Denoising Attention for Visual Tasks25 Jun 2026
- 2026A Unifying View of Attention Sinks: From Mechanisms to Architectural Interventions6 Jun 2026
- 2026XCTFormer: Leveraging Cross-Channel and Cross-Time Dependencies for Enhanced Time-Series Analysis18 May 2026
- 2025SineProject: Machine Unlearning for Stable Vision Language Alignment23 Nov 2025
- 2025Enhancing Transformers Through Conditioned Embedded Tokens19 May 2025