English

Rethinking Attention: Polynomial Alternatives to Softmax in Transformers

Machine Learning 2026-03-16 v3 Computer Vision and Pattern Recognition Machine Learning

Abstract

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.

Cite

@article{arxiv.2410.18613,
  title  = {Rethinking Attention: Polynomial Alternatives to Softmax in Transformers},
  author = {Hemanth Saratchandran and Jianqiao Zheng and Yiping Ji and Wenbo Zhang and Simon Lucey},
  journal= {arXiv preprint arXiv:2410.18613},
  year   = {2026}
}
R2 v1 2026-06-28T19:34:05.642Z