arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2603.26032cs.CR
收藏

通过字符级差分隐私保护用户提示

Protecting User Prompts Via Character-Level Differential Privacy

Macquarie University(麦考瑞大学)

Shashie Dilhara Batan Arachchige, Hassan Jameel Asghar, Benjamin Zi Hao Zhao, Dinusha Vatsalan, Dali Kaafar

AI总结:

本文提出一种基于差分隐私的字符级扰动方法,用于保护用户提示中的敏感信息,通过远程LLM恢复非敏感词并完成下游任务,实验显示其在隐私与效用之间取得良好平衡。

摘要:

大型语言模型(LLMs)根据用户提示生成响应。这些提示可能包含高度敏感信息,包括个人身份信息(PII),可能暴露给托管这些模型的第三方。本文提出一种新的方法来净化用户提示。我们的机制使用差分隐私的随机响应机制,对每个词中的每个字符进行随机独立扰动。扰动后的文本发送到远程LLM,该模型首先执行提示恢复,然后执行预期的下游任务。恢复过程能够重建非敏感词,即使由于上下文中的线索被扰动,而这些词通常非常常见。另一方面,扰动会使敏感词的重建困难,因为它们稀有。我们在i2b2/UTHealth和Enron两个数据集上,使用Llama-3.1 8B Instruct和GPT-4o mini两个LLM进行实验验证。我们还与基于词级差分隐私的机制和基于规则的PII脱敏基线进行比较,使用统一的隐私-效用评估。实验结果表明,这些数据集中标记的敏感PII的重建率接近完全随机词的理论重建率,而非敏感词的重建率则高得多。我们的方法的优势在于无需显式识别提示中的敏感信息,同时在下游任务中表现出良好的隐私-效用权衡。

英文摘要:

Large Language Models (LLMs) generate responses based on user prompts. Often, these prompts may contain highly sensitive information, including personally identifiable information (PII), which could be exposed to third parties hosting these models. In this work, we propose a new method to sanitize user prompts. Our mechanism uses the randomized response mechanism of differential privacy to randomly and independently perturb each character in a word. The perturbed text is then sent to a remote LLM, which first performs a prompt restoration and subsequently performs the intended downstream task. The idea is that the restoration will be able to reconstruct non-sensitive words even when they are perturbed due to cues from the context, as well as the fact that these words are often very common. On the other hand, perturbation would make reconstruction of sensitive words difficult because they are rare. We experimentally validate our method on two datasets, i2b2/UTHealth and Enron, using two LLMs: Llama-3.1 8B Instruct and GPT-4o mini. We also compare our approach with a word-level differentially private mechanism, and with a rule-based PII redaction baseline, using a unified privacy-utility evaluation. Our results show that sensitive PII tagged in these datasets are reconstructed at a rate close to the theoretical rate of reconstructing completely random words, whereas non-sensitive words are reconstructed at a much higher rate. Our method has the advantage that it can be applied without explicitly identifying sensitive pieces of information in the prompt, while showing a good privacy-utility tradeoff for downstream tasks.

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

↑