mlsanityData to 7 Oct 2026

Understanding Memorisation in LLMs: Dynamics, Influencing Factors, and Implications

arXiv 2407.19262 ↗First posted 27 Jul 2024cs.CL cs.LGcited by 7

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

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  3. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  4. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  5. 2016Pointer Sentinel Mixture Modelscited by 2,992
  6. 2020Extracting Training Data from Large Language Modelscited by 2,144
  7. 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
  8. 2019Language Models as Knowledge Bases?cited by 1,922
  9. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
  10. 2021Improving language models by retrieving from trillions of tokenscited by 1,278
  11. 2018The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networkscited by 847
  12. 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
15 more
  1. 2022Quantifying Memorization Across Neural Language Modelscited by 755
  2. 2023Textbooks Are All You Need II: phi-1.5 technical reportcited by 559
  3. 2023Analyzing Leakage of Personally Identifiable Information in Language Modelscited by 278
  4. 2023Membership Inference Attacks against Language Models via Neighbourhood Comparisoncited by 249
  5. 2022Transformer Memory as a Differentiable Search Indexcited by 242
  6. 2022Memorization Without Overfitting: Analyzing the Training Dynamics of Large Language Modelscited by 218
  7. 2022Large Language Models with Controllable Working Memorycited by 169
  8. 2022A Review on Language Models as Knowledge Basescited by 156
  9. 2021Counterfactual Memorization in Neural Language Modelscited by 155
  10. 2023Emergent and Predictable Memorization in Large Language Modelscited by 147
  11. 2021How much do language models copy from their training data? Evaluating linguistic novelty in text generation using RAVENcited by 124
  12. 2022Measuring Forgetting of Memorized Training Examplescited by 118
  13. 2022Understanding Transformer Memorization Recall Through Idiomscited by 62
  14. 2021How BPE Affects Memorization in Transformerscited by 29
  15. 2022The Curious Case of Absolute Position Embeddingscited by 17

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 5; 2026: 2.

7 papers.