mlsanityData to 7 Oct 2026

Rethinking Attention: Polynomial Alternatives to Softmax in Transformers

arXiv 2410.18613 ↗First posted 24 Oct 2024cs.LG cs.CV stat.MLcited by 8

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  5. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  6. 2020End-to-End Object Detection with Transformerscited by 7,384
  7. 2017Mask R-CNNcited by 7,259
  8. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  9. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  10. 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
  11. 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
  12. 2021How to train your ViT? Data, Augmentation, and Regularization in Vision Transformerscited by 562
14 more
  1. 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 468
  2. 2021XCiT: Cross-Covariance Image Transformerscited by 335
  3. 2022cosFormer: Rethinking Softmax in Attentioncited by 212
  4. 2020The Lipschitz Constant of Self-Attentioncited by 171
  5. 2023Drive Like a Human: Rethinking Autonomous Driving with Large Language Modelscited by 158
  6. 2019Adaptively Sparse Transformerscited by 154
  7. 2023PINNsFormer: A Transformer-Based Framework For Physics-Informed Neural Networkscited by 62
  8. 2020Trajectron++: Dynamically-Feasible Trajectory Forecasting With Heterogeneous Datacited by 58
  9. 2023A Study on ReLU and Softmax in Transformercited by 53
  10. 2023Replacing softmax with ReLU in Vision Transformerscited by 43
  11. 2022SimA: Simple Softmax-free Attention for Vision Transformerscited by 32
  12. 2020Exploring Alternatives to Softmax Functioncited by 16
  13. 2021Escaping the Gradient Vanishing: Periodic Alternatives of Softmax in Attention Mechanismcited by 7
  14. 2022Transformers with Learnable Activation Functionscited by 5

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 2; 2026: 6.

8 papers.