paper-with-me

홈 › Papers

How much do language models memorize?

2025-05-30 · John X. Morris, Chawin Sitawarin, Chuan Guo, Narine Kokhlikyan, G. Edward Suh, Alexander M. Rush, Kamalika Chaudhuri, Saeed Mahloujifar

We propose a new method for estimating how much a model `knows'' about a datapoint and use it to measure the capacity of modern language models. Prior studies of language model memorization have struggled to disentangle memorization from generalization. We formally separate memorization into two components: \textit{unintended memorization}, the information a model contains about a specific dataset, and \textit{generalization}, the information a model contains about the true data-generation process. When we completely eliminate generalization, we can compute the total memorization, which provides an estimate of model capacity: our measurements estimate that GPT-style models have a capacity of approximately 3.6 bits per parameter. We train language models on datasets of increasing size and observe that models memorize until their capacity fills, at which point `grokking'' begins, and unintended memorization decreases as models begin to generalize. We train hundreds of transformer language models ranging from $500K$ to $1.5B$ parameters and produce a series of scaling laws relating model capacity and data size to membership inference.

📄 PDF Abstract BibTeX arXiv:2505.24832

Code (0)

등록된 구현이 없습니다.

Tasks

Language ModelingLanguage ModellingMemorization

Similar Papers 제목 키워드 기반

Demystifying Verbatim Memorization in Large Language Models

2024-07-25 · Jing Huang, Diyi Yang, Christopher Potts

Large Language Models (LLMs) frequently memorize long sequences verbatim, often with serious legal and privacy implications. Much prior work has studied such verbatim memorization using observational data. To complement …

Language ModelingLanguage ModellingMemorization

Speak, Memory: An Archaeology of Books Known to ChatGPT/GPT-4

2023-04-28 · Kent K. Chang, Mackenzie Cramer, Sandeep Soni, David Bamman

In this work, we carry out a data archaeology to infer books that are known to ChatGPT and GPT-4 using a name cloze membership inference query. We find that OpenAI models have memorized a wide collection of copyrighted m…

Memorization

Mildly Overparametrized Neural Nets can Memorize Training Data Efficiently

2019-09-26 · Rong Ge, Runzhe Wang, Haoyu Zhao

It has been observed \citep{zhang2016understanding} that deep neural networks can memorize: they achieve 100\% accuracy on training data. Recent theoretical results explained such behavior in highly overparametrized regi…

Memorization in Large Language Models in Medicine: Prevalence, Characteristics, and Implications

2025-09-10 · Anran Li, Lingfei Qian, Mengmeng Du, Yu Yin 외 arxiv

Large Language Models (LLMs) have demonstrated significant potential in medicine, with many studies adapting them through continued pre-training or fine-tuning on medical data to enhance domain-specific accuracy and safe…

Domain Adaptation

The Mosaic Memory of Large Language Models

2024-05-24 · Igor Shilov, Matthieu Meeus, Yves-Alexandre de Montjoye

As Large Language Models (LLMs) become widely adopted, understanding how they learn from, and memorize, training data becomes crucial. Memorization in LLMs is widely assumed to only occur as a result of sequences being r…

Inference AttackMembership Inference AttackMemorization