mlsanityData to 7 Oct 2026

Active-Dormant Attention Heads: Mechanistically Demystifying Extreme-Token Phenomena in LLMs

arXiv 2410.13835 ↗First posted 17 Oct 2024cs.LGcited by 54

Not on the map. Why?

Abstract (arXiv)

Practitioners have consistently observed three puzzling phenomena in transformer-based large language models (LLMs): attention sinks, value-state drains, and residual-state peaks, collectively referred to as extreme-token phenomena. These phenomena are characterized by certain so-called "sink tokens" receiving disproportionately high attention weights, exhibiting significantly smaller value states, and having much larger residual-state norms than those of other tokens. These extreme tokens give rise to various challenges in LLM inference, quantization, and interpretability. We elucidate the mechanisms behind extreme-token phenomena. First, we show that these phenomena arise in very simple architectures -- transformers with one to three layers -- trained on a toy model, the Bigram-Backcopy (BB) task. In this setting, we identify an active-dormant mechanism, where attention heads become sinks for specific input domains while remaining non-sinks for others. Our theoretical analysis of the training dynamics reveals that these phenomena are driven by a mutual reinforcement mechanism. Building on these insights, we propose strategies to mitigate extreme-token phenomena during pretraining, including replacing softmax with ReLU and Adam with SGD. Next, we extend our analysis to pretrained LLMs, including Llama and OLMo, showing that many attention heads exhibit a similar active-dormant mechanism as in the BB task, and that the mutual reinforcement mechanism also governs the emergence of extreme-token phenomena during LLM pretraining. Our results reveal that many of the static and dynamic properties of extreme-token phenomena predicted by the BB task align with observations in pretrained LLMs.

Key facts. Cited by 54 papers in the map (data through 7 Oct 2026). Builds on 61 of its 75 references that are in the map. First posted on arXiv 17 Oct 2024.

Builds on

61 of 75 references.

References · 61

  1. 2017Attention Is All You Needcited by 59,932
  2. 2024The Llama 3 Herd of Modelscited by 14,192
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  4. 2023Mistral 7Bcited by 3,065
  5. 2022Locating and Editing Factual Associations in GPTcited by 2,609
  6. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  7. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
  8. 2017Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inferencecited by 1,548
  9. 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,338
  10. 2023AWQ: Activation-aware Weight Quantization for LLM Compression and Accelerationcited by 1,234
  11. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
  12. 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 881
38 more
  1. 2023Vision Transformers Need Registerscited by 844
  2. 2023Progress measures for grokking via mechanistic interpretabilitycited by 822
  3. 2021A Survey of Quantization Methods for Efficient Neural Network Inferencecited by 798
  4. 2024An Image is Worth 1/2 Tokens After Layer 2: Plug-and-Play Inference Acceleration for Large Vision-Language Modelscited by 629
  5. 2024OLMo: Accelerating the Science of Language Modelscited by 599
  6. 2016Linear Convergence of Gradient and Proximal-Gradient Methods Under the Polyak-Lojasiewicz Conditioncited by 526
  7. 2022ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformerscited by 517
  8. 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 512
  9. 2024Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Researchcited by 475
  10. 2021A White Paper on Neural Network Quantizationcited by 453
  11. 2023Trained Transformers Learn Linear Models In-Contextcited by 331
  12. 2019Q8BERT: Quantized 8Bit BERTcited by 296
  13. 2023Function Vectors in Large Language Modelscited by 292
  14. 2024Massive Activations in Large Language Modelscited by 277
  15. 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 274
  16. 2023Physics of Language Models: Part 3.1, Knowledge Storage and Extractioncited by 264
  17. 2022The case for 4-bit precision: k-bit Inference Scaling Lawscited by 247
  18. 2022Towards Understanding Grokking: An Effective Theory of Representation Learningcited by 229
  19. 2024When Attention Sink Emerges in Language Models: An Empirical Viewcited by 200
  20. 2024DuQuant: Distributing Outliers via Dual Transformation Makes Stronger Quantized LLMscited by 165
  21. 2023Stabilizing Transformer Training by Preventing Attention Entropy Collapsecited by 154
  22. 2023Birth of a Transformer: A Memory Viewpointcited by 154
  23. 2023Quantizable Transformers: Removing Outliers by Helping Attention Heads Do Nothingcited by 147
  24. 2020Training with Quantization Noise for Extreme Model Compressioncited by 145
  25. 2021Understanding and Overcoming the Challenges of Efficient Transformer Quantizationcited by 139
  26. 2023The mechanistic basis of data dependence and abrupt learning in an in-context classification taskcited by 115
  27. 2024How Transformers Learn Causal Structure with Gradient Descentcited by 114
  28. 2023In-Context Convergence of Transformerscited by 112
  29. 2022Unveiling Transformers with LEGO: a synthetic reasoning taskcited by 105
  30. 2023How do Language Models Bind Entities in Context?cited by 102
  31. 2023Scan and Snap: Understanding Training Dynamics and Token Composition in 1-layer Transformercited by 101
  32. 2024Universal Neurons in GPT2 Language Modelscited by 100
  33. 2023Linear attention is (maybe) all you need (to understand transformer optimization)cited by 97
  34. 2023How Many Pretraining Tasks Are Needed for In-Context Learning of Linear Regression?cited by 93
  35. 2023Transformers as Decision Makers: Provable In-Context Reinforcement Learning via Supervised Pretrainingcited by 82
  36. 2024Attention Score is not All You Need for Token Importance Indicator in KV Cache Reduction: Value Also Matterscited by 73
  37. 2023How Do Transformers Learn In-Context Beyond Simple Functions? A Case Study on Learning with Representationscited by 72
  38. 2024Unveiling and Harnessing Hidden Attention Sinks: Enhancing Large Language Models without Training through Attention Calibrationcited by 70

50 most cited of 61 All 61 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 21; 2026: 31.

54 papers.

Sort:

By area:

  1. 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memorycited by 722
  2. 2025Why do LLMs attend to the first token?cited by 122
  3. 2025On the Emergence of Position Bias in Transformerscited by 57
  4. 2025Attention Sinks and Compression Valleys in LLMs are Two Sides of the Same Coincited by 47
  5. 2025Massive Values in Self-Attention Modules are the Key to Contextual Knowledge Understandingcited by 44
  6. 2025RotateKV: Accurate and Robust 2-Bit KV Cache Quantization for LLMs via Outlier-Aware Adaptive Rotationscited by 42
  7. 2024Value Residual Learningcited by 25
  8. 2026The Spike, the Sparse and the Sink: Anatomy of Massive Activations and Attention Sinkscited by 23
  9. 2025How Do LLMs Perform Two-Hop Reasoning in Context?cited by 20
  10. 2025Softpick: No Attention Sink, No Massive Activations with Rectified Softmaxcited by 20
  11. 2025Attention Sinks: A 'Catch, Tag, Release' Mechanism for Embeddingscited by 16
  12. 2025Emergence of Superposition: Unveiling the Training Dynamics of Chain of Continuous Thoughtcited by 16
38 more
  1. 2024When Precision Meets Position: BFloat16 Breaks Down RoPE in Long-Context Trainingcited by 15
  2. 2025Unveiling Super Experts in Mixture-of-Experts Large Language Modelscited by 15
  3. 2025Beyond the Surface: Enhancing LLM-as-a-Judge Alignment with Human via Internal Representationscited by 14
  4. 2025Is the Reversal Curse a Binding Problem? Uncovering Limitations of Transformers from a Basic Generalization Failurecited by 13
  5. 2025Outlier-Safe Pre-Training for Robust 4-Bit Quantization of Large Language Modelscited by 13
  6. 2025ZeroTuning: Unlocking the Initial Token's Power to Enhance Large Language Models Without Trainingcited by 11
  7. 2025Generalization or Hallucination? Understanding Out-of-Context Reasoning in Transformerscited by 10
  8. 2026Attention Sinks Are Provably Necessary in Softmax Transformers: Evidence from Trigger-Conditional Taskscited by 10
  9. 2025Identifying and Evaluating Inactive Heads in Pretrained LLMscited by 8
  10. 2025Lost in the Middle: An Emergent Property from Information Retrieval Demands in LLMscited by 8
  11. 2026Value-Aware Stochastic KV Cache Eviction for Reasoning Modelscited by 8
  12. 2025Value-State Gated Attention for Mitigating Extreme-Token Phenomena in Transformerscited by 7
  13. 2026On the Nature of Attention Sink that Shapes Decoding Strategy in Omni-LLMscited by 5
  14. 2026OScaR: The Occam's Razor for Extreme KV Cache Quantization in LLMs and Beyondcited by 5
  15. 2026Attention Sink Forges Native MoE in Attention Layers: Sink-Aware Training to Address Head Collapsecited by 4
  16. 2026Surgery: Mitigating Harmful Fine-Tuning for Large Language Models via Attention Sinkcited by 3
  17. 2026A Structural Theory of Position Bias in Transformerscited by 3
  18. 2026Preference Redirection via Attention Concentration: An Attack on Computer Use Agentscited by 3
  19. 2025Towards Interpretable and Efficient Attention: Compressing All by Contracting a Fewcited by 2
  20. 2026Breaking the Reversal Curse in Autoregressive Language Models via Identity Bridgecited by 2
  21. 2026Attention Sinks Induce Gradient Sinks: Massive Activations as Gradient Regulators in Transformerscited by 2
  22. 2026LongAct: Harnessing Intrinsic Activation Patterns for Long-Context Reinforcement Learningcited by 2
  23. 2026Massive Spikes in LLMs are Bias Vectors: Mechanistic Uncovering and Spike-Free Quantizationcited by 2
  24. 2026Geometric Analysis of Token Selection in Multi-Head Attentioncited by 1
  25. 2026Sink vs. diagonal patterns as mechanisms for attention switch and oversmoothing preventioncited by 1
  26. 2026Transformers Provably Learn to Internalize Chain-of-Thoughtcited by 1
  27. 2026Semantic Head Specialization Guides Hybrid ViT Attention for Multimodal LLMscited by 1
  28. 2025Minimax Rates for Learning Pairwise Interactions in Attention-Style Modelscited by 0
  29. 2026Spectral Archaeology: The Causal Topology of Model Evolutioncited by 0
  30. 2026Gradient Flow Polarizes Softmax Outputs towards Low-Entropy Solutionscited by 0
  31. 2026CodeQuant: Unified Clustering and Quantization for Enhanced Outlier Smoothing in Low-Precision Mixture-of-Expertscited by 0
  32. 2026How Transformers Learn to Plan via Multi-Token Predictioncited by 0
  33. 2026A Mechanistic Account of Attention Sinks in GPT-2: One Circuit, Broader Implications for Mitigationcited by 0
  34. 2026Mechanistically Interpretable Neural Encoding Reveals Fine-Grained Functional Selectivity in Human Visual Cortexcited by 0
  35. 2026Contribution Weights: A Geometrical Analysis of Self-Attention Transformerscited by 0
  36. 2026A Unifying View of Attention Sinks: From Mechanisms to Architectural Interventionscited by 0
  37. 2026Abstention and Noise Filtering: Two Missing Primitives of Softmax Attentioncited by 0
  38. 2026Global Ranks Survive, Selected Heads Shift: BOS-Sink Topology under 4-bit Weight-Only Quantizationcited by 0

50 most cited of 54 All 54 (JSON)