arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.16059cs.CRcs.CL
收藏

ContextLeak:私有上下文学习方法中泄露的审计

ContextLeak: Auditing Leakage in Private In-Context Learning Methods

University of Southern California(南加州大学)

Jacob Choi, Shuying Cao, Xingjian Dong, Amin Banayeeanzade, Wang Bill Zhu, Robin Jia, Sai Praneeth Karimireddy

AI总结:

本文提出ContextLeak框架,用于评估私有上下文学习中信息泄露的最坏情况,通过插入标记检测敏感信息,并揭示现有方法在隐私与效用之间的权衡不足。

摘要:

在上下文学习(ICL)中,通过在提示中加入任务特定示例来适应大语言模型(LLMs)。然而,当这些示例包含敏感信息时,需要可靠的隐私保护机制以防止模型输出中的意外泄露。本文提出了ContextLeak,第一个用于经验性测量ICL中最坏情况信息泄露的框架。ContextLeak通过插入标记、在敏感数据集中嵌入唯一可识别的标记,并设计针对性查询来检测其存在。我们应用ContextLeak于多种私有ICL技术,包括启发式提示防御和具有正式保证的差分隐私方法。我们展示了ContextLeak在不同方法中可靠地检测泄露,并且泄露量随理论隐私预算单调增加,提供了一个实用的最坏隐私风险信号。我们的分析进一步揭示现有方法在隐私与效用之间的权衡较差,要么完全泄露敏感信息,要么严重降低性能。

英文摘要:

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.

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

↑