mlsanityData to 14 Oct 2026

Softmax Attention with Constant Cost per Token

arXiv 2404.05843 ↗First posted 8 Apr 2024cs.LG cs.CLcited by 1

Not on the map. Why?

Abstract (arXiv)

We propose a simple modification to the conventional attention mechanism applied by Transformers: Instead of quantifying pairwise query-key similarity with scaled dot-products, we quantify it with the logarithms of scaled dot-products of exponentials. Our modification linearizes attention with exponential kernel feature maps, whose corresponding feature function is infinite dimensional. We show that our modification is expressible as a composition of log-sums of exponentials, with a latent space of constant size, enabling application with constant time and space complexity per token. We implement our modification, verify that it works in practice, and conclude that it is a promising alternative to conventional attention.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 14 of its 16 references that are in the map. First posted on arXiv 8 Apr 2024.

Builds on

14 of 16 references.

References · 14

  1. 2017Attention Is All You Needcited by 60,361
  2. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
  3. 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
  4. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
  5. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
  6. 2019Generating Long Sequences with Sparse Transformerscited by 1,546
  7. 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
  8. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 471
  9. 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 393
  10. 2021FNet: Mixing Tokens with Fourier Transformscited by 347
  11. 2024Repeat After Me: Transformers are Better than State Space Models at Copyingcited by 216
  12. 2017Parallelizing Linear Recurrent Neural Nets Over Sequence Lengthcited by 127
2 more
  1. 2021An Attention Free Transformercited by 112
  2. 2023GateLoop: Fully Data-Controlled Linear Recurrence for Sequence Modelingcited by 46

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.