Proactive Privacy Amnesia for Large Language Models: Safeguarding PII with Negligible Impact on Model Utility

Martin Kuo, Jingyang Zhang, Jianyi Zhang, Minxue Tang, Louis DiValentin, Aolin Ding, Jingwei Sun, William Chen, Amin Hass, Tianlong Chen, Yiran Chen, Hai Li

Abstract

With the rise of large language models (LLMs), increasing research has recognized their risk of leaking personally identifiable information (PII) under malicious attacks. Although efforts have been made to protect PII in LLMs, existing methods struggle to balance privacy protection with maintaining model utility. In this paper, inspired by studies of amnesia in cognitive science, we propose a novel approach, Proactive Privacy Amnesia (PPA), to safeguard PII in LLMs while preserving their utility. This mechanism works by actively identifying and forgetting key memories most closely associated with PII in sequences, followed by a memory implanting using suitable substitute memories to maintain the LLM's functionality. We conduct evaluations across multiple models to protect common PII, such as phone numbers and physical addresses, against prevalent PII-targeted attacks, demonstrating the superiority of our method compared with other existing defensive techniques. The results show that our PPA method completely eliminates the risk of phone number exposure by 100% and significantly reduces the risk of physical address exposure by 9.8% - 87.6%, all while maintaining comparable model utility performance.

Introduction

Large Language Models (LLMs) are notorious for "memorizing" their training data. While this extensive knowledge base contributes to their impressive capabilities, it creates a significant privacy vulnerability. Malicious actors can employ sophisticated "probing" or "soft prompt" attacks to extract sensitive personally identifiable information (PII)—such as phone numbers and home addresses—that the model encountered during training.

Existing defensive strategies generally fall into two categories, both presenting significant trade-offs. Gradient Ascent (Unlearning) often acts as a "sledgehammer," leading to "model collapse" where the model loses general linguistic coherence. Conversely, Gradient Descent (Error Injection) is gentler on model utility but frequently results in a fragile defense that can be bypassed by determined attackers. This research introduces Proactive Privacy Amnesia (PPA) as a "Goldilocks" solution: a defense robust enough to thwart extraction attacks while remaining precise enough to preserve general model performance.

The Proactive Privacy Amnesia (PPA) Framework

Inspired by the cognitive phenomenon of anterograde amnesia—where an individual cannot form new memories but retains old ones—the PPA framework employs a surgical three-stage process to neutralize sensitive data within the model's weights.

The PPA workflow: from identifying sensitive 'anchor' tokens to implanting substitute memories to maintain model utility.
  1. Sensitivity Analysis: The framework introduces a "memorization factor" ($D_k$) based on information theory. This identifies specific "anchor" tokens in a PII sequence (e.g., the middle digits of a phone number) that act as the primary triggers for the model to reconstruct the entire sensitive string.
  2. Selective Forgetting: Rather than attempting to unlearn an entire document, the model performs gradient ascent specifically on these identified anchor tokens. This targeted approach minimizes collateral damage to non-sensitive knowledge.
  3. Memory Implanting: To prevent the model from becoming "confused" by the resulting gaps in its knowledge, PPA "implants" substitute memories—fabricated, non-sensitive data (e.g., a fake phone number). This ensures the model maintains its structural understanding of document formats, such as emails, without retaining the original sensitive content.

Experimental Evaluation

The efficacy of PPA was evaluated using the Enron Email Dataset and a Fraud Email Dataset, both of which contain real-world sensitive contact details. The defense was tested on LLaMA2-7b and LLaMA3-8b architectures. To ensure general utility was preserved, the models were also benchmarked on the AESLC dataset for task-specific performance (e.g., subject line generation) and broader benchmarks like MMLU and TruthfulQA.

Key Results

The experimental results demonstrate that PPA provides a superior balance between privacy and utility compared to baseline methods like DEPN or standard unlearning.

Evaluation of phone number defense models on LLaMA2 and LLaMA3, showing PPA's 0.0% exposure risk across various attack vectors.
  • Phone Number Protection: PPA achieved a 100% reduction in phone number exposure risk across all tested attack types, including input rephrasing, probing, and soft prompts. As shown in the results table, PPA consistently reduced the Exact Match (EM) and Risk Score (RS) to zero.
  • Address Protection: While physical addresses are more complex due to their length and contextual dependency, PPA still reduced exposure risk by 9.8% to 87.6%, significantly outperforming other defensive techniques.
  • Negligible Utility Loss: Unlike traditional unlearning methods where perplexity often spikes to infinity, PPA’s perplexity remained nearly identical to the original fine-tuned models. Furthermore, PPA-protected models maintained higher scores on general intelligence benchmarks than those protected by alternative defenses.

Conclusion

Proactive Privacy Amnesia offers a surgical and effective method for safeguarding PII in LLMs. By focusing on critical "anchor" tokens and utilizing memory substitution, PPA eliminates sensitive data leakage without compromising the model's fundamental utility. Future research will focus on scaling this approach to massive web-scale datasets and extending the framework to protect "relationship" privacy—preventing the model from associating specific identities even when individual PII is masked.

Summary updated

BibTeX
@inproceedings{kuo2025proactive,
  author = {Martin Kuo and Jingyang Zhang and Jianyi Zhang and Minxue Tang and Louis DiValentin and Aolin Ding and Jingwei Sun and William Chen and Amin Hass and Tianlong Chen and Yiran Chen and Hai Li},
  title = {{Proactive Privacy Amnesia for Large Language Models: Safeguarding PII with Negligible Impact on Model Utility}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=io8uRPYktn},
}
Figure