Privacy-Preserving In-Context Learning with Differentially Private Few-Shot Generation
Not on the map. Why?
Abstract (arXiv)
We study the problem of in-context learning (ICL) with large language models (LLMs) on private datasets. This scenario poses privacy risks, as LLMs may leak or regurgitate the private examples demonstrated in the prompt. We propose a novel algorithm that generates synthetic few-shot demonstrations from the private dataset with formal differential privacy (DP) guarantees, and show empirically that it can achieve effective ICL. We conduct extensive experiments on standard benchmarks and compare our algorithm with non-private ICL and zero-shot solutions. Our results demonstrate that our algorithm can achieve competitive performance with strong privacy levels. These results open up new possibilities for ICL with privacy protection for a broad range of applications.
Key facts. Cited by 96 papers in the map (data through 13 Oct 2026). Builds on 37 of its 54 references that are in the map. First posted on arXiv 21 Sep 2023.
Builds on
37 of 54 references.
References · 37
- 2020Language Models are Few-Shot Learnerscited by 32,320
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,376
- 2019The Curious Case of Neural Text Degenerationcited by 2,893
- 2016Deep Learning with Differential Privacycited by 2,718
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,319
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,273
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,424
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,376
- 2018Hierarchical Neural Story Generationcited by 1,186
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 925
- 2023DecodingTrust: A Comprehensive Assessment of Trustworthiness in GPT Modelscited by 515
- 2021Large Language Models Can Be Strong Differentially Private Learnerscited by 412
25 more
- 2021Differentially Private Fine-tuning of Language Modelscited by 398
- 2016Semi-supervised Knowledge Transfer for Deep Learning from Private Training Datacited by 347
- 2018Scalable Private Learning with PATEcited by 268
- 2018Privacy Amplification by Subsampling: Tight Analyses via Couplings and Divergencescited by 240
- 2018Improving the Gaussian Mechanism for Differential Privacy: Analytical Calibration and Optimal Denoisingcited by 218
- 2021Numerical Composition of Differential Privacycited by 177
- 2019Privacy- and Utility-Preserving Textual Analysis via Calibrated Multivariate Perturbationscited by 118
- 2020BERT-of-Theseus: Compressing BERT by Progressive Module Replacingcited by 112
- 2022Synthetic Text Generation with Differential Privacy: A Simple and Practical Recipecited by 108
- 2023Flocks of Stochastic Parrots: Differentially Private Prompt Learning for Large Language Modelscited by 82
- 2022Differentially Private Language Models for Secure Data Sharingcited by 68
- 2022The Limits of Word Level Differential Privacycited by 63
- 2022A Customized Text Sanitization Mechanism with Differential Privacycited by 51
- 2023Privacy-Preserving In-Context Learning for Large Language Modelscited by 50
- 2021TEM: High Utility Metric Differential Privacy on Textcited by 43
- 2020A Differentially Private Text Perturbation Method Using a Regularized Mahalanobis Metriccited by 41
- 2022Differentially Private Decoding in Large Language Modelscited by 34
- 2022Submix: Practical Private Prediction for Large-Scale Language Modelscited by 31
- 2022A Critical Review on the Use (and Misuse) of Differential Privacy in Machine Learningcited by 27
- 2020Permute-and-Flip: A new mechanism for differentially private selectioncited by 22
- 2023Are Chatbots Ready for Privacy-Sensitive Applications? An Investigation into Input Regurgitation and Prompt-Induced Sanitizationcited by 17
- 2021The Permute-and-Flip Mechanism is Identical to Report-Noisy-Max with Exponential Noisecited by 14
- 2023Guiding Text-to-Text Privatization by Syntaxcited by 14
- 2023Driving Context into Text-to-Text Privatizationcited by 13
- 2022Privacy-Preserving Domain Adaptation of Semantic Parserscited by 12
Built on by
Citing papers per year: 2023: 7; 2024: 24; 2025: 36; 2026: 29.
96 papers.
Sort:
By area:
- 2023Can LLMs Keep a Secret? Testing Privacy Implications of Language Models via Contextual Integrity Theorycited by 223
- 2024ReCaLL: Membership Inference via Relative Conditional Log-Likelihoodscited by 63
- 2023DP-OPT: Make Large Language Model Your Privacy-Preserving Prompt Engineercited by 57
- 2024Mitigating the Privacy Issues in Retrieval-Augmented Generation (RAG) via Pure Synthetic Datacited by 52
- 2024Trust No Bot: Discovering Personal Disclosures in Human-LLM Conversations in the Wildcited by 46
- 2024Membership Inference Attacks Against In-Context Learningcited by 42
- 2024Private Fine-tuning of Large Language Models with Zeroth-order Optimizationcited by 41
- 2024LLM-PBE: Assessing Data Privacy in Large Language Modelscited by 41
- 2024Privacy-Preserving Retrieval-Augmented Generation with Differential Privacycited by 39
- 2024Privacy-Preserving Instructions for Aligning Large Language Modelscited by 35
- 2023Identifying and Mitigating Privacy Risks Stemming from Language Models: A Surveycited by 30
- 2024PrE-Text: Training Language Models on Private Federated Data in the Age of LLMscited by 29
38 more
- 2023DPZero: Private Fine-Tuning of Language Models without Backpropagationcited by 26
- 2025Protecting Users From Themselves: Safeguarding Contextual Privacy in Interactions with Conversational Agentscited by 26
- 2024Privacy Preserving Prompt Engineering: A Surveycited by 25
- 2024Private prediction for large-scale synthetic text generationcited by 24
- 2024Deconstructing The Ethics of Large Language Models from Long-standing Issues to New-emerging Dilemmas: A Surveycited by 23
- 2024Mind the Privacy Unit! User-Level Differential Privacy for Language Model Fine-Tuningcited by 23
- 2025Privacy Auditing of Large Language Modelscited by 23
- 2024Con-ReCall: Detecting Pre-training Data in LLMs via Contrastive Decodingcited by 20
- 2025The Canary's Echo: Auditing Privacy Risks of LLM-Generated Synthetic Textcited by 18
- 2024RemoteRAG: A Privacy-Preserving LLM Cloud RAG Servicecited by 17
- 2025Differentially Private Steering for Large Language Model Alignmentcited by 15
- 2025Synthesizing Privacy-Preserving Text Data via Finetuning without Finetuning Billion-Scale LLMscited by 15
- 2023Last One Standing: A Comparative Analysis of Security and Privacy of Soft Prompt Tuning, LoRA, and In-Context Learningcited by 14
- 2023How Well Do Large Language Models Truly Ground?cited by 14
- 2024The Fire Thief Is Also the Keeper: Balancing Usability and Privacy in Promptscited by 13
- 2024Open LLMs are Necessary for Current Private Adaptations and Outperform their Closed Alternativescited by 12
- 2024DP-TabICL: In-Context Learning with Differentially Private Tabular Datacited by 11
- 2025DPImageBench: A Unified Benchmark for Differentially Private Image Synthesiscited by 11
- 2024Data-adaptive Differentially Private Prompt Synthesis for In-Context Learningcited by 10
- 2025InvisibleInk: High-Utility and Low-Cost Text Generation with Differential Privacycited by 10
- 2025Safeguarding Privacy of Retrieval Data against Membership Inference Attacks: Is This Query Too Close to Home?cited by 9
- 2025SynthTextEval: Synthetic Text Data Generation and Evaluation for High-Stakes Domainscited by 7
- 2025Struct-Bench: A Benchmark for Differentially Private Structured Text Generationcited by 7
- 2025Scaling Textual Gradients via Sampling-Based Momentumcited by 6
- 2025PPMI: Privacy-Preserving LLM Interaction with Socratic Chain-of-Thought Reasoning and Homomorphically Encrypted Vector Databasescited by 6
- 2025Beyond Data Privacy: New Privacy Risks for Large Language Modelscited by 6
- 2025Differentially Private Synthetic Text Generation for Retrieval-Augmented Generation (RAG)cited by 6
- 2025Clustering and Median Aggregation Improve Differentially Private Inferencecited by 5
- 2026PAC-BENCH: Evaluating Multi-Agent Collaboration under Privacy Constraintscited by 5
- 2024Adaptively Private Next-Token Prediction of Large Language Modelscited by 4
- 2025SynBench: A Benchmark for Differentially Private Text Generationcited by 4
- 2025ContextLeak: Auditing Leakage in Private In-Context Learning Methodscited by 4
- 2026Observable Channels, Not Just Storage: Evaluating Privacy Leakage in LLM Agent Pipelinescited by 4
- 2023Hot PATE: Private Aggregation of Distributions for Diverse Taskcited by 3
- 2025Private-RAG: Answering Multiple Queries with LLMs while Keeping Your Data Privatecited by 3
- 2026Need to Know: Contextual-Integrity-Grounded Query Rewriting for Privacy-Conscious LLM Delegationcited by 3
- 2024Privacy Profiles for Private Selectioncited by 2
- 2024AI Delegates with a Dual Focus: Ensuring Privacy and Strategic Self-Disclosurecited by 2
50 most cited of 96 All 96 (JSON)
- 2026DP-ES: Differentially Private Evolution Strategies for Prompt Optimization5 Oct 2026
- 2026Federated Agent Optimization1 Oct 2026
- 2026CIPL: A Channel-Aware Framework for Recoverable Privacy Leakage in LLM Agents18 Sep 2026
- 2026Black-Box Membership Inference via Word-Level Probability Estimation8 Sep 2026
- 2026PAC-Private Autoregressive Generation: Calibrating Noise to Ensemble Disagreement4 Sep 2026
- 2026PrivBench: A Holistic and Modular Benchmarking Platform for Evaluating Text-to-Text Privatization30 Aug 2026
- 2026TabPATE: Differentially Private Tabular In-Context Learning Without Public Data30 Jun 2026
- 2026Agents That Know Too Much: A Data-Centric Survey of Privacy in LLM Agents25 Jun 2026
- 2026Privacy Vulnerabilities of Attention Layers in Tabular Foundation Models and Protection of High-Risk Queries24 Jun 2026
- 2026Phantoms and Disclosures: A Statistical Framework for Auditing Privacy in Synthetic Data15 Jun 2026
- 2026Are Large Language Models Suitable for Graph Computation? Progress and Prospects5 Jun 2026
- 2026Need to Know: Contextual-Integrity-Grounded Query Rewriting for Privacy-Conscious LLM Delegation2 Jun 2026
38 more
- 2026Differentially Private Datastore Generation for Retrieval-Augmented Inference31 May 2026
- 2026Differentially Private Preference Data Synthesis for Large Language Model Alignment29 May 2026
- 2026Pop Quiz Attack: Black-box Membership Inference Attacks Against Large Language Models7 May 2026
- 2026Membership Inference Attacks for Retrieval Based In-Context Learning for Document Question Answering5 May 2026
- 2026Barriers to Counterfactual Credit Attribution for Autoregressive Models2 May 2026
- 2026PAC-BENCH: Evaluating Multi-Agent Collaboration under Privacy Constraints13 Apr 2026
- 2026Observable Channels, Not Just Storage: Evaluating Privacy Leakage in LLM Agent Pipelines24 Mar 2026
- 2026Differentially Private Multimodal In-Context Learning5 Mar 2026
- 2026RedacBench: Can AI Erase Your Secrets?2 Mar 2026
- 2026Towards Privacy-Preserving LLM Inference via Covariant Obfuscation (Technical Report)2 Mar 2026
- 2026DP-RFT: Learning to Generate Synthetic Text via Differentially Private Reinforcement Fine-Tuning20 Feb 2026
- 2026Differentially Private Retrieval-Augmented Generation16 Feb 2026
- 2026Differentially Private and Communication Efficient Large Language Model Split Inference via Stochastic Quantization and Soft Prompt12 Feb 2026
- 2026Private PoEtry: Private In-Context Learning via Product of Experts4 Feb 2026
- 2026NOIR: Privacy-Preserving Generation of Code with Open-Source LLMs22 Jan 2026
- 2026Leveraging Soft Prompts for Privacy Attacks in Federated Prompt Tuning10 Jan 2026
- 2026From Easy to Hard++: Promoting Differentially Private Image Synthesis Through Spatial-Frequency Curriculum10 Jan 2026
- 2025ContextLeak: Auditing Leakage in Private In-Context Learning Methods18 Dec 2025
- 2025Private-RAG: Answering Multiple Queries with LLMs while Keeping Your Data Private10 Nov 2025
- 2025Differentially Private In-Context Learning with Nearest Neighbor Search6 Nov 2025
- 2025ACTG-ARL: Differentially Private Conditional Text Generation with RL-Boosted Control21 Oct 2025
- 2025Cocoon: A System Architecture for Differentially Private Training with Correlated Noises8 Oct 2025
- 2025Differentially Private Synthetic Text Generation for Retrieval-Augmented Generation (RAG)8 Oct 2025
- 2025Sanitize Your Responses: Mitigating Privacy Leakage in Large Language Models29 Sep 2025
- 2025SynBench: A Benchmark for Differentially Private Text Generation18 Sep 2025
- 2025Privacy Preserving In-Context-Learning Framework for Large Language Models17 Sep 2025
- 2025Beyond Data Privacy: New Privacy Risks for Large Language Models16 Sep 2025
- 2025Public Data Assisted Differentially Private In-Context Learning13 Sep 2025
- 2025Struct-Bench: A Benchmark for Differentially Private Structured Text Generation12 Sep 2025
- 2025Diverse And Private Synthetic Datasets Generation for RAG evaluation: A multi-agent framework26 Aug 2025
- 2025SynthTextEval: Synthetic Text Data Generation and Evaluation for High-Stakes Domains9 Jul 2025
- 2025InvisibleInk: High-Utility and Low-Cost Text Generation with Differential Privacy30 Jun 2025
- 2025Differentially Private Synthetic Data Release for Topics API Outputs30 Jun 2025
- 2025PrivacyXray: Detecting Privacy Breaches in LLMs through Semantic Consistency and Probability Certainty24 Jun 2025
- 2025PPMI: Privacy-Preserving LLM Interaction with Socratic Chain-of-Thought Reasoning and Homomorphically Encrypted Vector Databases19 Jun 2025
- 2025Efficient and Privacy-Preserving Soft Prompt Transfer for LLMs19 Jun 2025
- 2025Clustering and Median Aggregation Improve Differentially Private Inference5 Jun 2025
- 2025Scaling Textual Gradients via Sampling-Based Momentum31 May 2025
50 newest of 96 All 96 (JSON)
- 2024ReCaLL: Membership Inference via Relative Conditional Log-Likelihoodscited by 63
- 2024Membership Inference Attacks Against In-Context Learningcited by 42
- 2025Privacy Auditing of Large Language Modelscited by 23
- 2023Last One Standing: A Comparative Analysis of Security and Privacy of Soft Prompt Tuning, LoRA, and In-Context Learningcited by 14
- 2025SynBench: A Benchmark for Differentially Private Text Generationcited by 4
- 2025On Membership Inference Attacks in Knowledge Distillationcited by 1
- 2025Sanitize Your Responses: Mitigating Privacy Leakage in Large Language Modelscited by 1
- 2026Leveraging Soft Prompts for Privacy Attacks in Federated Prompt Tuningcited by 1
- 2026Membership Inference Attacks for Retrieval Based In-Context Learning for Document Question Answeringcited by 0
- 2026Pop Quiz Attack: Black-box Membership Inference Attacks Against Large Language Modelscited by 0
- 2026Privacy Vulnerabilities of Attention Layers in Tabular Foundation Models and Protection of High-Risk Queriescited by 0
- 2026TabPATE: Differentially Private Tabular In-Context Learning Without Public Datacited by 0
12 most cited of 13 All 13 (JSON)
- 2026Black-Box Membership Inference via Word-Level Probability Estimation8 Sep 2026
- 2026TabPATE: Differentially Private Tabular In-Context Learning Without Public Data30 Jun 2026
- 2026Privacy Vulnerabilities of Attention Layers in Tabular Foundation Models and Protection of High-Risk Queries24 Jun 2026
- 2026Pop Quiz Attack: Black-box Membership Inference Attacks Against Large Language Models7 May 2026
- 2026Membership Inference Attacks for Retrieval Based In-Context Learning for Document Question Answering5 May 2026
- 2026Leveraging Soft Prompts for Privacy Attacks in Federated Prompt Tuning10 Jan 2026
- 2025Sanitize Your Responses: Mitigating Privacy Leakage in Large Language Models29 Sep 2025
- 2025SynBench: A Benchmark for Differentially Private Text Generation18 Sep 2025
- 2025On Membership Inference Attacks in Knowledge Distillation17 May 2025
- 2025Privacy Auditing of Large Language Models9 Mar 2025
- 2024Membership Inference Attacks Against In-Context Learning2 Sep 2024
- 2024ReCaLL: Membership Inference via Relative Conditional Log-Likelihoods23 Jun 2024
12 newest of 13 All 13 (JSON)
- 2024Mitigating the Privacy Issues in Retrieval-Augmented Generation (RAG) via Pure Synthetic Datacited by 52
- 2024Privacy-Preserving Retrieval-Augmented Generation with Differential Privacycited by 39
- 2024RemoteRAG: A Privacy-Preserving LLM Cloud RAG Servicecited by 17
- 2025InvisibleInk: High-Utility and Low-Cost Text Generation with Differential Privacycited by 10
- 2025Safeguarding Privacy of Retrieval Data against Membership Inference Attacks: Is This Query Too Close to Home?cited by 9
- 2025Differentially Private Synthetic Text Generation for Retrieval-Augmented Generation (RAG)cited by 6
- 2025Private-RAG: Answering Multiple Queries with LLMs while Keeping Your Data Privatecited by 3
- 2026Differentially Private Retrieval-Augmented Generationcited by 2
- 2025Diverse And Private Synthetic Datasets Generation for RAG evaluation: A multi-agent frameworkcited by 1
- 2026Differentially Private Retrieval-Augmented Generation16 Feb 2026
- 2025Private-RAG: Answering Multiple Queries with LLMs while Keeping Your Data Private10 Nov 2025
- 2025Differentially Private Synthetic Text Generation for Retrieval-Augmented Generation (RAG)8 Oct 2025
- 2025Diverse And Private Synthetic Datasets Generation for RAG evaluation: A multi-agent framework26 Aug 2025
- 2025InvisibleInk: High-Utility and Low-Cost Text Generation with Differential Privacy30 Jun 2025
- 2025Safeguarding Privacy of Retrieval Data against Membership Inference Attacks: Is This Query Too Close to Home?28 May 2025
- 2024RemoteRAG: A Privacy-Preserving LLM Cloud RAG Service17 Dec 2024
- 2024Privacy-Preserving Retrieval-Augmented Generation with Differential Privacy6 Dec 2024
- 2024Mitigating the Privacy Issues in Retrieval-Augmented Generation (RAG) via Pure Synthetic Data20 Jun 2024
- 2025Protecting Users From Themselves: Safeguarding Contextual Privacy in Interactions with Conversational Agentscited by 26
- 2026Observable Channels, Not Just Storage: Evaluating Privacy Leakage in LLM Agent Pipelinescited by 4
- 2026Agents That Know Too Much: A Data-Centric Survey of Privacy in LLM Agentscited by 0
- 2026CIPL: A Channel-Aware Framework for Recoverable Privacy Leakage in LLM Agentscited by 0
- 2026Federated Agent Optimizationcited by 0
- 2026Federated Agent Optimization1 Oct 2026
- 2026CIPL: A Channel-Aware Framework for Recoverable Privacy Leakage in LLM Agents18 Sep 2026
- 2026Agents That Know Too Much: A Data-Centric Survey of Privacy in LLM Agents25 Jun 2026
- 2026Observable Channels, Not Just Storage: Evaluating Privacy Leakage in LLM Agent Pipelines24 Mar 2026
- 2025Protecting Users From Themselves: Safeguarding Contextual Privacy in Interactions with Conversational Agents22 Feb 2025
- 2026Differentially Private Multimodal In-Context Learningcited by 1
- 2026Differentially Private Multimodal In-Context Learning5 Mar 2026
- 2023Can LLMs Keep a Secret? Testing Privacy Implications of Language Models via Contextual Integrity Theorycited by 223
- 2023DP-OPT: Make Large Language Model Your Privacy-Preserving Prompt Engineercited by 57
- 2024Trust No Bot: Discovering Personal Disclosures in Human-LLM Conversations in the Wildcited by 46
- 2024Private Fine-tuning of Large Language Models with Zeroth-order Optimizationcited by 41
- 2024LLM-PBE: Assessing Data Privacy in Large Language Modelscited by 41
- 2023Identifying and Mitigating Privacy Risks Stemming from Language Models: A Surveycited by 30
- 2024PrE-Text: Training Language Models on Private Federated Data in the Age of LLMscited by 29
- 2023DPZero: Private Fine-Tuning of Language Models without Backpropagationcited by 26
- 2024Privacy Preserving Prompt Engineering: A Surveycited by 25
- 2024Private prediction for large-scale synthetic text generationcited by 24
- 2024Deconstructing The Ethics of Large Language Models from Long-standing Issues to New-emerging Dilemmas: A Surveycited by 23
- 2024Mind the Privacy Unit! User-Level Differential Privacy for Language Model Fine-Tuningcited by 23
12 most cited of 62 All 62 (JSON)
- 2026DP-ES: Differentially Private Evolution Strategies for Prompt Optimization5 Oct 2026
- 2026PAC-Private Autoregressive Generation: Calibrating Noise to Ensemble Disagreement4 Sep 2026
- 2026PrivBench: A Holistic and Modular Benchmarking Platform for Evaluating Text-to-Text Privatization30 Aug 2026
- 2026Are Large Language Models Suitable for Graph Computation? Progress and Prospects5 Jun 2026
- 2026Need to Know: Contextual-Integrity-Grounded Query Rewriting for Privacy-Conscious LLM Delegation2 Jun 2026
- 2026Differentially Private Datastore Generation for Retrieval-Augmented Inference31 May 2026
- 2026Barriers to Counterfactual Credit Attribution for Autoregressive Models2 May 2026
- 2026PAC-BENCH: Evaluating Multi-Agent Collaboration under Privacy Constraints13 Apr 2026
- 2026RedacBench: Can AI Erase Your Secrets?2 Mar 2026
- 2026Towards Privacy-Preserving LLM Inference via Covariant Obfuscation (Technical Report)2 Mar 2026
- 2026DP-RFT: Learning to Generate Synthetic Text via Differentially Private Reinforcement Fine-Tuning20 Feb 2026
- 2026Differentially Private and Communication Efficient Large Language Model Split Inference via Stochastic Quantization and Soft Prompt12 Feb 2026
12 newest of 62 All 62 (JSON)