arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.04531cs.CLcs.AIcs.LG
收藏

DP-Fusion: 令牌级差分隐私推理用于大语言模型

DP-Fusion: Token-Level Differentially Private Inference for Large Language Models

Mohamed bin Zayed University of Artificial Intelligence (MBZUAI)(莫扎德·本·泽亚德人工智能大学);Massachusetts Institute of Technology (MIT)(麻省理工学院)

Rushil Thareja, Preslav Nakov, Praneeth Vepakomma, Nils Lukas

AI总结:

DP-Fusion通过令牌级差分隐私机制,在保证隐私的同时提升大语言模型的文本质量。

摘要:

大语言模型(LLMs)在推理过程中无法保证隐私。LLM的输出可能会无意中揭示关于模型上下文的信息,当LLM通过包含敏感信息的工具或数据库进行增强时,这会带来隐私挑战。现有的隐私保护方法在推理过程中存在显著局限,因为它们(i)缺乏可证明的保证或(ii)在实用性和隐私权衡上表现不佳。我们提出了DP-Fusion,这是一种针对LLM的差分隐私推理(DPI)机制,能够证明地限制上下文中的令牌集对LLM输出的影响。DP-Fusion的工作流程如下:(1)标记敏感令牌的子集,(2)在没有敏感令牌的情况下推断LLM以获得基准,(3)在包含敏感令牌的情况下推断LLM,(4)混合分布,使得最终输出保持在基准分布的有界距离内。虽然这种每令牌影响限制也缓解了类似“ jailbreak”风格的提示注入,但我们专注于文档隐私化,目标是改写包含敏感令牌的文档,例如个人身份信息,使得攻击者无法从改写后的文档中可靠地推断出这些信息,同时保持高质量的文本。隐私/实用权衡由ε控制,其中ε=0会完全隐藏敏感令牌,而更高的值则以改进文本质量为代价来换取隐私。我们证明了我们的方法能够创建具有显著改进的理论和经验隐私的令牌级可证明隐私文档,其困惑度比相关DPI方法低6倍。

英文摘要:

Large language models (LLMs) do not preserve privacy at inference-time. The LLM's outputs can inadvertently reveal information about the model's context, which presents a privacy challenge when the LLM is augmented via tools or databases containing sensitive information. Existing privacy-preserving methods at inference-time have significant limitations since they (i) lack provable guarantees or (ii) have a poor utility/privacy trade-off. We propose DP-Fusion, a Differentially Private Inference (DPI) mechanism for LLMs that provably bounds the influence a set of tokens in the context can have on the LLM's output. DP-Fusion works as follows: (1) label a subset of sensitive tokens, (2) infer the LLM without any sensitive tokens to obtain a baseline, (3) infer the LLM with the sensitive tokens, and (4) blend distributions so that the final output remains within a bounded distance of the baseline distribution. While this per-token influence bound also mitigates jailbreak-style prompt injection, we focus on \emph{document privatization}, where the goal is to paraphrase a document containing sensitive tokens, e.g., personally identifiable information, so that no attacker can reliably infer them from the paraphrased document while preserving high text quality. The privacy/utility trade-off is controlled by $ε$, where $ε=0$ hides sensitive tokens entirely, while higher values trade off privacy for improved text quality. We show that our method creates token-level provably privatized documents with substantially improved theoretical and empirical privacy, achieving $6\times$ lower perplexity than related DPI methods.

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

↑