Predicting Memorization Before Fine-Tuning Language Models
Abstract
Language models are known to memorize and later regurgitate their training data, raising serious concerns when it is sensitive. Fine-tuning data is often private and proprietary, so a practitioner benefits from knowing which sequences will be memorized before training begins. Existing methods for predicting fine-tuning memorization still require partially training the target model. We show that memorization in a target model can be predicted without fine-tuning that model at all. We compute features from the pretrained base model and fit a classifier on memorization labels from a single fine-tuning run to predict the sequences future runs will memorize. This classifier reaches an ROC-AUC of at least 0.9 in most cases across six domains (FineWeb, Enron, PG-19, The Stack, OpenWebMath, WildChat) and three model families (Pythia, Qwen-2.5, Llama-3.2). Moreover, a classifier trained on a single domain, model family, & model size predicts memorization in unseen domains, families, and sizes. We further find that the learnability of a sequence shapes how it gets memorized. Finally, we study scaling laws for memorization on a Qwen-2.5 ladder from 0.5B to 14B, and find that both the memorization rate and our classifier's precision follow a power law in model size, with memorization growing as to .
Create a lesson
Metadata
- Comments
- Accepted to EACL 2027 Main Conference
Related papers
Can Small Language Models Be Fine-Tuned to Reliably Reason about Cardinal Directions?
Shared title terminologycs.CLDimitrios Andreakis, Robert E. Blackwell, Anthony G. Cohn et al.
Representational Inertia: Activation Stitching Reverses Fine-Tuned Behavior in Large Language Models
Shared title terminologycs.CLKartik Sharma, Rakshit S. Trivedi
Lost After the First Sentence: How Fine-Tuning Stores Facts
Shared title terminologycs.CLZhiyun Shi, ChiChih Hsieh, Yuxuan Chen et al.
Enhancing sLLM Translation for the Construction Domain via Fine-tuning and Retrieval-Augmented Generation
Shared title terminologycs.CLMin-Young Yu, Hanul Kim
Where You Backpropagate Matters: Token Hypothesis for Memory-Efficient Fine-Tuning
Shared title terminologycs.CLMd Kowsher, Chen Chen
Lost in Refusal: How Far Can Guard-Measured Safety Drift Be Trusted After Benign Multilingual Fine-Tuning?
Shared title terminologycs.CLMingyu Kang, Aishwarya Nikkumbh, Hannah Pham