mlsanityData to 7 Oct 2026

Fast and Stable Triangular Inversion for Delta-Rule Linear Transformers

arXiv 2605.21325 ↗First posted 20 May 2026cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Linear attention has emerged as a cornerstone for efficient long-context architectures, as evidenced by its integration into state-of-the-art open-source models including Qwen3.5/3.6, Kimi Linear, and RWKV-7. Models that incorporate linear attention layers with the so-called Delta-Rule involve the inversion of triangular matrices as a core sub-routine. This operation often forms a performance bottleneck, and, due to its high-sensitivity to numerical errors, it can significantly deteriorate end-to-end model accuracy if it is not carefully implemented. This work provides a systematic analysis of both direct and iterative triangular inversion algorithms, targeting methods that are rich in matrix products, and, therefore, have the potential to efficiently utilize modern hardware. To that end, our analysis covers a broad spectrum of mathematical and practical aspects, with a heavy focus on numerical stability, computational complexity, and, ultimately, hardware efficiency and practical considerations. We provide a rigorous experimental evaluation to verify these properties in practical scenarios, and in low-precision floating-point representations, highlighting the strengths and limitations of each method. Performance benchmarks on NPUs reveal up to 4.3× speed-up against the state-of-the-art implementations of SGLang for triangular matrix inversion, leading to significant performance improvements on the entire layer level, while maintaining full end-to-end model accuracy.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 15 of its 40 references that are in the map. First posted on arXiv 20 May 2026.

Builds on

15 of 40 references.

References · 15

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  3. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  4. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
  5. 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,107
  6. 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 490
  7. 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
  8. 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 471
  9. 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 373
  10. 2022Transformer Quality in Linear Timecited by 189
  11. 2025RWKV-7 "Goose" with Expressive Dynamic State Evolutioncited by 134
  12. 2025Understanding Transformer from the Perspective of Associative Memorycited by 31
3 more
  1. 2024A Parallel Scan Algorithm in the Tensor Core Unit Modelcited by 2
  2. 2019A Computational Model for Tensor Core Unitscited by 1
  3. 2025Segmented Operations using Matrix Multiplicationscited by 1

Built on by

Not cited yet.