Detecting Memorization in Large Language Models
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) have achieved impressive results in natural language processing but are prone to memorizing portions of their training data, which can compromise evaluation metrics, raise privacy concerns, and limit generalization. Traditional methods for detecting memorization rely on output probabilities or loss functions, often lacking precision due to confounding factors like common language patterns. In this paper, we introduce an analytical method that precisely detects memorization by examining neuron activations within the LLM. By identifying specific activation patterns that differentiate between memorized and not memorized tokens, we train classification probes that achieve near-perfect accuracy. The approach can also be applied to other mechanisms, such as repetition, as demonstrated in this study, highlighting its versatility. Intervening on these activations allows us to suppress memorization without degrading overall performance, enhancing evaluation integrity by ensuring metrics reflect genuine generalization. Additionally, our method supports large-scale labeling of tokens and sequences, crucial for next-generation AI models, improving training efficiency and results. Our findings contribute to model interpretability and offer practical tools for analyzing and controlling internal mechanisms in LLMs.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 11 of its 13 references that are in the map. First posted on arXiv 2 Dec 2024.
Builds on
11 of 13 references.
References · 11
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2017Deep reinforcement learning from human preferencescited by 3,846
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2020Learning to summarize from human feedbackcited by 2,562
- 2020Extracting Training Data from Large Language Modelscited by 2,144
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
- 2022Quantifying Memorization Across Neural Language Modelscited by 755
- 2023Emergent and Predictable Memorization in Large Language Modelscited by 147
- 2023Can Neural Network Memorization Be Localized?cited by 66
- 2024Demystifying Verbatim Memorization in Large Language Modelscited by 55
- 2023Do Localization Methods Actually Localize Memorized Data in LLMs? A Tale of Two Benchmarkscited by 29
Built on by
Citing papers per year: 2025: 2; 2026: 1.
3 papers.
- 2026Spurious Rewards Paradox: Mechanistically Understanding How RLVR Activates Memorization Shortcuts in LLMscited by 13
- 2025The Landscape of Memorization in LLMs: Mechanisms, Measurement, and Mitigationcited by 9
- 2025Mirage of Mastery: Memorization Tricks LLMs into Artificially Inflated Self-Knowledgecited by 2
- 2026Spurious Rewards Paradox: Mechanistically Understanding How RLVR Activates Memorization Shortcuts in LLMs16 Jan 2026
- 2025The Landscape of Memorization in LLMs: Mechanisms, Measurement, and Mitigation8 Jul 2025
- 2025Mirage of Mastery: Memorization Tricks LLMs into Artificially Inflated Self-Knowledge23 Jun 2025