Research map / Large language models / Language, safety and interpretability
Repetition Neurons: How Do Language Models Produce Repetitions?
Tatsuya Hiraoka, Kentaro Inui
MBZUAI · RIKEN · Mohamed bin Zayed University of Artificial Intelligence
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| deactivate top repetition neurons (set activation to 0.0) versus random neurons (ablation) | repetition neurons · Gemma-2B, Pythia-2.8B, LLaMA-3.2-3B, LLM-jp-3-1.8B (100 unseen repetitive texts) | number of samples with repetition: reduces repetition samples by up to 25% (up to 35% with optimal hyperparameters) | Improved |
| activate top repetition neurons (add 1.0) versus random neurons (ablation) | repetition neurons · 100 unseen non-repetitive samples per model | number of samples with repetition: repetitive samples increase as more neurons are activated; larger than for random neurons | Hurt |
| deactivate repetition neurons (ablation) | repetition neurons · WikiText-2 test | perplexity: relatively moderate degradation for English models | No clear effect |
| activate repetition neurons (ablation) | repetition neurons · WikiText-2 test | perplexity: perplexity exceeds 100 for Gemma-2B (500 neurons) and LLaMA-3.2-3B (800 neurons) | Hurt |
| deactivate repetition neurons in Japanese model (ablation) | LLM-jp-3-1.8B · WikiText-2 test | perplexity: perplexity increases substantially even with few neurons | Hurt |
| activate repetition neurons in Japanese model (ablation) | LLM-jp-3-1.8B · WikiText-2 test | perplexity | No clear effect |
| deactivate repetition neurons in larger model (Gemma-7B vs Gemma-2B) (ablation) | Gemma-7B · repetitive texts | number of samples with repetition: effect of deactivation becomes smaller; effect of activation is large | Mixed |
| increase window r beyond 10-15 tokens when finding neurons (ablation) | Gemma-2B · repetition-deactivation experiment | number of samples with repetition: r=10 or 15 gives largest effect; larger r decreases the effect | Hurt |
| increase number of texts |X| for finding neurons (ablation) | Gemma-2B · layer distribution of repetition neurons | layer distribution | No clear effect |
Open problems in in-context learning analysis
Which in-context learning methods hold up beyond English classification on small open models, and what do they cost?
- Only a few small or medium open models were tested. · 14 papers state it
- The method needs many extra LLM calls or passes. · 13 papers state it
- Evaluated on English data only, with other languages untested. · 12 papers state it
Closest papers by meaning
- Learning to Break the Loop: Analyzing and Mitigating Repetitions for Neural Text Generation (NeurIPS 2022 · similarity 0.89)
- Repetition In Repetition Out: Towards Understanding Neural Text Degeneration from the Data Perspective (NeurIPS 2023 · similarity 0.89)
- Generating Repetitions with Appropriate Repeated Words (NAACL 2022 · similarity 0.88)
- Interpreting the Repeated Token Phenomenon in Large Language Models (ICML 2025 · similarity 0.86)
- Understanding In-Context Learning from Repetitions (ICLR 2024 · similarity 0.85)
- The emergence of sparse attention: impact of data distribution and benefits of repetition (NeurIPS 2025 · similarity 0.83)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.