Lune

NeurIPS2023顶会

Flocks of Stochastic Parrots: Differentially Private Prompt Learning for Large Language Models

Haonan Duan, Adam Dziedzic, Nicolas Papernot, Franziska Boenisch

摘要

Large language models (LLMs) are excellent in-context learners. However, the sensitivity of data contained in prompts raises privacy concerns. Our work first shows that these concerns are valid: we instantiate a simple but highly effective membership inference attack against the data used to prompt LLMs. To address this vulnerability, one could forego prompting and resort to fine-tuning LLMs with known algorithms for private gradient descent. However, this comes at the expense of the practicality and efficiency offered by prompting. Therefore, we propose to privately learn to prompt. We first show that soft prompts can be obtained privately through gradient descent on downstream data. However, this is not the case for discrete prompts. Thus, we orchestrate a noisy vote among an ensemble of LLMs presented with different prompts, i.e., a flock of stochastic parrots. The vote privately transfers the flock's knowledge into a single public prompt. We show that LLMs prompted with our private algorithms closely match the non-private baselines. For example, using GPT3 as the base model, we achieve a downstream accuracy of 92.7% on the sst2 dataset with (ϵ=0.147,δ=10−6\epsilon=0.147, \delta=10^{-6})-differential privacy vs. 95.2% for the non-private baseline. Through our experiments, we also show that our prompt-based approach is easily deployed with existing commercial APIs.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 40 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Membership Inference Attacks Against Machine Learning Models 引用了 Deep Learning with Differential Privacy
  • Ring-A-Bell! How Reliable are Concept Removal Methods For Diffusion Models? 引用了 Language Models are Few-Shot Learners
  • LLM Dataset Inference: Did you train on my dataset? 引用了 Membership Inference Attacks Against Machine Learning Models
  • LLM Dataset Inference: Did you train on my dataset? 引用了 Extracting Training Data from Large Language Models
  • DP-OPT: Make Large Language Model Your Privacy-Preserving Prompt Engineer 引用了 Membership Inference Attacks Against Machine Learning Models
  • DP-OPT: Make Large Language Model Your Privacy-Preserving Prompt Engineer 引用了 Language Models are Few-Shot Learners
  • DP-OPT: Make Large Language Model Your Privacy-Preserving Prompt Engineer 引用了 Deep Learning with Differential Privacy
  • DP-OPT: Make Large Language Model Your Privacy-Preserving Prompt Engineer 引用了 Extracting Training Data from Large Language Models
  • DP-OPT: Make Large Language Model Your Privacy-Preserving Prompt Engineer 引用了 Privacy-Preserving In-Context Learning with Differentially Private Few-Shot Generation
  • Can LLMs Keep a Secret? Testing Privacy Implications of Language Models via Contextual Integrity Theory 引用了 Deep Learning with Differential Privacy
  • Can LLMs Keep a Secret? Testing Privacy Implications of Language Models via Contextual Integrity Theory 引用了 Privacy-Preserving In-Context Learning with Differentially Private Few-Shot Generation
  • Extracting Training Data from Large Language Models 引用了 Membership Inference Attacks Against Machine Learning Models
  • Extracting Training Data from Large Language Models 引用了 Language Models are Few-Shot Learners
  • Extracting Training Data from Large Language Models 引用了 Deep Learning with Differential Privacy
  • Privacy-Preserving In-Context Learning with Differentially Private Few-Shot Generation 引用了 Membership Inference Attacks Against Machine Learning Models
  • Privacy-Preserving In-Context Learning with Differentially Private Few-Shot Generation 引用了 Language Models are Few-Shot Learners
  • Privacy-Preserving In-Context Learning with Differentially Private Few-Shot Generation 引用了 Deep Learning with Differential Privacy
  • Calibrate Before Use: Improving Few-shot Performance of Language Models 引用了 Language Models are Few-Shot Learners
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper40

  1. Ring-A-Bell! How Reliable are Concept Removal Methods For Diffusion Models?Yu-Lin Tsai, Chia-Yi Hsu, Chulin Xie, Chih-Hsun Lin 等ICLR 2024 · 207 次引用
  2. Can LLMs Keep a Secret? Testing Privacy Implications of Language Models via Contextual Integrity TheoryNiloofar Mireshghallah, Hyunwoo Kim, Xuhui Zhou, Yulia Tsvetkov 等ICLR 2024 · 198 次引用
  3. LLM Dataset Inference: Did you train on my dataset?Pratyush Maini, Hengrui Jia, Nicolas Papernot, Adam DziedzicNeurIPS 2024 · 162 次引用
  4. Privacy-Preserving In-Context Learning with Differentially Private Few-Shot GenerationXinyu Tang, Richard Shin, Huseyin A. Inan, Andre Manoel 等ICLR 2024 · 111 次引用
  5. DP-OPT: Make Large Language Model Your Privacy-Preserving Prompt EngineerJunyuan Hong, Jiachen T. Wang, Chenhui Zhang, Zhangheng Li 等ICLR 2024 · 70 次引用

它引用的 Paper20

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
  2. Deep Learning with Differential PrivacyMartín Abadi, Andy Chu, Ian J. Goodfellow, H. Brendan McMahan 等CCS 2016 · 7,620 次引用
  3. Membership Inference Attacks Against Machine Learning ModelsReza Shokri, Marco Stronati, Congzheng Song, Vitaly ShmatikovS&P 2017 · 5,137 次引用
  4. Extracting Training Data from Large Language ModelsNicholas Carlini, Florian Tramèr, Eric Wallace, Matthew Jagielski 等USENIX Security 2021 · 2,866 次引用
  5. Calibrate Before Use: Improving Few-shot Performance of Language ModelsZihao Zhao, Eric Wallace, Shi Feng, Dan Klein 等ICML 2021 · 1,843 次引用

相关 Paper

  1. Quantifying Privacy Risks of Prompts in Visual Prompt LearningYixin Wu, Rui Wen, Michael Backes, Pascal Berrang 等USENIX Security 2024 · 12 次引用
  2. Public Data Assisted Differentially Private In-Context LearningSeongho Joo, Hyukhun Koh, Kyomin JungEMNLP Findings 2025
  3. R.R.: Unveiling LLM Training Privacy through Recollection and RankingWenlong Meng, Zhenyuan Guo, Lenan Wu, Chen Gong 等ACL Findings 2025 · 2 次引用
  4. Private prediction for large-scale synthetic text generationKareem Amin, Alex Bie, Weiwei Kong, Alexey Kurakin 等EMNLP Findings 2024 · 5 次引用
  5. Efficient and Privacy-Preserving Soft Prompt Transfer for LLMsXun Wang, Jing Xu, Franziska Boenisch, Michael Backes 等ICML 2025
黄昏的海面,两侧是细线勾勒的悬崖