Flocks of Stochastic Parrots: Differentially Private Prompt Learning for Large Language Models
Haonan Duan, Adam Dziedzic, Nicolas Papernot, Franziska Boenisch

TL;DR
This paper introduces a method for privately learning prompts for large language models using a flock of stochastic parrots, effectively balancing privacy with high downstream task performance.
Contribution
It proposes a novel differentially private prompt learning technique that uses ensemble voting among multiple LLM prompts to preserve privacy without sacrificing much accuracy.
Findings
Achieves 92.7% accuracy with differential privacy on SST-2.
Private prompt learning closely matches non-private performance.
Method is compatible with existing commercial LLM APIs.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
Taxonomy
TopicsPrivacy-Preserving Technologies in Data · Topic Modeling
MethodsBalanced Selection
