通过字符级差分隐私保护用户提示 Protecting User Prompts Via Character-Level Differential Privacy 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-03-27
👁️ 预览文献
💡 AI 中文简介
大语言模型根据用户提示生成回复,但提示中可能包含敏感个人信息,会暴露给模型托管方。本文提出一种新方法:利用差分隐私的随机响应机制,对提示中每个字符独立随机扰动,再发送给远程大模型。大模型先尝试恢复提示,再执行下游任务。由于常见词容易从上下文恢复,而敏感词罕见难以恢复,从而保护隐私。在i2b2/UTHealth和Enron数据集上,用Llama-3.1 8B Instruct和GPT-4o mini实验,与词级差分隐私和规则脱敏对比。结果显示敏感PII恢复率接近完全随机词,非敏感词恢复率更高,且无需预先识别敏感信息,隐私与效用权衡良好。
领域自然语言处理/隐私保护
适合谁读需要一定专业背景(了解差分隐私和大语言模型基础)
核心贡献提出字符级差分隐私扰动方法,无需显式识别敏感信息即可保护用户提示;实验证明敏感PII恢复率接近随机词,非敏感词恢复率高,实现良好隐私-效用权衡。
关键数据敏感PII恢复率接近完全随机词的理论恢复率;非敏感词恢复率显著更高;在i2b2/UTHealth和Enron数据集上,使用Llama-3.1 8B Instruct和GPT-4o mini验证,与词级差分隐私和规则脱敏基线对比,隐私-效用权衡更优。
推荐理由如果你关心大模型时代用户隐私,这篇论文用巧妙的字符级扰动方法,无需识别敏感词就能保护提示,实验扎实,值得一读!
关键词["差分隐私", "用户提示保护", "字符级扰动", "大语言模型", "隐私-效用权衡", "提示恢复"]

原文摘要

查看英文原文摘要

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.