Research map / Federated learning and privacy / Privacy attacks and secure learning
DP-OPT: Make Large Language Model Your Privacy-Preserving Prompt Engineer
Read the paperCheck your idea against 108,967 papers
AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Proposes DP-OPT, which tunes a discrete prompt privately on the client with a local Vicuna-7b via a differentially private ensemble of in-context prompt generation, then transfers it to cloud LLMs such as DaVinci-003.
Problem
Prompt tuning on private data requires sending sensitive data to cloud LLM providers, and the resulting prompts can leak private information; hosting or exposing cloud model parameters is also undesirable.
Approach
Generate discrete instructional prompts locally with a small LLM (DLN-1 style forward/backward prompt generation), privatize the generation by sample-and-aggregate voting over disjoint demonstration subsets with a LimitedDomain mechanism, and privatize prompt selection with the exponential mechanism; the resulting prompt is transferred to cloud models without parameter sharing.
Key results
- DP-OPT with epsilon=8 on Vicuna-7b achieves 81.4% average test accuracy across four tasks versus 82.9% for non-private ICL on DaVinci-003 and 70.5% for private PromptDPSGD.
- Prompts tuned on Vicuna-7b via DLN-1 transfer to DaVinci-003 with an 8% average accuracy gain, e.g., Disaster 61.7 to 77.0.
- Under LiRA membership inference, DP-OPT AUCs stay near 0.5 (0.456 to 0.518) while DLN-1 reaches 0.772 on Mpqa and 0.773 on SST-2.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use OPT instead of DLN-1 for transferred prompt tuning | DaVinci-003 · SST-2 | accuracy (%): 92.7 (0.3) -> 92.4 (0.5) | No clear effect |
| use OPT instead of DLN-1 for transferred prompt tuning | DaVinci-003 · Trec | accuracy (%): 70.7(3.9) -> 71.5 (0.8) | Helped |
| use OPT instead of DLN-1 for transferred prompt tuning | DaVinci-003 · Mpqa | accuracy (%): 81.4 (1.6) -> 85.8 (1.2) | Helped |
| use OPT instead of DLN-1 for transferred prompt tuning | DaVinci-003 · Disaster | accuracy (%): 77.0 (1.9) -> 79.0 (0.9) | Helped |
| add DP noise and private selection to OPT | DaVinci-003 · SST-2 | accuracy (%): 92.4 (0.5) -> 92.2 (0.8) | Hurt |
| add DP noise and private selection to OPT | DaVinci-003 · Trec | accuracy (%): 71.5 (0.8) -> 68.7 (6.5) | Hurt |
| add DP noise and private selection to OPT | DaVinci-003 · Mpqa | accuracy (%): 85.8 (1.2) -> 85.8 (0.7) | No clear effect |
| add DP noise and private selection to OPT | DaVinci-003 · Disaster | accuracy (%): 79.0 (0.9) -> 78.9 (0.3) | No clear effect |
| use DP-OPT instead of PromptDPSGD | privacy-preserving prompt tuning · Trec | accuracy (%): 32.3 (3.1) -> 68.7 (6.5) | Helped |
| reduce DP-OPT privacy budget ε to 1 (ablation) | DP-OPT on Vicuna-7b · SST-2 | accuracy (%): accuracy drops to 86% approximately | Hurt |
| increase the number of ensemble prompts beyond 30 (ablation) | OPT and DP-OPT on larger models · classification tasks | accuracy | No clear effect |
| increase the number of prompts in the ensemble (ablation) | OPT and DP-OPT on Vicuna-7b · classification tasks | accuracy | Helped |
Surprising findings
- DLN-1 prompts transfer positively to larger models, outperforming their performance on the source model (positive rather than negative transfer), in contrast to PEZ soft-prompt transfer which loses accuracy.
- Instructing the LLM to avoid copying examples (privatization instruction) still leaked private samples, with LiRA AUC around 73%.
Limitations
- Experiments limited to four sentiment and classification tasks with sentence-level data.
- Privacy-utility trade-off: small epsilon limits the number of generated tokens, reducing accuracy on Vicuna-7b (about 86% at epsilon=1 on SST-2).
- Trec result for DLN-1 on Vicuna-7b is lower than reported in prior work, attributed to the local model's limitations.
Experimental setup
Datasets: SST-2 Trec Mpqa Disaster
Benchmarks: SST-2 Trec Mpqa Disaster
Metrics: test accuracy membership inference AUC (LiRA)
Baselines: ICL DLN-1 PromptSGD PromptDPSGD 0-shot Private DLN-1 PEZ LiRA membership inference
Builds on: Deep Language Network (DLN) Automatic Prompt Engineering (APE) PEZ DPSGD LimitedDomain mechanism
Closest papers by meaning
- Efficient and Privacy-Preserving Soft Prompt Transfer for LLMs (ICML 2025 · similarity 0.92)
- Scaling Laws for Differentially Private Language Models (ICML 2025 · similarity 0.90)
- Privacy-Preserving Instructions for Aligning Large Language Models (ICML 2024 · similarity 0.90)
- DPZero: Private Fine-Tuning of Language Models without Backpropagation (ICML 2024 · similarity 0.90)
- Data-adaptive Differentially Private Prompt Synthesis for In-Context Learning (ICLR 2025 · similarity 0.89)
- Open LLMs are Necessary for Current Private Adaptations and Outperform their Closed Alternatives (NeurIPS 2024 · similarity 0.88)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.
