The standard Transformer architecture faces a fundamental "quadratic wall." Because the self-attention mechanism computes pairwise interactions between every token in a sequence, its computational and memory requirements grow at a rate of $O(L^2)$, where $L$ is the sequence length. As researchers push toward million-token context windows, this quadratic scaling becomes a prohibitive bottleneck, leading to what Dustin Wang and colleagues describe as a "memory leak" problem in long-sequence inference.
To break this wall, a new generation of research focuses on Linearized Attention—a family of techniques that reformulate the attention operation to achieve $O(L)$ scaling without sacrificing the expressive power of Large Language Models (LLMs).
The Associativity Trick
The core intuition behind linearized attention lies in the associative property of matrix multiplication. In standard softmax attention, we compute a similarity matrix $\mathbf{A} = \text{softmax}(\mathbf{Q}\mathbf{K}^\top)$ before multiplying by the values $\mathbf{V}$. This intermediate $L \times L$ matrix $\mathbf{A}$ is the source of the quadratic cost.
Linearized attention, as explored in FlashEVA by Juan Gabriel Kostelec and Qinghai Guo, replaces the softmax with a kernel feature map $\phi(\cdot)$. This allows the operation to be rewritten as:
$$\text{Attn}(\mathbf{Q}, \mathbf{K}, \mathbf{V}) = \phi(\mathbf{Q}) \left( \phi(\mathbf{K})^\top \mathbf{V} \right)$$
By computing $\phi(\mathbf{K})^\top \mathbf{V}$ first, the model creates a fixed-size "hidden state" or "global memory" that summarizes the entire sequence. This state can be updated incrementally, transforming the Transformer into something that behaves like a Recurrent Neural Network (RNN) during inference. Kazuki Irie and Jürgen Schmidhuber have shown that this formulation is mathematically equivalent to Fast Weight Programmers, where the network uses one set of weights to rapidly program the "synapses" of another.
The Recall Gap
While theoretically efficient, pure linear attention has historically suffered from a "performance gap." Simran Arora and the Zoology team identified that this gap is largely due to a failure in associative recall.
Standard softmax attention is "sharp"—it can pinpoint a single, specific token out of thousands with high precision. Linearized versions tend to be "blurry," aggregating information into a compressed state that struggles to retrieve isolated facts (the "needle-in-a-haystack" problem). This is particularly evident in tasks like competitive coding or complex reasoning, where MiniMax researchers noted that linear models still lag behind their softmax counterparts in MiniMax-M1.
Bridging the Gap with Hybrid Architectures
The most successful recent models don't choose between linear and softmax attention; they use both. This "hybrid" approach recognizes that most language processing can be handled by efficient linear recurrence, while a few "heavy-lifting" softmax layers can maintain high-fidelity retrieval.
For example, Kimi Linear by Zongyu Lin and others employs a 3:1 ratio of linear-to-full attention layers. By combining their Kimi Delta Attention (KDA) with standard attention, they achieve a 75% reduction in KV cache memory while maintaining the reasoning capabilities of much larger models. Similarly, MiniMax-01 uses Lightning Attention, a hardware-aware linear variant developed by Zhen Qin, to scale to 4-million-token contexts.
Hardware-Aware Efficiency
The shift toward linear attention is also driven by hardware realities. Standard attention is often memory-bound, but linear attention can be compute-bound if not implemented carefully. Lightning Attention introduces a "divide and conquer" tiling strategy that avoids the slow sequential bottlenecks of traditional RNN-like updates.
Furthermore, Dongchen Han has demonstrated that even popular models like Mamba can be viewed through a linear attention perspective. By reframing these state-space models as specialized linear attention mechanisms with "forget gates," researchers are unifying the field of efficient sequence modeling.
The Path Forward
The goal of this research direction is to reach "Transformer quality in linear time," as proposed by Weizhe Hua in the FLASH architecture. Whether through low-rank adaptation (LoLCATs), residual learning corrections, or mixture-of-experts integration, the field is converging on a shared conclusion: the future of long-context AI lies in architectures that can selectively compress the past into a linear state while retaining the ability to look back with surgical precision.