mlsanityData to 13 Oct 2026

Locally Differentially Private In-Context Learning

arXiv 2405.04032 ↗First posted 7 May 2024cs.CR cs.AIcited by 5

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

  1. 2020Language Models are Few-Shot Learnerscited by 32,320
  2. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,424
  3. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,376
  4. 2018The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networkscited by 864
  5. 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 817
  6. 2022Transformers learn in-context by gradient descentcited by 720
  7. 2021Learning To Retrieve Prompts for In-Context Learningcited by 643
  8. 2021Large Language Models Can Be Strong Differentially Private Learnerscited by 412
  9. 2021Differentially Private Fine-tuning of Language Modelscited by 398
  10. 2023Larger language models do in-context learning differentlycited by 387
  11. 2022Active Example Selection for In-Context Learningcited by 195
  12. 2021Counterfactual Memorization in Neural Language Modelscited by 155
8 more
  1. 2023What In-Context Learning "Learns" In-Context: Disentangling Task Recognition and Task Learningcited by 151
  2. 2021How much do language models copy from their training data? Evaluating linguistic novelty in text generation using RAVENcited by 124
  3. 2021Deep Learning with Label Differential Privacycited by 116
  4. 2021Differential Privacy for Text Analytics via Natural Text Sanitizationcited by 76
  5. 2016Discrete Distribution Estimation under Local Privacycited by 59
  6. 2022The Dual Form of Neural Networks Revisited: Connecting Test Time Predictions to Training Patterns via Spotlights of Attentioncited by 46
  7. 2022Memorization in NLP Fine-tuning Methodscited by 45
  8. 2023Privacy-Preserving Parameter-Efficient Fine-Tuning for Large Language Model Servicescited by 43

Built on by

Cited by year (2026 to 13 Oct)

Citing papers per year: 2024: 1; 2025: 2; 2026: 2.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Public Data Assisted Differentially Private In-Context Learning
  2. 2024Membership Inference Attacks Against In-Context Learning
  3. 2024On the Privacy Risk of In-context Learning
  4. 2024Privacy-Preserving Large Language Models: Mechanisms, Applications, and Future Directions
  5. 2024Preserving Privacy in Large Language Models: A Survey on Current Threats and Solutions
  6. 2023Last One Standing: A Comparative Analysis of Security and Privacy of Soft Prompt Tuning, LoRA, and In-Context Learning
  7. 2025A Survey on Privacy Risks and Protection in Large Language Models
  8. 2025DP-Fusion: Token-Level Differentially Private Inference for Large Language Models