Tiled Flash Linear Attention: More Efficient Linear RNN and xLSTM Kernels
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
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,928
- 2020GLU Variants Improve Transformercited by 1,724
- 2019Root Mean Square Layer Normalizationcited by 1,425
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
28 more
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 594
- 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 507
- 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 490
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
- 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 471
- 2023Resurrecting Recurrent Neural Networks for Long Sequencescited by 397
- 2024Jamba: A Hybrid Transformer-Mamba Language Modelcited by 390
- 2024DataComp-LM: In search of the next generation of training sets for language modelscited by 381
- 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 373
- 2024xLSTM: Extended Long Short-Term Memorycited by 320
- 2022Transformer Quality in Linear Timecited by 189
- 2024An Empirical Study of Mamba-based Language Modelscited by 177
- 2025MiniMax-01: Scaling Foundation Models with Lightning Attentioncited by 157
- 2018Online normalizer calculation for softmaxcited by 154
- 2024HGRN2: Gated Linear RNNs with State Expansioncited by 122
- 2023Hierarchically Gated Recurrent Neural Network for Sequence Modelingcited by 100
- 2022The Devil in Linear Transformercited by 98
- 2024Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Modelscited by 57
- 2024Vision-LSTM: xLSTM as Generic Vision Backbonecited by 51
- 2023GateLoop: Fully Data-Controlled Linear Recurrence for Sequence Modelingcited by 45
- 2024ThunderKittens: Simple, Fast, and Adorable AI Kernelscited by 34
- 2023FlashFFTConv: Efficient Convolutions for Long Sequences with Tensor Corescited by 32
- 2024Unlocking the Power of LSTM for Long Term Time Series Forecastingcited by 29
- 2024xLSTM-Mixer: Multivariate Time Series Forecasting by Mixing via Scalar Memoriescited by 18
- 2024A Large Recurrent Action Model: xLSTM enables Fast Inference for Robotics Taskscited by 14
- 2024xLSTMTime : Long-term Time Series Forecasting With xLSTMcited by 13
- 2024Bio-xLSTM: Generative modeling, representation and in-context learning of biological and chemical sequencescited by 13
- 2024FlashRNN: I/O-Aware Optimization of Traditional RNNs on modern hardwarecited by 7
Built on by
Citing papers per year: 2025: 6; 2026: 6.
12 papers.
- 2025Log-Linear Attentioncited by 39
- 2025Short window attention enables long-term memorizationcited by 11
- 2025Bolmo: Byteifying the Next Generation of Language Modelscited by 8
- 2025xLSTM Scaling Laws: Competitive Performance with Linear Time-Complexitycited by 3
- 2026Effective Distillation to Hybrid xLSTM Architecturescited by 3
- 2025pLSTM: parallelizable Linear Source Transition Mark networkscited by 2
- 2026Hybrid Associative Memoriescited by 1
- 2026SMat-Attention: Structured Long-Context Sequence Modelingcited by 1
- 2025An overview of neural architectures for self-supervised audio representation learning from masked spectrogramscited by 0
- 2026SketchGraphNet: A Memory-Efficient Hybrid Graph Transformer for Large-Scale Sketch Corpora Recognitioncited by 0
- 2026WorldAttention: An Efficient Attention Architecture for Interactive Video World Modelscited by 0
- 2026Switching Linear Attentioncited by 0
- 2026Switching Linear Attention30 Sep 2026
- 2026SMat-Attention: Structured Long-Context Sequence Modeling28 Sep 2026
- 2026WorldAttention: An Efficient Attention Architecture for Interactive Video World Models28 Sep 2026
- 2026Hybrid Associative Memories20 Mar 2026
- 2026Effective Distillation to Hybrid xLSTM Architectures16 Mar 2026
- 2026SketchGraphNet: A Memory-Efficient Hybrid Graph Transformer for Large-Scale Sketch Corpora Recognition8 Mar 2026
- 2025Bolmo: Byteifying the Next Generation of Language Models17 Dec 2025
- 2025xLSTM Scaling Laws: Competitive Performance with Linear Time-Complexity2 Oct 2025
- 2025Short window attention enables long-term memorization29 Sep 2025
- 2025An overview of neural architectures for self-supervised audio representation learning from masked spectrograms23 Sep 2025
- 2025pLSTM: parallelizable Linear Source Transition Mark networks13 Jun 2025
- 2025Log-Linear Attention5 Jun 2025
Similar, not cited
Close in wording, no citation either way
- 2025FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Serving
- 2023TransNormerLLM: A Faster and Better Large Language Model with Improved TransNormer
- 2024FlashMask: Efficient and Rich Mask Extension of FlashAttention
- 2024Linearizing Large Language Models
- 2023LLM in a flash: Efficient Large Language Model Inference with Limited Memory
- 2023FlashDecoding++: Faster Large Language Model Inference on GPUs
- 2024Short-Long Convolutions Help Hardware-Efficient Linear Attention to Focus on Long Sequences
- 2026FlashPrefill V2: Block-Sparse Prefill Attention for Long-Context LLM Serving