Lune

ICML2025Top-tier venue

Interpreting the Repeated Token Phenomenon in Large Language Models

Itay Yona, Ilia Shumailov, Jamie Hayes, Yossi Gandelsman

Abstract

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 nonrepeating sequences that exhibit similar circuit disruptions. To address this, we propose a targeted patch that effectively resolves the issue without negatively impacting the overall performance of the model. 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. Code is available here.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

11 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Efficient Streaming Language Models with Attention Sinks cites Quantizable Transformers: Removing Outliers by Helping Attention Heads Do Nothing
  • Attention Sinks: A 'Catch, Tag, Release' Mechanism for Embeddings cites Efficient Streaming Language Models with Attention Sinks
  • Attention Sinks: A 'Catch, Tag, Release' Mechanism for Embeddings cites Unveiling and Harnessing Hidden Attention Sinks: Enhancing Large Language Models without Training through Attention Calibration
  • Attention Sinks: A 'Catch, Tag, Release' Mechanism for Embeddings cites Quantizable Transformers: Removing Outliers by Helping Attention Heads Do Nothing
  • Unveiling and Harnessing Hidden Attention Sinks: Enhancing Large Language Models without Training through Attention Calibration cites Efficient Streaming Language Models with Attention Sinks
  • Attention Sinks and Compression Valleys in LLMs are Two Sides of the Same Coin cites Efficient Streaming Language Models with Attention Sinks
  • Attention Sinks and Compression Valleys in LLMs are Two Sides of the Same Coin cites Transformers need glasses! Information over-squashing in language tasks
  • Attention Sinks and Compression Valleys in LLMs are Two Sides of the Same Coin cites Quantizable Transformers: Removing Outliers by Helping Attention Heads Do Nothing
  • Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Free cites Efficient Streaming Language Models with Attention Sinks
  • Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Free cites Unveiling and Harnessing Hidden Attention Sinks: Enhancing Large Language Models without Training through Attention Calibration
  • Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Free cites Quantizable Transformers: Removing Outliers by Helping Attention Heads Do Nothing
  • The Achilles’ Heel of LLMs: How Altering a Handful of Neurons Can Cripple Language Abilities cites Efficient Streaming Language Models with Attention Sinks
  • The Achilles’ Heel of LLMs: How Altering a Handful of Neurons Can Cripple Language Abilities cites Vision Transformers Don't Need Trained Registers
  • Vision Transformers Don't Need Trained Registers cites Efficient Streaming Language Models with Attention Sinks
  • Vision Transformers Don't Need Trained Registers cites Quantizable Transformers: Removing Outliers by Helping Attention Heads Do Nothing
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers11

  1. Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-FreeZihan Qiu, Zekun Wang, Bo Zheng, Zeyu Huang et al.NeurIPS 2025 · 336 citations
  2. Attention Sinks and Compression Valleys in LLMs are Two Sides of the Same CoinEnrique Queipo-de-Llano, Alvaro Arroyo, Federico Barbero, Xiaowen Dong et al.ICLR 2026 · 56 citations
  3. Vision Transformers Don't Need Trained RegistersNick Jiang, Amil Dravid, Alexei A. Efros, Yossi GandelsmanNeurIPS 2025 · 50 citations
  4. Attention Sinks: A 'Catch, Tag, Release' Mechanism for EmbeddingsStephen Zhang, Mustafa Khan, Vardan PapyanNeurIPS 2025 · 18 citations
  5. The Achilles’ Heel of LLMs: How Altering a Handful of Neurons Can Cripple Language AbilitiesZixuan Qin, Qingchen Yu, Kunlin Lyu, Zhaoxin Fan et al.ICLR 2026 · 10 citations

Builds on9

  1. Efficient Streaming Language Models with Attention SinksGuangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han et al.ICLR 2024 · 1,714 citations
  2. Quantizable Transformers: Removing Outliers by Helping Attention Heads Do NothingYelysei Bondarenko, Markus Nagel, Tijmen BlankevoortNeurIPS 2023 · 196 citations
  3. Transformers need glasses! Information over-squashing in language tasksFederico Barbero, Andrea Banino, Steven Kapturowski, Dharshan Kumaran et al.NeurIPS 2024 · 105 citations
  4. Unveiling and Harnessing Hidden Attention Sinks: Enhancing Large Language Models without Training through Attention CalibrationZhongzhi Yu, Zheng Wang, Yonggan Fu, Huihong Shi et al.ICML 2024 · 63 citations
  5. Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 SmallKevin Ro Wang, Alexandre Variengien, Arthur Conmy, Buck Shlegeris et al.ICLR 2023 · 50 citations

Related papers

  1. Attention Sinks as Internal Signals for Hallucination Detection in Large Language ModelsJakub Binkowski, Kamil Adamczewski, Tomasz KajdanowiczICML 2026
  2. Incomplete Prompt Jailbreaks in Large Language ModelsYeonjea Kim, Bumjin Park, Jaesik ChoiACL Findings 2026
  3. Exposing Attention Glitches with Flip-Flop Language ModelingBingbin Liu, Jordan T. Ash, Surbhi Goel, Akshay Krishnamurthy et al.NeurIPS 2023 · 90 citations
  4. Spurious Rewards Paradox: Mechanistically Understanding How RLVR Activates Memorization Shortcuts in LLMsLecheng Yan, Ruizhe Li, Guanhua CHEN, Qing Li et al.ICML 2026 · 8 citations
  5. A Single Layer to Explain Them All: Understanding Massive Values in Large Language ModelsZeru Shi, Zhenting Wang, Fan Yang, Qifan Wang et al.ICML 2026
Dusk over the sea between two cliffs drawn in fine vertical lines