arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.03026cs.CLcs.LG
收藏

估算语言模型中增强上下文知识的隐私泄露

Estimating Privacy Leakage of Augmented Contextual Knowledge in Language Models

University of Southern California(南加州大学);TikTok

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

AI总结:

本研究提出上下文影响指标,用于估算语言模型中增强上下文知识的隐私泄露,通过分析上下文与参数知识的分布差异来评估隐私风险。

摘要:

语言模型(LMs)依赖于其参数知识与相关上下文知识的结合来完成某些任务,如问答。然而,上下文知识可能包含私有信息,在回答查询时可能会泄露,而估算这种隐私泄露目前并不充分。直接比较LM的输出与上下文的简单方法可能会高估隐私风险,因为LM的参数知识可能已经包含了增强的上下文知识。为此,我们引入了*上下文影响*,这一指标基于差分隐私,一种广泛采用的隐私概念,用于估算解码过程中上下文知识的隐私泄露。我们的方法有效测量了上下文的每个子集如何影响LM的响应,同时分离了LM的特定参数知识。使用我们的上下文影响指标,我们证明当上下文知识与参数知识分布不一致时会发生上下文隐私泄露。此外,我们通过实验展示了上下文影响如何正确地将隐私泄露归因于增强的上下文,并评估了影响上下文隐私泄露的因素,如模型大小、上下文大小、生成位置等。我们的结果的实践意义将告知从业者增强上下文知识相关的隐私风险。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑