Fast and Stable Triangular Inversion for Delta-Rule Linear Transformers

πŸ“… 2026-05-20
πŸ“ˆ Citations: 0
✨ Influential: 0
πŸ“„ PDF

career value

226K/year
πŸ€– AI Summary
This work addresses the computational bottleneck and numerical instability inherent in triangular matrix inversion within Delta-Rule linear Transformers, which limit both model efficiency and accuracy. The study systematically evaluates and optimizes direct and iterative inversion algorithms tailored for modern hardware, proposing a novel approach that harmonizes numerical stability with hardware efficiency by deeply integrating low-precision floating-point arithmetic and Neural Processing Unit (NPU) architectural features. Without compromising end-to-end model accuracy, the proposed method achieves up to a 4.3Γ— speedup in triangular matrix inversion over SGLang on NPUs, substantially enhancing the overall performance of the attention layer.
πŸ“ Abstract
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\times$ 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.
Problem

Research questions and friction points this paper is trying to address.

triangular inversion
linear attention
Delta-Rule
numerical stability
performance bottleneck
Innovation

Methods, ideas, or system contributions that make the work stand out.

triangular inversion
linear attention
Delta-Rule
numerical stability
hardware efficiency
πŸ”Ž Similar Papers