通过混合零样本与少样本输出实现私密文本生成
Differentially Private In-context Learning via Sampling Few-shot Mixed with Zero-shot Outputs
- 用零样本与少样本输出混合生成,降低演示数据泄露风险
- 在SAMSum数据集上仅损失0.3%的ROUGE-L得分,隐私保护ε=2
- 无需加噪即可实现差分隐私,适合高敏感性生成任务
上下文学习(ICL)通过在提示中加入相关输入-输出示例(演示)来提升大模型的下游任务适应能力。然而,这些演示可能包含敏感信息,导致模型输出时泄露或复述。差分隐私(DP)是缓解此类泄露的常用手段,已有研究在分类任务中展示了良好的隐私-效用平衡。但开放域生成任务因输出空间维度高而更具挑战。为此,我们提出dps-mozo:通过混合单样本输出与零样本输出进行采样,生成具有差分隐私的文本。该方法通过混合分布降低了每个演示的信息泄露量。利用采样过程中的固有随机性,无需添加噪声即可实现差分隐私,从而提升隐私-效用权衡。实验表明,dps-mozo在保持强隐私保障(ε=2)的同时,相比非私密少样本学习仅造成0.3%的ROUGE-L F1分数下降(在SAMSum数据集上,Gemma 2 2B模型)。
原文摘要 · Abstract (English)
In-context learning (ICL) has shown promising improvement in downstream task adaptation of LLMs by augmenting prompts with relevant input-output examples (demonstrations). However, the ICL demonstrations can contain privacy-sensitive information, which can be leaked and/or regurgitated by the LLM output. Differential Privacy (DP), a widely adopted privacy safeguard, has emerged to mitigate this privacy leakage, with recent work demonstrating strong privacy-utility tradeoffs in classification tasks for ICL. However, generation tasks for ICL are challenging due to the high-dimensional output space of open-ended generation. To this end, we propose $\texttt{dps-mozo}$, Differentially Private Sampling by Mixing One-shot with Zero-shot Outputs, a decoding framework that generates DP text by sampling from the product of multiple one-shot outputs mixed with a zero-shot output. This mixing effectively reduces the amount of information that can be leaked by each demonstration. By utilizing the inherent randomness in sampling from the mixed distributions, we can achieve DP without adding noise, thereby improving the privacy-utility tradeoff. Our experimental evaluations show $\texttt{dps-mozo}$ can achieve a strong privacy guarantee, $ε=2$, with minimal utility degradation compared to non-private few-shot learning, $\textbf{0.3}$% ROUGE-L F1 score decrease on the SAMSum dataset with Gemma 2 2B.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。