Unintended Memorization of Sensitive Information in Fine-Tuned Language Models

Marton Szep, Jorge Marin Ruiz, Georgios Kaissis, Paulina Seidl, Rüdiger von Eisenhart-Rothe +2 more
1/24/2026
cs.LGcs.AIcs.CL

No official code found. Best implementation: martonszep/llm-pii-leak (3 stars, MIT, last commit 2026-02-25).

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.

View on arXivView PDF

Code Implementations(1)

MIT

Code for the paper “Unintended Memorization of Sensitive Information in Fine-Tuned Language Models”, accepted at EACL 2026.

30Python, Jupyter NotebookJan 10, 20267 months agoMIT

Similar Papers

Cite this paper

@article{szep2026unintended,
  title  = {Unintended Memorization of Sensitive Information in Fine-Tuned Language Models},
  author = {Marton Szep and Jorge Marin Ruiz and Georgios Kaissis and Paulina Seidl and Rüdiger von Eisenhart-Rothe and Florian Hinterwimmer and Daniel Rueckert},
  year   = {2026},
  eprint = {2601.17480},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.17480v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2601.17480.svg)](https://codeofpaper.com/paper/2601.17480)

Discussion