potentialpaper

Spectral Degeneration of Self-Attention under Isotropic Score Geometry

Mengda Li, Jianfeng Yao

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. An isotropic spectral model of pre-softmax scores explains why softmax attention preserves a few dominant directions while collapsing the remaining spectrum.

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.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
27 Apr 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:44 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
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.

Final justification

The authors did a great job in the rebuttal by clarifying the assumptions and providing additional ablation studies. Given this additional evidence, all reviewers found the paper’s original contributions convincing and led to a positive assessment.

Area Chair B96v · Meta-reviewOpenReview ↗
Read meta-review
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.

Final justification

The authors did a great job in the rebuttal by clarifying the assumptions and providing additional ablation studies. Given this additional evidence, all reviewers found the paper’s original contributions convincing and led to a positive assessment.

2 comments
Authors · CommentOpenReview ↗

Direct Empirical Tests and Scope Clarification

We thank the AC for identifying the central question: whether the canonical model captures real trained attention rather than merely providing one sufficient mechanism. The rebuttal adds direct empirical tests targeting this concern, on both causal GPT-2 and bidirectional ViT-B/16.

1. Direct LSD-level comparison on real attention. For every sample, layer, and head, we independently compare

Areal,h=softmax⁡row(Sh+M)A_{{\rm real},h}=\operatorname{softmax}_{\rm row}(S_h+M)

and

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

using the Wasserstein-1 distance between their empirical singular-value measures before aggregation. Thus this tests the model's post-softmax spectral prediction rather than only a property of hidden states or score singular vectors. For GPT-2, 12 documents, seven lengths, 12 layers, and 12 heads give 12,096 matched comparisons. As length grows from 64 to 1024, the all-layer median distance decreases from 0.3002 to 0.0942, and the last-layer median from 0.3290 to 0.0748. For ViT-B/16, 20 images across all 12 layers and 12 heads give 2,880 comparisons; every layer median is below 0.104. Since Wasserstein-1 metrizes weak convergence together with first-moment convergence, these results show small empirical-law discrepancy for ViT and a strong lengthwise decrease for GPT-2 (Figures R.1--R.2). This is an equally weighted LSD-level comparison, not a claim that every leading spike agrees pointwise.

2. Evidence on actual pretrained scores. The post-softmax comparison above is our primary practical bridge because it directly tests the canonical model's spectral consequence. We do not claim that singular-vector eigen-angle diagnostics alone establish a full Haar law or independence from the singular values; the latter remains an explicit modeling hypothesis.

For spike--bulk structure, Figures R.5--R.6 show independently decomposed per-head score spectra across every displayed layer of representative GPT-2 and ViT inputs. The dataset-scale GPT-2 experiment further shows stable rank below about 2 and effective rank below about 30 for lengths 17--471, without substantial growth (submitted-paper Figure 3). In both tested checkpoints, each head also has score rank at most 64. This supports a finite/moderate effective number of dominant directions over the tested range. We do not identify the descriptive finite-sample eigengap with the theorem's exact asymptotic logarithmic cutoff, which remains an assumption.

3. Layer/head resolution and mask dependence. All new approximation comparisons are head-resolved and layer-resolved. GPT-2 canonical-model fit improves strongly with length; at length 1024 the last-layer median is 0.0748 versus 0.0942 across all layers. ViT distances remain small across all layers, while the boxplots expose head/layer heterogeneity. Separately, the submitted attention-spectrum plots show stronger degeneration in deeper layers. Under the theorem's assumptions and finite spike count, bidirectional stable rank approaches the spike count plus one, whereas causal attention retains an additional logarithmic bulk contribution. The comparable-length ViT/GPT-2 plots provide cross-model evidence consistent with this distinction, rather than a controlled masking ablation.

4. Scope and downstream behavior. We agree that the present evidence is operator-level: it is consistent with the proposed mechanism on scores and attention from pretrained models, but does not establish that degeneration is uniquely caused by this mechanism or that it improves or harms task performance. A causal performance claim would require controlled interventions on score geometry, which are beyond the current theoretical paper. We will make this limitation explicit, avoid interpreting compression itself as a performance result, and state the contribution as a conditional mechanism whose LSD-level prediction is supported by trained-model evidence. Full propagation through head concatenation, output projection, residual connections, and normalization likewise remains future work.

Figures R.1--R.6 are linked in our reviewer rebuttals; all materials, including the reproduced score-rank plot, are collected at: https://anonymous.4open.science/r/attention-4ECD/rebuttal/

Authors · CommentOpenReview ↗

Additional Figures

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

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

Full GPT-2 per-layer actual-score Haar diagnostics:

Reviewer XnLyOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
4/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
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.

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.

Formatting concerns

N/A

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

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 band UU: KL UU: Kol. UU: W1W_1 VV: KL VV: Kol. VV: W1W_1
17--64 0.34 0.04 0.31 0.34 0.04 0.31
65--128 0.07 0.02 0.20 0.07 0.02 0.21
129--192 0.02 0.01 0.16 0.02 0.01 0.16
193--256 0.01 0.01 0.13 0.01 0.01 0.13
257--320 0.01 0.01 0.12 0.01 0.01 0.12
321--384 0.01 0.01 0.11 0.01 0.01 0.11
385--471 <0.01 0.01 0.10 <0.01 0.01 0.10

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

Side KL (×10−3)(\times10^{-3}) Kolmogorov (×10−3)(\times10^{-3}) Angular W1W_1
Left USU_S 2.21 ± 0.72 4.20 ± 0.62 0.08 ± 0.04
Right VSV_S 2.21 ± 0.72 4.21 ± 0.62 0.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 XnLy · CommentOpenReview ↗

Thank you for the detailed response and additional experiments. The new per-head score diagnostics and direct comparison between real and canonical attention spectra address my main concerns and strengthen the empirical support for the theory. The framework still relies on strong assumptions and does not cover the full multi-head Transformer block, but these limitations are now clearly stated. The rebuttal has improved my assessment of this work, and I will update my final justification accordingly.

Authors · CommentOpenReview ↗

Thank you!

Thank you very much for your follow-up and for taking the time to examine our rebuttal and additional experiments so carefully. We are deeply grateful for the care, rigor, and depth of your review!

Reviewer CLzGOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
2/4
Significance
3/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
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.

Formatting concerns

No formatting concerns

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

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:

Layer 64 128 256 384 512 768 1024
8 0.39 ± 0.10 0.31 ± 0.07 0.22 ± 0.03 0.17 ± 0.02 0.14 ± 0.02 0.11 ± 0.03 0.11 ± 0.04
9 0.34 ± 0.08 0.28 ± 0.06 0.21 ± 0.02 0.16 ± 0.01 0.14 ± 0.01 0.11 ± 0.03 0.10 ± 0.04
10 0.37 ± 0.08 0.30 ± 0.05 0.22 ± 0.02 0.16 ± 0.01 0.13 ± 0.02 0.10 ± 0.03 0.09 ± 0.04
11 0.36 ± 0.06 0.28 ± 0.04 0.21 ± 0.02 0.16 ± 0.01 0.12 ± 0.01 0.10 ± 0.02 0.08 ± 0.02
12 0.31 ± 0.08 0.26 ± 0.05 0.20 ± 0.02 0.16 ± 0.01 0.13 ± 0.01 0.10 ± 0.01 0.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 layer Median W1W_1 IQR
1 0.04 [0.02, 0.10]
2 0.07 [0.04, 0.13]
3 0.10 [0.05, 0.45]
4 0.09 [0.07, 0.13]
5 0.07 [0.06, 0.09]
6 0.07 [0.06, 0.07]
7 0.06 [0.05, 0.06]
8 0.06 [0.05, 0.06]
9 0.05 [0.04, 0.06]
10 0.04 [0.03, 0.05]
11 0.04 [0.04, 0.05]
12 0.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 band UU: KL UU: Kol. UU: W1W_1 VV: KL VV: Kol. VV: W1W_1
17--64 0.34 0.04 0.31 0.34 0.04 0.31
65--128 0.07 0.02 0.20 0.07 0.02 0.21
129--192 0.02 0.01 0.16 0.02 0.01 0.16
193--256 0.01 0.01 0.13 0.01 0.01 0.13
257--320 0.01 0.01 0.12 0.01 0.01 0.12
321--384 0.01 0.01 0.11 0.01 0.01 0.11
385--471 <0.01 0.01 0.10 <0.01 0.01 0.10

ViT discrepancies on Imagenette are uniformly low across layers:

Side KL (×10−3)(\times10^{-3}) Kolmogorov (×10−3)(\times10^{-3}) Angular W1W_1
Left USU_S 2.21 ± 0.72 4.20 ± 0.62 0.08 ± 0.04
Right VSV_S 2.21 ± 0.72 4.21 ± 0.62 0.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 CLzG · CommentOpenReview ↗

Acknowledging author response - maintaining score

I would like to thank the authors for their thorough response. The clarifications provided—particularly the detailed empirical diagnostics and mathematical justifications explaining why singular values alone control the spectrum after row-wise softmax (Q3)—have successfully addressed my main concerns. I am satisfied with the proposed revisions and will keep my positive score for this submission.

Authors · CommentOpenReview ↗

Thank you

Thank you for your follow-up. We are glad that the additional analyses and clarifications addressed your concerns, and we will incorporate the proposed revisions into the next version of the manuscript.

Reviewer WUocOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
2/4
Clarity
3/4
Significance
2/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
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

S=dΣ,Σ=diag⁡(s1,…,sℓ),S \overset{d}{=} \Sigma, \qquad \Sigma=\operatorname{diag}(s_1,\dots,s_\ell),

where

s1≥s2≥⋯≥sℓ≥0s_1\geq s_2\geq \cdots \geq s_\ell \geq 0

are the singular values of SS.

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=softmax⁡(Σ).A=\operatorname{softmax}(\Sigma).

Under the spike-bulk separation assumption, the theorem shows that the singular values of AA become nearly degenerate. The spike directions produce singular values close to 11, while the bulk singular values converge to 00. 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=softmax⁡(Σ)A=\operatorname{softmax}(\Sigma). The main result is that all eigenvalues are real and lie in [0,1][0,1]. The spike eigenvalues converge to 11, while the bulk eigenvalues converge to 00. 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 11, 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=dΣ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.

Final justification

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

Formatting concerns

Everything is good.

6 comments
Authors · RebuttalOpenReview ↗
Rebuttal

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 layer 64 128 256 384 512 768 1024
8 0.39 ± 0.10 0.31 ± 0.07 0.22 ± 0.03 0.17 ± 0.02 0.14 ± 0.02 0.11 ± 0.03 0.11 ± 0.04
9 0.34 ± 0.08 0.28 ± 0.06 0.21 ± 0.02 0.16 ± 0.01 0.14 ± 0.01 0.11 ± 0.03 0.10 ± 0.04
10 0.37 ± 0.08 0.30 ± 0.05 0.22 ± 0.02 0.16 ± 0.01 0.13 ± 0.02 0.10 ± 0.03 0.09 ± 0.04
11 0.36 ± 0.06 0.28 ± 0.04 0.21 ± 0.02 0.16 ± 0.01 0.12 ± 0.01 0.10 ± 0.02 0.08 ± 0.02
12 0.31 ± 0.08 0.26 ± 0.05 0.20 ± 0.02 0.16 ± 0.01 0.13 ± 0.01 0.10 ± 0.01 0.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 layer Median W1W_1 IQR
1 0.04 [0.02, 0.10]
2 0.07 [0.04, 0.13]
3 0.10 [0.05, 0.45]
4 0.09 [0.07, 0.13]
5 0.07 [0.06, 0.09]
6 0.07 [0.06, 0.07]
7 0.06 [0.05, 0.06]
8 0.06 [0.05, 0.06]
9 0.05 [0.04, 0.06]
10 0.04 [0.03, 0.05]
11 0.04 [0.04, 0.05]
12 0.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 band UU: KL UU: Kol. UU: W1W_1 VV: KL VV: Kol. VV: W1W_1
17--64 0.34 0.04 0.31 0.34 0.04 0.31
65--128 0.07 0.02 0.20 0.07 0.02 0.21
129--192 0.02 0.01 0.16 0.02 0.01 0.16
193--256 0.01 0.01 0.13 0.01 0.01 0.13
257--320 0.01 0.01 0.12 0.01 0.01 0.12
321--384 0.01 0.01 0.11 0.01 0.01 0.11
385--471 <0.01 0.01 0.10 <0.01 0.01 0.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;

Side KL (×10−3)(\times10^{-3}) Kolmogorov (×10−3)(\times10^{-3}) Angular W1W_1
Left USU_S 2.21 ± 0.72 4.20 ± 0.62 0.08 ± 0.04
Right VSV_S 2.21 ± 0.72 4.21 ± 0.62 0.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.

Reviewer WUoc · CommentOpenReview ↗

Official comment

Thank you for your response!

Q1. Empirical part.

I have two questions regarding the new experiments.

1.a. I am not fully convinced that the convergence

W1(μreal,μΣ)→0W_1(\mu_{\mathrm{real}},\mu_{\Sigma}) \to 0

can be inferred from Figures R.1 and R.2. In addition, what exactly is meant by ℓ→∞\ell \to \infty in this empirical setting? Is it sequence length or the layer number?

1.b. Moreover, the W1W_1 distance between two normalized empirical singular-value distributions may converge to zero even when a finite or sublinear number of leading singular values differ by O(1)O(1). Therefore, this metric may capture agreement of the bulk distributions while remaining insensitive to discrepancies in the dominant singular values.

2. What are the dimensions of the matrices for which the SVD is computed? Do you use a full SVD or a truncated/iterative method? For large sequence lengths, it would also be useful to report the numerical tolerances or reconstruction errors, since the accuracy of iterative SVD algorithms may deteriorate for large matrices or clustered singular values.

Q1. Theoretical part.

The mathematical argument is valid only after assuming

S=dΣ.S \overset{d}{=} \Sigma.

However, this is precisely the step that requires justification. Haar-distributed left and right singular-vector matrices, even when independent of the singular values, would imply

S=dUΣV⊤,S \overset{d}{=} U\Sigma V^{\top},

rather than

S=dΣ.S \overset{d}{=} \Sigma.

These two distributions are generally very different: the former is supported on randomly oriented matrices, whereas the latter is supported on diagonal matrices. This distinction is particularly important because row-wise softmax is neither invariant nor equivariant under left and right orthogonal transformations. The issue becomes even more pronounced in the causal setting, where the mask selects a fixed token basis.

Therefore, the statement that equality in distribution is preserved by a measurable map is correct but conditional: it propagates Assumption 1 rather than deriving or independently validating it.

Q2.

The new score-spectrum figures provide useful qualitative evidence, but they do not yet establish the spike-bulk assumption quantitatively. Moreover, selecting the split at the largest adjacent gap will produce a partition for almost any spectrum, including spectra without a genuine spike-bulk separation.

Thus, the presented evidence supports the weaker claim that the score matrices have low effective rank or a small number of dominant directions, but it does not yet verify the precise asymptotic spike-bulk regime required by the theory.

Q3.

I accept the clarification provided by the authors.

Authors · CommentOpenReview ↗

Clarifications on Empirical and Theoretical Claims

Thank you for the careful follow-up. Several distinctions in our first response can be stated more precisely.

Q1. Empirical part

1.a. Here ℓ\ell is the sequence length, i.e., the number of tokens in one input, not the layer number. ℓ→∞\ell \to \infty means the input sequence of tokens is very long (e.g., long context in LLM agent).

For GPT-2, Figure R.1 uses the same 12 WikiText-103 documents at nested prefix lengths ℓ∈64,128,256,384,512,768,1024\ell\in\\{64,128,256,384,512,768,1024\\}, with layer and head recorded separately. The arrow relates this finite trend to the canonical model's large-ℓ\ell prediction. The decrease from 0.3002 to 0.0942 (all-layer median) is finite-sample evidence consistent with convergence, not proof of it. Figure R.2 uses the fixed ViT length ℓ=577\ell=577; it shows small layerwise discrepancies but provides no lengthwise convergence evidence.

1.b. We agree. Indeed, If rℓ=o(ℓ)r_\ell=o(\ell) leading singular values differ by O(1)O(1), their contribution is only O(rℓ/ℓ)O(r_\ell/\ell). Thus this experiment tests agreement of the empirical spectral law/bulk; it does not establish pointwise agreement of the dominant singular values or operator-norm closeness. Our theorems characterize the spike profile of the canonical model under their assumptions, but Figures R.1--R.2 do not transfer that spike-level conclusion to real attention.

We use W1W_1 to test spectral-law/bulk agreement (to show LSD degeneration). The exact spike profile is a canonical-model result; its connection to trained attention is qualitative, not a claim of spike-by-spike identity. We will state this scope explicitly.

2. For every head, ShS_h, Areal,hA_{{\rm real},h}, and AΣ,hA_{\Sigma,h} are ℓ×ℓ\ell\times\ell. GPT-2 uses the seven dimensions above, up to 1024×10241024\times1024; ViT uses 577×577577\times577. The R.1--R.2 generator plot_real_vs_canonical_lsd_rebuttal.py imports the collectors in plot_real_vs_canonical_rank_proxies.py. Lines 208--218 convert each real/canonical attention matrix to CPU float64 and compute all singular values with dense torch.linalg.svdvals; this is neither truncated nor iterative. To build Σh\Sigma_h, lines 179--204 convert Qh,KhQ_h,K_h to float32; compact QR reduces the nonzero spectrum of QhKh⊤/dhQ_hK_h^\top/\sqrt{d_h} to a core of at most 64×6464\times64, on which full svdvals is applied before padding the structural zeros. This is exact in exact arithmetic, not a truncated SVD.

The attention-SVD helper rejects non-finite outputs. We also reconstructed the model attention directly from the extracted score and mask, using a maximum-entry error tolerance of 5×10−55\times10^{-5}; the observed maxima were 0 for GPT-2 and 1.73×10−61.73\times10^{-6} for ViT. This checks score/mask reconstruction rather than an SVD residual, since svdvals does not return singular vectors. We will document that distinction and the numerical method in the revision.

Q1. Theoretical part

For a realized pre-softmax score, S:=UΣV⊤S := U\Sigma V^\top by definition (SVD); Haar conditions on U,VU,V imply conditional bi-orthogonal invariance, not S=dΣS\overset d=\Sigma.

Assumption 1 deliberately defines the canonical modeling abstraction by retaining the singular-value scales and discarding token-space orientation. As stated in the paper, this is an idealized orientation-averaged model, not a claim that realized scores are literally diagonal. The Haar diagnostics motivate the absence of a preferred pre-softmax orientation; they are not claimed to derive the canonical replacement.

Because row-softmax and masking are basis-dependent, Haar diagnostics do not imply equality in law for realized trained attention. Within Assumption 1's canonical model, however, for fixed FM(X)=softmax⁡row(X+M)F_M(X)=\operatorname{softmax}_{\rm row}(X+M), S=dΣ⇒FM(S)=dFM(Σ)S\overset d=\Sigma\Rightarrow F_M(S)\overset d=F_M(\Sigma).

The measurable-map argument only propagates the stronger equality-in-law assumption; it does not derive it.

Q2

We agree that a largest-gap rule always returns a partition and therefore cannot verify the asymptotic assumption. The linear-scale views below make the long upper tails and dominant values on the original scale easier to inspect, but they remain qualitative:

We will therefore use these figures only as descriptive evidence. The precise super-/sub-logarithmic separation remains an asymptotic assumption, not something established by these plots.

Thank you also for confirming that Q3\large \text{Q3} is resolved.

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

Missing a submission?

Loading the discussion…