arXiv Machine Learning

A Prior-Aware Metric for Efficiently Distinguishing Memorization from Generalization in Large Language Models

arXiv:2602. 18733v2 Announce Type: replace Abstract: Training data leakage from Large Language Models (LLMs) raises serious concerns related to privacy, security, and copyright compliance.

arXiv AI
Oct 9

Is Memorization Context-Sensitive? Prefix-Based Extraction Beyond Isolated Prefixes

Large language models can reveal memorized training sequences when prompted with a prefix, but real-world systems often use additional context such as instructions or retrieved documents. This study measures how such contextual conditioning affects memorization by comparing suffix probabilities with empty prompts versus retrieved contexts across three instruction-tuned models. The results show that context does not simply erase memorization; instead, it preserves a core set of robustly extractable samples while also shifting the boundary of marginal cases, sometimes suppressing and sometimes enabling new exposures.

By Ali Satvaty, Narjes Sharafi, Jirui Qi, Suzan Verberne, Fatih Turkmen
arXiv Machine Learning
Jul 15

Extractable Memorization From First Principles

arXiv:2607. 12649v1 Announce Type: new Abstract: Recent work on extractable memorization in LLMs suffers from two contrasting validity problems.

By A. Feder Cooper, Marika Swanberg, Jamie Hayes, Lea Duesterwald, Christopher De Sa, Daniel E. Ho, Mark A. Lemley, Percy Liang
arXiv AI
Oct 28

LLMs Can Leak Training Data But Do They Want To? Evaluating Memorization Propensity in LLMs

The paper introduces PropMe, a framework that evaluates both the capability of large language models (LLMs) to reproduce training data via prefix attacks and their natural propensity to do so without adversarial prompting. Using SimpleTrace to compare every generation against the full indexed training corpus, the authors test models such as Comma, DFM Decoder, and OLMo3 32B across datasets like Common Pile, Dynaword, and Dolma3. Results show that natural sentence prompts produce less training text than prefix attacks, but unprompted or single-word prompts can reproduce as much or more, often involving duplicated licenses, code, and templates; continual pre‑training only modestly reduces verbatim reproduction.

By Gianluca Barmina, Peter Schneider-Kamp, Lukas Galke Poech
arXiv Machine Learning
Nov 6

An Information Bottleneck for Post-hoc Memorization Mitigation in LLMs

The paper proposes a modular, plug‑and‑play framework that inserts a nonparametric variational information bottleneck (NVIB) between a frozen large language model (LLM) backbone and its language‑modeling head. By compressing the final hidden representations before token prediction, the NVIB aims to preserve general linguistic knowledge while filtering out highly specific memorized sequences. Experiments on memorization extraction tasks and standard language‑modeling benchmarks show that the NVIB layer substantially reduces extractability while maintaining competitive performance.

By Dina EL Zein, Shashi Kumar, James Henderson
arXiv Machine Learning
5d ago

Extracting Training Data from Diffusion Language Models via Infilling

The paper introduces infilling extraction, a new protocol for probing memorization in diffusion language models (DLMs) that uses arbitrary binary masks to exploit their bidirectional denoising capability. Experiments on LLaDA‑8B and Dream‑7B across multiple extraction modes, training pipelines, and corpora show that mask geometry significantly affects extractability, with edge‑conditioned masks retrieving up to three times more verbatim sequences than prefix‑only probes. Targeted infilling also boosts PII recall on fine‑tuned DLMs by 2.5–4.5× over prefix‑only methods, narrowing the gap to autoregressive models and sometimes surpassing them for specific data types.

By Yihan Wang, N. Asokan
arXiv Machine Learning
Nov 2

Fewer Heads, Fewer Memories: Pruning Redundant Attention Heads Suppresses Verbatim Memorisation

Large language models can memorize and reproduce verbatim training data, raising privacy and IP concerns. Recent theory links attention heads to this memorisation, while empirical work shows many heads are redundant and can be pruned with little performance loss. This study shows that zeroing out a large fraction of redundant heads before inference dramatically reduces memorisation (91.5% drop) and even improves language‑modeling performance on GPT‑2‑XL.

By Aryan Chowdhury, Riza Batista-Navarro
arXiv AI
Oct 1

Mitigating Memorization In Language Models

The paper explores ways to reduce the memorization of training data in language models, testing three regularizer-based, three finetuning-based, and eleven machine unlearning methods—five of which are newly introduced. It introduces TinyMem, a lightweight suite of small models for rapid testing of these mitigation techniques, and shows that unlearning methods, particularly BalancedSubnet, outperform others in removing memorized content while maintaining task performance. The study also finds that regularizer-based approaches are slow and ineffective, while finetuning methods are costly, especially when high accuracy is required.

By Mansi Sakarvadia, Aswathy Ajith, Arham Khan, Nathaniel Hudson, Caleb Geniesse, Kyle Chard, Yaoqing Yang, Ian Foster, Michael W. Mahoney
arXiv Machine Learning
Jul 22

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

arXiv:2603. 24917v2 Announce Type: replace-cross Abstract: Recent work shows that standard greedy-decoding extraction methods for quantifying memorization in LLMs miss how extraction risk varies across sequences.

By A. Feder Cooper, Mark A. Lemley, Christopher De Sa, Lea Duesterwald, Allison Casasola, Jamie Hayes, Katherine Lee, Daniel E. Ho, Percy Liang