potentialpaper

MatMuls are Enough for Efficient and Performant Linear-Time Attention

Andrew Argatkiny, Ilya Makarov

LCFM @ ICML 2025

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Transformers, despite empowering current AI revolution, are bottlenecked by suboptimal hardware utilization and quadratic runtime complexity of softmax attention w.r.t. input sequence length. Many recent architectures aspire to bring the complexity down to sub-quadratic level without compromising modeling quality. However, they are either much slower on all but very long sequences or rely on low-level code tailored to a narrow subset of modern hardware. To simultaneously achieve linear complexity, hardware efficiency, and portability, we completely eliminate softmax from self-attention; and remove, reduce, modify, or rearrange other transformations in the Transformer block. The resulting architecture, DenseAttention Network, is composed entirely of dense matrix multiplications in the attention which allows for efficient training and inference in both quadratic and linear modes. It outperforms standard Transformer and its counterparts in language modeling benchmarks and surpasses previous Transformer-based SOTA by 5% on challenging Long Range Arena. DenseAttention model written in plain PyTorch is up to 22% faster even on small context sizes, and by orders of magnitude on longer sequences, than Transformer with low-level FlashAttention kernel.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

FromAToBDateVersionSubmitted toPDFEvidence
19 May 2025ES-FoMo-III @ ICML 2025submittedES-FoMo-III @ ICML 2025Accepted—[1]
19 May 2025TTODLer-FM @ ICML 2025submittedTTODLer-FM @ ICML 2025Accepted · Poster—[1]
22 May 2025LCFM @ ICML 2025submittedLCFM @ ICML 2025Accepted—[1]
10 Sep 2025ICLR 2026submittedICLR 2026Rejected—[1]
Their titles, abstracts and, where both have a PDF, the text.Missing a version?

We don't know of a submission of this paper to a venue with open reviews. Missing a submission?

Loading the discussion…