paper-with-me

Papers

Induction Head Toxicity Mechanistically Explains Repetition Curse in Large Language Models

2025-05-17 · Shuxun Wang, Qingyu Yin, Chak Tou Leong, Qiang Zhang, Linyi Yang

Repetition curse is a phenomenon where Large Language Models (LLMs) generate repetitive sequences of tokens or cyclic sequences. While the repetition curse has been widely observed, its underlying mechanisms remain poorly understood. In this work, we investigate the role of induction heads--a specific type of attention head known for their ability to perform in-context learning--in driving this repetitive behavior. Specifically, we focus on the "toxicity" of induction heads, which we define as their tendency to dominate the model's output logits during repetition, effectively excluding other attention heads from contributing to the generation process. Our findings have important implications for the design and training of LLMs. By identifying induction heads as a key driver of the repetition curse, we provide a mechanistic explanation for this phenomenon and suggest potential avenues for mitigation. We also propose a technique with attention head regularization that could be employed to reduce the dominance of induction heads during generation, thereby promoting more diverse and coherent outputs.

📄 PDF Abstract BibTeX arXiv:2505.13514

Code (0)

등록된 구현이 없습니다.

Tasks

In-Context Learning

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음
Focus 설명 없음

Similar Papers 제목 키워드 기반

Understanding and Controlling Repetition Neurons and Induction Heads in In-Context Learning

2025-07-10 · Nhi Hoai Doan, Tatsuya Hiraoka, Kentaro Inui arxiv

This paper investigates the relationship between large language models' (LLMs) ability to recognize repetitive input patterns and their performance on in-context learning (ICL). In contrast to prior work that has primari…

Temporal Dependencies in In-Context Learning: The Role of Induction Heads

2026-04-01 · Anooshka Bajaj, Deven Mahesh Mistry, Sahaj Singh Maini, Yash Aggarwal 외 arxiv

Large language models (LLMs) exhibit strong in-context learning capabilities, but how they track and retrieve information from context remains underexplored. Drawing on the free recall paradigm in cognitive science (wher…

Few-Shot Learning

Predicting the Emergence of Induction Heads in Language Model Pretraining

2025-11-21 · Tatsuya Aoyama, Ethan Gotlieb Wilcox, Nathan Schneider arxiv

Specialized attention heads dubbed induction heads (IHs) have been argued to underlie the remarkable in-context learning capabilities of modern language models; yet, a precise characterization of their emergence, especia…

Linking In-context Learning in Transformers to Human Episodic Memory

2024-05-23 · Li Ji-An, Corey Y. Zhou, Marcus K. Benna, Marcelo G. Mattar

Understanding connections between artificial and biological intelligent systems can reveal fundamental principles of general intelligence. While many artificial intelligence models have a neuroscience counterpart, such c…

In-Context LearningRetrieval

INTRYGUE: Induction-Aware Entropy Gating for Reliable RAG Uncertainty Estimation

2026-03-23 · Alexandra Bazarova, Andrei Volodichev, Daria Kotova, Alexey Zaytsev arxiv

While retrieval-augmented generation (RAG) enhances LLM performance, it does not eliminate hallucinations, making accurate detection essential. Uncertainty-based methods are attractive for this purpose because they can b…