Year: 2025
Type: conference-paper
Abstract: Underlying mechanisms of memorization in LLMs-the verbatim reproduction of training data-remain poorly understood.What exact part of the network decides to retrieve a token that we would consider as start of memorization sequence?How exactly is the models' behaviour different when producing memorized sentence vs non-memorized?In this work we approach these questions from mechanistic interpretability standpoint by utilizing transformer circuits-the minimal computational subgraphs that perform specific functions within the model.Through carefully constructed contrastive datasets, we identify points where model generation diverges from memorized content and isolate the specific circuits responsible for two distinct aspects of memorization.We find that circuits that initiate memorization can also maintain it once started, while circuits that only maintain memorization cannot trigger its initiation.Intriguingly, memorization prevention mechanisms transfer robustly across different text domains, while memorization induction appears more contextdependent.1
Authors: Ilya Lasy, Peter Knees, Stefan Woltran
Institution: TU Wien
Language: English
Subfield: Artificial Intelligence
Field: Computer Science
Domain: Physical Sciences
Open Access status: gold
Funder: Austrian Science Fund
Award: G4125750076
OpenAlex ID: W4412944313
