Interpreting the Repeated Token Phenomenon in Large Language Models
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs), despite their impressive capabilities, often fail to accurately repeat a single word when prompted to, and instead output unrelated text. This unexplained failure mode represents a vulnerability, allowing even end-users to diverge models away from their intended behavior. We aim to explain the causes for this phenomenon and link it to the concept of ``attention sinks'', an emergent LLM behavior crucial for fluency, in which the initial token receives disproportionately high attention scores. Our investigation identifies the neural circuit responsible for attention sinks and shows how long repetitions disrupt this circuit. We extend this finding to other non-repeating sequences that exhibit similar circuit disruptions. To address this, we propose a targeted patch that effectively resolves the issue without negatively impacting the model's overall performance. This study provides a mechanistic explanation for an LLM vulnerability, demonstrating how interpretability can diagnose and address issues, and offering insights that pave the way for more secure and reliable models.
Key facts. Cited by 15 papers in the map (data through 7 Oct 2026). Builds on 18 of its 23 references that are in the map. First posted on arXiv 11 Mar 2025.
Builds on
18 of 23 references.
References · 18
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
- 2020GLU Variants Improve Transformercited by 1,724
- 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,359
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
- 2023Scalable Extraction of Training Data from (Production) Language Modelscited by 415
- 2024Massive Activations in Large Language Modelscited by 277
- 2024When Attention Sink Emerges in Language Models: An Empirical Viewcited by 200
- 2023Quantizable Transformers: Removing Outliers by Helping Attention Heads Do Nothingcited by 147
6 more
- 2024Round and Round We Go! What makes Rotary Positional Encodings useful?cited by 111
- 2024Interpreting and Editing Vision-Language Representations to Mitigate Hallucinationscited by 103
- 2024Transformers need glasses! Information over-squashing in language taskscited by 87
- 2024Unveiling and Harnessing Hidden Attention Sinks: Enhancing Large Language Models without Training through Attention Calibrationcited by 70
- 2024Softmax is not Enough (for Sharp Size Generalisation)cited by 42
- 2024Interpreting the Second-Order Effects of Neurons in CLIPcited by 36
Built on by
Citing papers per year: 2025: 7; 2026: 8.
15 papers.
Sort:
By area:
- 2025Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Freecited by 266
- 2025Attention Sinks and Compression Valleys in LLMs are Two Sides of the Same Coincited by 47
- 2025Vision Transformers Don't Need Trained Registerscited by 39
- 2026A Unified View of Attention and Residual Sinks: Outlier-Driven Rescaling is Essential for Transformer Trainingcited by 21
- 2025Transformers Don't Need LayerNorm at Inference Time: Scaling LayerNorm Removal to GPT-2 XL and the Implications for Mechanistic Interpretabilitycited by 7
- 2025The Achilles' Heel of LLMs: How Altering a Handful of Neurons Can Cripple Language Abilitiescited by 7
- 2026Context Tokens are Anchors: Understanding the Repetition Curse in dMLLMs from an Information Flow Perspectivecited by 6
- 2025RefAM: Attention Magnets for Zero-Shot Referral Segmentationcited by 2
- 2026Registers Matter for Pixel-Space Diffusion Transformerscited by 2
- 2025Steering Conceptual Bias via Transformer Latent-Subspace Activationcited by 1
- 2026Taming Outlier Tokens in Diffusion Transformerscited by 0
- 2026The Structural Origin of Attention Sink: Variance Discrepancy, Super Neurons, and Dimension Disparitycited by 0
- 2026Uncovering Uncontrolled Repetition through Residual Stream Dynamics30 Sep 2026
- 2026Transformer MLP Gate Thresholds Are Couplings to a Carried Reference Direction25 Sep 2026
- 2026Do as I Say, Not as I Do: Instruction-Induction Conflict in LLMs19 May 2026
- 2026Registers Matter for Pixel-Space Diffusion Transformers15 May 2026
- 2026The Structural Origin of Attention Sink: Variance Discrepancy, Super Neurons, and Dimension Disparity7 May 2026
- 2026Taming Outlier Tokens in Diffusion Transformers6 May 2026
- 2026A Unified View of Attention and Residual Sinks: Outlier-Driven Rescaling is Essential for Transformer Training30 Jan 2026
- 2026Context Tokens are Anchors: Understanding the Repetition Curse in dMLLMs from an Information Flow Perspective28 Jan 2026
- 2025The Achilles' Heel of LLMs: How Altering a Handful of Neurons Can Cripple Language Abilities11 Oct 2025
- 2025Attention Sinks and Compression Valleys in LLMs are Two Sides of the Same Coin7 Oct 2025
- 2025RefAM: Attention Magnets for Zero-Shot Referral Segmentation26 Sep 2025
- 2025Transformers Don't Need LayerNorm at Inference Time: Scaling LayerNorm Removal to GPT-2 XL and the Implications for Mechanistic Interpretability3 Jul 2025
- 2025RefAM: Attention Magnets for Zero-Shot Referral Segmentationcited by 2
- 2026Registers Matter for Pixel-Space Diffusion Transformerscited by 2
- 2026Taming Outlier Tokens in Diffusion Transformerscited by 0
- 2026Registers Matter for Pixel-Space Diffusion Transformers15 May 2026
- 2026Taming Outlier Tokens in Diffusion Transformers6 May 2026
- 2025RefAM: Attention Magnets for Zero-Shot Referral Segmentation26 Sep 2025
- 2025Attention Sinks and Compression Valleys in LLMs are Two Sides of the Same Coincited by 47
- 2025Vision Transformers Don't Need Trained Registerscited by 39
- 2026A Unified View of Attention and Residual Sinks: Outlier-Driven Rescaling is Essential for Transformer Trainingcited by 21
- 2025Transformers Don't Need LayerNorm at Inference Time: Scaling LayerNorm Removal to GPT-2 XL and the Implications for Mechanistic Interpretabilitycited by 7
- 2025The Achilles' Heel of LLMs: How Altering a Handful of Neurons Can Cripple Language Abilitiescited by 7
- 2025Steering Conceptual Bias via Transformer Latent-Subspace Activationcited by 1
- 2026The Structural Origin of Attention Sink: Variance Discrepancy, Super Neurons, and Dimension Disparitycited by 0
- 2026Do as I Say, Not as I Do: Instruction-Induction Conflict in LLMscited by 0
- 2026Transformer MLP Gate Thresholds Are Couplings to a Carried Reference Directioncited by 0
- 2026Uncovering Uncontrolled Repetition through Residual Stream Dynamicscited by 0
- 2026Uncovering Uncontrolled Repetition through Residual Stream Dynamics30 Sep 2026
- 2026Transformer MLP Gate Thresholds Are Couplings to a Carried Reference Direction25 Sep 2026
- 2026Do as I Say, Not as I Do: Instruction-Induction Conflict in LLMs19 May 2026
- 2026The Structural Origin of Attention Sink: Variance Discrepancy, Super Neurons, and Dimension Disparity7 May 2026
- 2026A Unified View of Attention and Residual Sinks: Outlier-Driven Rescaling is Essential for Transformer Training30 Jan 2026
- 2025The Achilles' Heel of LLMs: How Altering a Handful of Neurons Can Cripple Language Abilities11 Oct 2025
- 2025Attention Sinks and Compression Valleys in LLMs are Two Sides of the Same Coin7 Oct 2025
- 2025Transformers Don't Need LayerNorm at Inference Time: Scaling LayerNorm Removal to GPT-2 XL and the Implications for Mechanistic Interpretability3 Jul 2025
- 2025Steering Conceptual Bias via Transformer Latent-Subspace Activation23 Jun 2025
- 2025Vision Transformers Don't Need Trained Registers9 Jun 2025