mlsanityData to 14 Oct 2026

Transformer Based Linear Attention with Optimized GPU Kernel Implementation

arXiv 2510.21956 ↗First posted 24 Oct 2025cs.LG cs.CLcited by 1

Not on the map. Why?

Abstract (arXiv)

The original softmax-based attention mechanism (regular attention) in the extremely successful Transformer architecture computes attention between N tokens, each embedded in a D-dimensional head, with a time complexity of O(N2D). Given the success of Transformers, improving their runtime during both training and inference is a popular research area. One such approach is the introduction of the linear attention (LA) mechanisms, which offers a linear time complexity of O(ND2) and have demonstrated comparable accuracy to regular attention. However, LA in practice lags behind its theoretical efficiency. We propose a novel method for LA's forward and backward passes, along with a highly-optimized CUDA implementation. Our approach outperforms the state-of-the-art by 3.3 times in speed and reduces memory consumption by 3.6 times. We validate these improvements in both single-layer and end-to-end settings by training a 1.4 billion parameter language model, which demonstrates similar expressivity to regular attention on major reasoning benchmarks.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 30 of its 33 references that are in the map. First posted on arXiv 24 Oct 2025.

Builds on

30 of 33 references.

References · 30

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  3. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
  4. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
  5. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  6. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  7. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
  8. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  9. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
  10. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
  11. 2020Big Bird: Transformers for Longer Sequencescited by 1,684
  12. 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
18 more
  1. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
  2. 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 532
  3. 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 514
  4. 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 502
  5. 2018Efficient Attention: Attention with Linear Complexitiescited by 368
  6. 2022cosFormer: Rethinking Softmax in Attentioncited by 213
  7. 2024Simple linear attention language models balance the recall-throughput tradeoffcited by 208
  8. 2023FLatten Transformer: Vision Transformer using Focused Linear Attentioncited by 171
  9. 2025MiniMax-01: Scaling Foundation Models with Lightning Attentioncited by 166
  10. 2024The Hedgehog & the Porcupine: Expressive Linear Attentions with Softmax Mimicrycited by 120
  11. 2022The Devil in Linear Transformercited by 98
  12. 2021Luna: Linear Unified Nested Attentioncited by 96
  13. 2024Loki: Low-rank Keys for Efficient Sparse Attentioncited by 89
  14. 2024Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Modelscited by 57
  15. 2023TransNormerLLM: A Faster and Better Large Language Model with Improved TransNormercited by 34
  16. 2021FMMformer: Efficient and Flexible Transformer via Decomposed Near-field and Far-field Attentioncited by 26
  17. 2023White-Box Transformers via Sparse Rate Reduction: Compression Is All There Is?cited by 23
  18. 2024When Linear Attention Meets Autoregressive Decoding: Towards More Effective and Efficient Linearized Large Language Modelscited by 9

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.