Interpreting the repeated-token phenomenon in large language modelsInterpreting the Repeated Token Phenomenon in Large Language Models
The paper explains the cause of the failure in which large language models, when asked to repeat a single word, often output unrelated text, linking it to attention sinks. This previously unexplained failure mode constitutes a vulnerability that even end users can exploit to make the model deviate from expected behavior; attention sinks are an emergent behavior crucial to fluency, manifested as the first token receiving a disproportionately high attention score. The researchers identify the neural circuit responsible for attention sinks, explain how long repetitions disrupt this circuit, and extend the findings to other non-repetitive sequences that exhibit similar circuit disruption. The authors propose a targeted patch that they say resolves the problem without harming the model's overall performance, and demonstrate how interpretability can diagnose and address model vulnerabilities, offering inspiration for safer and more reliable models.