Research map / Large language models / Language, safety and interpretability
Quantifying Memorization Across Neural Language Models
Nicholas Carlini, Daphne Ippolito, Matthew Jagielski, Katherine Lee, Florian Tramer, Chiyuan Zhang
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Increase model size within the GPT-Neo family | GPT-Neo · The Pile, duplication- and length-normalized sample | extractable memorization: a ten fold increase in model size corresponds to an increase in memorization of 19 percentage points | Improved |
| Train on The Pile rather than WebText | GPT-Neo-1.3B versus similarly sized GPT-2 · The Pile-derived prompts | extractable sequences: 6% compared to 40% | Improved |
| Increase the number of training repetitions | GPT-Neo trained on The Pile · The Pile, sequences repeated 2 to 900 times | extractable sequences | Improved |
| Increase prompt context length | GPT-J-6B · The Pile, 50-token versus 450-token context | extractable sequences: 33% ... compared to 65% | Improved |
| Use a uniformly random training-data sample instead of a duplication-normalized sample (ablation) | GPT-Neo and GPT-J · The Pile | qualitative model-scale and context-length trends | No clear effect |
| Replace greedy decoding with beam search using 100 beams (ablation) | GPT-Neo · The Pile | extractable memorization: just under 2 percentage points on average, with a maximum of 5.6% | Improved |
| Check generated text against the entire training dataset rather than only the selected example continuation (ablation) | Extractability measurement · C4, examples repeated 100 times | measured extractability: 32.6% ... but just 15.8% | Improved |
| Use masked language modeling rather than causal language modeling | T5-XL versus GPT-Neo-2.7B · C4 and The Pile, sequences repeated 100 times | memorized sequences: 3.5% ... whereas ... 53.6% | Hurt |
| Increase duplication count | T5 trained on C4 · C4 | memorized sequences: less than 5.1% ... at least 6.2% | Mixed |
| Train on exactly deduplicated C4 instead of non-deduplicated C4 (ablation) | 1.5B causal language model · C4, sequences repeated below 35 times | memorized sequences: 3.6% to 1.2% | Improved |
| Apply deduplication to examples repeated at least 408 times (ablation) | 1.5B causal language models trained on deduplicated C4 · C4, sequences repeated at least 408 times | memorized sequences | No clear effect |
| Train on deduplicated Pile-derived data rather than The Pile | OPT models · The Pile-derived prompts | extractable memorization | Hurt |
Closest papers by meaning
- Mitigating Memorization in Language Models (ICLR 2025 · similarity 0.93)
- Quantifying and Analyzing Entity-Level Memorization in Large Language Models (AAAI 2024 · similarity 0.92)
- Rethinking LLM Memorization through the Lens of Adversarial Compression (NeurIPS 2024 · similarity 0.91)
- Learning the Signature of Memorization in Autoregressive Language Models (NeurIPS 2026 · similarity 0.90)
- Generalization v.s. Memorization: Tracing Language Models’ Capabilities Back to Pretraining Data (ICLR 2025 · similarity 0.90)
- Characterizing Memorization in Diffusion Language Models: Generalized Extraction and Sampling Effects (NeurIPS 2026 · similarity 0.90)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.
