mlsanityData to 7 Oct 2026

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

arXiv 2502.01563 ↗First posted 3 Feb 2025cs.CLcited by 44

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2023GPT-4 Technical Reportcited by 18,132
  5. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  6. 2024The Llama 3 Herd of Modelscited by 14,192
  7. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  8. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  9. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  10. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  11. 2023Visual Instruction Tuningcited by 7,792
  12. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
38 more
  1. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  2. 2024Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolutioncited by 4,151
  3. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  4. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  5. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  6. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
  7. 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,338
  8. 2023PaLM 2 Technical Reportcited by 1,154
  9. 2021GLM: General Language Model Pretraining with Autoregressive Blank Infillingcited by 1,026
  10. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
  11. 2024Gemma: Open Models Based on Gemini Research and Technologycited by 889
  12. 2023Vision Transformers Need Registerscited by 844
  13. 2023Can Large Language Models Be an Alternative to Human Evaluations?cited by 729
  14. 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 711
  15. 2023The Geometry of Truth: Emergent Linear Structure in Large Language Model Representations of True/False Datasetscited by 673
  16. 2023The Internal State of an LLM Knows When It's Lyingcited by 644
  17. 2017Program Induction by Rationale Generation : Learning to Solve and Explain Algebraic Word Problemscited by 642
  18. 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 604
  19. 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 571
  20. 2023FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUcited by 567
  21. 2022ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformerscited by 517
  22. 2024Jamba: A Hybrid Transformer-Mamba Language Modelcited by 390
  23. 2021Entity-Based Knowledge Conflicts in Question Answeringcited by 349
  24. 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 319
  25. 2023Language Models Represent Space and Timecited by 306
  26. 2023Effective Long-Context Scaling of Foundation Modelscited by 301
  27. 2024Massive Activations in Large Language Modelscited by 277
  28. 2024Knowledge Conflicts for LLMs: A Surveycited by 274
  29. 2023Physics of Language Models: Part 3.1, Knowledge Storage and Extractioncited by 264
  30. 2023Atom: Low-bit Quantization for Efficient and Accurate LLM Servingcited by 255
  31. 2023Landmark Attention: Random-Access Infinite Context Length for Transformerscited by 206
  32. 2020Rethinking Positional Encoding in Language Pre-trainingcited by 197
  33. 2022Outlier Suppression: Pushing the Limit of Low-bit Transformer Language Modelscited by 176
  34. 2024The Impact of Reasoning Step Length on Large Language Modelscited by 152
  35. 2022Transformer Language Models without Positional Encodings Still Learn Positional Informationcited by 148
  36. 2024LLM Maybe LongLM: Self-Extend LLM Context Window Without Tuningcited by 133
  37. 2020Evaluating the Evaluation of Diversity in Natural Language Generationcited by 127
  38. 2022A Length-Extrapolatable Transformercited by 123

50 most cited of 67 All 67 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 22; 2026: 22.

44 papers.

Sort:

By area:

  1. 2025OpenThinkIMG: Learning to Think with Images via Visual Tool Reinforcement Learningcited by 163
  2. 2025LongLLaDA: Unlocking Long Context Capabilities in Diffusion LLMscited by 38
  3. 2025Two Heads are Better Than One: Test-time Scaling of Multi-agent Collaborative Reasoningcited by 29
  4. 2025MMRC: A Large-Scale Benchmark for Understanding Multimodal Large Language Model in Real-World Conversationcited by 28
  5. 2025SAE-SSV: Supervised Steering in Sparse Representation Spaces for Reliable Control of Language Modelscited by 28
  6. 2025Taming Knowledge Conflicts in Language Modelscited by 27
  7. 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Modelscited by 22
  8. 2025Unleashing Diffusion Transformers for Visual Correspondence by Modulating Massive Activationscited by 20
  9. 2025Hidden Dynamics of Massive Activations in Transformer Trainingcited by 10
  10. 2026Attention Sinks Are Provably Necessary in Softmax Transformers: Evidence from Trigger-Conditional Taskscited by 10
  11. 2025SpecQuant: Spectral Decomposition and Adaptive Truncation for Ultra-Low-Bit LLMs Quantizationcited by 9
  12. 2025All You Need is One: Capsule Prompt Tuning with a Single Vectorcited by 8
32 more
  1. 2025Group Relative Attention Guidance for Image Editingcited by 8
  2. 2026All Circuits Lead to Rome: Rethinking Functional Anisotropy in Circuit and Sheaf Discovery for LLMscited by 8
  3. 2025Massive Activations are the Key to Local Detail Synthesis in Diffusion Transformerscited by 7
  4. 2026Context Tokens are Anchors: Understanding the Repetition Curse in dMLLMs from an Information Flow Perspectivecited by 6
  5. 2026From Data to Behavior: Predicting Unintended Model Behaviors Before Trainingcited by 6
  6. 2026OScaR: The Occam's Razor for Extreme KV Cache Quantization in LLMs and Beyondcited by 5
  7. 2025Self-Regularization with Sparse Autoencoders for Controllable LLM-based Classificationcited by 4
  8. 2025Deconstructing Positional Information: From Attention Logits to Training Biasescited by 4
  9. 2026Reasoning over Precedents Alongside Statutes: Case-Augmented Deliberative Alignment for LLM Safetycited by 3
  10. 2026Farther the Shift, Sparser the Representation: Analyzing OOD Mechanisms in LLMscited by 3
  11. 2025RefAM: Attention Magnets for Zero-Shot Referral Segmentationcited by 2
  12. 2025DoPE: Denoising Rotary Position Embeddingcited by 2
  13. 2026C^2ROPE: Causal Continuous Rotary Positional Encoding for 3D Large Multimodal-Models Reasoningcited by 2
  14. 2026LongAct: Harnessing Intrinsic Activation Patterns for Long-Context Reinforcement Learningcited by 2
  15. 2026A Single Layer to Explain Them All:Understanding Massive Activations in Large Language Modelscited by 2
  16. 2025Rotary Offset Features in Large Language Modelscited by 1
  17. 2025When Long Helps Short: How Context Length in Supervised Fine-tuning Affects Behavior of Large Language Modelscited by 1
  18. 2025Conformal Sparsification for Bandwidth-Efficient Edge-Cloud Speculative Decodingcited by 1
  19. 2025Outlier Smoothing with Closed-Form Rotations for W4A4 Large Language Model Quantizationcited by 1
  20. 2026Fast and Accurate Probing of In-Training LLMs' Downstream Performancescited by 1
  21. 2026LoKA: Low-precision Kernel Applications for Recommendation Models At Scalecited by 1
  22. 2026Trust or Abstain? A Self-Aware RAG Approachcited by 1
  23. 2026How Data Shapes RoPE Frequency Usage: From Positional Scale Matching to Length Generalizationcited by 1
  24. 2026Which Decisions Low-Bit Quantization Breaks, and How to Predict Themcited by 1
  25. 2026Mechanist: AI as a Scientific Instrument for Discovering the Mechanisms of Intelligencecited by 1
  26. 2025Causality-Induced Positional Encoding for Transformer-Based Representation Learning of Non-Sequential Featurescited by 0
  27. 2025RoSA: Enhancing Parameter-Efficient Fine-Tuning via RoPE-aware Selective Adaptation in Large Language Modelscited by 0
  28. 2026CoPE: Clipped RoPE as A Scalable Free Lunch for Long Context LLMscited by 0
  29. 2026Steering Video Diffusion Transformers with Massive Activationscited by 0
  30. 2026Awakening Diffusion Transformers: Eliciting Stronger Generation and Understanding via Massive Activation Modulationcited by 0
  31. 2026AEGIS: A Mechanism-Guided Defense against Visual Synonym Jailbreaks in Text-to-Image Modelscited by 0
  32. 2026Rethinking Indirect Prompt Injection as a Test-Time Search Problemcited by 0