Understanding Verbatim Memorization in LLMs Through Circuit Discovery

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

Institutions

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.l2m2-1.7
Primary Topic
Natural Language Processing Techniques
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Understanding Verbatim Memorization in LLMs Through Circuit Discovery

Stefan Woltran, Peter Knees, Ilya Lasy
Natural Language Processing Techniques
article

Understanding Verbatim Memorization in LLMs Through Circuit Discovery

Stefan Woltran, Peter Knees, Ilya Lasy
article en

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

Austrian Research Institute for Artificial Intelligence (AT)
Austrian Science Fund
Openalex Percentile: Top 90%
Natural Language Processing Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Understanding Verbatim Memorization in LLMs Through Circuit Discovery — Stefan Woltran, Peter Knees, et al. · (2025) | TGRS Research Map | TGRS