arXiv:2611.02778cs.LGNov 2026

Manuscript Offprint

arXiv:2611.02778

Spectral Degeneration of Self-Attention under Isotropic Score Geometry

Mengda Li, Jianfeng Yao

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We study the spectral structure of the self-attention matrix in Transformer models through an idealized spectral model for the pre-softmax score matrix. Motivated by the rotational isotropy of query and key representations, our model replaces the random token-space orientation of the score matrix by its canonical singular-value representative with a logarithmic spike–bulk separation. Empirical diagnostics on pretrained vision and language transformers motivate this model: token-space singular matrices have nearly uniform eigen-angle distributions, and score spectra are dominated by a small number of effective directions. We then prove that the row-wise softmax map transforms this structure into a degenerate attention matrix: dominant modes are preserved, whereas the bulk spectral distributions concentrate at zero. Stable rank remains bounded for bidirectional attention but grows logarithmically for causal attention. Within the canonical model, these results explain how attention can preserve a small number of dominant directions while compressing the remaining bulk modes.

1 Introduction

Transformers have become the dominant architecture in modern machine learning, powering large language models and state-of-the-art systems in vision, speech, and multimodal learning. Introduced in the seminal work “Attention Is All You Need” [Vaswani et al., 2017], the transformer replaces recurrence and convolution with a simple yet powerful mechanism: self-attention.

Given query and key matrices Q,KQ, K, self-attention computes a score matrix S=QK⊤/dqkS = QK^\top / \sqrt{d_{qk}}, followed by a row-wise softmax normalization A=softmax(S)A = \text{softmax}(S), which defines how information is aggregated across tokens. This mechanism is at the core of language models such as BERT [Devlin et al., 2019, Liu et al., 2019] and GPT-style architectures [Radford et al., 2018, 2019, Brown et al., 2020] and vision models such as Vision Transformers (ViT) [Dosovitskiy et al., 2021], enabling scalable modeling of long-range dependencies.

Despite its empirical success, the theoretical understanding of attention remains limited, especially in the trained regime. A central open question is to characterize the structure of the attention matrix AA, which governs information flow and expressivity [Bordelon et al., 2024, Sakai et al., 2025]. Recent studies [Dong et al., 2021, Noci et al., 2022, Nait Saada et al., 2025, Hayase et al., 2026, Sanyal et al., 2026] suggest that attention matrices often exhibit degeneration phenomena, where they become close to low-rank or even rank-one structures in deep layers. Understanding the origin of this degeneration is critical for explaining both the strengths and limitations of transformer models.

In this paper, we propose a new perspective based on the geometry of the query and key matrices. Motivated by isotropy diagnostics in trained representations, we study a canonical spectral model that isolates a mechanism of attention degeneration under softmax normalization. Specifically, we hypothesize that in trained transformers, the query and key matrices exhibit an approximate token-

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

space orthogonal invariance, meaning that their token-space singular vectors behave as if they were drawn from a Haar distribution.

This is analogous to the feature-space rotational invariance exploited in RaBitQ [Gao and Long, 2024, Gao et al., 2025] and TurboQuant [Zandieh et al., 2026], where random rotations in feature space support efficient quantization. A shared orthogonal right rotation, (Q,K)↦(QR,KR)(Q, K) \mapsto (QR, KR), preserves the score matrix SS. In contrast, left rotation Q↦UQQ \mapsto UQ acts on the token dimension and does not preserve SS in the deterministic way, but instead characterizes its statistical structure.

In high dimension this isotropic picture has a concrete implication for the entries Sij=⟨qi,kj⟩/dqkS_{ij} = \langle q_i, k_j \rangle / \sqrt{d_{qk}}, where qiq_i and kjk_j are token-level query and key vectors. When distinct-token directions are approximately independent and isotropic, their cosine similarities satisfy ⟨qi,kj⟩/(∥qi∥2∥kj∥2)→0\langle q_i, k_j \rangle / (\|q_i\|_2 \|k_j\|_2) \to 0 for i≠ji \neq j, in probability as the feature dimension grows. This concentration describes angular geometry rather than the magnitude of the scaled scores, which also depends on query and key norms. It motivates studying score spectra separately from their orientation. In our spectral surrogate model, we keep the singular values and replace the token-space orientation by the canonical representative Σ\Sigma.

Empirical observation. We support this hypothesis with empirical evidence from both vision and language models: a pretrained Vision Transformer evaluated on Imagenette [Howard, 2019], and GPT-2 evaluated on Wikitext-103. Across these settings, the token-space singular matrices exhibit spectral behavior consistent with Haar-distributed orthogonal matrices. In particular, their eigen-angle distributions are close to uniform on the unit circle, consistent with one spectral consequence of token-space isotropy. Details are discussed in Section 4.

From geometry to degeneration. Motivated by high-dimensional isotropy, we analyze softmax(Σ\Sigma) and its causal counterpart, where the diagonal surrogate Σ\Sigma contains the singular values of SS. We assume that bulk values lie below log⁡ℓ\log \ell and spikes above it, with diverging additive margins.

In the bidirectional model, softmax normalization makes bulk rows asymptotically uniform, while spike weights dominate the normalization and concentrate rows on canonical basis vectors. When the number of spikes satisfies k=o(ℓ)k = o(\ell), the leading k+1k+1 singular values and eigenvalues converge to 1, while the rest vanish. We extend this spike-bulk analysis to causal attention and generalized row-normalized attention maps.

Main contributions. Our contributions can be summarized as follows:

  • We formulate a canonical diagonal score model motivated by token-space isotropy and provide empirical diagnostics of token-space geometry in pretrained transformers.
  • We characterize the eigenvalue and singular-value spectra of canonical bidirectional attention and show that, under spike-bulk separation, their empirical distributions concentrate on {0,1}\{0, 1\}. Our results include a non-asymptotic characterization of the ordered eigenvalues and spectral profiles with explicit error bounds.
  • To the best of our knowledge, we provide the first joint characterization of eigenvalue and singular-value degeneration in causal attention. Under the canonical spike-bulk score model, we derive exact eigenvalues and quantitative singular-value bounds, showing that bounded bulk scores yield harmonic bulk eigenvalue decay and at most logarithmically many bulk singular values above any fixed positive threshold.

References (100)

Couldn't load all references. Reload the page to try again.