Massive Values in Self-Attention Modules are the Key to Contextual Knowledge Understanding
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) have achieved remarkable success in contextual knowledge understanding. In this paper, we show that these concentrated massive values consistently emerge in specific regions of attention queries (Q) and keys (K) while not having such patterns in values (V) in various modern transformer-based LLMs (Q, K, and V mean the representations output by the query, key, and value layers respectively). Through extensive experiments, we further demonstrate that these massive values play a critical role in interpreting contextual knowledge (knowledge obtained from the current context window) rather than in retrieving parametric knowledge stored within the model's parameters. Our further investigation of quantization strategies reveals that ignoring these massive values leads to a pronounced drop in performance on tasks requiring rich contextual understanding, aligning with our analysis. Finally, we trace the emergence of concentrated massive values and find that such concentration is caused by Rotary Positional Encoding (RoPE), which has appeared since the first layers. These findings shed new light on how Q and K operate in LLMs and offer practical insights for model design and optimization. The Code is Available at https://github.com/MingyuJ666/Rope_with_LLM.
Key facts. Cited by 44 papers in the map (data through 7 Oct 2026). Builds on 67 of its 85 references that are in the map. First posted on arXiv 3 Feb 2025.
Builds on
67 of 85 references.
References · 67
- 2017Attention Is All You Needcited by 59,932
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2023Visual Instruction Tuningcited by 7,792
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
38 more
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2024Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolutioncited by 4,151
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,338
- 2023PaLM 2 Technical Reportcited by 1,154
- 2021GLM: General Language Model Pretraining with Autoregressive Blank Infillingcited by 1,026
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
- 2024Gemma: Open Models Based on Gemini Research and Technologycited by 889
- 2023Vision Transformers Need Registerscited by 844
- 2023Can Large Language Models Be an Alternative to Human Evaluations?cited by 729
- 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 711
- 2023The Geometry of Truth: Emergent Linear Structure in Large Language Model Representations of True/False Datasetscited by 673
- 2023The Internal State of an LLM Knows When It's Lyingcited by 644
- 2017Program Induction by Rationale Generation : Learning to Solve and Explain Algebraic Word Problemscited by 642
- 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 604
- 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 571
- 2023FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUcited by 567
- 2022ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformerscited by 517
- 2024Jamba: A Hybrid Transformer-Mamba Language Modelcited by 390
- 2021Entity-Based Knowledge Conflicts in Question Answeringcited by 349
- 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 319
- 2023Language Models Represent Space and Timecited by 306
- 2023Effective Long-Context Scaling of Foundation Modelscited by 301
- 2024Massive Activations in Large Language Modelscited by 277
- 2024Knowledge Conflicts for LLMs: A Surveycited by 274
- 2023Physics of Language Models: Part 3.1, Knowledge Storage and Extractioncited by 264
- 2023Atom: Low-bit Quantization for Efficient and Accurate LLM Servingcited by 255
- 2023Landmark Attention: Random-Access Infinite Context Length for Transformerscited by 206
- 2020Rethinking Positional Encoding in Language Pre-trainingcited by 197
- 2022Outlier Suppression: Pushing the Limit of Low-bit Transformer Language Modelscited by 176
- 2024The Impact of Reasoning Step Length on Large Language Modelscited by 152
- 2022Transformer Language Models without Positional Encodings Still Learn Positional Informationcited by 148
- 2024LLM Maybe LongLM: Self-Extend LLM Context Window Without Tuningcited by 133
- 2020Evaluating the Evaluation of Diversity in Natural Language Generationcited by 127
- 2022A Length-Extrapolatable Transformercited by 123
50 most cited of 67 All 67 (JSON)
Built on by
Citing papers per year: 2025: 22; 2026: 22.
44 papers.
Sort:
By area:
- 2025OpenThinkIMG: Learning to Think with Images via Visual Tool Reinforcement Learningcited by 163
- 2025LongLLaDA: Unlocking Long Context Capabilities in Diffusion LLMscited by 38
- 2025Two Heads are Better Than One: Test-time Scaling of Multi-agent Collaborative Reasoningcited by 29
- 2025MMRC: A Large-Scale Benchmark for Understanding Multimodal Large Language Model in Real-World Conversationcited by 28
- 2025SAE-SSV: Supervised Steering in Sparse Representation Spaces for Reliable Control of Language Modelscited by 28
- 2025Taming Knowledge Conflicts in Language Modelscited by 27
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Modelscited by 22
- 2025Unleashing Diffusion Transformers for Visual Correspondence by Modulating Massive Activationscited by 20
- 2025Hidden Dynamics of Massive Activations in Transformer Trainingcited by 10
- 2026Attention Sinks Are Provably Necessary in Softmax Transformers: Evidence from Trigger-Conditional Taskscited by 10
- 2025SpecQuant: Spectral Decomposition and Adaptive Truncation for Ultra-Low-Bit LLMs Quantizationcited by 9
- 2025All You Need is One: Capsule Prompt Tuning with a Single Vectorcited by 8
32 more
- 2025Group Relative Attention Guidance for Image Editingcited by 8
- 2026All Circuits Lead to Rome: Rethinking Functional Anisotropy in Circuit and Sheaf Discovery for LLMscited by 8
- 2025Massive Activations are the Key to Local Detail Synthesis in Diffusion Transformerscited by 7
- 2026Context Tokens are Anchors: Understanding the Repetition Curse in dMLLMs from an Information Flow Perspectivecited by 6
- 2026From Data to Behavior: Predicting Unintended Model Behaviors Before Trainingcited by 6
- 2026OScaR: The Occam's Razor for Extreme KV Cache Quantization in LLMs and Beyondcited by 5
- 2025Self-Regularization with Sparse Autoencoders for Controllable LLM-based Classificationcited by 4
- 2025Deconstructing Positional Information: From Attention Logits to Training Biasescited by 4
- 2026Reasoning over Precedents Alongside Statutes: Case-Augmented Deliberative Alignment for LLM Safetycited by 3
- 2026Farther the Shift, Sparser the Representation: Analyzing OOD Mechanisms in LLMscited by 3
- 2025RefAM: Attention Magnets for Zero-Shot Referral Segmentationcited by 2
- 2025DoPE: Denoising Rotary Position Embeddingcited by 2
- 2026C^2ROPE: Causal Continuous Rotary Positional Encoding for 3D Large Multimodal-Models Reasoningcited by 2
- 2026LongAct: Harnessing Intrinsic Activation Patterns for Long-Context Reinforcement Learningcited by 2
- 2026A Single Layer to Explain Them All:Understanding Massive Activations in Large Language Modelscited by 2
- 2025Rotary Offset Features in Large Language Modelscited by 1
- 2025When Long Helps Short: How Context Length in Supervised Fine-tuning Affects Behavior of Large Language Modelscited by 1
- 2025Conformal Sparsification for Bandwidth-Efficient Edge-Cloud Speculative Decodingcited by 1
- 2025Outlier Smoothing with Closed-Form Rotations for W4A4 Large Language Model Quantizationcited by 1
- 2026Fast and Accurate Probing of In-Training LLMs' Downstream Performancescited by 1
- 2026LoKA: Low-precision Kernel Applications for Recommendation Models At Scalecited by 1
- 2026Trust or Abstain? A Self-Aware RAG Approachcited by 1
- 2026How Data Shapes RoPE Frequency Usage: From Positional Scale Matching to Length Generalizationcited by 1
- 2026Which Decisions Low-Bit Quantization Breaks, and How to Predict Themcited by 1
- 2026Mechanist: AI as a Scientific Instrument for Discovering the Mechanisms of Intelligencecited by 1
- 2025Causality-Induced Positional Encoding for Transformer-Based Representation Learning of Non-Sequential Featurescited by 0
- 2025RoSA: Enhancing Parameter-Efficient Fine-Tuning via RoPE-aware Selective Adaptation in Large Language Modelscited by 0
- 2026CoPE: Clipped RoPE as A Scalable Free Lunch for Long Context LLMscited by 0
- 2026Steering Video Diffusion Transformers with Massive Activationscited by 0
- 2026Awakening Diffusion Transformers: Eliciting Stronger Generation and Understanding via Massive Activation Modulationcited by 0
- 2026AEGIS: A Mechanism-Guided Defense against Visual Synonym Jailbreaks in Text-to-Image Modelscited by 0
- 2026Rethinking Indirect Prompt Injection as a Test-Time Search Problemcited by 0
- 2026Rethinking Indirect Prompt Injection as a Test-Time Search Problem3 Sep 2026
- 2026Mechanist: AI as a Scientific Instrument for Discovering the Mechanisms of Intelligence12 Aug 2026
- 2026Which Decisions Low-Bit Quantization Breaks, and How to Predict Them6 Aug 2026
- 2026How Data Shapes RoPE Frequency Usage: From Positional Scale Matching to Length Generalization8 Jul 2026
- 2026AEGIS: A Mechanism-Guided Defense against Visual Synonym Jailbreaks in Text-to-Image Models7 Jul 2026
- 2026Awakening Diffusion Transformers: Eliciting Stronger Generation and Understanding via Massive Activation Modulation3 Jul 2026
- 2026OScaR: The Occam's Razor for Extreme KV Cache Quantization in LLMs and Beyond19 May 2026
- 2026All Circuits Lead to Rome: Rethinking Functional Anisotropy in Circuit and Sheaf Discovery for LLMs12 May 2026
- 2026Trust or Abstain? A Self-Aware RAG Approach11 May 2026
- 2026LoKA: Low-precision Kernel Applications for Recommendation Models At Scale11 May 2026
- 2026A Single Layer to Explain Them All:Understanding Massive Activations in Large Language Models8 May 2026
- 2026LongAct: Harnessing Intrinsic Activation Patterns for Long-Context Reinforcement Learning16 Apr 2026
32 more
- 2026Fast and Accurate Probing of In-Training LLMs' Downstream Performances1 Apr 2026
- 2026Steering Video Diffusion Transformers with Massive Activations18 Mar 2026
- 2026Attention Sinks Are Provably Necessary in Softmax Transformers: Evidence from Trigger-Conditional Tasks12 Mar 2026
- 2026Farther the Shift, Sparser the Representation: Analyzing OOD Mechanisms in LLMs3 Mar 2026
- 2026C^2ROPE: Causal Continuous Rotary Positional Encoding for 3D Large Multimodal-Models Reasoning11 Feb 2026
- 2026CoPE: Clipped RoPE as A Scalable Free Lunch for Long Context LLMs5 Feb 2026
- 2026From Data to Behavior: Predicting Unintended Model Behaviors Before Training4 Feb 2026
- 2026Context Tokens are Anchors: Understanding the Repetition Curse in dMLLMs from an Information Flow Perspective28 Jan 2026
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Models20 Jan 2026
- 2026Reasoning over Precedents Alongside Statutes: Case-Augmented Deliberative Alignment for LLM Safety12 Jan 2026
- 2025Outlier Smoothing with Closed-Form Rotations for W4A4 Large Language Model Quantization27 Nov 2025
- 2025RoSA: Enhancing Parameter-Efficient Fine-Tuning via RoPE-aware Selective Adaptation in Large Language Models21 Nov 2025
- 2025DoPE: Denoising Rotary Position Embedding12 Nov 2025
- 2025SpecQuant: Spectral Decomposition and Adaptive Truncation for Ultra-Low-Bit LLMs Quantization11 Nov 2025
- 2025Group Relative Attention Guidance for Image Editing28 Oct 2025
- 2025All You Need is One: Capsule Prompt Tuning with a Single Vector19 Oct 2025
- 2025Massive Activations are the Key to Local Detail Synthesis in Diffusion Transformers13 Oct 2025
- 2025Conformal Sparsification for Bandwidth-Efficient Edge-Cloud Speculative Decoding11 Oct 2025
- 2025RefAM: Attention Magnets for Zero-Shot Referral Segmentation26 Sep 2025
- 2025When Long Helps Short: How Context Length in Supervised Fine-tuning Affects Behavior of Large Language Models23 Sep 2025
- 2025Causality-Induced Positional Encoding for Transformer-Based Representation Learning of Non-Sequential Features20 Sep 2025
- 2025Hidden Dynamics of Massive Activations in Transformer Training5 Aug 2025
- 2025LongLLaDA: Unlocking Long Context Capabilities in Diffusion LLMs17 Jun 2025
- 2025Unleashing Diffusion Transformers for Visual Correspondence by Modulating Massive Activations24 May 2025
- 2025SAE-SSV: Supervised Steering in Sparse Representation Spaces for Reliable Control of Language Models22 May 2025
- 2025Deconstructing Positional Information: From Attention Logits to Training Biases19 May 2025
- 2025OpenThinkIMG: Learning to Think with Images via Visual Tool Reinforcement Learning13 May 2025
- 2025Two Heads are Better Than One: Test-time Scaling of Multi-agent Collaborative Reasoning14 Apr 2025
- 2025Taming Knowledge Conflicts in Language Models14 Mar 2025
- 2025Rotary Offset Features in Large Language Models3 Mar 2025
- 2025Self-Regularization with Sparse Autoencoders for Controllable LLM-based Classification19 Feb 2025
- 2025MMRC: A Large-Scale Benchmark for Understanding Multimodal Large Language Model in Real-World Conversation17 Feb 2025
- 2025LongLLaDA: Unlocking Long Context Capabilities in Diffusion LLMscited by 38
- 2025Unleashing Diffusion Transformers for Visual Correspondence by Modulating Massive Activationscited by 20
- 2025Massive Activations are the Key to Local Detail Synthesis in Diffusion Transformerscited by 7
- 2025RefAM: Attention Magnets for Zero-Shot Referral Segmentationcited by 2
- 2026Steering Video Diffusion Transformers with Massive Activationscited by 0
- 2026Awakening Diffusion Transformers: Eliciting Stronger Generation and Understanding via Massive Activation Modulationcited by 0
- 2026AEGIS: A Mechanism-Guided Defense against Visual Synonym Jailbreaks in Text-to-Image Modelscited by 0
- 2026AEGIS: A Mechanism-Guided Defense against Visual Synonym Jailbreaks in Text-to-Image Models7 Jul 2026
- 2026Awakening Diffusion Transformers: Eliciting Stronger Generation and Understanding via Massive Activation Modulation3 Jul 2026
- 2026Steering Video Diffusion Transformers with Massive Activations18 Mar 2026
- 2025Massive Activations are the Key to Local Detail Synthesis in Diffusion Transformers13 Oct 2025
- 2025RefAM: Attention Magnets for Zero-Shot Referral Segmentation26 Sep 2025
- 2025LongLLaDA: Unlocking Long Context Capabilities in Diffusion LLMs17 Jun 2025
- 2025Unleashing Diffusion Transformers for Visual Correspondence by Modulating Massive Activations24 May 2025
- 2025OpenThinkIMG: Learning to Think with Images via Visual Tool Reinforcement Learningcited by 163
- 2025Two Heads are Better Than One: Test-time Scaling of Multi-agent Collaborative Reasoningcited by 29
- 2026All Circuits Lead to Rome: Rethinking Functional Anisotropy in Circuit and Sheaf Discovery for LLMscited by 8
- 2026Reasoning over Precedents Alongside Statutes: Case-Augmented Deliberative Alignment for LLM Safetycited by 3
- 2026C^2ROPE: Causal Continuous Rotary Positional Encoding for 3D Large Multimodal-Models Reasoningcited by 2
- 2026LongAct: Harnessing Intrinsic Activation Patterns for Long-Context Reinforcement Learningcited by 2
- 2026All Circuits Lead to Rome: Rethinking Functional Anisotropy in Circuit and Sheaf Discovery for LLMs12 May 2026
- 2026LongAct: Harnessing Intrinsic Activation Patterns for Long-Context Reinforcement Learning16 Apr 2026
- 2026C^2ROPE: Causal Continuous Rotary Positional Encoding for 3D Large Multimodal-Models Reasoning11 Feb 2026
- 2026Reasoning over Precedents Alongside Statutes: Case-Augmented Deliberative Alignment for LLM Safety12 Jan 2026
- 2025OpenThinkIMG: Learning to Think with Images via Visual Tool Reinforcement Learning13 May 2025
- 2025Two Heads are Better Than One: Test-time Scaling of Multi-agent Collaborative Reasoning14 Apr 2025
- 2026Trust or Abstain? A Self-Aware RAG Approachcited by 1
- 2026Trust or Abstain? A Self-Aware RAG Approach11 May 2026
- 2025SAE-SSV: Supervised Steering in Sparse Representation Spaces for Reliable Control of Language Modelscited by 28
- 2025Taming Knowledge Conflicts in Language Modelscited by 27
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Modelscited by 22
- 2025Hidden Dynamics of Massive Activations in Transformer Trainingcited by 10
- 2026Attention Sinks Are Provably Necessary in Softmax Transformers: Evidence from Trigger-Conditional Taskscited by 10
- 2025SpecQuant: Spectral Decomposition and Adaptive Truncation for Ultra-Low-Bit LLMs Quantizationcited by 9
- 2025All You Need is One: Capsule Prompt Tuning with a Single Vectorcited by 8
- 2025Group Relative Attention Guidance for Image Editingcited by 8
- 2026From Data to Behavior: Predicting Unintended Model Behaviors Before Trainingcited by 6
- 2025Self-Regularization with Sparse Autoencoders for Controllable LLM-based Classificationcited by 4
- 2025Deconstructing Positional Information: From Attention Logits to Training Biasescited by 4
- 2026Farther the Shift, Sparser the Representation: Analyzing OOD Mechanisms in LLMscited by 3
12 most cited of 25 All 25 (JSON)
- 2026Mechanist: AI as a Scientific Instrument for Discovering the Mechanisms of Intelligence12 Aug 2026
- 2026Which Decisions Low-Bit Quantization Breaks, and How to Predict Them6 Aug 2026
- 2026How Data Shapes RoPE Frequency Usage: From Positional Scale Matching to Length Generalization8 Jul 2026
- 2026LoKA: Low-precision Kernel Applications for Recommendation Models At Scale11 May 2026
- 2026A Single Layer to Explain Them All:Understanding Massive Activations in Large Language Models8 May 2026
- 2026Fast and Accurate Probing of In-Training LLMs' Downstream Performances1 Apr 2026
- 2026Attention Sinks Are Provably Necessary in Softmax Transformers: Evidence from Trigger-Conditional Tasks12 Mar 2026
- 2026Farther the Shift, Sparser the Representation: Analyzing OOD Mechanisms in LLMs3 Mar 2026
- 2026CoPE: Clipped RoPE as A Scalable Free Lunch for Long Context LLMs5 Feb 2026
- 2026From Data to Behavior: Predicting Unintended Model Behaviors Before Training4 Feb 2026
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Models20 Jan 2026
- 2025Outlier Smoothing with Closed-Form Rotations for W4A4 Large Language Model Quantization27 Nov 2025
12 newest of 25 All 25 (JSON)