Manuscript Offprint

arXiv:2611.07552

SPARE: Fast Linear Attention Decoding with Compact Recurrent States

Ke Wan, Zaiyi Zheng, Chen Chen

Abstract

Linear attention reduces the quadratic sequence-length complexity of softmax attention by maintaining fixed-size recurrent states. However, these states scale quadratically with the representation dimension and require repeated data transfers during decoding, creating a substantial GPU memory bottleneck. Recent studies have revealed significant low-rank redundancy in recurrent states, suggesting opportunities for more efficient representations. We introduce SPARE (State Projection for Accelerated Recurrent Execution), a training-free method that exploits this redundancy through fixed low-dimensional subspaces, heterogeneous rank allocation, and lightweight write compensation. By performing recurrent reads and updates directly on compact states, SPARE reduces memory traffic without online decomposition or dense-state reconstruction. SPARE achieves 2.55× full-model decoding speedup, 7.49× lower recurrent-kernel DRAM traffic, and 3.31× lower peak GPU memory, while preserving better associative-retrieval accuracy than structured pruning at matched memory budgets.

1 Introduction

Linear attention (Katharopoulos et al., 2020; Yang et al., 2023) has emerged as an efficient alternative to conventional softmax attention (Vaswani et al., 2017) for long-sequence modeling. By reformulating attention computation as recurrent state updates (Dao and Gu, 2024), linear attention summarizes historical information into fixed-size states without maintaining a growing key-value cache. However, eliminating the dependence on sequence length does not eliminate the cost of recurrent memory itself. At each decoding step, linear attention must repeatedly read and update a potentially large recurrent state matrix, requiring substantial data transfers between GPU high-bandwidth memory (HBM) and computing units (Gupta et al., 2026). These operations primarily involve matrix-vector multiplications (GEMV) and rank-one updates, which require relatively little computation compared to the amount of data transferred (Yin et al., 2014; Williams et al., 2009). Consequently, recurrent-state memory traffic can become a dominant efficiency bottleneck during decoding, particularly at high concurrency.

Reducing recurrent-state memory traffic therefore presents a promising opportunity to accelerate linear attention decoding. Prior studies have identified substantial low-rank structure in recurrent states (Nazari and Rusch, 2026), with effective ranks varying considerably across layers and heads (Sun et al., 2026), which is illustrated in Figure 1a. A natural approach is to reduce state dimensions through structured pruning of key and query channels (Nazari and Rusch, 2026). However, low-rank structure does not necessarily imply that important information is concentrated in a small subset of the original representation dimensions. Consequently, aggressive pruning may discard information essential to the model's associative memory. Projection onto a low-dimensional subspace avoids this restriction, but allocating the same rank to every head may overlook their heterogeneous memory requirements. Thus, exploiting recurrent-state redundancy requires careful consideration of both the representation subspace and the allocation of limited state capacity.

A further challenge arises from the dynamic nature of recurrent memory. Unlike static matrix compression, a compressed recurrent state must support successive associative reads and writes, rather than merely approximate a single state matrix. Projecting keys can alter their geometry and reduce their norms, potentially changing the effectiveness of subsequent memory updates. This raises a fundamental question: can we exploit the heterogeneous low-rank structure of recurrent states to reduce decoding costs while preserving their functional ca-

Figure

(a) Heterogeneous effective ranks

Figure

(b) Recurrent updates in a fixed subspace

Figure 1: Motivation and intuition of SPARE. (a) Heterogeneous low-rank recurrent states. The histograms show the distributions of effective ranks across 192 attention heads on natural text (top) and associative retrieval (bottom). For each head, we report the median r95r_{95} across sampled recurrent states, where r95r_{95} denotes the minimum rank retaining 95% of the state's squared singular-value energy. Despite the original state dimension of 256×256256 \times 256, effective ranks are typically much smaller and vary substantially across heads. (b) Recurrent updates in a fixed subspace. SPARE represents the recurrent state as St≈CtP⊤S_t \approx C_t P^\top, where the projection basis PP remains fixed while the compact coefficient matrix CtC_t evolves across decoding steps. This allows recurrent reads and updates to operate directly on compact states of size dv×rd_v \times r, rather than the original dv×dkd_v \times d_k matrices, without reconstructing the dense state.

pabilities? In particular, can recurrent reads and updates be performed directly in a compact low-dimensional subspace without excessive information loss?

To address these challenges, we introduce SPARE (State Projection for Accelerated Recurrent Execution), a training-free method for accelerating linear attention decoding with compact recurrent states. Instead of discarding selected representation dimensions, as shown in Figure 1b, SPARE maintains recurrent states in fixed low-dimensional key subspaces, where memory reads and updates can be performed directly. To accommodate heterogeneous memory requirements, SPARE allocates different rank budgets across layers and heads based on their recurrent-state spectral characteristics. A lightweight write-compensation mechanism further mitigates the loss of memory-writing effectiveness caused by key projection. Finally, a packed GPU implementation enables efficient recurrent computation on the compressed states without online matrix decomposition or dense-state reconstruction.

We evaluate SPARE on Gated DeltaNet (Yang

et al., 2025), examining both model quality under recurrent-state compression and actual GPU decoding efficiency. Our results demonstrate substantial reductions in recurrent-state memory traffic and full-model decoding latency, together with better retrieval performance than structured pruning under matched memory budgets. These benefits involve a task-dependent quality–efficiency trade-off rather than lossless compression. In summary, our contributions are:

  • We characterize the heterogeneous low-rank structure of linear attention's recurrent states and highlight the limitations of coordinate pruning and uniform capacity allocation for compressing associative memory.

  • We propose SPARE, a training-free framework that combines fixed low-dimensional state representations, heterogeneous rank allocation, and lightweight write compensation to enable efficient recurrent reads and updates.

  • We demonstrate 2.55×2.55\times full-model decoding speedup, 7.49×7.49\times lower recurrent-kernel

DRAM traffic, and 3.31×3.31\times lower peak GPU memory, while achieving substantially better retrieval accuracy than structured pruning at matched memory budgets.

References (13)