Manuscript Offprint
arXiv:2610.07661Massive Activation Gating Channel in Large Language Models
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
Massive activations, a phenomenon in which a small number of hidden channels exhibit exceptionally large magnitudes, are pervasive in large language models (LLMs). However, the mechanism by which a token develops massive activations as it propagates through a pretrained LLM remains poorly understood. In this paper, we find that the emergence of massive activations is controlled by a single channel in the input embedding to a spike feed-forward network (FFN). The position of this channel is fixed for a particular LLM. We name this channel the massive activation gating channel (MAGC). When the value of the MAGC is sufficiently large (or small, depending on the LLM), the output of the spike FFN exhibits massive activations. Examining six LLMs across four model families and different model sizes, we verify the existence and effect of MAGC. We further provide a theoretical explanation of the mechanism by which MAGC induces massive activations. When the value of MAGC is sufficiently large (or small), the output of a spike FFN asymptotically reduces to a quadratic form that mixes a few columns of the down-projection matrix of the FFN. Since these columns exhibit the shape of massive activations, the output therefore exhibits massive activations.
1 INTRODUCTION
Large Language Models (LLMs) have demonstrated strong capabilities on various tasks (Bubeck et al., 2023). While the majority of existing work focuses on external behaviors of LLMs, it is also important to understand the internal mechanisms of LLMs. Among them, attention sink (Xiao et al., 2023) and massive activations (Sun et al., 2024) have been found in modern LLMs across different model families. Specifically, attention sink refers to the phenomenon in which the first token (or other tokens with little semantic importance) in a sequence receives a disproportionately large amount of attention from subsequent tokens (Yu et al., 2024; Barbero et al., 2025), typically in the middle transformer blocks. The cause of attention sink is usually attributed to massive activations (Sun et al., 2024; Yan et al., 2024), where a few channels (dimensions) in the hidden representation of the first token (or other tokens with little semantic importance) exhibit large activation magnitudes before attention computation. It is important to unveil the mechanism underlying massive activations and attention sink, as these phenomena have been widely employed in various critical tasks, including KV-cache optimization (Ge et al., 2023), inference (Xiao et al., 2023), quantization (Son et al., 2024), and hallucination mitigation (Liu et al., 2026).
In this study, we focus on massive activations. Although existing research has extensively demonstrated the phenomenon of massive activations, research on the mechanism underlying massive activations remains limited. We address this problem by asking: how does a token develop massive activations as it propagates a pretrained transformer? We refer to tokens that exhibit massive activations as spike tokens (Sun et al., 2026).
As LLMs are powered by billions of parameters, our analysis draws attention to the computation of each sub-module (attention and feed-forward networks) in transformers. Existing work (Zhang et al., 2026; Sun et al., 2026) has demonstrated that massive activations emerge after certain feed-forward networks (FFNs) and are maintained in the middle transformer blocks through the residual layer.
(see Section 2 for more details). For example, in LLaMA-2-7B, massive activations of a spike token emerge after the FFN in the second transformer block (Sun et al., 2024; 2026) and are maintained until reaching the last FFN. We refer to the FFN that produces massive activations as the spike FFN. The magnitudes of massive activations remain similar in the middle transformer blocks, indicating that only the residual layer maintains massive activations and that no further massive activations are triggered during the middle computation.
Sun et al. (2026) assume that the SiLU activation function in the spike FFN behaves as a near-identity function for spike tokens. Under this assumption, each output channel of the spike FFN can be expressed as a quadratic form characterized by a channel-specific coefficient matrix . The magnitude of output channel is determined by the dominant eigenvalue of . Since the dominant eigenvalues associated with a few channels are substantially larger than those of other channels, massive activation emerges.
However, our empirical results show that the near-identity assumption on which Sun et al. (2026) rely to explain massive activations is only valid for a small number of models. Among the six models examined in this study, only one model approximately satisfies the assumption (see Appendix A for more details). Moreover, their explanation overlooks the properties of input embeddings to the spike FFN. Instead, we find that the emergence of massive activations is controlled by a single channel in the input embeddings of a spike token to the spike FFN: massive activations appear once the value of this channel is sufficiently large (or small, depending on the LLM). For a given LLM, the position of this channel is fixed. We refer to this channel as the massive activation gating channel (MAGC). Unlike massive activations, whose magnitudes can reach approximately 400 in LLaMA-3.2-1B, the MAGC in the embedding of a spike token has an average value of only around 8.8. Although this value is substantially larger than those of the other channels in the embedding, its magnitude remains moderate because the embedding is layer-normalized before being fed into the FFN.
We verify this finding across multiple decoder-only LLM families, including LLaMA, Qwen, DeepSeek, and Mistral, with model sizes ranging from 1B to 32B parameters. Moreover, our theoretical analysis shows that massive activations can be attributed to the alignment between MAGC and certain rows and columns of the spike FFN weight matrices. Similarly, we empirically demonstrate that this alignment occurs in different LLMs. We summarize our contributions as follows.
-
The emergence of massive activations is controlled by a single channel in the input embedding to a spike FFN, and the position of this channel is fixed for a particular LLM. We name this channel the massive activation gating channel (MAGC). When the value of the MAGC is sufficiently large (or small, depending on the LLM), the output of the spike FFN exhibits massive activations. Examining six LLMs across four model families and different model sizes, we verify the existence and effect of MAGC.
-
We provide a theoretical explanation of the mechanism by which MAGC induces massive activations. When the value of MAGC is sufficiently large (or small), the output of a spike FFN asymptotically reduces to a quadratic form that mixes a few columns of the down-projection matrix of the FFN. Since these columns exhibit the shape of massive activations, the output therefore exhibits massive activations.
The input embedding is first normalized by an RMSNorm, referred to as input layer norm. Formally, if , where is the dimension of the embedding, then
(1) where are trainable parameters and is a predefined small number. We denote as the -th channel of the embedding. Next, the normalized embedding is transformed by multi-head attention (MHA, or more specifically, grouped-query attention (Ainslie et al., 2023)):
where is the embedding output of MHA. Usually, a transformer includes a residual layer after the multi-head attention (Vaswani et al., 2017). Next, the FFN sub-module follows a similar configuration with another RMSNorm of different parameters.
A feed-forward network (FFN) is then applied to . In LLaMA, the FFN consists of a SwiGLU gated activation function (Shazeer, 2020) with three weight matrices:
where is the element-wise product and is the output of FFN. and are pretrained weight matrices, where is the FFN intermediate dimension. Finally, another residual layer follows the FFN. That is, the output of a transformer block is .
Block 1 FFN input h

(a) Value of input h to the spike FFN. We highlight the massive activation gating channel (894) in red.
Block 1 FFN output y

(b) Magnitude of output y of the spike FFN. Token 0 exhibits massive activations. We depict magnitudes instead of actual values for better visualization.
Figure 1: Inputs and Outputs of the Spike FFN.
3 MASSIVE ACTIVATION GATING CHANNEL
Experimental Setup. In this section, we utilize a small but advanced LLM, LLaMA-3.2-1B (Dubey et al., 2024). We verify the findings discovered in this section on other model families with larger model sizes in Section 5.1. In LLaMA-3.2-1B, and . We generate token sequences (without the BOS token) completely randomly to avoid the influence of semantics. Specifically, we randomly sample five tokens in the vocabulary set V and construct an input token sequence to the LLM. Note that the input tokens can be multilingual as well as completely meaningless. We conduct this sampling 5 times.
3.1 EXISTENCE OF MAGC IN THE INPUT TO SPIKE FFN
Following Sun et al. (2026), we demonstrate the top-3 channel magnitudes of the transformer block outputs in Figure A1 in Appendix B. Similarly, we show that massive activations are first triggered by the FFN in an early layer, and are then preserved and propagated along the residual stream.
across layers. As depicted, we identify that in LLaMA-3.2-1B, the FFN in the second transformer block (i.e., block 1) produces massive activations. We name this FFN the spike FFN and focus our analysis on it.
A straightforward method for analyzing the causes of massive activations is to trace their inputs. To this end, we directly visualize the embeddings of the inputs and outputs of the spike FFN for different tokens in Figure 1, using a token sequence example. We demonstrate other examples in Figure A2 in Appendix B.2. As shown in Figure 1b, the first token (“stejně”) exhibits massive activations, whereas other tokens do not. Comparing their inputs to the FFN, we find that the input h for the first token has a single outlier value, as shown in Figure 1a. Specifically, the 894th channel of the first token has a value of 8.807, while the absolute values of the other channels are all less than 2. The 894th channel of the other tokens has values of 0.814, -0.763, 0.335, and 1.029, respectively. In the next subsection, we will show that this single channel controls the emergence of massive activations, and we name this channel the massive activation gating channel (MAGC).
Input Pareto(a=1), peak@ch 894

Input Pareto(a=1), peak@ch 0
Block 1 FFN output (peak@ch 894, a=1)

Block 1 FFN output (peak@ch 0, a=1)
Input Pareto(a=1), peak@ch 1742
Block 1 FFN output (peak@ch 1742, a=1)
Figure 2: From top to bottom, the figure shows the output of the spike FFN when the input vector values are randomly sampled from a Pareto distribution (a = 1), with the input value of the 894th (MAGC), 0th, or 1742nd channel swapped with the maximum input value, respectively.
3.2 MAGC TRIGGERS MASSIVE ACTIVATIONS
Next, we show that this single-channel spike triggers massive activations through the computation of the spike FFN. To empirically validate this claim, we conduct the following experiment. Specifically, we randomly generate the input embedding to the spike FFN from a Pareto distribution with random signs: each channel value of the input embedding is i.i.d. drawn as with , , where each element takes and with equal probability 0.5, and is a fixed shape parameter. Next, we swap the input value of the 894th channel with the maximum input value. We then input this randomly generated embedding into the spike FFN. Meanwhile, we conduct a controlled experiment. Specifically, we used the same randomly sampled input embedding but swapped the input value of a randomly selected channel other than the 894th, such as the 0th or 1742nd, with the maximum value. We report the results for in this section and present the results for and in Appendix B.3.
Figure 2 depicts the randomly generated inputs and their corresponding outputs after the spike FFN. It can be observed that when swapping the value of the 894th channel with the maximum value, the outputs of the spike FFN demonstrate massive activations. Since the randomly generated inputs carry no semantic meaning, this phenomenon mainly indicates that the FFN learns to recognize MAGC. However, swapping the value of any other channel, such the 0th or 1742nd channel, with the maximum value does not lead to the output of massive activations. We therefore conclude that MAGC controls the emergence of massive activations.
Moreover, as shown in Figure A3 and A4 in Appendix B.3, decreasing a increases the maximum value generated by the Pareto distribution. More importantly, assigning a larger maximum value to the 894th channel of the spike FFN input results in a correspondingly larger activation magnitude in its output. Specifically, as a decreases from 5 to 1, the largest output activation magnitude increases from approximately 40 to 400. These results demonstrate that the spike FFN is highly sensitive to the value of the 894th input channel, with a larger value in this channel inducing more “massive” activations.
Key Takeaway 1: There exists a massive activation gating channel (MAGC) in the hidden representation of a spike token, whose position is fixed for a specific LLM. When the hidden representation is used as the input to the spike FFN, the FFN output exhibits massive activations when the value of the MAGC in the hidden representation is sufficiently large (or small, depending on the LLM).
4 FROM MAGC TO MASSIVE ACTIVATIONS
In this section, we examine how a large value of MAGC induces massive activations in LLMs. Since a large value of MAGC corresponds to a large magnitude in a certain channel of the input to the FFN, we begin by analyzing the asymptotic property of the FFN with respect to any input channel. Recall the FFN computation in Equation 2: . We show that, when a fixed channel has a large magnitude (in either direction), the mechanism of the FFN can be simplified as mixing columns of . Note that the mixing mechanism depends on the direction of the channel value ( or ), which explains why MAGC also has a fixed gating direction.
4.1 ASYMPTOTIC PROPERTY OF AN FFN W.R.T. AN INPUT CHANNEL
Figure 1a demonstrates the phenomenon that the input to the FFN contains a large magnitude in a certain channel for spike tokens. We begin by analyzing the asymptotic property of any FFN with respect to any input channel. Consider a gated FFN in Equation 2, for input ,
where , , and are parameter matrices, with the logistic sigmoid function , and is the element-wise product.
We focus on the input controlled by a fixed single channel . For any value in the fixed channel , the input can be written as,
Here, is the representation outside the focused channel with , and is the unit vector at position . Next, we analyze the asymptotic property of for without loss of generality. Let be the normalized -th column of . The following theorem shows the closed form of when .
Theorem 4.1. Given input , when , the output of an FFN has a quadratic form with constant equal to
where is the combination of coefficients in the weight matrices:
Proof. See Appendix C.1.
Specifically, for any input channel in , acts as a gating function, choosing column only when , and controls the sensitivity to each . From Theorem 4.1, when is large enough, the output exhibits a pattern of massive activations only if has the same pattern. Similarly, an analogous result holds as .
4.2 FROM MAGC TO MASSIVE ACTIVATIONS
We introduce several metrics below to quantify the degree of massive activations. Since massive activations describe the phenomenon in which certain activations exhibit large magnitudes, we utilize the energy distribution to characterize their magnitude distribution.
Definition 4.2 (Energy Distribution). Given vector , let its energy distribution be , where
The energy distribution is a probability distribution. Moreover, if exhibits massive activations, should be highly concentrated. We define the degree of concentration as the negative entropy of plus a constant. Formally,
Definition 4.3 (Concentration Degree). Given vector , let its concentration degree be
where is the energy distribution defined in Definition 4.2.
The concentration degree is exactly the negative entropy plus a constant . A larger means is more concentrated. means is uniform, while means has only one non-zero entry.
We now fix MAGC as the focused channel and analyze the relationship between the concentration degree of the output and those of and . We first find that the following assumption is empirically satisfied.
Assumption 4.4. When MAGC is the focused channel, has a high concentration degree, i.e., for a small . Let be the dominant column index; then
Empirical verification. Rather than assuming this property, we verify it directly by scanning all input channels of the spike FFN in LLaMA-3.2-1B: for each channel we form the coefficient vector from Theorem 4.1 and measure its concentration , dominant energy share , and norm . MAGC () attains the largest concentration among all channels,

(a) vector when for LLaMA-3.2-1B.

(b) for LLaMA-3.2-1B.

(c) for LLaMA-3.2-1B.

(d) for LLaMA-3.2-1B.
Figure 3: Visualization results for LLaMA-3.2-1B.
with against (i.e. ) and , whereas the mean over all channels is only . This confirms that MAGIC is a significant outlier in -concentration.
A high concentration degree indicates that a few are extremely large. We empirically demonstrate when for LLaMA-3.2-1B in Figure 3a and highlight the largest magnitude in the vector. As shown, is highly concentrated with . That is, the output of the FFN is largely controlled by the -th column of . Theoretically, based on the high concentration of , we next quantify the contribution of the remaining columns.
Definition 4.5. Given , define the residual amplification factor
The residual amplification factor quantifies the contribution of other channels after removing the dominant column . In the following proposition, controls how strongly the non-dominant columns can perturb the energy distribution of the output.
Proposition 4.6. Let
We have
where for , the function is defined as .
Proof. See Appendix C.2.
Proposition 4.6 indicates that when is large (i.e., close to 1), we have , and there is almost no gap between the concentration degree of and that of .
In the case of LLaMA-3.2-1B, the output of the FFN is largely controlled by the -th (1417th) column of . We next depict in Figure 3b. Comparing Figure 3b to 1b, we find that these two vectors are highly co-linear, empirically with . For other columns such as columns 0 and 1 in Figures 3c and 3d, the parameters have lower maximum magnitudes and do not contain the pattern of massive activations. Note that both and are computed only from the pretrained weight matrices. We show that when the value of channel is large enough, the actual output is dominated by , which leads to . If has a large magnitude and is highly concentrated (i.e., contains the pattern of massive activations), the output should exhibit the same pattern. Below, we summarize the mechanism by which the MAGC in the input to a spike FFN leads to its output that exhibits massive activations.
Key Takeaway 2: When the MAGC of an input embedding to the spike FFN takes a sufficiently large (or small) value, the output of the FFN asymptotically approaches , where is the normalized -th column of of the FFN and is the value of the MAGC. Moreover, the coefficients concentrate on one (or a few) dimensions. As a result, the FFN output is reduced to one normalized column of or a combination of a few normalized columns of , multiplied by their respective coefficient and . Since these columns exhibit the shape of massive activations, the output therefore exhibits massive activations.
5 EXTENSION
5.1 EXTENSION TO OTHER LLMs
| Model Name | Spike FFN Block | MAGC() | Direction | Concentrated Columns(J) |
|---|---|---|---|---|
| LLaMA-3.2-1B | 1 | 894 | + | 1417 |
| LLaMA-2-7B | 1 | 310 | + | 10411, 7890 |
| Qwen2.5-1.5B | 1 | 1395 | - | 5601, 3295, 3750 |
| QwQ-32B | 4 | 4626 | - | 11696, 1368 |
| Ministral-3-3B | 2 | 2 | - | 0, 2 |
| Deepseek-R1-8B | 1 | 717 | + | 2427, 198 |
Table 1: MAGC in different models. The spike FFN block, MAGC , and concentrated column ids are counted from 0. The concentrated columns are identified by first selecting the three columns of the down-projection matrix with the largest absolute values and then filtering out the selected columns that do not satisfy .
In this section, we examine the generality of our findings across LLMs of different model families and sizes. Specifically, we study LLaMA-2-7B, Qwen2.5-1.5B, QwQ-32B, Ministral-3-3B-Instruct-2512, and DeepSeek-R1-Distill-Llama-8B. Together with LLaMA-3.2-1B, these models cover four model families and range from 1B to 32B parameters. Based on our empirical findings, we propose an empirical method to identify the MAGC as detailed in Appendix D. For each model, we repeat the procedure in the preceding sections: we localize the spike FFN, identify MAGC and its gating direction, and find the dominant column(s) of . Table 1 summarizes the results, and the corresponding visualizations are provided in Appendix D.
We highlight the following findings. First, the spike FFN consistently occurs near the beginning of the network. Notably, even for QwQ-32B with 64 transformer blocks, the spike FFN is located at block 4. Second, the position of MAGC is fixed for a specific model but differs across models, as does the gating direction. Third, the dominant column is not always unique. For LLaMA-3.2-1B, the energy distribution is dominated by a single column of . For the remaining models, however, two or three columns share the dominant energy. As shown in Appendix D, the columns in exhibit highly similar shapes and concentrate their mass on the same small set of output channels, so their weighted combination remains concentrated and reproduces the pattern of massive activations. In contrast, a randomly selected column distributes its mass much more broadly across channels.
5.2 RELATION TO ATTENTION SINK
Attention sink is commonly attributed to massive activations (Sun et al., 2024; Yan et al., 2024). Our previous results show that massive activations can be controlled by MAGC. We now extend this finding to adjust attention sink using MAGC.
Experimental Setup. We feed ten natural sentences to LLaMA-3.2-1B and intervene only on MAGC of the first token: at the input to the spike FFN (block 1), we overwrite with a prescribed value and leave all other channels and all other tokens unchanged. We then measure the attention sink of the first token in the following block (block 2) using the sink score (Gu et al., 2025),
where denotes the post-softmax attention that the t-th query assigns to the first token in the h-th head, is the sequence length, and H is the number of attention heads. Since the first token is visible to all queries under the causal mask, is the average fraction of attention that the first token receives, and close to 1 indicates a dominant attention sink.
Sink score, first token (block 2 attention)

FFN output, first token (MAGC = -25)
FFN output, first token (MAGC = +25)
Figure 4: Sink score of the first token in LLaMA-3.2-1B, measured in the attention of block 2, as a function of the value assigned to MAGC ( ) of the first token at the input of the spike FFN (block 1). Thin curves correspond to the ten individual sentences, the thick curve to their mean, and the shaded area to one standard deviation. The unmodified average value of MAGC is 8.81.
Results. Figure 4 reports the sink score as a function of MAGC value . Without intervention, the original MAGC value is 8.81, at which the first token attracts of the attention mass. As varies, the sink score shows a sharp step-like transition. For , stays near 0.89, together with massive activations, as shown at . For sufficiently negative , the sink collapses. The sink score drops to about 0.46 for , while the massive activations disappear, as shown at . The transition is consistent across sentences, with standard deviation below 0.03 throughout the sweep. Therefore, adjusting the MAGC value in the embedding of an input spike token to the spike FFN can adjust the sink mass on the token.
6 CONCLUSION AND FUTURE WORK
In this study, we show how tokens develop massive activations in pretrained transformers and identify the massive activation gating channel (MAGC): a channel in the input to an early FFN whose value gates the emergence of massive activations. We show both empirically and theoretically that once MAGC is large or small enough, the spike FFN asymptotically collapses into a quadratic mixing of a few highly concentrated columns of the down-projection matrix, which reproduces the massive-activation pattern. This finding holds across six LLMs from four families ranging from 1B to 32B parameters.
Our analysis has several limitations that suggest directions for future work. First, it focuses on decoder-only LLMs with gated (such as SwiGLU) FFNs; extending the framework to mixture-of-experts architectures is a natural next step. Second, we localize a single spike FFN and a single gating channel per model, whereas a few models exhibit more diffuse behavior across several channels or columns; a multi-channel account may be needed for such cases. Finally, our study is purely mechanistic at inference time and does not explain why a particular channel becomes MAGC during pretraining, which we leave for future investigation.
AI USE STATEMENT
In this work, we used generative AI tools for paper proofreading and code writing. We have not used generative AI tools for literature review, idea formalization, and drafting the manuscript. We have reviewed all AI-assisted work. For example, LLM-generated code was verified by the authors. We take responsibility for the originality of this work.
REPRODUCIBILITY STATEMENT
We have released all code needed to reproduce the results in this work at GitHub . It includes scripts for identifying the MAGC, running the intervention experiments, and generating figures. All experiments use publicly available pretrained models.
REFERENCES
Joshua Ainslie, James Lee-Thorp, Michiel De Jong, Yury Zemlyanskiy, Federico Lebrón, and Sumit Sanghai. Gqa: Training generalized multi-query transformer models from multi-head checkpoints. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pp. 4895–4901, 2023.
Federico Barbero, Alvaro Arroyo, Xiangming Gu, Christos Perivolaropoulos, Petar Veličković, Razvan Pascanu, and Michael M Bronstein. Why do llms attend to the first token? In Second Conference on Language Modeling, 2025.
Sébastien Bubeck, Varun Chandrasekaran, Ronen Eldan, Johannes Gehrke, Eric Horvitz, Ece Kamar, Peter Lee, Yin Tat Lee, Yuanzhi Li, Scott Lundberg, et al. Sparks of artificial general intelligence: Early experiments with gpt-4. arXiv preprint arXiv:2303.12712, 2023.
Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Amy Yang, Angela Fan, et al. The llama 3 herd of models. arXiv e-prints, pp. arXiv–2407, 2024.
Suyu Ge, Yunan Zhang, Liyuan Liu, Minjia Zhang, Jiawei Han, and Jianfeng Gao. Model tells you what to discard: Adaptive kv cache compression for llms. arXiv preprint arXiv:2310.01801, 2023.
Xiangming Gu, Tianyu Pang, Chao Du, Qian Liu, Fengzhuo Zhang, Cunxiao Du, Ye Wang, and Min Lin. When attention sink emerges in language models: An empirical view. In International Conference on Learning Representations, volume 2025, pp. 97114–97144, 2025.
Xu Liu, Guikun Chen, and Wenguan Wang. Sinktrack: Attention sink based context anchoring for large language models. In The Fourteenth International Conference on Learning Representations, 2026.
Noam Shazeer. Glu variants improve transformer. arXiv preprint arXiv:2002.05202, 2020.
Seungwoo Son, Wonpyo Park, Woohyun Han, Kyuyeun Kim, and Jaeho Lee. Prefixing attention sinks can mitigate activation outliers for large language model quantization. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pp. 2242–2252, 2024.
Mingjie Sun, Xinlei Chen, J Zico Kolter, and Zhuang Liu. Massive activations in large language models. In First Conference on Language Modeling, 2024.
Shangwen Sun, Alfredo Canziani, Yann LeCun, and Jiachen Zhu. The spike, the sparse and the sink: Anatomy of massive activations and attention sinks. arXiv preprint arXiv:2603.05498, 2026.
Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, et al. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971, 2023.
https://github.com/MinjiaMao/magc
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017.
Guangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han, and Mike Lewis. Efficient streaming language models with attention sinks. arXiv preprint arXiv:2309.17453, 2023.
Ruiqing Yan, Xingbo Du, Haoyu Deng, Linghan Zheng, Qiuzhuang Sun, Jifang Hu, Yuhang Shao, Penghao Jiang, Jinrong Jiang, and Lian Zhao. Unveiling and controlling anomalous attention distribution in transformers. arXiv preprint arXiv:2407.01601, 2024.
Zhongzhi Yu, Zheng Wang, Yonggan Fu, Huihong Shi, Khalid Shaikh, and Yingyan Celine Lin. Unveiling and harnessing hidden attention sinks: Enhancing large language models without training through attention calibration. arXiv preprint arXiv:2406.15765, 2024.
Biao Zhang and Rico Sennrich. Root mean square layer normalization. Advances in neural information processing systems, 32, 2019.
Stephen Zhang, Mustafa Khan, and Vardan Papyan. Attention sinks: A'catch, tag, release' mechanism for embeddings. Advances in Neural Information Processing Systems, 38:83140–83181, 2026.
A GENERALIZATION OF NEAR IDENTITY ASSUMPTION FOR SILU
Following Sun et al. (2026), we compute the cosine similarity between the gate pre-activation and its activation , and the ratio of their norms for spike tokens. Using the randomly generated sequences described in Section 3, we report in Table A1 both metrics averaged over the first tokens of these sequences. For SiLU to behave approximately as an identity function, both metrics should be close to 1. Among the models examined, this condition is approximately satisfied only by LLaMA-2-7B.
| Model | Metric | Token 0 |
|---|---|---|
| LLaMA-2-7B | Cosine sim. | 0.9719 |
| Norm ratio | 0.8103 | |
| LLaMA-3.2-1B | Cosine sim. | 0.8623 |
| Norm ratio | 0.6232 | |
| Qwen2.5-1.5B | Cosine sim. | 0.2276 |
| Norm ratio | 0.1564 | |
| QwQ-32B | Cosine sim. | 0.2990 |
| Norm ratio | 0.1186 | |
| Ministral-3-3B | Cosine sim. | 0.7895 |
| Norm ratio | 0.7897 | |
| Deepseek-R1-8B | Cosine sim. | 0.9215 |
| Norm ratio | 0.7720 |
Table A1: Input-output characteristics of SiLU in the spike FFN across models.

Figure A1: Top-3 channel magnitudes of transformer block outputs in Llama-3.2-1B and their differences.
Block 1 FFN input h

Block 1 FFN output y

Block 1 FFN input h
Block 1 FFN output y


Block 1 FFN input h
Block 1 FFN output y


Block 1 FFN input h
Block 1 FFN output y


Figure A2: Inputs and Outputs of the Spike FFN.
B ADDITIONAL EXPERIMENTS FOR LLAMA-3.2-1B
B.1 MASSIVE ACTIVATIONS
Figure A1 shows the block-wise differences of the top-3 channel magnitudes of the transformer block outputs in LLaMA-3.2-1B. As depicted, the differences exhibit a single sharp jump at the second transformer block, where the spike FFN triggers massive activations. In the subsequent middle blocks, the differences remain close to zero, indicating that no further massive activations are triggered and that the residual stream alone preserves the existing ones until the late blocks.
B.2 INPUT AND OUTPUT OF THE SPIKE FFN FOR OTHER SAMPLE SEQUENCES
Following Section 3, we depict the activations of the other 4 randomly generated sequences in Figure A2.
B.3 PARETO INPUTS FOR THE SPIKE FFN
Input Pareto(a=3), peak@ch 894

Block 1 FFN output (peak@ch 894, a=3)
Input Pareto(a=3), peak@ch 0

Block 1 FFN output (peak@ch 0, a=3)
Input Pareto(a=3), peak@ch 1742
Block 1 FFN output (peak@ch 1742, a=3)
Figure A3: From top to bottom, the figure shows the output of the spike FFN when the input vector values are randomly sampled from a Pareto distribution (a = 3), with the input value of the 894th (MAGC), 0th, or 1742nd channel swapped with the maximum input value, respectively.

Input Pareto(a=5), peak@ch 0
Block 1 FFN output (peak@ch 0, a=5)
Input Pareto(a=5), peak@ch 1742
Block 1 FFN output (peak@ch 1742, a=5)
Figure A4: From top to bottom, the figure shows the output of the spike FFN when the input vector values are randomly sampled from a Pareto distribution (a = 5), with the input value of the 894th (MAGC), 0th, or 1742nd channel swapped with the maximum input value, respectively.
C PROOFS
C.1 PROOF OF THEOREM 4.1
Theorem C.1. Given input . When , the output of an FFN has a quadratic form with constant equals to
where is the combination of coefficients in the weight matrices:
Proof. Based on Equation 4, the linear representation of and can be written as
(A4) where and are both constant under .
We have the asymptotic property of SiLU(x):
and the asymptotic property of :
Finally,
where is
□
C.2 PROOF OF PROPOSITION 4.6
Recall that
The energy distribution of is
Let be the dominant coefficient index. Then can be decomposed into the dominant column and the residual part:
Define the residual vector
The residual amplification factor is defined as in Definition 4.5,
The angular deviation between the true asymptotic output and the dominant column is
Finally, for , define
Lemma C.2. Assume . Then,
Proof. Based on the Fannes-Audenaert inequality:
where and is the entropy function. We have
Since is increasing on ,
□
Proposition C.3. Let
We have
where for , .
Proof. Recall , then . Since , decompose the residual vector as
We have
The angular deviation from is caused only by the perpendicular residual component. Hence,
The above inequality follows because, after squaring and rearranging, it is equivalent to
Moreover,
Therefore,
Based on Lemma C.2, it is sufficient to prove Proposition 4.6.
D ADDITIONAL RESULTS
Identification of the Spike FFN and MAGC. We identify the spike FFN and MAGC by comparing the first (spike) token and the second (non-spike) token of the randomly generated sequences. Let denote the average FFN output of the first token in the l-th transformer block. We regard an FFN as the spike FFN if its output exhibits an outlier channel (Sun et al., 2024), i.e.,
Given the spike FFN, we then identify MAGC from its inputs. Let and be the average inputs to the spike FFN for the first and second tokens, respectively. The gating channel should be the channel where the two inputs deviate the most. We therefore locate MAGC as
and determine the gating direction by the sign of : a positive (negative) sign indicates that massive activations emerge when the value of MAGC becomes sufficiently large (small).
This appendix reports the detailed results for the models summarized in Table 1: LLaMA-2-7B (Figure A5), Qwen2.5-1.5B (Figure A6), QwQ-32B (Figure A7), Ministral-3-3B-Instruct-2512 (Figure A8), and DeepSeek-R1-Distill-Llama-8B (Figure A9). For each model, we present (i) the input h and outputs y of the spike FFN for a random input sequence, (ii) the coefficient vector defined in Theorem 4.1, where for models with a negative gating direction is computed under the limit and the condition on flips sign accordingly, and (iii) the dominant columns (the columns most aligned with the output , as reported in Table 1) together with a randomly selected column for comparison.
Block 1 FFN input h

(a) Input to FFN.
Block 1 FFN output y

Positive Gate alpha vector (i=MAGC)
(b) Output of FFN.

(c) vector when .
Down Matrix Column 10411

(d) .
Down Matrix Column 7890

(e) .
Down Matrix Column 0

(f) .
Figure A5: Results for LLaMA-2-7b-hf.

(a) Input to FFN.

(b) Output of FFN.

(c) vector when .

(d) .

(e) .

(f) .
Figure A6: Results for Qwen2.5-1.5b.
Block 4 FFN input h

(a) Input h to FFN.
Block 4 FFN output y
Negative Gate alpha vector (i=MAGC)

(b) Output y of FFN.
Down Matrix Column 11696

(c) vector when .
Down Matrix Column 1368

(d) .
Down Matrix Column 0

(e) .

(f) .
Figure A7: Results for QwQ-32B. For QwQ-32B, several of the channels with the largest input difference coincide with massive-activation channels propagated through the residual stream; we therefore identify the MAGC ( , negative gating direction) by traversing the ten channels with the largest such difference following Equation A12 and selecting the first one that is not itself a massive-activation channel, rather than simply taking the single largest.
Block 2 FFN input h

(a) Input to FFN.
Block 2 FFN output y

(b) Output of FFN.
Negative Gate alpha vector (i=MAGC)

(c) vector when .
Down Matrix Column 0

(d) .
Down Matrix Column 2

(e) .
Down Matrix Column 1

(f) .
Figure A8: Results for Ministral-3-3B-Instruct-2512. Note that columns 0 and 2 belong to . Instead of choosing 0 as the random column for comparison, we select column 1.

(a) Input to FFN.

(b) Output of FFN.

(c) vector when .

(d) .

(e) .

(f) .
Figure A9: Results for DeepSeek-R1-Distill-Llama-8B.