Locally Differentially Private In-Context Learning
Not on the map. Why?
Abstract (arXiv)
Large pretrained language models (LLMs) have shown surprising In-Context Learning (ICL) ability. An important application in deploying large language models is to augment LLMs with a private database for some specific task. The main problem with this promising commercial use is that LLMs have been shown to memorize their training data and their prompt data are vulnerable to membership inference attacks (MIA) and prompt leaking attacks. In order to deal with this problem, we treat LLMs as untrusted in privacy and propose a locally differentially private framework of in-context learning(LDP-ICL) in the settings where labels are sensitive. Considering the mechanisms of in-context learning in Transformers by gradient descent, we provide an analysis of the trade-off between privacy and utility in such LDP-ICL for classification. Moreover, we apply LDP-ICL to the discrete distribution estimation problem. In the end, we perform several experiments to demonstrate our analysis results.
Key facts. Cited by 5 papers in the map (data through 13 Oct 2026). Builds on 20 of its 36 references that are in the map. First posted on arXiv 7 May 2024.
Builds on
20 of 36 references.
References · 20
- 2020Language Models are Few-Shot Learnerscited by 32,320
- 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
- 2018The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networkscited by 864
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 817
- 2022Transformers learn in-context by gradient descentcited by 720
- 2021Learning To Retrieve Prompts for In-Context Learningcited by 643
- 2021Large Language Models Can Be Strong Differentially Private Learnerscited by 412
- 2021Differentially Private Fine-tuning of Language Modelscited by 398
- 2023Larger language models do in-context learning differentlycited by 387
- 2022Active Example Selection for In-Context Learningcited by 195
- 2021Counterfactual Memorization in Neural Language Modelscited by 155
8 more
- 2023What In-Context Learning "Learns" In-Context: Disentangling Task Recognition and Task Learningcited by 151
- 2021How much do language models copy from their training data? Evaluating linguistic novelty in text generation using RAVENcited by 124
- 2021Deep Learning with Label Differential Privacycited by 116
- 2021Differential Privacy for Text Analytics via Natural Text Sanitizationcited by 76
- 2016Discrete Distribution Estimation under Local Privacycited by 59
- 2022The Dual Form of Neural Networks Revisited: Connecting Test Time Predictions to Training Patterns via Spotlights of Attentioncited by 46
- 2022Memorization in NLP Fine-tuning Methodscited by 45
- 2023Privacy-Preserving Parameter-Efficient Fine-Tuning for Large Language Model Servicescited by 43
Built on by
Citing papers per year: 2024: 1; 2025: 2; 2026: 2.
5 papers.
- 2024Differential Privacy Mechanisms in Neural Tangent Kernel Regressioncited by 14
- 2025ContextLeak: Auditing Leakage in Private In-Context Learning Methodscited by 4
- 2025DP-GTR: Differentially Private Prompt Protection via Group Text Rewritingcited by 2
- 2026Differentially Private Multimodal In-Context Learningcited by 1
- 2026Privacy Vulnerabilities of Attention Layers in Tabular Foundation Models and Protection of High-Risk Queriescited by 0
- 2026Privacy Vulnerabilities of Attention Layers in Tabular Foundation Models and Protection of High-Risk Queries24 Jun 2026
- 2026Differentially Private Multimodal In-Context Learning5 Mar 2026
- 2025ContextLeak: Auditing Leakage in Private In-Context Learning Methods18 Dec 2025
- 2025DP-GTR: Differentially Private Prompt Protection via Group Text Rewriting6 Mar 2025
- 2024Differential Privacy Mechanisms in Neural Tangent Kernel Regression18 Jul 2024
Similar, not cited
Close in wording, no citation either way
- 2025Public Data Assisted Differentially Private In-Context Learning
- 2024Membership Inference Attacks Against In-Context Learning
- 2024On the Privacy Risk of In-context Learning
- 2024Privacy-Preserving Large Language Models: Mechanisms, Applications, and Future Directions
- 2024Preserving Privacy in Large Language Models: A Survey on Current Threats and Solutions
- 2023Last One Standing: A Comparative Analysis of Security and Privacy of Soft Prompt Tuning, LoRA, and In-Context Learning
- 2025A Survey on Privacy Risks and Protection in Large Language Models
- 2025DP-Fusion: Token-Level Differentially Private Inference for Large Language Models