paper-with-me

Papers

Massive Activations in Large Language Models

2024-02-27 · MingJie Sun, Xinlei Chen, J. Zico Kolter, Zhuang Liu

We observe an empirical phenomenon in Large Language Models (LLMs) -- very few activations exhibit significantly larger values than others (e.g., 100,000 times larger). We call them massive activations. First, we demonstrate the widespread existence of massive activations across various LLMs and characterize their locations. Second, we find their values largely stay constant regardless of the input, and they function as indispensable bias terms in LLMs. Third, these massive activations lead to the concentration of attention probabilities to their corresponding tokens, and further, implicit bias terms in the self-attention output. Last, we also study massive activations in Vision Transformers. Code is available at https://github.com/locuslab/massive-activations.

📄 PDF Abstract BibTeX arXiv:2402.17762

Code (6)

locuslab/massive-activations 공식 구현 pytorch
bluorion-com/refine_massive_activations pytorch
jingyangxiang/dfrot pytorch
ruikangliu/IntactKV pytorch
vainf/tinyfusion pytorch
https://gitlab.com/bachstelze/causal_generation pytorch

Similar Papers 제목 키워드 기반

A Single Layer to Explain Them All:Understanding Massive Activations in Large Language Models

2026-05-08 · Zeru Shi, Zhenting Wang, Fan Yang, Qifan Wang 외 arxiv

We investigate the origins of massive activations in large language models (LLMs) and identify a specific layer named the \textbf{Massive Emergence Layer (ME Layer)}, that is consistently observed across model families, …

Instruction Following

A Refined Analysis of Massive Activations in LLMs

2025-03-28 · Louis Owen, Nilabhra Roy Chowdhury, Abhay Kumar, Fabian Güra

Motivated in part by their relevance for low-precision training and quantization, massive activations in large language models (LLMs) have recently emerged as a topic of interest. However, existing analyses are limited i…

Quantization

House of Cards: Massive Weights in LLMs

2024-10-02 · Jaehoon Oh, Seungjun Shin, Dokwan Oh

Massive activations, which manifest in specific feature dimensions of hidden states, introduce a significant bias in large language models (LLMs), leading to an overemphasis on the corresponding token. In this paper, we …

parameter-efficient fine-tuning

Mitigating Attention Sinks and Massive Activations in Audio-Visual Speech Recognition with LLMs

2025-10-26 · Anand, Umberto Cappellazzo, Stavros Petridis, Maja Pantic arxiv

Large language models (LLMs) have recently advanced auditory speech recognition (ASR), visual speech recognition (VSR), and audio-visual speech recognition (AVSR). However, understanding of their internal dynamics under …

Audio-Visual Speech Recognition

Attention Sinks Induce Gradient Sinks: Massive Activations as Gradient Regulators in Transformers

2026-03-18 · Yihong Chen, Zhouchen Lin, Quanming Yao arxiv

Attention sinks and massive activations are recurring and closely related phenomena in Transformer models. Existing explanations have largely focused on the forward pass, yet in pre-norm Transformers, large residual-stre…