Understanding Memorisation in LLMs: Dynamics, Influencing Factors, and Implications
Not on the map. Why?
Abstract (arXiv)
Understanding whether and to what extent large language models (LLMs) have memorised training data has important implications for the reliability of their output and the privacy of their training data. In order to cleanly measure and disentangle memorisation from other phenomena (e.g. in-context learning), we create an experimental framework that is based on repeatedly exposing LLMs to random strings. Our framework allows us to better understand the dynamics, i.e., the behaviour of the model, when repeatedly exposing it to random strings. Using our framework, we make several striking observations: (a) we find consistent phases of the dynamics across families of models (Pythia, Phi and Llama2), (b) we identify factors that make some strings easier to memorise than others, and (c) we identify the role of local prefixes and global context in memorisation. We also show that sequential exposition to different random strings has a significant effect on memorisation. Our results, often surprising, have significant downstream implications in the study and usage of LLMs.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 27 of its 30 references that are in the map. First posted on arXiv 27 Jul 2024.
Builds on
27 of 30 references.
References · 27
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2020Extracting Training Data from Large Language Modelscited by 2,144
- 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
- 2019Language Models as Knowledge Bases?cited by 1,922
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
- 2021Improving language models by retrieving from trillions of tokenscited by 1,278
- 2018The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networkscited by 847
- 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
15 more
- 2022Quantifying Memorization Across Neural Language Modelscited by 755
- 2023Textbooks Are All You Need II: phi-1.5 technical reportcited by 559
- 2023Analyzing Leakage of Personally Identifiable Information in Language Modelscited by 278
- 2023Membership Inference Attacks against Language Models via Neighbourhood Comparisoncited by 249
- 2022Transformer Memory as a Differentiable Search Indexcited by 242
- 2022Memorization Without Overfitting: Analyzing the Training Dynamics of Large Language Modelscited by 218
- 2022Large Language Models with Controllable Working Memorycited by 169
- 2022A Review on Language Models as Knowledge Basescited by 156
- 2021Counterfactual Memorization in Neural Language Modelscited by 155
- 2023Emergent and Predictable Memorization in Large Language Modelscited by 147
- 2021How much do language models copy from their training data? Evaluating linguistic novelty in text generation using RAVENcited by 124
- 2022Measuring Forgetting of Memorized Training Examplescited by 118
- 2022Understanding Transformer Memorization Recall Through Idiomscited by 62
- 2021How BPE Affects Memorization in Transformerscited by 29
- 2022The Curious Case of Absolute Position Embeddingscited by 17
Built on by
Citing papers per year: 2025: 5; 2026: 2.
7 papers.
- 2025Memorization or Interpolation ? Detecting LLM Memorization through Input Perturbation Analysiscited by 5
- 2025Agent-ScanKit: Unraveling Memory and Reasoning of Multimodal Agents via Sensitivity Perturbationscited by 3
- 2025Mirage of Mastery: Memorization Tricks LLMs into Artificially Inflated Self-Knowledgecited by 2
- 2025Generative AI for CAD Automation: Leveraging Large Language Models for 3D Modellingcited by 2
- 2025From Memorization to Generalization: Fine-Tuning Large Language Models for Biomedical Term-to-Identifier Normalizationcited by 1
- 2026Latent Knowledge as a Predictor of Fact Acquisition in Fine-Tuned Large Language Modelscited by 0
- 2026Diffusion Models Preferentially Memorize Prototypical Examples or: Why Does My Diffusion Model Love Slop?cited by 0
- 2026Diffusion Models Preferentially Memorize Prototypical Examples or: Why Does My Diffusion Model Love Slop?28 May 2026
- 2026Latent Knowledge as a Predictor of Fact Acquisition in Fine-Tuned Large Language Models26 Jan 2026
- 2025From Memorization to Generalization: Fine-Tuning Large Language Models for Biomedical Term-to-Identifier Normalization21 Oct 2025
- 2025Agent-ScanKit: Unraveling Memory and Reasoning of Multimodal Agents via Sensitivity Perturbations1 Oct 2025
- 2025Generative AI for CAD Automation: Leveraging Large Language Models for 3D Modelling5 Jul 2025
- 2025Mirage of Mastery: Memorization Tricks LLMs into Artificially Inflated Self-Knowledge23 Jun 2025
- 2025Memorization or Interpolation ? Detecting LLM Memorization through Input Perturbation Analysis5 May 2025