A flock of stochastic parrots: Differentially private prompt learning for large language modelsFlocks of Stochastic Parrots: Differentially Private Prompt Learning for Large Language Models
AI summary
The researchers first construct a membership inference attack against large language model prompt data, showing that sensitive data in prompts does carry leakage risk, and then propose a differentially private prompt learning method. Soft prompts can be trained privately via gradient descent on downstream data, while discrete prompts use noisy voting by an ensemble of LLMs using different prompts to distill collective knowledge into a single public prompt. With GPT-3 as the base model, the method achieves 92.7% accuracy on the sst2 dataset (ε=0.147, δ=10^-6), compared with 95.2% for the non-private baseline. The authors state that this prompt-based method can be deployed directly using existing commercial APIs.