Repetition Neurons: How Do Language Models Produce Repetitions?

Tatsuya Hiraoka, Kentaro Inui
10/17/2024
cs.CL

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

This paper introduces repetition neurons, regarded as skill neurons responsible for the repetition problem in text generation tasks. These neurons are progressively activated more strongly as repetition continues, indicating that they perceive repetition as a task to copy the previous context repeatedly, similar to in-context learning. We identify these repetition neurons by comparing activation values before and after the onset of repetition in texts generated by recent pre-trained language models. We analyze the repetition neurons in three English and one Japanese pre-trained language models and observe similar patterns across them.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{hiraoka2024repetition,
  title  = {Repetition Neurons: How Do Language Models Produce Repetitions?},
  author = {Tatsuya Hiraoka and Kentaro Inui},
  year   = {2024},
  eprint = {2410.13497},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.13497v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.13497.svg)](https://codeofpaper.com/paper/2410.13497)

Discussion