State Rank Dynamics in Linear Attention LLMs
Ao Sun, Hongtao Zhang, Heng Zhou, Yixuan Ma, Yiran Qin, Tongrui Su, Yan Liu, Zhanyu Ma, Jun Xu, Jiuchong Gao, Jinghua Hao, Renqing He
TL;DR
The paper investigates runtime state dynamics in Linear Attention LLMs and uncovers State Rank Stratification, where attention heads bifurcate into persistent low-rank and high-rank regimes that are temporally and data-invariant. It provides a theoretical framework based on Rank Saturation and Norm Accumulation to explain stable rank and norm distribution over long sequences, and demonstrates that low-rank heads are essential for reasoning while high-rank heads often exhibit redundancy. Building on this, the authors introduce Joint Rank-Norm Pruning (JRNP), a training-free method that prunes saturated high-rank heads to reduce KV-cache overhead by about 38.9% with negligible accuracy loss on several tasks, while pruning low-rank heads severely degrades retrieval and long-context capabilities. The work advances understanding of spectral dynamics in recurrent linear attention and suggests architectural biases favoring low-rank subspaces to balance efficiency and retrieval performance.
Abstract
Linear Attention Large Language Models (LLMs) offer a compelling recurrent formulation that compresses context into a fixed-size state matrix, enabling constant-time inference. However, the internal dynamics of this compressed state remain largely opaque. In this work, we present a comprehensive study on the runtime state dynamics of state-of-the-art Linear Attention models. We uncover a fundamental phenomenon termed State Rank Stratification, characterized by a distinct spectral bifurcation among linear attention heads: while one group maintains an effective rank oscillating near zero, the other exhibits rapid growth that converges to an upper bound. Extensive experiments across diverse inference contexts reveal that these dynamics remain strikingly consistent, indicating that the identity of a head,whether low-rank or high-rank,is an intrinsic structural property acquired during pre-training, rather than a transient state dependent on the input data. Furthermore, our diagnostic probes reveal a surprising functional divergence: low-rank heads are indispensable for model reasoning, whereas high-rank heads exhibit significant redundancy. Leveraging this insight, we propose Joint Rank-Norm Pruning, a zero-shot strategy that achieves a 38.9\% reduction in KV-cache overhead while largely maintaining model accuracy.
