A Refined Analysis of Massive Activations in LLMs

Louis Owen, Nilabhra Roy Chowdhury, Abhay Kumar, Fabian Güra
3/28/2025
cs.CL

Official code: bluorion-com/refine_massive_activations (11 stars, MIT, last commit 2025-05-21).

Abstract

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 in scope, and generalizability across architectures is unclear. This paper helps address some of these gaps by conducting an analysis of massive activations across a broad range of LLMs, including both GLU-based and non-GLU-based architectures. Our findings challenge several prior assumptions, most importantly: (1) not all massive activations are detrimental, i.e. suppressing them does not lead to an explosion of perplexity or a collapse in downstream task performance; (2) proposed mitigation strategies such as Attention KV bias are model-specific and ineffective in certain cases. We consequently investigate novel hybrid mitigation strategies; in particular pairing Target Variance Rescaling (TVR) with Attention KV bias or Dynamic Tanh (DyT) successfully balances the mitigation of massive activations with preserved downstream model performance in the scenarios we investigated. Our code is available at: https://github.com/bluorion-com/refine_massive_activations.

View on arXivView PDF

Code Implementations(1)

MIT

Official implementation of the paper: "A Refined Analysis of Massive Activations in LLMs".

113PythonMar 24, 20251 years agoMIT

Similar Papers

Cite this paper

@article{owen2025refined,
  title  = {A Refined Analysis of Massive Activations in LLMs},
  author = {Louis Owen and Nilabhra Roy Chowdhury and Abhay Kumar and Fabian Güra},
  year   = {2025},
  eprint = {2503.22329},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.22329v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.22329.svg)](https://codeofpaper.com/paper/2503.22329)

Discussion