Guess or Recall? Training CNNs to Classify and Localize Memorization in LLMs
Not on the map. Why?
Abstract (arXiv)
Verbatim memorization in Large Language Models (LLMs) is a multifaceted phenomenon involving distinct underlying mechanisms. We introduce a novel method to analyze the different forms of memorization described by the existing taxonomy. Specifically, we train Convolutional Neural Networks (CNNs) on the attention weights of the LLM and evaluate the alignment between this taxonomy and the attention weights involved in decoding. We find that the existing taxonomy performs poorly and fails to reflect distinct mechanisms within the attention blocks. We propose a new taxonomy that maximizes alignment with the attention weights, consisting of three categories: memorized samples that are guessed using language modeling abilities, memorized samples that are recalled due to high duplication in the training set, and non-memorized samples. Our results reveal that few-shot verbatim memorization does not correspond to a distinct attention mechanism. We also show that a significant proportion of extractable samples are in fact guessed by the model and should therefore be studied separately. Finally, we develop a custom visual interpretability technique to localize the regions of the attention weights involved in each form of memorization.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 19 of its 27 references that are in the map. First posted on arXiv 4 Aug 2025.
Builds on
19 of 27 references.
References · 19
- 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,733
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,281
- 2020Extracting Training Data from Large Language Modelscited by 2,189
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
- 2016Understanding deep learning requires rethinking generalizationcited by 1,674
- 2014Striving for Simplicity: The All Convolutional Netcited by 990
- 2021Membership Inference Attacks From First Principlescited by 878
- 2020What Neural Networks Memorize and Why: Discovering the Long Tail via Influence Estimationcited by 497
- 2019Does Learning Require Memorization? A Short Tale about a Long Tailcited by 460
- 2023Scalable Extraction of Training Data from (Production) Language Modelscited by 434
7 more
- 2022Preventing Verbatim Memorization in Language Models Gives a False Sense of Privacycited by 100
- 2023Bag of Tricks for Training Data Extraction from Language Modelscited by 70
- 2021Membership Inference on Word Embedding and Beyondcited by 35
- 2024Localizing Paragraph Memorization in Language Modelscited by 31
- 2025Analyzing Memorization in Large Language Models through the Lens of Model Attributioncited by 14
- 2024Reconstructing training data from document understanding modelscited by 3
- 2024Predicting memorization within Large Language Models fine-tuned for classificationcited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.
- 2026Metaphor Is Not All Attention Needscited by 0
- 2026Metaphor Is Not All Attention Needs12 May 2026