paper-with-me

홈 › 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 such work, we develop a framework to study verbatim memorization in a controlled setting by continuing pre-training from Pythia checkpoints with injected sequences. We find that (1) non-trivial amounts of repetition are necessary for verbatim memorization to happen; (2) later (and presumably better) checkpoints are more likely to verbatim memorize sequences, even for out-of-distribution sequences; (3) the generation of memorized sequences is triggered by distributed model states that encode high-level features and makes important use of general language modeling capabilities. Guided by these insights, we develop stress tests to evaluate unlearning methods and find they often fail to remove the verbatim memorized information, while also degrading the LM. Overall, these findings challenge the hypothesis that verbatim memorization stems from specific model weights or mechanisms. Rather, verbatim memorization is intertwined with the LM's general capabilities and thus will be very difficult to isolate and suppress without degrading model quality.

📄 PDF Abstract BibTeX arXiv:2407.17817

Code (1)

explanare/verbatim-memorization 공식 구현 pytorch

Tasks

Language ModelingLanguage ModellingMemorization

Methods 이 논문이 사용한 방법론

Pythia Pythia is a suite of decoder-only autoregressive language models all trained on public data seen in the exact same order and ranging in size from 70M to 12B parameters. The…

Similar Papers 제목 키워드 기반

Demystifying Foreground-Background Memorization in Diffusion Models

2025-08-16 · Jimmy Z. Di, Yiwei Lu, Yaoliang Yu, Gautam Kamath 외 arxiv

Diffusion models (DMs) memorize training images and can reproduce near-duplicates during generation. Current detection methods identify verbatim memorization but fail to capture two critical aspects: quantifying partial …

Preventing Verbatim Memorization in Language Models Gives a False Sense of Privacy

2022-10-31 · Daphne Ippolito, Florian Tramèr, Milad Nasr, Chiyuan Zhang 외

Studying data memorization in neural language models helps us understand the risks (e.g., to privacy or copyright) associated with models regurgitating training data and aids in the development of countermeasures. Many p…

MemorizationOpen-Ended Question AnsweringStyle Transfer

Estimating near-verbatim extraction risk in language models with decoding-constrained beam search

2026-03-26 · A. Feder Cooper, Mark A. Lemley, Christopher De Sa, Lea Duesterwald 외 arxiv

Recent work shows that standard greedy-decoding extraction methods for quantifying memorization in LLMs miss how extraction risk varies across sequences. Probabilistic extraction -- computing the probability of generatin…

Revisiting Non-Verbatim Memorization in Large Language Models: The Role of Entity Surface Forms

2026-04-23 · Yuto Nishida, Naoki Shikoda, Yosuke Kishinami, Ryo Fujii 외 arxiv

Understanding what kinds of factual knowledge large language models (LLMs) memorize is essential for evaluating their reliability and limitations. Entity-based QA is a common framework for analyzing non-verbatim memoriza…

When Graph Language Models Go Beyond Memorization

2026-05-07 · Masatsugu Yamada, Mahito Sugiyama arxiv

It remains unclear whether graph language models learn structural regularities or merely memorize training graphs; this cannot be resolved by current aggregate fidelity metrics alone. We develop a calibrated diagnostic p…