The Expressivity Gap in Linear Attention

238 concepts186 papers1 proposal

Standard Transformers scale quadratically ($O(N^2)$) with sequence length because they compute a full pairwise similarity matrix between all tokens before applying the values:

$$\text{Attention}(Q, K, V) = \text{Softmax}(QK^T)V$$

Linear attention breaks this bottleneck by exploiting the associative property of matrix multiplication. By replacing the non-linear $\text{Softmax}$ function with a kernel or feature map $\phi(\cdot)$, the operation can be rewritten as:

$$\text{LinearAttention}(Q, K, V) = (\phi(Q)\phi(K)^T)V = \phi(Q)(\phi(K)^TV)$$

By computing $\phi(K)^TV$ first, the computational complexity drops from quadratic to linear ($O(N)$).

Despite this theoretical elegance, linear attention models consistently underperform standard Transformers on complex tasks. This discrepancy is known as the linear attention performance gap. To build better architectures, we must understand exactly why this mathematical simplification degrades the model's representational power, and how researchers are working to fix it.


Why the Performance Gap Exists

The performance gap is not a single flaw, but rather a consequence of three distinct architectural sacrifices made during linearization: the loss of focus, the compression of memory, and the restriction of data routing.

1. The Blurry Attention Problem

Standard softmax acts as a sharp, contrastive selector. Because it uses an exponential function, it amplifies the highest similarity scores and heavily suppresses the rest, allowing a token to isolate and attend to a single, precise target.

Linear feature maps lack this exponential sharpness. Instead of a focused peak, they produce "blurry" or diffused attention maps. Zhi Jin et al. note that this blurriness causes a severe loss of feature discriminability, making it difficult for models to isolate fine-grained details. In computer vision, this lack of focus is particularly damaging; Naijian Cao demonstrates that diffused attention maps prevent models from concentrating on specific corresponding pixels during dense image matching, leading to degraded accuracy compared to standard softmax.

2. The Information Bottleneck in Retrieval

In standard attention, the model retains access to the entire history via the KV cache, which grows dynamically with the sequence length. In linear attention, the intermediate matrix $S = \phi(K)^TV$ acts as a fixed-size recurrent state.

As Kazuki Irie et al. explain, this formulation forces the model to act as a Fast Weight Programmer, compressing an arbitrarily long sequence into a constant-sized matrix. This lossy compression creates a severe bottleneck for high-precision retrieval and associative recall. Simran Arora et al. show that this compression makes pure linear models struggle on recall-intensive benchmarks, while Enzhe Lu et al. observe that it prevents models from extracting specific, granular facts buried deep within massive contexts.

3. Bounded Routing and Reasoning

Standard softmax attention allows all-to-all communication in a single layer, serving as a highly flexible data router. Linear approximations restrict how information can be shifted and combined across tokens.

Clayton Hendrick Sanford et al. prove that sub-quadratic attention mechanisms trade off this all-to-all communication capability, fundamentally limiting the model's ability to solve complex sequential and graph routing tasks. This means that even when scaled to massive parameter counts, pure linear models face an expressivity ceiling on complex logic and reasoning benchmarks—a quality gap highlighted by Michael Zhang during the linearization of large-scale language models.


How the Field is Closing the Gap

To overcome these limitations without reintroducing quadratic complexity, researchers are attacking the problem from three angles: hybrid topologies, mathematical refinements, and local precision augmentation.

Hybrid Topologies

Instead of completely abandoning softmax attention, a prominent strategy is to combine the best of both worlds. Because a model does not need all-to-all communication at every single layer, researchers insert a small number of full attention layers into an otherwise linear stack.

Junxiong Wang et al. and Mingyu Yang et al. demonstrate that preserving a fraction of full attention layers anchors the model's global context and reasoning capabilities, preventing logic degradation while still drastically reducing the overall KV cache size. Sangmin Bae systematically analyzes these configurations, finding that running attention and linear state-space heads in parallel within the same layer provides an optimal balance of throughput and cognitive performance.

Mathematical Refinements

Other approaches modify the linear attention equations directly to recover the contrastive properties of softmax. For instance, Zhi Jin et al. use higher-order Taylor expansions to better approximate the exponential function, sharpening the resulting attention maps.

To stabilize training and prevent gradient vanishing, Peng Lu et al. introduce stable exponential feature maps combined with variance reduction gates. Furthermore, Jiecheng Lu et al. propose removing the constant normalization denominator typical of linear attention; this allows the model to output negative weights and perform contrastive operations, restoring the sharp focus inherent in traditional attention.

Local Precision Augmentation

Since the fixed-size state of linear attention struggles most with immediate, high-precision token relationships, researchers are augmenting linear models with explicit local context mechanisms.

Simran Arora et al. pair linear attention with a tiny sliding window attention layer, ensuring that local token shifts and precise comparisons are handled with full softmax fidelity. Similarly, Yeonju Ro et al. introduce a dual-state tracking mechanism that maintains separate hidden states for immediate recency and long-term history, preventing the lossy compression bottleneck from destroying high-fidelity local information during generation.

History & citationVersion 2 · 2026-10-04

Current · Permanent link

  1. Version 2 (latest) · 2026-10-04 · 188 papers
  2. Version 1 · 2026-10-04 · 233 papers
Cite this direction

Latest version (a living page):

@misc{lacuna_linear_attention_performance_gap_abd45dc6,
  title = {linear attention performance gap},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/linear-attention-performance-gap/rdr_abd45dc6eb0d4c92a89060627b44ec53},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-13},
}

This exact version (version 2, frozen text):

@misc{lacuna_linear_attention_performance_gap_abd45dc6_v2,
  title = {linear attention performance gap},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/linear-attention-performance-gap/rdr_abd45dc6eb0d4c92a89060627b44ec53/v/2},
  note = {Version 2, frozen 2026-10-04. Accessed 2026-11-13},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake