English

PrivacyMind: Large Language Models Can Be Contextual Privacy Protection Learners

Computation and Language 2024-10-29 v3 Artificial Intelligence Machine Learning

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.

Keywords

Cite

@article{arxiv.2310.02469,
  title  = {PrivacyMind: Large Language Models Can Be Contextual Privacy Protection Learners},
  author = {Yijia Xiao and Yiqiao Jin and Yushi Bai and Yue Wu and Xianjun Yang and Xiao Luo and Wenchao Yu and Xujiang Zhao and Yanchi Liu and Quanquan Gu and Haifeng Chen and Wei Wang and Wei Cheng},
  journal= {arXiv preprint arXiv:2310.02469},
  year   = {2024}
}

Comments

Accepted at EMNLP 2024 Main

R2 v1 2026-06-28T12:39:58.776Z