EMNLP Findings2023
Locally Differentially Private Document Generation Using Zero Shot Prompting
Saiteja Utpala, Sara Hooker, Pin-Yu Chen
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 deanonymization 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 privacyutility tradeoff.Code is avaliable at https: //github.com/SaitejaUtpala/dp_promptSentiment(Utility) Author Identification(Privacy) 0.0 0.2 0.4 0.6 0.8 1.0 F1-Score 0.8 0.93 0.8 0.69 0.79 0.49 Privacy vs Utility of DP-Prompt (with ChatGPT) w/o DP-Prompt DP-Prompt(Adaptive) DP-Prompt(Static) Mechanism Privacy Level Requires fine-tuning Generates sanitized doc Madlib (Feyisetan et al., 2020) Word level Metric-DP No Yes Mahanolbis (Xu et al., 2020) Word level Metric-DP No Yes TEM (Carvalho et al., 2021) Word level Metric-DP No Yes Truncated Laplace (Meehan et al., 2022) Sentence level Pure-DP No No Deep Candidate (Meehan et al., 2022) Sentence level Pure-DP Yes No Paraphraser (Mattern et al., 2022b) Document level Pure-LDP Yes Yes DP Prompt (Ours) Document level Pure-LDP No Yes
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
24 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- DP-OPT: Make Large Language Model Your Privacy-Preserving Prompt Engineer cites Language Models are Few-Shot Learners
- DP-OPT: Make Large Language Model Your Privacy-Preserving Prompt Engineer cites Extracting Training Data from Large Language Models
- DP-OPT: Make Large Language Model Your Privacy-Preserving Prompt Engineer cites Privacy-Preserving In-Context Learning with Differentially Private Few-Shot Generation
- Large Language Models are Zero-Shot Reasoners cites Language Models are Few-Shot Learners
- PrE-Text: Training Language Models on Private Federated Data in the Age of LLMs cites Privacy-Preserving In-Context Learning with Differentially Private Few-Shot Generation
- Differentially Private Synthetic Data via Foundation Model APIs 2: Text cites Finetuned Language Models are Zero-Shot Learners
- Differentially Private Synthetic Data via Foundation Model APIs 2: Text cites Extracting Training Data from Large Language Models
- Finetuned Language Models are Zero-Shot Learners cites Language Models are Few-Shot Learners
- Extracting Training Data from Large Language Models cites Language Models are Few-Shot Learners
- Privacy-Preserving In-Context Learning with Differentially Private Few-Shot Generation cites Language Models are Few-Shot Learners
Cited by top-tier papers24
- Privacy-Preserving In-Context Learning with Differentially Private Few-Shot GenerationXinyu Tang, Richard Shin, Huseyin A. Inan, Andre Manoel et al.ICLR 2024 · 111 citations
- Differentially Private Synthetic Data via Foundation Model APIs 2: TextChulin Xie, Zinan Lin, Arturs Backurs, Sivakanth Gopi et al.ICML 2024 · 71 citations
- DP-OPT: Make Large Language Model Your Privacy-Preserving Prompt EngineerJunyuan Hong, Jiachen T. Wang, Chenhui Zhang, Zhangheng Li et al.ICLR 2024 · 70 citations
- PrivacyRestore: Privacy-Preserving Inference in Large Language Models via Privacy Removal and RestorationZiqian Zeng, Jianwei Wang, Junyao Yang, Zhengdong Lu et al.ACL 2025 · 31 citations
- PrE-Text: Training Language Models on Private Federated Data in the Age of LLMsCharlie Hou, Akshat Shrivastava, Hongyuan Zhan, Rylan Conway et al.ICML 2024 · 30 citations
Builds on20
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- Large Language Models are Zero-Shot ReasonersTakeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo et al.NeurIPS 2022 · 8,168 citations
- Finetuned Language Models are Zero-Shot LearnersJason Wei, Maarten Bosma, Vincent Y. Zhao, Kelvin Guu et al.ICLR 2022 · 4,966 citations
- Extracting Training Data from Large Language ModelsNicholas Carlini, Florian Tramèr, Eric Wallace, Matthew Jagielski et al.USENIX Security 2021 · 2,866 citations
- MPNet: Masked and Permuted Pre-training for Language UnderstandingKaitao Song, Xu Tan, Tao Qin, Jianfeng Lu et al.NeurIPS 2020 · 1,957 citations
Related papers
- DP³: Differentially Private Prompt Perturbation for Multi-turn LLM InferenceLele Zheng, Chao Zhang, Feiyang Yuan, Ke Cheng et al.ACL Findings 2026
- Flocks of Stochastic Parrots: Differentially Private Prompt Learning for Large Language ModelsHaonan Duan, Adam Dziedzic, Nicolas Papernot, Franziska BoenischNeurIPS 2023 · 116 citations
- Cape: Context-Aware Prompt Perturbation Mechanism with Differential PrivacyHaoqi Wu, Wei Dai, Li Wang, Qiang YanICML 2025
- DP-GTR: Differentially Private Prompt Protection via Group Text RewritingMingchen Li, Heng Fan, Song Fu, Junhua Ding et al.EMNLP Findings 2025 · 2 citations
- DP-Fusion: Token-Level Differentially Private Inference for Large Language ModelsRushil Thareja, Preslav Nakov, Praneeth Vepakomma, Nils LukasICLR 2026 · 7 citations
