arXiv:2609.06341cs.LGSep 2026

Manuscript Offprint

arXiv:2609.06341

Linear Algebra Foundations of Efficient Attention: A Phase Reversal in Rank Collapse Under SVD Compression

Anjaneya Teja Sarma Kalvakolanu

Anjaneya Teja Sarma Kalvakolanu

Abstract—Linear algebra supplies the structural vocabulary of modern artificial intelligence: matrix rank, singular value decomposition (SVD), and eigen decomposition govern how information is represented, compressed, and propagated inside neural networks. This paper synthesizes fourteen peer-reviewed studies applying these tools to transformer-based foundation models along three connected threads: 1. formal results showing self-attention output converges doubly exponentially toward a rank-one matrix as depth increases, with explicit convergence bounds of the form O(γ3)O(\gamma^{3}); 2. parameter- and weight-space compression methods low-rank adaptation ( ΔW=BA\Delta W = BA), Fisher-weighted factorization, and truncation-aware SVD that exploit this same low-rank structure deliberately and (3) low-rank key-value (KV) cache projection methods and a formal semiseparable-matrix duality between linear attention and structured state-space models. Motivated by an open question this literature leaves unaddressed whether deliberate low-rank compression compounds with or counteracts the network's natural tendency toward rank collapse; we report an original experiment revealing a phase reversal: SVD compression of attention projections retards representation rank collapse at random initialization but accelerates it on pretrained models (GPT-2 124M, GPT-2 Medium 355M, Pythia-160M), an effect verified against object-aliasing artifacts, consistent across compression ratios, and robust across four independent rank metrics. A controlled causal decomposition run in both regimes shows the effect is driven predominantly by which subspace SVD truncation selects rather than by the resulting reduction in operator norm; accounting for approximately 76% of the effect at random initialization and approximately 83% on pretrained weights by refining a purely norm-based mechanistic account into one centered on subspace selection, and explaining why calibration-aware compression methods in the literature outperform naive SVD truncation.

Index Terms—rank collapse, singular value decomposition, low-rank adaptation, attention mechanisms, model compression, effective rank

I. INTRODUCTION

The transformer computes, at each layer, three linear projections of an input sequence X∈Rn×dX \in \mathbb{R}^{n \times d}, queries Q=XWQQ = XW_Q, keys K=XWKK = XW_K, and values V=XWVV = XW_V followed by the scaled dot-product attention operation:

Attention(Q,K,V)=softmax(QKTdk)V(1)Attention(Q,K,V)=softmax\left(\frac{QK^{T}}{\sqrt{d_{k}}}\right)V \tag{1}

Every operation in this pipeline, the projections, , the QKTQK^{T} similarity matrix, and the final weighted sum is linear or bilinear in its inputs, which is why matrix rank, singular values, and eigenvalues are not merely descriptive metaphors for transformer behavior but the literal algebraic quantities that determine it [1]. This review examines a specific, currently active research thread built on this observation: the tendency of self-attention to reduce the rank of token representations, and the growing body of work that exploits low-rank structure deliberately for parameter-efficient adaptation, model compression, and long-context inference efficiency.

The objective is twofold: 1. evaluate recent advances in applying linear algebra i.e., rank, SVD, eigendecomposition to foundation models, with governing equations stated explicitly; and (2) translate these results, including reported quantitative effect sizes, into concrete recommendations for a generic enterprise long-context RAG system in which KV-cache memory and attention FLOPs scale with context length n.