Estimating Privacy Leakage of Augmented Contextual Knowledge in Language Models

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 widelyadopted 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.

Authors

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.acl-long.1220
Primary Topic
Privacy-Preserving Technologies in Data
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Estimating Privacy Leakage of Augmented Contextual Knowledge in Language Models

Wanrong Zhang, Murali Annavaram, Bo Jiang, Zafar Takhirov et al.
Privacy-Preserving Technologies in Data
article

Estimating Privacy Leakage of Augmented Contextual Knowledge in Language Models

Wanrong Zhang, Murali Annavaram, Bo Jiang, Zafar Takhirov, James Flemings
article en

Abstract

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 widelyadopted 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.

National Science Foundation, VMware
Openalex Percentile: Top 90%
Privacy-Preserving Technologies in Data
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.