atlas

Research map / Large language models / Retrieval and knowledge

Massive Values in Self-Attention Modules are the Key to Contextual Knowledge Understanding

ICML 2025 · Large language models › Retrieval and knowledge · approach: Knowledge editing in LLMs · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

The paper shows that massive values in attention queries and keys (not values) concentrate in specific dimensions due to RoPE, and that disrupting them mainly harms contextual knowledge understanding while sparing parametric knowledge retrieval.

Problem

Understanding why massive activation values concentrate in attention queries and keys of RoPE-based LLMs, and what functional role they play in contextual versus parametric knowledge processing and quantization robustness.

Approach

Defines massive values in Q and K via a norm-based threshold, shows they concentrate in low-frequency RoPE dimensions consistently across heads and layers, and tests their role by replacing them with mean/zero/min values during prefilling, comparing contextual versus parametric tasks.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
disrupt massive values in Q and K (ablation)Gemma2-9B · GSM8Kaccuracy: 81.30 -> 15.10Hurt
disrupt massive values in Q and K (ablation)Llama3-8B · AQUAaccuracy: 53.51 -> 9.68Hurt
disrupt massive values in Q and K (ablation)Qwen2.5-7B · Passkey Retrieval (256,12)accuracy: 100 -> 1.00Hurt
disrupt massive values in Q and K (ablation)Llama3-8B · IMDBaccuracy: 95.40 -> 11.00Hurt
disrupt massive values in Q and K (ablation)Llama3-8B · Citiesaccuracy: 99.40 -> 88.20Hurt
disrupt non-massive values in Q and K (ablation)Llama3-8B · GSM8Kaccuracy: 76.90 -> 77.40No clear effect
replace massive values with zeros rather than mean values (ablation)Llama3-8B · GSM8Kaccuracy: 4.00 -> 1.60Hurt
replace massive values with minimum values rather than mean values (ablation)Llama3-8B · GSM8Kaccuracy: 4.00 -> 2.73Hurt
disrupt massive values in Q and K (ablation)Llama3-9B · IMDBperplexity: 8.38 -> 112.61Hurt
disrupt non-massive values in Q and K (ablation)Llama3-9B · AQUAperplexity: 3.21 -> 3.30No clear effect
use quantization that does not specifically protect massive values (GPTQ) rather than AWQ or SmoothQuantLlama3-8B · GSM8K and AQUAnormalized accuracy: approximately 75%Hurt
preserve massive values during quantization with AWQ or SmoothQuant rather than not specifically addressing them with GPTQLlama3-8B · contextual understanding tasksperformanceHelped

Surprising findings

Limitations

Experimental setup

Datasets: GSM8K AQUA IMDB Cities Passkey retrieval (synthetic) Synthetic factual QA (Sports, Arts, Technology, Celebrity)

Benchmarks: GSM8K AQUA IMDB Passkey Retrieval Cities Sports Art Technology Celebrity

Metrics: accuracy perplexity 2-gram diversity

Baselines: AWQ SmoothQuant GPTQ OPT GPT-2

Builds on: RoPE AWQ SmoothQuant GPTQ Round and Round we go

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy