The Structural Origin of Attention Sink: Variance Discrepancy, Super Neurons, and Dimension Disparity
Siquan Li 1 Kaiqi Jiang 2 Jiacheng Sun 2 Tianyang Hu 1
Abstract
attention despite limited semantic relevance [25, 7, 3]. From a functional standpoint, this phenomenon is a double-edged sword: while it enables efficient KV cache compression strategies like streaming generation [10, 26] and mitigates over-smoothing [2], it also gives rise to pathological behaviors that reflect deeper architectural issues, such as activation outliers [14, 21], representation collapse [13, 22], and optimization abnormalities [6]. Existing literature offers diverse hypotheses for its formation, including but not limited to the Softmax operator’s need for a “sink” for residual probability mass [27], positional mechanisms [29], or spectral subspaces [4]. However, the fundamental causal chain that dictates why the initial token is consistently selected as the structural anchor remains to be elucidated.
arXiv:2605.06611v1 [cs.LG] 7 May 2026
Despite the prevalence of the attention sink phenomenon in Large Language Models (LLMs), where initial tokens disproportionately monopolize attention scores, its structural origins remain elusive. This work provides a mechanistic explanation for this phenomenon. First, we trace its root to the value aggregation process inherent in self-attention, which induces a systematic variance discrepancy. We further demonstrate that this discrepancy is drastically amplified by the activation of super neurons within Feed-Forward Network (FFN) layers. Specifically, the channelsparse down-projections trigger a dimension disparity of the first-token representation, necessitating the formation of attention sinks as a structural anchor. Then, we validate this causal chain through two controlled interventions: (i) isolating the aggregation effect via attention mask modifications and (ii) amplifying the variance of targeted token representations. Both interventions can replicate attention sinks at arbitrary positions. Our mechanistic understanding offers a foundation for the systematic control of sink formation. Finally, as a proof of concept, we propose headwise RMSNorm, an architectural modification that stabilizes value aggregation outputs during pretraining. Our experiments demonstrate that restoring statistical parity across positions significantly accelerates convergence.
In this work, we bridge this gap by tracing the structural origin of attention sinks to the variance discrepancy (see detailed definition in Section 3.1) inherent to the value aggregation process of self-attention. Specifically, under causal masking, the initial token attends only to itself, while subsequent tokens aggregate information from an expanding context. Consequently, the initial token—exempt from this averaging—persists as a high-variance outlier. Through comprehensive investigation into the internal propagation of transformers, we find that these outliers are preserved by the output projection in the attention module that later activate super neurons within the FFN, triggering massive activations and a subsequent dimension disparity of token representations. Propagated through residual connections and normalization layers, these distortions ultimately dominate the query-key dot products, necessitating the formation of the attention sink. A schematic overview of this propagation chain is illustrated in Figure 1.
1. Introduction
To validate the causal link from variance discrepancy to attention sink, we conduct two controlled interventions to mimic the variance property of the initial token: (i) modifying the attention mask to isolate the aggregation effect, and (ii) amplifying the variance of arbitrary token representations. Both interventions can induce attention sink at arbitrary positions, establishing the causal effect of variance discrepancy on attention sink formation.
Attention sinks are a recurring feature of decoder-only transformers: across layers and inputs, a small set of tokens, most notably the initial token, can receive disproportionately large 1
The Chinese University of Hong Kong, Shenzhen 2 Huawei Foundation Model Department. Correspondence to: Tianyang Hu <[email protected]>. Proceedings of the 43 rd International Conference on Machine Learning, Seoul, South Korea. PMLR 306, 2026. Copyright 2026 by the author(s).
To verify our mechanistic insight, we first test an existing variant: replacing Softmax with a Sigmoid activation. With1
The Structural Origin of Attention Sink
Average Attention to 1st Token
Figure 1. Schematic Overview of the Attention Sink Mechanism. Value aggregation causes dimension-wise variance decay for subsequent tokens, while the first token acts as a high-variance outlier. This discrepancy is preserved by output projections, activating super neurons in FFNs. Subsequently, the channel-sparse down-projections induce dimension disparity, resulting in the attention sink.
Attention Sink Mitigation 0.30 0.25 0.20 0.15 0.10 0.05 0.00
the l-th layer, where T is the sequence length and d is the hidden dimension. The forward propagation within a single layer is defined as:
Baseline(Original) Sigmoid Ours (Head-Norm)
hl = xl + Attention(Norm(xl )), xl+1 = hl + FFN(Norm(hl )). Self-Attention The self-attention mechanism [24] aggregates context by computing a convex combination of value vectors. Let Ai,j denote the normalized attention score between token i and j, and Vj,k represent the value state at position j and dimension k. The value aggregation for the i-th token is expressed as:
0 1 2 3 4 5 6 7 8 9 10 11
Layer index
Figure 2. Mitigation of Attention Sinks. Comparison of the averaged attention to the first token across layers. The Baseline (red) exhibits attention sink from the 5th layer, whereas both Sigmoid attention (green) and our Head-wise RMSNorm (blue) method successfully suppress this artifact.
oi,k =
i X j=0
Ai,j · Vj,k ,
subject to
i X
Ai,j = 1. (1)
j=0
The aggregated states are subsequently projected by WO ∈ Rd×d to form the layer output.
out the sum-to-one constraint, the first token is no longer a high-variance outlier. As expected, attention sinks are significantly mitigated in the pretraining process (see Figure 2). Building on this, we further introduce head-wise RMSNorm, a novel modification designed to stabilize value aggregation outputs. Pretraining experiments demonstrate that this targeted intervention not only suppresses attention sinks but also accelerates pretraining convergence.
Feed-Forward Network Llama-2 [23] employs the SwiGLU variant [20] for its FFN. It consists of three linear projections and a SiLU activation function. Given an input x ∈ Rd , the output is computed as: FFN(x) = (SiLU(xWgate ) ⊙ xWup )Wdown ,
Our results suggest that the attention sink is not an inevitable byproduct of scaling, but a controllable architectural property, providing a new foundation for the design of more stable and interpretable transformers.
(2)
where ⊙ represents element-wise multiplication. The weights are parameterized as Wgate , Wup ∈ Rd×df and Wdown ∈ Rdf ×d , where df is the intermediate dimension.
3. Structural Origins of Attention Sinks
2. Preliminary
Prior research has established that attention sinks are semantically irrelevant, persisting even in sequences of random tokens [9]. In this work, we investigate the internal evolution of token representations and structural origins of attention sinks. Our primary analysis centers on Llama-2-7B [23]. To ensure generality, we also validate our findings on other open-source LLMs in Appendix A.
In this work, we focus on the transformer decoder architecture, which serves as the backbone for modern LLMs. A standard decoder block consists of two primary sublayers: a self-attention and an FFN, both employing prenormalization and residual connections. Formally, let xl ∈ RT ×d denote the input hidden states for 2
The Structural Origin of Attention Sink
To understand the nature of attention sinks, we investigate where the attention sink emerges within the LLMs and what might be a trigger before it happens.
We validate this positional variance discrepancy in Llama-27B. Since the attention sink consistently emerges at layer 2, we investigate the dimension-wise variance of hidden states in Layer 1 immediately after value aggregation. Specifically, we compute the variance for each hidden dimension across the batch and report the average for each position. Crucially, to eliminate the bias of a fixed beginning-of-sentence (BOS) token—which would mathematically yield zero variance—we utilize sequences of fully random tokens.
Invariant layer-wise onset We track the attention patterns across all layers on WikiText-2. As shown in the blue curve of Figure 3, we observe a consistent pattern: the attention weight on the initial token remains low in the initial layers but exhibits a sudden spike around layer 2. This structural consistency suggests that the onset of the sink is a fixed property of the model’s depth and architecture, occurring as soon as internal statistics accumulate to a critical point.
As shown in Figure 4, there is a clear variance decay pattern: the average dimension-wise variance exhibits a sharp drop as the token position index increases. The first token retains a significantly higher variance across its dimensions compared to the rest of the sequence.
Figure 3. Layer-wise evolution of attention sink and representation norms. We plot the attention score of the first token (left axis, blue) and its input representation l2 -norm (right axis, red) for Llama-2. The synchronized spike indicates that the arrival of a high-norm representation triggers the attention sink.
Figure 4. Mean dimension-wise variance discrepancy. We plot the mean dimension-wise standard deviation of hidden states immediately after (Layer 1) value aggregation. Position 0 exhibits exceptionally high variance and subsequent tokens show a sharp variance decay.
The precursor: massive representation norms To identify what triggers this sudden spike, we analyze the hidden states entering each layer. We track the l2 -norm of the representation for the first token. As shown in the red curve of Figure 3, we observe a distinct anomaly: the l2 -norm of the representation for the first token increases sharply at the exact same layer where the attention sink emerges. This synchronization implies a direct link between the two phenomena, suggesting that the massive representation norm is a critical precursor to the attention sink.
3.2. Causal Effect of Variance Discrepancy on Attention Sink Given that the first token is an outlier in terms of variance, we investigate its causal link to the observed attention sink. To this end, we devise two interventions aiming to introduce attention sinks at arbitrary locations by manipulating the variance discrepancy.
3.1. Value Aggregation Introduces Positional Variance Discrepancy
Attention Mask Intervention Consider modifying the attention mask of the k-th token to block it from attending to any preceding positions (j < k). This forces the token to attend only to itself, effectively simulating the state of the initial token. Attention mechanism of subsequent tokens (t > k) is left unchanged. Through this intervention, we can mimic the variance behavior of the first token at any position and evaluate the attention pattern. Experimental results on Llama-2-7B are shown in Figure 5. When aggregation is blocked at index k = 10 (red line), it immediately becomes a new attention sink. This supports that the sink phenomenon is not tied to the absolute position 0, but a consequence of unaggregated high variance representations.
Attention sink is position-specific. Given that FFNs, LayerNorm [1], and residual connections [11] operate identically across positions, the root cause of the first-token anomaly implies a mechanism unique to the self-attention process. We focus on the attention mechanism, specifically its value aggregation process, as formulated in Eq. (1). The causal mask induces a structural difference: the initial token (i = 0) strictly attends to itself (a0,0 = 1), while subsequent tokens (i > 0) aggregate previous value vectors. As a result, the variance of the value vectors tends to decay as i increases, rendering the first token as an outlier [13]. 3
The Structural Origin of Attention Sink
4. Mechanism Analysis: From Variance Discrepancy to Attention Sinks Having established that high variance caused by the lack of aggregation drives the attention sink, we now examine how this anomaly propagates through the transformer. We focus our analysis on Llama-2-7B to trace the internal chain reaction. Specifically, we identify a multi-stage propagation chain that transforms the initial variance discrepancy into the final attention sinks:
Figure 5. Causal validation via mask intervention. We visualize the average attention score received by each token on Llama-2. The red line shows the result of blocking aggregation at index 10, which causes it to transform into a new attention sink.
1. Output projection preserves variance discrepancy (Sec. 4.1): The output projection (WO ) structurally preserves the variance discrepancy, injecting it directly into the residual stream.
Direct Variance Amplification We can also mimic the initial-token variance behavior at any position k by directly amplifying the corresponding variance. First, we compute the global mean of the value vectors, denoted as µ(l) , at each layer l using random tokens. This is averaged over both batch size and sequence length.
2. Selectively activated by FFN super neurons (Sec. 4.2): Following the pre-FFN RMSNorm, the first token’s distinct representation selectively activates super neurons in the FFN, causing massive activations that are then channeled through the sparse downprojection, resulting in extreme dimension disparities in the output.
Then, for an arbitrary token at index k, we amplified its aggregated output’s variance using a scalar λ > 0: ′(l)
ok
(l)
= µ(l) + λ · (ok − µ(l) ).
3. Locking via QK projection (Sec. 4.3): The massive dimension disparity persists through the subsequent pre-attention RMSNorm, effectively “locking” the Query-Key projection in the next layer, which compels the attention mechanism to sink to the first token.
As shown in Figure 6, increasing λ under our mean-centered amplification consistently transforms the k-th token into a dominant attention sink.
In the following subsections, we empirically verify each stage of this propagation chain. 4.1. Output Projection Preserves Variance Discrepancy Since the representations carrying dimension-wise variance discrepancy are first processed by the output projection, a critical question arises: does the output projection WO suppress or preserve the variance discrepancy generated by the lack of aggregation? To answer this, we investigate the structural alignment between WO and the high-variance dimensions of the first token.
Figure 6. Inducing attention sinks via variance amplification. We apply a factor λ to amplify the variance of an arbitrary token (index 10). Increasing λ directly increases the attention score received by the token. A control experiment shows that merely scaling the representation norm fails to induce such a sink.
Structural Alignment Analysis We hypothesize that WO is biased to amplify dimensions where the first token has high variance. Let σ in ∈ Rd be the dimension-wise standard deviation vector of the first token before output projection, and let wj ∈ Rd denote the j-th column of WO (representing the weights for the j-th output neuron). To measure the ordinal association, we compute Kendall’s rank correlation coefficient (τ ) [12] between the absolute weights and the input variance for each output neuron. As shown in Figure 7 (Left), the distribution of τj across all neurons is shifted significantly to the right, with a mean correlation of 0.32. The high degree of structural alignment implies
To rule out the possibility that the induced sink is merely an artifact of an enlarged representation norm (which could trivially inflate the query-key dot product), we conduct a control experiment by directly scaling the output vector (l) by the same factor: λ · ok . Figure 6 shows that simply scaling the representation norm fails to reproduce the sink formation, demonstrating that the magnitude of variance is the critical factor triggering the attention sink. 4
The Structural Origin of Attention Sink
that WO consistently assigns larger weights to dimensions where the first token exhibits higher variance.
Super Neurons in Weight Matrices We first investigate the structural bias in Wgate and Wup . We calculate the l2 norms of the weight vectors for each hidden neuron. As shown in Figure 8, specific neurons (e.g., index 7890) possess exceptionally large norms. We term these super neurons due to their capacity to capture and amplify signals. To facilitate a proper structural analysis, we first clarify the geometric interpretation of the linear projections involved. Consider a weight matrix W. We interpret the j-th column as the weight vector characterizing the j-th neuron, while the i-th row represents how the i-th dimension of the input activation is mapped to the output space. Based on this formulation, our analysis adopts a dual perspective:
Figure 7. Structural alignment and outlier status preservation in WO (Layer 1). (Left) The distribution of rank correlations between WO neuron weights and Token 0 input variance. The positive shift (mean=0.32) indicates structural alignment. (Right) Even after passing through WO , the first token maintains significantly higher variance than subsequent tokens.
• For the upstream layers (Wgate and Wup ), we examine their column vectors. These correspond to the super neurons that detect and react to the high-variance input of the first token.
Post-Projection Variance Decay To verify if this structural alignment effectively preserves the variance discrepancy, we further examine the statistical properties of the output of WO . Specifically, we compute the dimension-wise standard deviation of the hidden states immediately after the output projection, using random token inputs. As visualized in Figure 7 (right), the variance decay pattern persists: the first token retains an exceptionally high variance compared to subsequent tokens. This suggests that the output projection does not drown out the discrepancy; instead, it propagates the first token as a distinct outlier into the residual stream.
• For the downstream layer (Wdown ), we analyze the row vectors indexed by the super neurons. These rows determine how the massive activations generated by super neurons are channelled and broadcasted into the residual stream. With this framework, we trace the propagation of the variance discrepancy through multiple stages in the FFN.
4.2. Selective Activation of Super Neurons While WO preserves the discrepancy, it does not explain the extreme magnitude of the representation norms observed in Section 3. We hypothesize that the FFN in layer 1 serves as an amplifier to the initial high-variance outlier. To uncover this mechanism, we focus on the gated linear units (GLU) [20] architecture, specifically the SwiGLU variant employed by modern LLMs like Llama-2. The computation is defined in Eq. (2). Figure 9. Selective activation of super neuron 7890. The Left (7890) Axis shows the cosine similarity with Wgate . The Right Axis (7890) shows the raw activation via Wup . The first token uniquely achieves both high alignment and massive activation, whereas subsequent tokens are effectively suppressed.
Selective Activation We track the interaction between input tokens and super neuron (index 7890) and evaluate whether first token is being treated differently. We measure two metrics for each token position: (1) the cosine similarity between the normalized input token xnorm and the gate (7890) weight column vector wgate ; and (2) the raw activation
Figure 8. Structural Identification of Super Neurons in Layer 1 FFN. We visualize the l2 norms of the weight vectors for each hidden neuron in Wgate (Left) and Wup (Right). A distinct subset of neurons exhibits significantly larger norms.
(7890)
projected by the up-projection column vector wup . As visualized in Figure 9, the first token exhibits high positive 5
The Structural Origin of Attention Sink
cosine similarity (opening the gate) and generates massive raw activation. In contrast, subsequent tokens show low alignment or negligible activation. This suggests that the super neuron is selectively triggered by the initial outlier while remaining suppressed for the rest of the sequence.
extreme dimension disparity. As shown in Figure 11, Llama-2 exhibits a sharp rise in the dominance ratio in the shallow layers.
Channeling via Sparse Weights Finally, we look into how (7890) this massive activation hmid propagates through the downprojection. We examine the distribution of weights in the (7890) row vector wdown = Wdown [7890, :]. As shown in Figure 10, the weight distribution is heavy-tailed. Most entries are near zero, but a few specific dimensions exhibit large magnitudes. This channels the massive activation exclusively into these outlier dimensions (e.g., dimension 2533). Figure 11. Dimension disparity analysis. We calculate the layerwise Dominance Ratio (max /mean) of the first token on WikiText2. The sharp rise in early layers suggests that the representation is dominated by a few massive outlier dimensions.
Next, we reveal how this interacts with RMSNorm and the query/key projections in layer 2. RMSNorm as Directional Filter Let the first token input x0 be dominated by a massive value λ at dimension index c (e.g., index 2533), while other dimensions are negligible. When passing through RMSNorm, the normalization constant is determined almost entirely by λ. Consequently, the output vector converges to a scaled basis vector ec : √ RMSNorm(x0 ) ≈ sgn(λ) dγc · ec
Figure 10. Sparse channeling in down-projection. The weight distribution corresponding to super neuron in Wdown is heavytailed. Massive activation is channeled solely into specific outlier dimensions.
4.3. Dimension Disparity and Structural Locking in QK Projections
This implies the first token’s representation collapses into a fixed direction. We validate this empirically in layer 2. As shown in Table 1, the outlier dimension is orders of magnitude larger than the mean of other dimensions, confirming directional collapse.
In this section, we analyze the properties of the first token’s FFN output, which is generated by massive selective activations of super neurons passing through sparse downprojections. We then investigate how it induces attention sinks in the subsequent self-attention layer.
Table 1. Analysis of the first token’s representation after RMSNorm in layer 2. The outlier dimension (index 2533) dominates the vector.
Dimension Disparity in the First-Token Representation The FFN output introduces significant dimension disparity into the output. Specifically, the representation of the first token becomes dominated by specific outlier dimensions driven by super neuron activations. This disparity compresses the majority of the information into a lowdimensional subspace. To quantify this, we define the dominance ratio for the first token’s hidden state h0 ∈ Rd . It calculates the ratio of the maximum absolute magnitude to the mean absolute magnitude:
M ETRIC
VALUE
O UTLIER D IMENSION M AGNITUDE (|x2533 |) ¯ D IMENSION M EAN A BS VALUE (|x|)
1.2568 0.0048
D OMINANCE R ATIO
262.88×
Propagation to Keys Consider the key projection in layer 2. Since the normalized input is essentially ec , the resulting (h) key vector k0 for the first token in head h approximates (h) the c-th row of the key projection matrix WK :
maxj |h0,j | DomRatio(h0 ) = 1 P . k |h0,k | d A higher ratio indicates that the representation is disproportionately concentrated in a few outlier dimensions, reflecting
(h)
k0 6
√ (h) ≈ ± d · (WK )c,:
(3)
The Structural Origin of Attention Sink
Alignment across heads For an attention sink to form, the (h) (h) score ⟨qt , k0 ⟩ must be consistently large. We analyze this using two metrics: (1) structural alignment (SVD), (h) (h) which measures the alignment | cos(u1 , k0 )| between (h) the sink key and the principal direction of WQ extracted via SVD; and (2) positive ratio, defined as the proportion of tokens where the dot product is positive. As shown in Figure 12, heads with high structural alignment (tall bars) exhibit a near-100% positive ratio. This indicates that specific heads are structurally predisposed to generate queries that align with the sink key, thereby ensuring large attention scores.
token representations now scale with sequence length, potentially causing training instability. Indeed, prior studies suggest that standard Softmax attention generally exhibits superior training stability and downstream performance compared with alternative unnormalized mechanisms [24, 5, 16]. Consequently, we propose head-wise RMSNorm, aiming to retain the standard Softmax formulation and directly address the variance discrepancy. 5.1. Head-wise RMSNorm Recent studies, e.g., DuoAttention [28], have highlighted the functional heterogeneity of attention heads. Motivated by this, we investigate variance discrepancy across different heads and observe a significant inconsistency. Specifically, we find that attention heads vary significantly in behavior: some heads are “low-entropy”, focusing on few tokens , while other head are “high-entropy”, aggregating across a wide range of tokens. As shown in Figure 13, this leads to a statistical imbalance: low-entropy heads produce high-variance outputs, while high-entropy heads produce low-variance outputs. Without intervention, low-entropy heads dominate the residual stream simply due to their magnitude. Therefore, a headwise intervention is necessary to decouple signal magnitude from attention sparsity.
Figure 12. Head-wise analysis in layer 2. The x-axis represents head indices. The bars (left axis) show structural alignment between the sink key and the query matrix’s principal direction. The red line (right axis) shows the ratio of positive attention scores. High alignment correlates with high positivity.
5. Practical Implication Our analysis identifies the structural origin of attention sink: the variance discrepancy during value aggregation activates super neurons. The resulting massive activations are channeled through sparse down-projections to create severe dimension disparity, which effectively locks the subsequent QK projection and ultimately induces the attention sink.
Figure 13. Head imbalance and signal magnitude. Attention heads are sorted by entropy. Low-entropy heads produce highvariance outputs, while high-entropy heads produce low-variance outputs.
One reason for variance discrepancy is that standard Softmax function enforces a strict sum-to-one constraint (Eq. (1)). To address this, we can consider replacing Softmax with an unnormalized Sigmoid activation [18]: ! qi kTj ai,j = Sigmoid √ . dk
To resolve both the positional variance discrepancy and this head imbalance, we propose head-wise RMSNorm, immediately after value aggregation and before the output projection WO . Specifically, for a head h at position t, we (h) normalize the aggregated vector ot :
With Sigmoid attention, the first token is no longer a highvariance outlier, potentially mitigating the formation of attention sinks. This effect is verified in Sec. 5.2.
(h)
(h)
ôt
While replacing Softmax with an unnormalized Sigmoid activation partially mitigates the high-variance first-token outlier, this approach is not ideal: the magnitude and variance of
=
ot
(h)
⊙ λ,
(4)
RMS(ot )
where ⊙ denotes element-wise multiplication. Here, λ ∈ Rdk is a learnable scaling vector shared across all heads (dk 7
The Structural Origin of Attention Sink
Layer-wise First Token Dominance Ratio
is the head dimension), allowing the model to adaptively recalibrate the feature magnitude for each dimension.
Ratio (max/mean)
120
This operation ensures that: (1) position-wise consistent variance: the aggregated vectors have a standardized scale regardless of position or context length and, (2) head-wise consistent variance: both low-entropy and high-entropy heads contribute equally to the output projection WO , preventing any single head from acting as a structural outlier.
100 Baseline Sigmoid Ours (Head-Norm)
80 60 40 20
0
2
5.2. Experimental Results
4
6
Layer Index
8
10
Figure 14. Layer-wise dominance ratio of the first token. The baseline (red) shows a sharp rise, indicating severe dimension disparity where a single feature dominates the representation. Both Sigmoid attention (green) and our method (blue) suppress this dominance.
Setup We conduct pre-training from scratch on OpenWebText [8] for 40,000 iterations (152M parameters, 20B tokens). We compare three architectures: (1) Baseline, the standard Llama-2 architecture using Softmax attention; (2) Sigmoid attention, which replaces Softmax with unnormalized Sigmoid [18]; and (3) Ours (Head-Norm), which applies head-wise RMSNorm after value aggregation in standard Softmax attention. All models use the same optimizer (AdamW) and hyperparameters. Details are in Appendix B.
fewer dimensions. As shown in Figure 15, the baseline exhibits a severe drop in effective rank. In contrast, our Head-Norm method maintains a consistently higher effective rank across layers, indicating that resolving the variance discrepancy effectively alleviates manifold collapse and preserves the model’s representational capacity.
We compare three model variants to investigate the impact of eliminating the variance discrepancy. We evaluate the models across three key dimensions: (1) the presence of dimension disparity, (2) the existence of attention sinks, and (3) pre-training convergence speed. Regarding attention sinks, as discussed in Section 1, our method significantly mitigates the phenomenon even without eliminating the root cause of variance discrepancy at its source.
Effective Rank
Layer-wise Effective Rank
Alleviation of Dimension Disparity and Manifold Collapse We analyze the dominance ratio of the first token’s hidden states to quantify the severity of dimension disparity. Figure 14 compares the layer-wise trajectory. The baseline (red) exhibits a sharp escalation in the dominance ratio starting from early layers, indicating that the first token’s representation is effectively hijacked by a single outlier dimension. In contrast, both Sigmoid (green) and ours (blue) maintain a consistently low dominance ratio. This result provides strong evidence that the extreme dimension disparity is a direct downstream consequence of the variance discrepancy. By eliminating this discrepancy, we successfully disrupt the formation of outliers and preserve a balanced feature distribution.
450 400 350 300 250 200 150
Baseline Sigmoid Ours (Head-Norm)
0
2
4
6
Layer Index
8
10
Figure 15. Layer-wise effective rank of the hidden states. The baseline shows a distinct drop in effective rank, indicating manifold collapse caused by outlier dimensions. Our method maintains a higher effective rank, preserving representational capacity.
Pre-training Convergence Speed We analyze the validation loss trajectories during the pre-training to evaluate optimization efficiency and generalization. As shown in Figure 17, our method (blue) demonstrates significantly faster convergence and achieves lower loss values compared to the baseline (red). In contrast, the unnormalized Sigmoid attention (green) exhibits slower convergence and worse validation performance than the Softmax baseline. This observation highlights that simply replacing Softmax is insufficient; eliminating the variance discrepancy is key to improving the conditioning of the optimization landscape, enabling the model to train more efficiently and generalize better.
Consequently, this dimension disparity leads to manifold collapse, where the representation is compressed into a lowdimensional subspace. To quantify P this, we compute the effective rank [19]. Let pk = σk / j σj be the normalized singular values of the hidden state matrix H. The effective rank is defined as: ! X EffRank(H) = exp − pk ln pk (5) k
A lower rank indicates that information is concentrated in 8
The Structural Origin of Attention Sink