Abstract
Large Language Models (LLMs) such as ChatGPT are increasingly deployed in domains handling sensitive data, yet they exhibit a tendency to "regurgitate" Personally Identifiable Information (PII) from input prompts into their outputs. This study investigates the extent of this input regurgitation and evaluates the efficacy of "prompt-induced sanitization"—using specific instructions to induce compliance with regulations like HIPAA and GDPR. While such prompting can reduce data leakage by over 50%, it introduces a "privacy tax" on utility and reveals unexpected demographic biases in how models retain information.
Introduction: The Challenge of Input Regurgitation
As LLMs are integrated into healthcare, human resources, and finance, they are frequently exposed to prompts containing PII or Protected Health Information (PHI). A critical security concern is input regurgitation: the model's propensity to copy sensitive data from the prompt directly into its response. For instance, a model asked to summarize a medical note might inadvertently include the patient's full name or Social Security Number (SSN) in the summary.
This research explores whether ChatGPT can act as a "self-policing" agent. Rather than relying on external scrubbing software, the authors test if instructing the model to adhere to privacy laws can effectively sanitize its own output.
Methodology and Datasets
The researchers evaluated ChatGPT (GPT-3.5) across two synthetic datasets:
- Medical Dataset: 100 synthetic medical notes containing PHI (names, ages, SSNs, addresses) modeled after the MIMIC-III framework.
- Hiring Dataset: Synthetic cover letters containing PII (gender, date of birth, university) generated via the
Fakerlibrary.
To test sanitization, three levels of prompts were used:
- Prompt-1: A general instruction to be "HIPAA/GDPR compliant."
- Prompt-2: A request to apply k-anonymity principles.
- Prompt-3: Explicit instructions to remove specific fields (e.g., "Remove Full Name, SSN").
Performance was measured using Boolean Privacy-Leakage Scores, Jaro Distance (for partial leaks), and BLEU scores to assess the "utility" or quality of the remaining text.
Key Results: Privacy vs. Utility
The study found that without safety prompts, ChatGPT is highly vulnerable to regurgitation, accurately copying PII 57.4% of the time in the hiring domain. However, prompt-induced sanitization significantly mitigated these risks.
In the medical domain, the average leakage score dropped from a baseline of 0.6 to 0.264 with Prompt-3—a 56% reduction. In the hiring domain, leakage dropped from 0.762 to 0.302. While effective at scrubbing high-entropy fields like addresses, the model struggled with "Age" and "Gender," which it often prioritized as "relevant information" despite the privacy constraints.
Discussion: The "Privacy Tax" and Latent Biases
The reduction in leakage comes with a "privacy tax": as prompts become more restrictive, the utility (BLEU score) of the output decreases. Furthermore, the study uncovered two significant behavioral insights:
- Interlinked Attribute Leakage: Attributes are often leaked in clusters. For example, if a model leaked a candidate's age, it was 93.7% likely to also leak their Date of Birth.
- Demographic Bias: PII retention was non-uniform. Notably, the model was significantly less likely to regurgitate PII for non-binary individuals compared to male or female candidates, suggesting that demographic representation in training data affects how the model "memorizes" input details.
Conclusion
While ChatGPT demonstrates a latent understanding of privacy regulations—reducing leaks even with vague "be compliant" instructions—prompting is not a foolproof solution. With leakage persisting in 15-30% of cases even under strict instructions, LLMs are not yet ready for fully autonomous handling of highly sensitive data without additional safeguards. Future work will focus on testing these dynamics across other models and developing more robust multi-step prompting chains.
Summary updated