mlsanityData to 7 Oct 2026

Tiled Flash Linear Attention: More Efficient Linear RNN and xLSTM Kernels

arXiv 2503.14376 ↗First posted 18 Mar 2025cs.LG cs.AIcited by 12

Not on the map. Why?

Abstract (arXiv)

Linear RNNs with gating recently demonstrated competitive performance compared to Transformers in language modeling. Although their linear compute scaling in sequence length offers theoretical runtime advantages over Transformers, realizing these benefits in practice requires optimized custom kernels, as Transformers rely on the highly efficient Flash Attention kernels (Dao, 2024). Leveraging the chunkwise-parallel formulation of linear RNNs, Flash Linear Attention (FLA) (Yang & Zhang, 2024) shows that linear RNN kernels are faster than Flash Attention, by parallelizing over chunks of the input sequence. However, since the chunk size of FLA is limited, many intermediate states must be materialized in GPU memory. This leads to low arithmetic intensity and causes high memory consumption and IO cost, especially for long-context pre-training. In this work, we present Tiled Flash Linear Attention (TFLA), a novel kernel algorithm for linear RNNs, that enables arbitrary large chunk sizes and high arithmetic intensity by introducing an additional level of sequence parallelization within each chunk. First, we apply TFLA to the xLSTM with matrix memory, the mLSTM (Beck et al., 2024). Second, we propose an mLSTM variant with sigmoid input gate and reduced computation for even faster kernel runtimes at equal language modeling performance. In our speed benchmarks, we show that our new mLSTM kernels based on TFLA outperform highly optimized Flash Attention, Linear Attention and Mamba kernels, setting a new state of the art for efficient long-context sequence modeling primitives.

Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 40 of its 62 references that are in the map. First posted on arXiv 18 Mar 2025.

Builds on

40 of 62 references.

References · 40

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  5. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  6. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  7. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  8. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  9. 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,928
  10. 2020GLU Variants Improve Transformercited by 1,724
  11. 2019Root Mean Square Layer Normalizationcited by 1,425
  12. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
28 more
  1. 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 594
  2. 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 507
  3. 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 490
  4. 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
  5. 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 471
  6. 2023Resurrecting Recurrent Neural Networks for Long Sequencescited by 397
  7. 2024Jamba: A Hybrid Transformer-Mamba Language Modelcited by 390
  8. 2024DataComp-LM: In search of the next generation of training sets for language modelscited by 381
  9. 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 373
  10. 2024xLSTM: Extended Long Short-Term Memorycited by 320
  11. 2022Transformer Quality in Linear Timecited by 189
  12. 2024An Empirical Study of Mamba-based Language Modelscited by 177
  13. 2025MiniMax-01: Scaling Foundation Models with Lightning Attentioncited by 157
  14. 2018Online normalizer calculation for softmaxcited by 154
  15. 2024HGRN2: Gated Linear RNNs with State Expansioncited by 122
  16. 2023Hierarchically Gated Recurrent Neural Network for Sequence Modelingcited by 100
  17. 2022The Devil in Linear Transformercited by 98
  18. 2024Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Modelscited by 57
  19. 2024Vision-LSTM: xLSTM as Generic Vision Backbonecited by 51
  20. 2023GateLoop: Fully Data-Controlled Linear Recurrence for Sequence Modelingcited by 45
  21. 2024ThunderKittens: Simple, Fast, and Adorable AI Kernelscited by 34
  22. 2023FlashFFTConv: Efficient Convolutions for Long Sequences with Tensor Corescited by 32
  23. 2024Unlocking the Power of LSTM for Long Term Time Series Forecastingcited by 29
  24. 2024xLSTM-Mixer: Multivariate Time Series Forecasting by Mixing via Scalar Memoriescited by 18
  25. 2024A Large Recurrent Action Model: xLSTM enables Fast Inference for Robotics Taskscited by 14
  26. 2024xLSTMTime : Long-term Time Series Forecasting With xLSTMcited by 13
  27. 2024Bio-xLSTM: Generative modeling, representation and in-context learning of biological and chemical sequencescited by 13
  28. 2024FlashRNN: I/O-Aware Optimization of Traditional RNNs on modern hardwarecited by 7

Built on by

Cited by year (2026 to 7 Oct)

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

12 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Serving
  2. 2023TransNormerLLM: A Faster and Better Large Language Model with Improved TransNormer
  3. 2024FlashMask: Efficient and Rich Mask Extension of FlashAttention
  4. 2024Linearizing Large Language Models
  5. 2023LLM in a flash: Efficient Large Language Model Inference with Limited Memory
  6. 2023FlashDecoding++: Faster Large Language Model Inference on GPUs
  7. 2024Short-Long Convolutions Help Hardware-Efficient Linear Attention to Focus on Long Sequences
  8. 2026FlashPrefill V2: Block-Sparse Prefill Attention for Long-Context LLM Serving