mlsanityData to 7 Oct 2026

ContextLeak: Auditing Leakage in Private In-Context Learning Methods

arXiv 2512.16059 ↗First posted 18 Dec 2025cs.CR cs.CLcited by 4

Not on the map. Why?

Abstract (arXiv)

In-Context Learning (ICL) has become a standard technique for adapting Large Language Models (LLMs) to specialized tasks by supplying task-specific exemplars within the prompt. However, when these exemplars contain sensitive information, reliable privacy-preserving mechanisms are essential to prevent unintended leakage through model outputs. Many privacy-preserving methods have been proposed to protect against information leakage in this context, but there are fewer efforts on how to audit these methods. We introduce ContextLeak, the first framework to empirically measure the worst-case information leakage in ICL. ContextLeak uses canary insertion, embedding uniquely identifiable tokens in the sensitive dataset and crafting targeted queries to detect their presence. We apply ContextLeak across a range of private ICL techniques, including both heuristic prompt-based defenses and differentially private methods with formal guarantees. We show that ContextLeak reliably detects leakage across methods, and the leakage increases monotonically with the theoretical privacy budget, offering a practical signal of worst-case privacy risk. Our analysis further reveals that existing methods strike poor privacy-utility trade-offs, either completely leaking sensitive information or severely degrading performance.

Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 64 of its 85 references that are in the map. First posted on arXiv 18 Dec 2025.

Builds on

64 of 85 references.

References · 64

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  3. 2024Qwen2.5 Technical Reportcited by 4,713
  4. 2016Deep Learning with Differential Privacycited by 2,682
  5. 2016Membership Inference Attacks against Machine Learning Modelscited by 2,221
  6. 2020Extracting Training Data from Large Language Modelscited by 2,144
  7. 2018The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networkscited by 847
  8. 2021Membership Inference Attacks From First Principlescited by 839
  9. 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 803
  10. 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 760
  11. 2019SAMSum Corpus: A Human-annotated Dialogue Dataset for Abstractive Summarizationcited by 530
  12. 2023DecodingTrust: A Comprehensive Assessment of Trustworthiness in GPT Modelscited by 505
38 more
  1. 2025GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learningcited by 449
  2. 2024The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructionscited by 441
  3. 2023Scalable Extraction of Training Data from (Production) Language Modelscited by 415
  4. 2021Large Language Models Can Be Strong Differentially Private Learnerscited by 405
  5. 2023Formalizing and Benchmarking Prompt Injection Attacks and Defensescited by 328
  6. 2023Can LLMs Keep a Secret? Testing Privacy Implications of Language Models via Contextual Integrity Theorycited by 218
  7. 2020Auditing Differentially Private Machine Learning: How Private is Private SGD?cited by 213
  8. 2021Adversary Instantiation: Lower Bounds for Differentially Private Machine Learningcited by 193
  9. 2019Stolen Memories: Leveraging Model Memorization for Calibrated White-Box Membership Inferencecited by 168
  10. 2023Beyond Memorization: Violating Privacy Via Inference with Large Language Modelscited by 167
  11. 2020Membership Leakage in Label-Only Exposurescited by 156
  12. 2024Certifiably Robust RAG against Retrieval Corruptioncited by 144
  13. 2022The Privacy Onion Effect: Memorization is Relativecited by 128
  14. 2023ProPILE: Probing Privacy Leakage in Large Language Modelscited by 127
  15. 2023Privacy Auditing with One (1) Training Runcited by 119
  16. 2023Privacy-Preserving In-Context Learning with Differentially Private Few-Shot Generationcited by 94
  17. 2023Practical Membership Inference Attacks against Fine-tuned Large Language Models via Self-prompt Calibrationcited by 90
  18. 2023Effective Prompt Extraction from Language Modelscited by 83
  19. 2023Flocks of Stochastic Parrots: Differentially Private Prompt Learning for Large Language Modelscited by 80
  20. 2022Z-ICL: Zero-Shot In-Context Learning with Pseudo-Demonstrationscited by 70
  21. 2017A Large Self-Annotated Corpus for Sarcasmcited by 63
  22. 2024Get my drift? Catching LLM Task Drift with Activation Deltascited by 61
  23. 2023DP-OPT: Make Large Language Model Your Privacy-Preserving Prompt Engineercited by 56
  24. 2025How much do language models memorize?cited by 53
  25. 2023Privacy-Preserving In-Context Learning for Large Language Modelscited by 50
  26. 2024Proving membership in LLM pretraining data via data watermarkscited by 38
  27. 2024Membership Inference Attacks Against In-Context Learningcited by 38
  28. 2018Detecting Violations of Differential Privacycited by 37
  29. 2022Bayesian Estimation of Differential Privacycited by 31
  30. 2024Defense Against Prompt Injection Attack by Leveraging Attack Techniquescited by 31
  31. 2024On the Privacy Risk of In-context Learningcited by 31
  32. 2024Fine-Tuning Large Language Models with User-Level Differential Privacycited by 28
  33. 2023Advancing Differential Privacy: Where We Are Now and Future Directions for Real-World Deploymentcited by 26
  34. 2024Private prediction for large-scale synthetic text generationcited by 24
  35. 2025Scaling Laws for Differentially Private Language Modelscited by 22
  36. 2025Privacy Auditing of Large Language Modelscited by 22
  37. 2024Dataset and Lessons Learned from the 2024 SaTML LLM Capture-the-Flag Competitioncited by 20
  38. 2023Privacy-Aware Document Visual Question Answeringcited by 17

50 most cited of 64 All 64 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 4.

4 papers.