Abstract
As Large Language Models (LLMs) are increasingly fine-tuned on sensitive datasets, the risk of exposing Personally Identifiable Information (PII) grows. This paper establishes a rigorous framework for quantifying PII leakage across three distinct threat models: extraction, reconstruction, and inference. By introducing novel attack methodologies—including the use of sentence suffixes and "Lazy Estimation" for efficient metric calculation—the research demonstrates that existing defenses like PII scrubbing and Differential Privacy (DP) provide significant but incomplete protection. The findings reveal a near-linear relationship between PII frequency in training data and its likelihood of being leaked, with proposed attacks achieving up to a 10x improvement over previous baselines.
Introduction
The utility of LLMs often depends on their ability to be fine-tuned on domain-specific data, such as medical records, legal proceedings, or corporate communications. However, this process risks the model memorizing and subsequently "blurting out" sensitive information. While practitioners frequently employ PII scrubbing (automated removal of names and addresses) or Differential Privacy (DP) to mitigate these risks, the actual protection offered against specific PII leakage has remained poorly quantified. This study addresses this gap by providing a formal taxonomy and rigorous metrics to measure how easily an attacker can extract, reconstruct, or infer PII from a black-box model.
Threat Models and Methodology
The researchers categorize PII leakage into three hierarchical threat models based on the attacker's prior knowledge:
- PII Extraction: An uninformed attacker queries the model to observe what PII it generates spontaneously.
- PII Reconstruction: A partially informed attacker possesses a "masked" sentence (e.g., "John Doe lives in [MASK]") and attempts to recover the missing PII.
- PII Inference: An informed attacker has a masked sentence and a list of potential candidates, attempting to identify the correct individual.
Methodological Innovations
To overcome the computational hurdles of measuring leakage, the authors introduced Lazy Estimation. This metric assumes that PII of the same class (e.g., all surnames) are grammatically interchangeable, allowing for efficient extractability estimation without sampling millions of tokens.
Furthermore, the study improved upon existing "Targeted Adversarial Beam" (TAB) attacks. While previous methods focused primarily on prefixes, this research demonstrates that the suffix of a sentence provides a massive signal for reconstruction. By utilizing a public masked language model (like RoBERTa) to fill in non-target masks and ranking candidates by the target model's perplexity, the authors significantly boosted reconstruction accuracy.
Experimental Setup
The study evaluated GPT-2 models (ranging from Small to XL) fine-tuned on three realistic, sensitive datasets:
- ECHR: Legal cases from the European Court of Human Rights containing detailed personal information.
- Enron: A corpus of corporate emails.
- Yelp-Health: Healthcare-related reviews containing sensitive patient-like narratives.
Key Findings
The Duplication Trap
A critical insight from the study is the near-linear relationship between PII frequency in the training set and its extractability. If a specific name appears twice as often as another in the training data, the model is approximately twice as likely to leak it. This highlights the danger of data duplication in sensitive datasets.
Model Capacity and Memorization
Larger models, such as GPT-2 XL, were found to be generally more vulnerable to reconstruction attacks. Their higher capacity for memorization allows them to retain specific PII sequences more effectively than smaller variants, though they also exhibit higher precision in the information they do leak.
The Power of Suffixes
The inclusion of suffixes in reconstruction attacks proved to be a "smoking gun." By considering the context following a piece of PII, the proposed attacks outperformed baseline methods by up to 10x on the Enron dataset.
Evaluating Defenses
The research analyzed the two primary defense mechanisms currently in use:
- Differential Privacy (DP): At a privacy budget of $\epsilon=8$, DP reduced PII extraction by an order of magnitude. However, it did not eliminate the risk entirely, still leaking approximately 3% of PII sequences. DP is most effective at protecting long, unique sequences but is less robust against shorter, more frequent PII.
- PII Scrubbing: While effective at removing known entities, scrubbing is limited by the accuracy of the Named Entity Recognition (NER) models used. If an NER model misses a name during the cleaning phase, the LM will memorize it, and a more sophisticated attacker may still find it.
Both defenses involve a trade-off: scrubbing can harm model utility by increasing perplexity, and combining scrubbing with DP results in the most significant performance degradation.
Conclusion
The study concludes that while current defenses provide a necessary shield, they are not a complete fortress against PII leakage. The authors advocate for "DP-informed scrubbing"—a surgical approach that removes only the PII that DP is unlikely to protect, thereby balancing privacy with model utility. Future work is required to address "semantic leakage," where a model might leak an individual's identity through aliases or descriptions even if verbatim PII is successfully removed.
Summary updated