Estimating Privacy Leakage of Augmented Contextual Knowledge in Language Models
Not on the map. Why?
Abstract (arXiv)
Language models (LMs) rely on their parametric knowledge augmented with relevant contextual knowledge for certain tasks, such as question answering. However, the contextual knowledge can contain private information that may be leaked when answering queries, and estimating this privacy leakage is not well understood. A straightforward approach of directly comparing an LM's output to the contexts can overestimate the privacy risk, since the LM's parametric knowledge might already contain the augmented contextual knowledge. To this end, we introduce *context influence*, a metric that builds on differential privacy, a widely-adopted privacy notion, to estimate the privacy leakage of contextual knowledge during decoding. Our approach effectively measures how each subset of the context influences an LM's response while separating the specific parametric knowledge of the LM. Using our context influence metric, we demonstrate that context privacy leakage occurs when contextual knowledge is out of distribution with respect to parametric knowledge. Moreover, we experimentally demonstrate how context influence properly attributes the privacy leakage to augmented contexts, and we evaluate how factors -- such as model size, context size, generation position, etc. -- affect context privacy leakage. The practical implications of our results will inform practitioners of the privacy risk associated with augmented contextual knowledge.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 43 of its 62 references that are in the map. First posted on arXiv 3 Oct 2024.
Builds on
43 of 62 references.
References · 43
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,462
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,221
- 2020Extracting Training Data from Large Language Modelscited by 2,144
- 2019Language Models as Knowledge Bases?cited by 1,922
31 more
- 2017Get To The Point: Summarization with Pointer-Generator Networkscited by 1,281
- 2019PubMedQA: A Dataset for Biomedical Research Question Answeringcited by 1,271
- 2018Hierarchical Neural Story Generationcited by 1,182
- 2018The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networkscited by 847
- 2021Entity-Based Knowledge Conflicts in Question Answeringcited by 349
- 2023Trusting Your Evidence: Hallucinate Less with Context-aware Decodingcited by 319
- 2022Deduplicating Training Data Mitigates Privacy Risks in Language Modelscited by 309
- 2021Understanding Factuality in Abstractive Summarization with FRANK: A Benchmark for Factuality Metricscited by 285
- 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
- 2024PrivacyLens: Evaluating Privacy Norm Awareness of Language Models in Actioncited by 161
- 2024The Good and The Bad: Exploring Privacy Issues in Retrieval-Augmented Generation (RAG)cited by 159
- 2019Privacy- and Utility-Preserving Textual Analysis via Calibrated Multivariate Perturbationscited by 115
- 2024ContextCite: Attributing Model Generation to Contextcited by 93
- 2024Investigating Data Contamination for Pre-training Language Modelscited by 91
- 2022Position: Considerations for Differentially Private Learning with Large-Scale Public Pretrainingcited by 86
- 2024Follow My Instruction and Spill the Beans: Scalable Data Extraction from Retrieval-Augmented Generation Systemscited by 76
- 2022Mutual Information Alleviates Hallucinations in Abstractive Summarizationcited by 67
- 2022The Limits of Word Level Differential Privacycited by 63
- 2023Locally Differentially Private Document Generation Using Zero Shot Promptingcited by 63
- 2020Individual Privacy Accounting via a Renyi Filtercited by 57
- 2023FactKB: Generalizable Factuality Evaluation using Language Models Enhanced with Factual Knowledgecited by 55
- 2020A Differentially Private Text Perturbation Method Using a Regularized Mahalanobis Metriccited by 41
- 2021When Does Translation Require Context? A Data-driven, Multilingual Explorationcited by 36
- 2024Context versus Prior Knowledge in Language Modelscited by 25
- 2024Generating Is Believing: Membership Inference Attacks against Retrieval-Augmented Generationcited by 25
- 2024DP-MLM: Differentially Private Text Rewriting Using Masked Language Modelscited by 24
- 2024Differentially Private Knowledge Distillation via Synthetic Text Generationcited by 18
- 2023Are Chatbots Ready for Privacy-Sensitive Applications? An Investigation into Input Regurgitation and Prompt-Induced Sanitizationcited by 17
- 2021Privately Publishable Per-instance Privacycited by 12
- 2023Context-aware Decoding Reduces Hallucination in Query-focused Summarizationcited by 10
Built on by
Citing papers per year: 2025: 4; 2026: 2.
6 papers.
- 2025Shadows in the Attention: Contextual Perturbation and Representation Drift in the Dynamics of Hallucination in LLMscited by 9
- 2025Beyond Data Privacy: New Privacy Risks for Large Language Modelscited by 6
- 2025Performant LLM Agentic Framework for Conversational AIcited by 3
- 2026Needle-in-RAG: Prompt-Conditioned Character-Level Traceback of Poisoned Spans in Retrieved Evidencecited by 1
- 2025OnionEval: An Unified Evaluation of Fact-conflicting Hallucination for Small-Large Language Modelscited by 0
- 2026Auditing and Mitigating Privacy Leakage in Cloud-Edge Collaborative Decodingcited by 0
- 2026Auditing and Mitigating Privacy Leakage in Cloud-Edge Collaborative Decoding29 Aug 2026
- 2026Needle-in-RAG: Prompt-Conditioned Character-Level Traceback of Poisoned Spans in Retrieved Evidence3 May 2026
- 2025Beyond Data Privacy: New Privacy Risks for Large Language Models16 Sep 2025
- 2025Shadows in the Attention: Contextual Perturbation and Representation Drift in the Dynamics of Hallucination in LLMs22 May 2025
- 2025Performant LLM Agentic Framework for Conversational AI9 Mar 2025
- 2025OnionEval: An Unified Evaluation of Fact-conflicting Hallucination for Small-Large Language Models22 Jan 2025