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