Skip to main content
QUICK REVIEW

[Paper Review] PrivacyMind: Large Language Models Can Be Contextual Privacy Protection Learners

Yijia Xiao, Yiqiao Jin|arXiv (Cornell University)|Oct 3, 2023
Privacy-Preserving Technologies in DataComputer Science3 citations
TL;DR

This paper introduces Privacy Protection Language Models (PPLM), a novel fine-tuning paradigm that enables large language models to learn domain-specific knowledge while protecting sensitive personally identifiable information (PII). By employing instruction tuning with both positive and negative examples, the method effectively reduces privacy leakage—demonstrated by a 33.8% reduction in privacy leakage score—without sacrificing knowledge acquisition, establishing LLMs as capable privacy protection learners.

ABSTRACT

The proliferation of Large Language Models (LLMs) has driven considerable interest in fine-tuning them with domain-specific data to create specialized language models. Nevertheless, such domain-specific fine-tuning data often contains contextually sensitive personally identifiable information (PII). Direct fine-tuning of LLMs on this data without privacy protection poses a risk of data leakage of sensitive PII during inference time. To address this challenge, we introduce Contextual Privacy Protection Language Models (PrivacyMind), a novel paradigm for fine-tuning LLMs that effectively injects domain-specific knowledge while safeguarding inference-time data privacy. Our work offers a theoretical analysis for model design and benchmarks various techniques such as corpus curation, penalty-based unlikelihood in training loss, instruction-based tuning, etc. Extensive experiments across diverse datasets and scenarios demonstrate the effectiveness of our approaches. In particular, instruction tuning with both positive and negative examples stands out as a promising method, effectively protecting private data while enhancing the model's knowledge. Our work underscores the potential for Large Language Models as robust contextual privacy protection learners. The complete code and data for the work can be found at https://github.com/Yijia-Xiao/PrivacyMind.

Motivation & Objective

  • Address the challenge of fine-tuning large language models on domain-specific data containing sensitive personally identifiable information (PII) without compromising privacy.
  • Overcome the limitations of traditional PII masking or deletion, which cause significant information loss and degrade model performance.
  • Develop a new paradigm—Privacy Protection Language Models (PPLM)—that enables LLMs to distinguish between publicly shareable knowledge and confidential information.
  • Achieve simultaneous knowledge injection and privacy protection without relying on costly or unstable methods like reinforcement learning from human feedback (RLHF).
  • Provide theoretical guidance and empirical validation for designing robust, privacy-aware fine-tuning strategies in real-world, privacy-sensitive applications.

Proposed method

  • Propose a novel fine-tuning framework, PPLM, that integrates privacy protection directly into the learning process of large language models.
  • Employ instruction-based tuning with both positive and negative examples to teach the model when to disclose or conceal sensitive information.
  • Introduce a penalty-based unlikelihood loss to discourage the model from generating private tokens during training.
  • Utilize a PII contextual classifier to guide the model in identifying sensitive content based on contextual cues.
  • Apply direct preference optimization (DPO) to refine model behavior toward privacy-preserving generations.
  • Conduct corpus curation to balance data quality and privacy risk, minimizing exposure of sensitive information during fine-tuning.
Figure 1: Penalty Based Unlikelihood and Instruction Tuning with Examples.
Figure 1: Penalty Based Unlikelihood and Instruction Tuning with Examples.

Experimental results

Research questions

  • RQ1Can large language models be effectively trained to distinguish between publicly shareable knowledge and sensitive personally identifiable information (PII) in context?
  • RQ2How can privacy protection be integrated into LLM fine-tuning without degrading knowledge acquisition or performance on downstream tasks?
  • RQ3What fine-tuning strategies—such as instruction tuning, loss penalties, or classifier guidance—most effectively reduce PII leakage while preserving model utility?
  • RQ4To what extent can instruction tuning with positive and negative examples outperform traditional data sanitization or RLHF in privacy-utility trade-offs?
  • RQ5Does the dynamic training process allow for a balanced co-evolution of knowledge injection and privacy protection, as evidenced by metrics like ROUGE, BERTScore, and privacy leakage score?

Key findings

  • Instruction tuning with both positive and negative examples (IT$_{PN_2}$) achieved the strongest privacy protection, reducing the privacy leakage score by 33.8% on the wikidoc_patient_information dataset compared to the vanilla fine-tuned model.
  • The model trained with IT$_{PN_2}$ maintained high knowledge retention, achieving a ROUGE-L score of 0.216 on the LLaMA2-13B model, comparable to the vanilla fine-tuned baseline of 0.215.
  • The privacy leakage score decreased over training time after an initial rise, indicating that the model learned to suppress PII generation as training progressed, especially under instruction tuning.
  • Theoretical analysis confirmed that the proposed methods, particularly instruction tuning with negative examples, create a stable optimization path that balances knowledge injection and privacy protection.
  • Compared to data removal or substitution, instruction tuning preserved more useful information while significantly reducing privacy risks, demonstrating superior performance on both utility and privacy metrics.
  • The combination of instruction tuning and a PII contextual classifier led to a 26.8% reduction in privacy leakage on the LLaMA2-13B model, outperforming DPO and penalty-based methods.
(a) ROUGE/BERTScore Curve
(a) ROUGE/BERTScore Curve

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.