acceptodds
Published as a conference paper at NeurIPS 2026

Spectral Degeneration of Softmax Attention under Isotropic Score Geometry

Mengda Li, Jianfeng Yao

Abstract

We study the spectral structure of the 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, we replace the random token-space orientation of the score matrix by its canonical singular-value representative , and assume that has a logarithmic spike-bulk separation. We provide empirical diagnostics consistent with this model on pretrained vision and language transformers: token-space singular vectors exhibit near-Haar behavior, 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 spectrum converges weakly to . This provides a unified theoretical explanation for why attention layers can act as low-rank information extractors: they preserve a small number of dominant token directions while compressing the remaining bulk modes.

Keywords:
Sydney, Main Track

Reviews

Among:
Shape:
123456this paper, Bottom 49%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.33 over 3 reviews, above 49% of the others.
Reviewer_XnLyOpenReview ↗
Rating
5
Clarity
3
Confidence
4
Originality
3
Quality
4
Significance
3
Read review
Summary

Authors explore why softmax attention matrices tend toward low-rank or degenerate-looking spectral structure. They observe that query and key representations in trained networks exhibit approximate token-space rotational isotropy. This in turn motivates replacing the random-orientation score matrix with its canonical diagonal representative. Under spike-bulk separation assumption on the singular values of the canonical diagonal representative, the authors prove that the softmax attention matrix A is spectrally degenerate, meaning, spike eigenvalues and singular values converge to 1, bulk eigenvalues and singular values vanish, and the empirical spectral distribution converges weakly. It's interesting how the analysis is then extended to causal attention, where lower-triangularity yields harmonic bulk eigenvalue decay and a logarithmic rather than fast bulk singular value collapse. Authors finally also present empirical diagnostics on pretrained ViT and GPT-2 to support the motivating assumptions.

Strengths and weaknesses

This work gives a unified, model-agnostic theoretical explanation for attention degeneration. I think the Theorems 1–4 are clean and non-asymptotic where it matters. The causal attention analysis in Theorems 3 and 4 is arguably the most technically demanding and novel part. The sharp separation between the eigenvalue behavior and the singular value behavior (logarithmic effective rank rather than fast collapse) is subtle and correctly identified.

I think the gap between the assumptions and actual trained-model behavior is a major one. Assumption 1 (diagonalization in law) is a strong idealization that is justified by token-space isotropy of the input X rather than of the score matrix directly. isotropy of X does not mechanically imply isotropy of QK^T, since W_Q and W_K are learned and may introduce preferred directions. The authors acknowledge this but the empirical diagnostics in Section 4 measure isotropy of the hidden-state input matrix X rather than of S itself.

Assumption 2 is also quite strong. in my experience, score spectra show a continuous distribution that may have a relatively soft transition. Spike-bulk separation is supported by low stable rank and effective rank in Figure 3, but these aggregate measures are consistent with a wide range of spectral shapes like a power-law tail.

The paper is generally well-written.The decomposition is introduced cleanly, and the main results are provided with convergence rates, but i'd like to flag some key issues.

  • relationship between isotropy of X (empirical measure) and isotropy of the score matrix S (per theory) is not made explicit in the paper. A sentence clarifying this chain of reasoning with assumptions on W_Q, W_K is missing.
  • eigen-angle uniformity test is applied to U from X, but Assumption 1 is about the singular vectors of S = QK^T. The paper implicitly assumes inheritance of the isotropy of X via the projections, but this needs to be stated and proved.
  • In Remark 3 comparison between encoder and decoder architectures is an interesting speculation but is presented without any empirical corroboration or careful qualification. It is thought-provoking as conjecture, but could easily be over-interpreted.

Limitations are scattered through remarks and the checklist, but a consolidated discussion as a limitations section in the paper would be helpful.

The paper does not immediately suggest new algorithms, training procedures, or architectural modifications. The connection to the trained regime is an advance over prevuous work, but the empirical bridge between trained-model behavior and the isotropic diagonal model is weaker than one would like for a strong claim about trained Transformers specifically.

The causal attention results appear to be genuinely new. As far as I know, a rigorous treatment of causal attention degeneration at the singular-value level is novelty in the field.

The causal attention analysis using the Hardy inequality and the backward-difference factorization isthe most novel piece in my opinion. The connection to RaBitQ/TurboQuant token-space rotation invariance is an interesting observation about the geometry of feature-space vs. token-space rotation, despite the fact that it is a looser analogy.

I'd like to note that the empirical diagnostics are not so original because eigen-angle uniformity tests are standard in random matrix theory. The stable and effective rank measurements are pretty established as well. Experimental section is primarily diagnostic to back the theory instead of a new empirical finding.

Questions
  • The isotropy diagnostics measure Haar behavior of U from X, but the theory requires Haar behavior of the singular vectors of S. What conditions we'd need on WQ and WK for isotropy of X imply isotropy of S?
  • Can the authors provide empirical evidence that the actual spectral decay rates differ between trained encoder and decoder layers in a manner consistent with this theoretical prediction, or clearly label Remark 3 as speculative? Right now, it risks being read as a valid claim.
  • Do the authors expect the isotropy and spike-bulk assumptions to hold independently per head, or only when heads are aggregated? The empirical diagnostics in Figures 4-5 appear to average over heads before computing singular values, which might obscure per-head behavior.
  • What determines the number of spikes k? The theory takes k as given and characterizes degeneration as a function of k and l. But k itself depends on the data and the trained weights. What heurisitc and insight do authors have into what controls k in practice? For instance, does k scale with the number of semantically distinct tokens, or with the attention head dim?
Limitations

Yes, but there is no separate section in the main body for the limitations.

Outlined some limitations in questions section abvoe that can be addressed in the future iteration.

Paper formatting concerns

N/A

Final justification

The rebuttal addressed my main concern through direct per-head score diagnostics and comparisons between real and canonical attention spectra. The main remaining limitations are the strong modeling assumptions and the lack of analysis of the full multi-head Transformer block or downstream effects. The theoretical contribution of causal-attention analysis with the stronger empirical evidence, outweighs these limitations. I therefore recommend an upgrade my rating to accept.

1 comment

We sincerely thank the reviewer for the mathematically insightful and constructive comments, which helped us sharpen the assumptions, add new results, and clarify the empirical evidence. We especially appreciate the depth and quality of the reviewer's remarks.

Q1: When does isotropy of XX imply the required isotropy of SS?

  1. Mathematical side. This is a good point. We need to impose WQ,WKW_Q,W_K are fixed or independent of the random input XX (and independent of each other). A token-space rotation gives
Q=XWQ↦OQQ,K=XWK↦OKK,Q=XW_Q\mapsto O_Q Q,\qquad K=XW_K\mapsto O_K K,

and therefore

S=QK⊤dQK↦OQSOK⊤.S=\frac{QK^\top}{\sqrt{d_{QK}}}\mapsto O_Q SO_K^\top.

Thus the token-space rotation invariance can deduce the inherited bi-conjugation law. We state separately the stronger modeling hypothesis that the left/right score orientations are Haar and independent of Σh\Sigma_h.

  1. Empirical side, for the isotropy of SS. We conduct new experiment to directly test the Haar-invariance on SS to show USU_S and VSV_S are quite Haar-like. We bypass inference from XX by directly decomposing every actual per-head score. The GPT-2 server run contains all 1,646 nontrivial WikiText-103 validation sequences, 12 layers, and 12 heads (237,024 score SVDs) to calculate the the divergence of eigen-angle distribution of UU and VV to the uniform law:
ℓ\ell bandUU: KLUU: Kol.UU: W1W_1VV: KLVV: Kol.VV: W1W_1
17--640.340.040.310.340.040.31
65--1280.070.020.200.070.020.21
129--1920.020.010.160.020.010.16
193--2560.010.010.130.010.010.13
257--3200.010.010.120.010.010.12
321--3840.010.010.110.010.010.11
385--471<0.010.010.10<0.010.010.10

The ViT run contains all 3,925 Imagenette validation images, 12 layers, and 12 heads (565,200 score SVDs):

SideKL (×10−3)(\times10^{-3})Kolmogorov (×10−3)(\times10^{-3})Angular W1W_1
Left USU_S2.21 ± 0.724.20 ± 0.620.08 ± 0.04
Right VSV_S2.21 ± 0.724.21 ± 0.620.08 ± 0.04

These diagnostics test the orientation component. See also Reviewer WUoc Q1 and Reviewer CLzG Q3.

Figure R.3: GPT-2 actual-score Haar diagnostics.

https://anonymous.4open.science/r/attention-4ECD/rebuttal/invariance_check_S/gpt2_svd_distance_metrics_three.png

Figure R.4: ViT actual-score Haar diagnostics.

https://anonymous.4open.science/r/attention-4ECD/rebuttal/invariance_check_S/vit_svd_layer_distance_boxplot.png

The direct score experiments support the stronger Haar-orientation premise.

Q2: Do encoder and decoder spectra degenerate at different rates?

  1. Empirical side. ViT length cannot be swept asymptotically without changing the setup. Nevertheless, submitted-paper Figures 4--5, compare similar lengths: ViT-B/16 has ℓ=577\ell=577, and the longest GPT-2 sample on Wikitext has ℓ=471\ell=471. The encoder bulk is already very thin and at a smaller scale from early layers, whereas the decoder retains a broader bulk. This cross-model evidence is consistent with faster encoder degeneration.

  2. Mathematical side---new results. Under the theorem's aggregate-tail condition and k=o(ℓ)k=o(\ell), we derive stable rank

srank⁡(A)=(k+1)(1+o(1))\operatorname{srank}(A)=(k+1)(1+o(1))

for bidirectional attention. For causal attention with bounded bulk scores, we newly obtain

srank⁡(A)=ΘB!(k+log⁡ℓ+1k+1).\operatorname{srank}(A) =\Theta_B\\!\left(k+\log\frac{\ell+1}{k+1}\right).

The stable rank of encoder converges to k+1k+1 but the stable rank of decoder attention diverges with speed log⁡(ℓ)\log(\ell) (even though both LSD degenerates to δ0\delta_0 ). Similar results hold for effective ranks.

We hope these spectral rank proxies could serve as proxies to degeneration rate.

These theorems, the corresponding effective-rank estimates, and their proofs will be added in the revision.

Q3: Are the assumptions applied per head or after aggregating heads?

Our theory does not deal with multi-head explicitly. So if we put our framework into the context of MHA, the score-isotropy and spike--bulk assumptions are imposed per head. But for each head,

Sh=QhKh⊤dQK,rank⁡(Sh)≤dQK≪ℓ,S_h=\frac{Q_hK_h^\top}{\sqrt{d_{QK}}}, \qquad \operatorname{rank}(S_h)\le d_{QK}\ll\ell,

so every per-head score is structurally low rank. The current theory does not explicitly propagate through head concatenation, WOW_O, normalization, or residual composition; this is planned follow-up work.

Parenthetically, in the new score experiments, every ShS_h is decomposed independently and singular values are pooled only afterward (Figures R.5--R.6). See Reviewer WUoc Q3 and Reviewer CLzG Q4.

Figure R.5: https://anonymous.4open.science/r/attention-4ECD/rebuttal/score_bulk_spike/gpt2_score_svd_spike_bulk_by_layer_log_empirical_gap.png

Figure R.6: https://anonymous.4open.science/r/attention-4ECD/rebuttal/score_bulk_spike/vit_score_svd_spike_bulk_by_layer_log_empirical_gap.png

Q4: What controls the number of spikes kk?

  1. Empirical side. Experiment 4.2/Figure 3 shows that across WikiText-103 lengths 17--471, stable rank stays below about 2 and effective rank below about 30, with neither increasing substantially. Thus the effective number of dominant score directions remains finite/moderate over the tested range and does not appear to scale with length or semantic-token count.

  2. Mathematical side. Every head obeys

k≤rank⁡(Sh)≤dh=64.k\le\operatorname{rank}(S_h)\le d_h=64.

Fixed head dimension therefore provides an ℓ\ell-independent cap; within it, realized kk (per sample) depends on the input, layer/head, and learned query/key projections.

Exact spike-number estimation is a longstanding model-selection problem in statistics; see Jianfeng Yao, Shurong Zheng, and Zhidong Bai, Large Sample Covariance Matrices and High-Dimensional Data Analysis (Cambridge University Press, 2015). Usually the exact estimate of k does not matter that much once it is finite, or finitely bounded. Our results require finite/sublinear kk, not an exact estimator. See also Reviewer WUoc Q2 and Reviewer CLzG Q2.

Reviewer_CLzGOpenReview ↗
Rating
4
Clarity
2
Confidence
3
Originality
3
Quality
3
Significance
3
Read review
Summary

The paper studies spectral degeneration of softmax attention in Transformers. The authors propose an idealized model where the pre-softmax score matrix is replaced by a diagonal matrix of its singular values, motivated by token-space isotropy of query and key representations. Under a spike-bulk separation assumption, they prove that softmax preserves a few dominant directions while compressing most bulk directions, leading to attention spectra concentrated near 0 and 1. The paper gives results for both bidirectional and causal attention, including eigenvalue and singular-value behavior. It also provides empirical diagnostics on ViT and GPT-2 to support the isotropy and low effective-rank assumptions.

Strengths and weaknesses

Strengths

  • The paper studies an interesting problem: spectral degeneration and low-rank behavior of attention matrices. This is a relevant question for understanding Transformer information flow.
  • The math is clean once the proposed diagonal spectral model is accepted. The paper gives explicit eigenvalue and singular-value results, including for causal attention.
  • The empirical section tries to support the assumptions using ViT and GPT-2 diagnostics. This is useful, but the evidence is still indirect.

Weaknesses

  • The main weakness is the large gap between the theory and real attention. The paper analyzes softmax(Σ), where Σ is the diagonal matrix of singular values, but the real attention matrix is softmax(S). Since row-wise softmax is not rotation-invariant, singular values alone may not determine the attention spectrum.
  • The empirical evidence does not directly validate the central approximation. The paper checks isotropy and effective rank, but it does not show that softmax(Σ) actually predicts the spectrum of softmax(S) across real heads and layers.
  • The spike-bulk separation assumption is strong and not tested directly enough. The paper should show how often the claimed logarithmic separation appears in actual trained models.
  • The claimed explanation for real Transformer degeneration is therefore too strong. At present, the results seem more like a theory for an idealized canonical model than a convincing explanation of real attention.
Questions
  1. Can the authors directly compare the spectra of softmax(S) and softmax(Σ) on real trained models? This would be the most important experiment for me, because it tests whether the diagonal canonical model actually predicts the real attention matrix.

  2. How often does the proposed spike-bulk separation hold in practice across layers, heads, and model types? A plot of the score singular values, with the claimed spike and bulk regimes marked, would make the assumption much more convincing.

  3. Since row-wise softmax is not rotation-invariant, why should singular values alone control the attention spectrum after softmax? I would like the authors to clarify the mathematical or empirical justification for discarding token-space singular vectors.

  4. Can the authors report results not only for hidden-state input matrices, but also for the actual score matrices and attention matrices per head? This would help show whether the claimed degeneration is really a property of attention, not only of the input representation.

Limitations

Yes.

Paper formatting concerns

No formatting concerns

1 comment

We thank the reviewer for the thoughtful and constructive questions, which motivated direct spectral comparisons and clearer head-resolved evidence.

Q1: Can the spectra of softmax⁡(S)\operatorname{softmax}(S) and softmax⁡(Σ)\operatorname{softmax}(\Sigma) be compared directly?

  1. Empirical side. Yes. For every sample, layer, and head we independently decompose
Areal,h=softmax⁡row(Sh+M),A_{{\rm real},h}=\operatorname{softmax}_{\rm row}(S_h+M), AΣ,h=softmax⁡row(Σh+M),A_{\Sigma,h}=\operatorname{softmax}_{\rm row}(\Sigma_h+M),

and compute their bin-free W1W_1 distance before aggregation to show W1→ℓ→∞0W_1 \xrightarrow[\ell \to \infty]{} 0 (Figure R.1, Figure R.2).

GPT-2 per-head experiment is on WikiText-103, with 12 layers(12,096 comparisons). Each cell below is mean W1±W_1\pm standard deviation over 12 documents ×\times 12 heads, rounded to two decimals:

Layer641282563845127681024
80.39 ± 0.100.31 ± 0.070.22 ± 0.030.17 ± 0.020.14 ± 0.020.11 ± 0.030.11 ± 0.04
90.34 ± 0.080.28 ± 0.060.21 ± 0.020.16 ± 0.010.14 ± 0.010.11 ± 0.030.10 ± 0.04
100.37 ± 0.080.30 ± 0.050.22 ± 0.020.16 ± 0.010.13 ± 0.020.10 ± 0.030.09 ± 0.04
110.36 ± 0.060.28 ± 0.040.21 ± 0.020.16 ± 0.010.12 ± 0.010.10 ± 0.020.08 ± 0.02
120.31 ± 0.080.26 ± 0.050.20 ± 0.020.16 ± 0.010.13 ± 0.010.10 ± 0.010.08 ± 0.02

The all-layer median decreases from 0.3002 to 0.0942 and the last-layer median from 0.3290 to 0.0748 (Figure R.1). For ViT-B/16 on Imagenette, all 12 layer medians are below 0.104 over 2,880 comparisons (Figure R.2):

ViT layerMedian W1W_1IQR
10.04[0.02, 0.10]
20.07[0.04, 0.13]
30.10[0.05, 0.45]
40.09[0.07, 0.13]
50.07[0.06, 0.09]
60.07[0.06, 0.07]
70.06[0.05, 0.06]
80.06[0.05, 0.06]
90.05[0.04, 0.06]
100.04[0.03, 0.05]
110.04[0.04, 0.05]
120.04[0.03, 0.04]
  1. Mathematical connection. For the empirical singular-value measures
μreal,h(ℓ)=ℓ−1∑jδσj(Areal,h),μΣ,h(ℓ)=ℓ−1∑jδσj(AΣ,h),\mu_{{\rm real},h}^{(\ell)} =\ell^{-1}\sum_j\delta_{\sigma_j(A_{{\rm real},h})}, \qquad \mu_{\Sigma,h}^{(\ell)} =\ell^{-1}\sum_j\delta_{\sigma_j(A_{\Sigma,h})},

we have empirically the convergence of Wasserstein distance

W1(μreal,h(ℓ),μΣ,h(ℓ))→ℓ→∞0.W_1(\mu_{{\rm real},h}^{(\ell)}, \mu_{\Sigma,h}^{(\ell)}) \xrightarrow[\ell \to \infty]{} 0.

Because W1W_1 metrizes weak convergence together with first-moment convergence, W1→0W_1\to0 implies the same LSD whenever either sequence has a limit. This is an LSD-level comparison of equally weighted measures, not a claim that every leading spike agrees pointwise. See also Reviewer WUoc Q1 (for experiments details) and Reviewer CLzG Q3.

Figure R.1: GPT-2 real-versus-canonical attention LSD distance.

https://anonymous.4open.science/r/attention-4ECD/rebuttal/softmax_LSD_distance/gpt2_w1_all_and_last_layer_vs_seq_len.png

Figure R.2: ViT real-versus-canonical attention LSD distance.

https://anonymous.4open.science/r/attention-4ECD/rebuttal/softmax_LSD_distance/vit_w1_by_layer.png

Conclusion: The two spectra are compared directly, with a strong GPT-2 lengthwise decrease and small ViT layerwise distances.

Q2: How often does spike--bulk separation hold across layers, heads, and model types?

Every score SVD is computed independently per head. New experiments Figures R.5--R.6 pool the resulting singular values only after decomposition and show a lower bulk plus separated high-value group in every layer panel for representative GPT-2 and ViT inputs.

Experiment 4.2/Figure 3 adds dataset-scale GPT-2 evidence: stable rank remains below about 2 and effective rank below about 30 for 17≤ℓ≤47117\le\ell\le471, without substantial growth. Structurally, k≤rank⁡(Sh)≤dh=64k\le\operatorname{rank}(S_h)\le d_h=64. Thus the head dimension gives an ℓ\ell-independent cap, while the rank proxies show a much smaller effective dimension over the tested range. See also Reviewer WUoc Q2 and Reviewer XnLy Q4.

Figure R.5: GPT-2 actual score spectra.

https://anonymous.4open.science/r/attention-4ECD/rebuttal/score_bulk_spike/gpt2_score_svd_spike_bulk_by_layer_log_empirical_gap.png

Figure R.6: ViT actual score spectra.

https://anonymous.4open.science/r/attention-4ECD/rebuttal/score_bulk_spike/vit_score_svd_spike_bulk_by_layer_log_empirical_gap.png

The bulk-spike morphology appears throughout the displayed layers and model types.

Q3: Why should singular values alone control the spectrum after row-wise softmax?

  1. Empirical side. Figures R.1--R.2 directly test the post-softmax consequence: GPT-2 W1W_1 decreases from 0.3002 to 0.0942 across all layers and from 0.3290 to 0.0748 in the last layer; every ViT layer median is below 0.104. Separately, actual-score eigen-angle diagnostics on Wikitext show GPT-2 left/right orientations becoming increasingly Haar-like with length:
ℓ\ell bandUU: KLUU: Kol.UU: W1W_1VV: KLVV: Kol.VV: W1W_1
17--640.340.040.310.340.040.31
65--1280.070.020.200.070.020.21
129--1920.020.010.160.020.010.16
193--2560.010.010.130.010.010.13
257--3200.010.010.120.010.010.12
321--3840.010.010.110.010.010.11
385--471<0.010.010.10<0.010.010.10

ViT discrepancies on Imagenette are uniformly low across layers:

SideKL (×10−3)(\times10^{-3})Kolmogorov (×10−3)(\times10^{-3})Angular W1W_1
Left USU_S2.21 ± 0.724.20 ± 0.620.08 ± 0.04
Right VSV_S2.21 ± 0.724.21 ± 0.620.08 ± 0.04

These tests support the orientation premise; independence from Σh\Sigma_h remains an explicit hypothesis (Figures R.3--R.4).

Intuitively, the Haar measure imposes isotropy on the singular-vector directions, rendering their specific orientations structurally irrelevant. This justifies dropping the singular-vector matrices from our theoretical model.

  1. Mathematical side. Assumption 1 states S=dΣS\overset d=\Sigma. For the fixed-mask measurable map FM(X)=softmax⁡row(X+M)F_M(X)=\operatorname{softmax}_{\rm row}(X+M),
S=dΣ⟹FM(S)=dFM(Σ).S\overset d=\Sigma \quad\Longrightarrow\quad F_M(S)\overset d=F_M(\Sigma).

The Haar-induced diagonal reduction is initially used in Benaych-Georges and Nadakuditi (2011). See Reviewer WUoc Q1 and Reviewer XnLy Q1.

Figure R.3: https://anonymous.4open.science/r/attention-4ECD/rebuttal/invariance_check_S/gpt2_svd_distance_metrics_three.png

Figure R.4: https://anonymous.4open.science/r/attention-4ECD/rebuttal/invariance_check_S/vit_svd_layer_distance_boxplot.png

Under the stated diagonalization-in-law assumption, row-softmax preserves equality in law, and the orientation plus experiments support this prediction on trained models.

Q4: Can the authors report actual score and attention matrices per head?

Yes. We now report diagnostics computed from actual head-resolved matrices:

  1. For every Sh=QhKh⊤/dhS_h=Q_hK_h^\top/\sqrt{d_h}, we independently compute its SVD and test both score singular-vector matrices against Haar references.
  2. For the same head, we independently decompose the real attention
softmax⁡row(Sh+M)\operatorname{softmax}_{\rm row}(S_h+M)

and spectral-canonical attention softmax⁡row(Σh+M)\operatorname{softmax}_{\rm row}(\Sigma_h+M).

  1. Score histograms decompose each head before pooling singular values.
  2. We aggregate only scalar distances or histogram values; no head-averaged matrix is decomposed.

Primary paths are Figures R.1--R.6 above. Full GPT-2 per-layer actual-score diagnostics:

See Reviewer CLzG Q1/Q3 for the numerical summaries and Reviewer XnLy Q3 for the per-head theoretical context.

The added results are computed from actual per-head score and attention matrices, with aggregation only after each head has been analyzed independently.

Reviewer_WUocOpenReview ↗
Rating
4
Clarity
3
Confidence
4
Originality
3
Quality
2
Significance
2
Read review
Summary

The given paper studies the spectral structure of the softmax attention matrix in Transformer models. The authors follow classical framework and examine the softmax score matrix:

S=QK⊤dqk∈Rℓ×ℓ,S=\frac{QK^\top}{\sqrt{d_{qk}}}\in\mathbb{R}^{\ell\times \ell}, and the corresponding attention matrix: Aij=exp⁡(Sij)∑m=1ℓexp⁡(Sim).A_{ij} = \frac{\exp(S_{ij})}{\sum_{m=1}^{\ell}\exp(S_{im})}.

The main object of the paper is the spectrum of AA. The authors aim to explain why attention matrices often behave like low-rank operators: they preserve a small number of dominant directions while compressing the remaining spectral mass. The central problem is to understand the origin of spectral degeneration in softmax attention. Previous works have studied rank collapse in attention networks, but mostly in depth, at initialization, or under simplified random score models. This paper instead tries to explain degeneration through the geometry of the score matrix in trained Transformers.

The authors assume that the token-space singular vectors of SS behave approximately like Haar-distributed orthogonal matrices. Under this isotropy assumption, the random token-space orientation is averaged out, and the score matrix is replaced by its diagonal spectral representative

\qquad \Sigma=\operatorname{diag}(s_1,\dots,s_\ell),$$ where $$s_1\geq s_2\geq \cdots \geq s_\ell \geq 0$$ are the singular values of $S$. Based on the following theoretical ideas the paper states four main theorems. Theorem 1 analyzes the singular values of the bidirectional softmax attention matrix in the canonical diagonal model $$A=\operatorname{softmax}(\Sigma).$$ Under the spike-bulk separation assumption, the theorem shows that the singular values of $A$ become nearly degenerate. The spike directions produce singular values close to $1$, while the bulk singular values converge to $0$. In other words, softmax attention preserves only a small number of dominant spectral directions and suppresses the rest. Theorem 2 analyzes the eigenvalues of the same matrix $A=\operatorname{softmax}(\Sigma)$. The main result is that all eigenvalues are real and lie in $[0,1]$. The spike eigenvalues converge to $1$, while the bulk eigenvalues converge to $0$. Thus, Theorem 2 gives an eigenvalue-level version of the spectral degeneration result. Theorem 3 extends the analysis to causal attention. In the canonical causal model. The theorem shows that spike eigenvalues converge to $1$, while bounded bulk scores lead to harmonic decay. Theorem 4 studies the singular values of causal attention, which are more difficult to characterize than eigenvalues because triangularity does not directly determine singular values. Overall, the results show that the paper gives a coherent conditional explanation of attention degeneration. Under the spectral canonical model and the spike-bulk assumption, softmax attention acts as a nonlinear spectral filter: spike directions are preserved, while the bulk spectrum collapses toward zero. The main theoretical result is the singular-value degeneration theorem, which formalizes the low-rank behavior of bidirectional attention. The eigenvalue theorem supports the same conclusion, and the causal-attention results show that causal masking weakens but does not remove the degeneration mechanism. The experiments are mainly diagnostic rather than conclusive. They support the assumptions of the theory by showing approximate token-space isotropy in pretrained ViT and GPT-2 models, using eigen-angle distributions of singular-vector matrices. They also show that GPT-2 score matrices have moderate stable rank and effective rank, suggesting that only a small number of spectral directions dominate. Additional attention-spectrum plots indicate stronger degeneration in deeper layers. Thus, the experiments are consistent with the proposed theory, but they do not fully prove that real attention matrices are governed by the diagonal canonical model $S \overset{d}{=} \Sigma$. The main empirical limitation is that the evidence is restricted to a small set of pretrained models and datasets, and the key modeling assumption remains stronger than what the experiments directly verify.
Strengths and weaknesses

Strengths:

  1. The paper proposes a clear mathematical mechanism for attention degeneration. Under the spike-bulk assumption, softmax attention preserves spike directions and collapses the bulk spectrum.

  2. The main theoretical result is informative: for the canonical model , the authors obtain explicit asymptotics.

  3. The paper studies both singular values and eigenvalues. This gives a more complete spectral picture than works that only analyze rank or singular-value collapse.

  4. The extension to causal attention is valuable. The paper shows that causal masking changes the degeneration pattern: the bulk does not collapse as fast as in bidirectional attention, but only logarithmically many bulk singular directions remain significant.

  5. The results of first experiments are promising and fit the paper logic.

Weaknesses:

  1. The main weakness is the strong modeling assumptions. Since row-wise softmax is not orthogonally invariant, replacing S=UΣV⊤S=U\Sigma V^\top by Σ\Sigma is not automatically justified. Also there are several moments with token-space orthogonal invariance which isn't justified somehow.

  2. Showing that singular-vector eigen-angles look approximately Haar does not fully prove that the diagonal canonical model accurately predicts real attention matrices.

  3. The spike-bulk assumption is mathematically convenient but not fully validated.

  4. While the theoretical results are valid the theory itself is still very unreliable. Sometimes the assumptions and theorem limitations are closer to tautology rather than the developments of the problem.

  5. Experiments 4.2. looks like general AI-based experiment rather than informative part of the research.

Questions

Thank you for your paper!

Questions:

  1. The central theoretical reduction assumes that the score matrix can be replaced by its spectral canonical representative. Since row-wise softmax is not invariant under orthogonal changes of basis, what justifies this replacement beyond the observed approximate isotropy of singular vectors? In practice it should be somehow quantifiable.

  2. The spike-bulk assumption requires a logarithmic separation of the form. Did you consider the real case scenario for the law of separation?

  3. It is more a suggestion, rather than a question. As far as I understand, the main paper consider only attention part of the Transformer architecture without any MHA, LayerNorm, etc. parts. It would be nice to examine the changes of the law of score matrix under different functional replacements. Benefits are obvious and it still easy to cinsider using your framework.

Limitations

The authors proposed list of assumptions. The proxy-tipe of analysis is provided to justify their theoretical claims on practice, but the assumptions are much stronger and requires additional examination.

Paper formatting concerns

Everything is good.

Final justification

The authors provided full explanation to all my questions, therefore I think it is possible to raise the final score.

1 comment

We sincerely thank the reviewer for the careful reading and constructive remarks, which prompted us to strengthen the score-level experiments and clarify the scope of the theory.

Q1: What justifies replacing the real score matrix by its spectral representative?

  1. Empirical side. We directly compare the actual per-head attention
Areal,h=softmax⁡row(Sh+M)A_{{\rm real},h}=\operatorname{softmax}_{\rm row}(S_h+M)

with the spectral-canonical attention

AΣ,h=softmax⁡row(Σh+M),Σh=diag⁡(svdvals⁡(Sh)).A_{\Sigma,h}=\operatorname{softmax}_{\rm row}(\Sigma_h+M), \qquad \Sigma_h=\operatorname{diag}(\operatorname{svdvals}(S_h)).

Every score and attention SVD is computed independently per sample, layer, and head. For the empirical singular-value measures

μreal,h(ℓ)=ℓ−1∑jδσj(Areal,h),μΣ,h(ℓ)=ℓ−1∑jδσj(AΣ,h),\mu_{{\rm real},h}^{(\ell)} =\ell^{-1}\sum_j\delta_{\sigma_j(A_{{\rm real},h})}, \qquad \mu_{\Sigma,h}^{(\ell)} =\ell^{-1}\sum_j\delta_{\sigma_j(A_{\Sigma,h})},

by the Wasserstein distance W1(μreal,h(ℓ),μΣ,h(ℓ))W_1(\mu_{{\rm real},h}^{(\ell)},\mu_{\Sigma,h}^{(\ell)}). Our new experiments (Figure R.1, Figure R.2) show empirically W1(μreal,h(ℓ),μΣ,h(ℓ))→ℓ→∞0W_1(\mu_{{\rm real},h}^{(\ell)}, \mu_{\Sigma,h}^{(\ell)}) \xrightarrow[\ell \to \infty]{} 0.

We use W1W_1 because it is bin-free and metrizes weak convergence together with first-moment convergence; therefore W1→0W_1\to0 implies asymptotically equivalent LSDs whenever either limit exists.

New experiment on LSD distance:

For GPT-2, we use 12 WikiText-103 validation documents, seven nested sequence lengths, all 12 layers, and all 12 heads, giving 12,096 matched comparisons. Figure R.1 reports the all-layer and last-layer medians with IQRs.

To make the layer-wise convergence explicit, the table below reports mean W1±W_1\pm standard deviation for the last five layers; every cell summarizes the same 12 documents ×\times 12 heads (144 matched per-head distances). Representative last-layer rows, rounded to two decimals, are:

GPT-2 layer641282563845127681024
80.39 ± 0.100.31 ± 0.070.22 ± 0.030.17 ± 0.020.14 ± 0.020.11 ± 0.030.11 ± 0.04
90.34 ± 0.080.28 ± 0.060.21 ± 0.020.16 ± 0.010.14 ± 0.010.11 ± 0.030.10 ± 0.04
100.37 ± 0.080.30 ± 0.050.22 ± 0.020.16 ± 0.010.13 ± 0.020.10 ± 0.030.09 ± 0.04
110.36 ± 0.060.28 ± 0.040.21 ± 0.020.16 ± 0.010.12 ± 0.010.10 ± 0.020.08 ± 0.02
120.31 ± 0.080.26 ± 0.050.20 ± 0.020.16 ± 0.010.13 ± 0.010.10 ± 0.010.08 ± 0.02

This is the requested quantitative evidence that the spectral discrepancy decreases in the long-sequence regime.

For ViT-B/16, we use 20 class-balanced Imagenette images, all 12 layers, and all 12 heads, giving 2,880 matched comparisons. Each layer boxplot contains 240 image-head values (Figure R.2); representative layers, rounded to two decimals, are:

ViT layerMedian W1W_1IQR
10.04[0.02, 0.10]
20.07[0.04, 0.13]
30.10[0.05, 0.45]
40.09[0.07, 0.13]
50.07[0.06, 0.09]
60.07[0.06, 0.07]
70.06[0.05, 0.06]
80.06[0.05, 0.06]
90.05[0.04, 0.06]
100.04[0.03, 0.05]
110.04[0.04, 0.05]
120.04[0.03, 0.04]

New experiment on Haar-invariance test of pre-softmax score matrix SS:

We also test the actual score decomposition Sh=UShΣhVSh⊤S_h=U_{S_h}\Sigma_hV_{S_h}^{\top} to show the singular vector direction is uniformly random, which motivates our decision to omit the singular-vector matrices from the model.

The GPT-2 experiment covers all 1,646 nontrivial WikiText-103 validation sequences with 17≤ℓ≤47117\le\ell\le471, all 12 layers, and all 12 heads, for 237,024 actual-score SVDs. Each entry below is the mean ±\pm standard deviation over all head-layer observations in the indicated length band;

ℓ\ell bandUU: KLUU: Kol.UU: W1W_1VV: KLVV: Kol.VV: W1W_1
17--640.340.040.310.340.040.31
65--1280.070.020.200.070.020.21
129--1920.020.010.160.020.010.16
193--2560.010.010.130.010.010.13
257--3200.010.010.120.010.010.12
321--3840.010.010.110.010.010.11
385--471<0.010.010.10<0.010.010.10

Thus every metric decreases monotonically across these length bands, with nearly identical behavior on the left and right.

The ViT-B/16 run covers all 3,925 Imagenette validation images, all 12 layers, and all 12 heads, for 565,200 actual-score SVDs. The next table gives the pooled mean ±\pm standard deviation;

SideKL (×10−3)(\times10^{-3})Kolmogorov (×10−3)(\times10^{-3})Angular W1W_1
Left USU_S2.21 ± 0.724.20 ± 0.620.08 ± 0.04
Right VSV_S2.21 ± 0.724.21 ± 0.620.08 ± 0.04

The very narrow ranges of the ViT layer means show that these low discrepancies hold throughout the network rather than arising from a favorable subset of layers (see Figures R.4).

These diagnostics test the orientation component; independence from Σh\Sigma_h remains an explicit hypothesis (Figures R.3--R.4).

  1. Mathematical side. Assumption 1 states S=dΣS\overset d=\Sigma, motivated by the standard invariant-ensemble basis reduction used by Benaych-Georges and Nadakuditi, The eigenvalues and eigenvectors of finite, low rank perturbations of large random matrices, Adv. Math. 227(1), 2011, with Haar left/right orientations independent of Σ\Sigma. For the fixed-mask measurable map
FM(X)=softmax⁡row(X+M),F_M(X)=\operatorname{softmax}_{\rm row}(X+M),

equality in distribution is preserved:

S=dΣ⟹FM(S)=dFM(Σ).S\overset d=\Sigma \quad\Longrightarrow\quad F_M(S)\overset d=F_M(\Sigma).

Thus the replacement is the direct consequence of the stated assumption, and the W1W_1 experiment tests its post-softmax weak-LSD prediction. See also Reviewer CLzG Q1/Q3 and Reviewer XnLy Q1.

Figure R.1: GPT-2 real-versus-canonical attention LSD distance.

https://anonymous.4open.science/r/attention-4ECD/rebuttal/softmax_LSD_distance/gpt2_w1_all_and_last_layer_vs_seq_len.png

Figure R.2: ViT real-versus-canonical attention LSD distance.

https://anonymous.4open.science/r/attention-4ECD/rebuttal/softmax_LSD_distance/vit_w1_by_layer.png

Figure R.3: GPT-2 actual-score Haar diagnostics.

https://anonymous.4open.science/r/attention-4ECD/rebuttal/invariance_check_S/gpt2_svd_distance_metrics_three.png

Figure R.4: ViT actual-score Haar diagnostics.

https://anonymous.4open.science/r/attention-4ECD/rebuttal/invariance_check_S/vit_svd_layer_distance_boxplot.png

The replacement is justified by S=dΣS\overset d=\Sigma and is empirically supported by the decreasing real-versus-canonical W1W_1 discrepancy and actual-score orientation diagnostics.

Q2: Does the spike--bulk separation occur for real score matrices?

  1. Empirical side. We compute the SVD of every actual per-head score ShS_h independently and pool singular values only afterward within each layer. Figures R.5--R.6 show all 12 layers and heads for a 1024-token GPT-2 WikiText input and a 577-token ViT-B/16 Imagenette input. The log-scale histograms display a lower bulk and a separated high-value group throughout the layer panels. The color split is placed at the largest adjacent gap in the upper half of the layer-median per-head scree curve.

Experiment 4.2/Figure 3 supplies dataset-scale GPT-2 evidence: for 17≤ℓ≤47117\le\ell\le471, stable rank stays below about 2 and effective rank below about 30, with no substantial growth in length. This supports a finite/moderate effective number of dominant directions over the tested range, supporting that kk is finite, or bounded in practice.

  1. Theory side. The use of a bulk-spiked model is also consistent with the established use of spiked random-matrix models for learned real-data representations; see Seddik et al., Random Matrix Theory Proves that Deep Learning Representations of GAN-data Behave as Gaussian Mixtures, ICML 2020, where they show that GAN image data is spectrally similar to spiked Gaussian models. See also Reviewer CLzG Q2 and Reviewer XnLy Q4.

Figure R.5: GPT-2 actual score spectra.

https://anonymous.4open.science/r/attention-4ECD/rebuttal/score_bulk_spike/gpt2_score_svd_spike_bulk_by_layer_log_empirical_gap.png

Figure R.6: ViT actual score spectra.

https://anonymous.4open.science/r/attention-4ECD/rebuttal/score_bulk_spike/vit_score_svd_spike_bulk_by_layer_log_empirical_gap.png

The representative GPT-2 and ViT inputs show a practical bulk--spike morphology in every layer panel, and the GPT-2 rank proxies remain finite/moderate over the tested lengths.

Q3: Can the framework include MHA, LayerNorm, and other Transformer components?

The present paper isolates the attention operator and does not propagate the spectral law through head concatenation, WOW_O, residual addition, and normalization. The analyzed scores are nevertheless extracted from intact pretrained networks, so they already reflect the upstream normalization and residual dynamics that determine the attention input. Explicit propagation through the complete multi-head block is an important and ambitious direction that we are pursuing in follow-up work. See Reviewer XnLy Q3 for the per-head formulation and Reviewer CLzG Q4 for the head-resolved diagnostics.

The current theory covers isolated attention; explicit MHA composition, output projection, residual propagation, and normalization remain future extensions.

Comments on the paper

1 comment
Meta-review

The paper studies why softmax attention matrices often behave like low-rank operators. The main idea is to replace the pre-softmax score matrix with a diagonal matrix containing its singular values. Under an isotropic score model and a spike-bulk separation assumption, the authors show that softmax preserves a small number of dominant directions while pushing most of the remaining spectrum toward zero.

The paper gives explicit results for both eigenvalues and singular values, and the causal-attention analysis appears to be the most technically interesting and novel part.

The main concern is the large gap between the theoretical model and real Transformer attention. The paper studies softmax(Σ)softmax(\Sigma), where Σ\Sigma is the diagonal matrix of singular values, instead of the actual attention score matrix SS. More broadly, the paper seems to start from empirical observations in pretrained models and then derive sufficient conditions under which spectral degeneration occurs. However, it does not convincingly establish that these conditions hold in realistic settings.

A direct validation of whether these assumptions hold for practical pretrained model weights is necessary, since the observed spectral degeneration could arise from several different mechanisms. Without such evidence, it is difficult to know whether the proposed theory captures the actual cause of the phenomenon or only one possible sufficient condition. I would also like to see more practical insight into when this degeneration occurs, how it varies across layers and attention heads, and whether it has any measurable effect on model behavior or performance.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.