Unintended Memorization of Sensitive Information in Fine-Tuned Language Models
Marton Szep, Jorge Marin Ruiz, Georgios Kaissis, Paulina Seidl, Rüdiger von Eisenhart-Rothe, Florian Hinterwimmer, Daniel Rueckert
TL;DR
This work formalizes the risk of input-only PII memorization in fine-tuned LLMs and introduces a true-prefix probing method to quantify leakage under a realistic black-box threat. It benchmarks four privacy-preserving approaches—Differential Privacy, UnDial (machine unlearning), Regularization, and Direct Preference Optimization (DPO)—across synthetic multilingual and German medical datasets. The findings show post-training methods generally offer more robust privacy-utility trade-offs, while differential privacy provides strong leakage reductions in some settings but can introduce training instability, and no approach completely eliminates leakage. The study highlights persistent memorization risks in fine-tuned LLMs and advocates for scalable, robust defenses to enable privacy-preserving deployment in sensitive domains.
Abstract
Fine-tuning Large Language Models (LLMs) on sensitive datasets carries a substantial risk of unintended memorization and leakage of Personally Identifiable Information (PII), which can violate privacy regulations and compromise individual safety. In this work, we systematically investigate a critical and underexplored vulnerability: the exposure of PII that appears only in model inputs, not in training targets. Using both synthetic and real-world datasets, we design controlled extraction probes to quantify unintended PII memorization and study how factors such as language, PII frequency, task type, and model size influence memorization behavior. We further benchmark four privacy-preserving approaches including differential privacy, machine unlearning, regularization, and preference alignment, evaluating their trade-offs between privacy and task performance. Our results show that post-training methods generally provide more consistent privacy-utility trade-offs, while differential privacy achieves strong reduction in leakage in specific settings, although it can introduce training instability. These findings highlight the persistent challenge of memorization in fine-tuned LLMs and emphasize the need for robust, scalable privacy-preserving techniques.
