Randomized Masked Finetuning: An Efficient Way to Mitigate Memorization of PIIs in LLMs
Kunj Joshi, David A. Smith
TL;DR
The paper tackles privacy risks from PII memorization in LLMs by proposing Randomized Masked Fine-Tuning (RMFT), which masks recurring PIIs with randomized yet plausible replacements to reduce memorization while preserving language utility. It demonstrates RMFT on the Enron dataset with GPT2-XL, reporting substantial TER and SER reductions (around 80%) and a modest perplexity increase (~5.7%), outperforming a deduplication-based baseline. To evaluate privacy-utility tradeoffs, the authors introduce MaxTER, a Pareto-frontier framework, and use Area Under the Response Curve (AURC) to compare methods across multiple datasets and scenarios. The work concludes that RMFT offers a scalable, privacy-robust fine-tuning strategy when deployment distributions align with training data, with future work needed to generalize to pretraining and less-structured PIIs.
Abstract
The current literature on memorization in Natural Language Models, especially Large Language Models (LLMs), poses severe security and privacy risks, as models tend to memorize personally identifying information (PIIs) from training data. We introduce Randomized Masked Fine-Tuning (RMFT), a novel privacy-preserving fine-tuning technique that reduces PII memorization while minimizing performance impact. Using the Enron Email Dataset, we demonstrate that RMFT achieves an 80.81% reduction in Total Extraction Rate and 80.17% reduction in Seen Extraction Rate compared to baseline fine-tuning, outperforming deduplication methods while maintaining only a 5.73% increase in perplexity. We present MaxTER, a Pareto-optimal evaluation framework for assessing privacy-utility tradeoffs, and show the performance of RMFT vs Deduplication by Area Under The Response Curve (AURC) metric.
