Locally Differentially Private Document Generation Using Zero Shot Prompting

Saiteja Utpala, Sara Hooker, Pin Yu Chen
10/24/2023
cs.CLcs.CRcs.LG

Official code: SaitejaUtpala/dp_prompt (6 stars, MIT, last commit 2023-11-01).

Abstract

Numerous studies have highlighted the privacy risks associated with pretrained large language models. In contrast, our research offers a unique perspective by demonstrating that pretrained large language models can effectively contribute to privacy preservation. We propose a locally differentially private mechanism called DP-Prompt, which leverages the power of pretrained large language models and zero-shot prompting to counter author de-anonymization attacks while minimizing the impact on downstream utility. When DP-Prompt is used with a powerful language model like ChatGPT (gpt-3.5), we observe a notable reduction in the success rate of de-anonymization attacks, showing that it surpasses existing approaches by a considerable margin despite its simpler design. For instance, in the case of the IMDB dataset, DP-Prompt (with ChatGPT) perfectly recovers the clean sentiment F1 score while achieving a 46\% reduction in author identification F1 score against static attackers and a 26\% reduction against adaptive attackers. We conduct extensive experiments across six open-source large language models, ranging up to 7 billion parameters, to analyze various effects of the privacy-utility tradeoff.

View on arXivView PDF

Code Implementations(1)

MIT
62Python, Jupyter NotebookOct 31, 20232 years agoMIT

Similar Papers

Cite this paper

@article{utpala2023locally,
  title  = {Locally Differentially Private Document Generation Using Zero Shot Prompting},
  author = {Saiteja Utpala and Sara Hooker and Pin Yu Chen},
  year   = {2023},
  eprint = {2310.16111},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.16111v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.16111.svg)](https://codeofpaper.com/paper/2310.16111)

Discussion