arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2501.19287cs.LG
收藏

通过将少样本与零样本输出混合采样实现差分隐私的上下文学习

Differentially Private In-context Learning via Sampling Few-shot Mixed with Zero-shot Outputs

University of Southern California(南加州大学)

James Flemings, Haosheng Gan, Hongyi Li, Meisam Razaviyayn, Murali Annavaram

AI总结:

本文提出$\texttt{dps-mozo}$解码框架,通过混合单样本与零样本输出采样实现差分隐私,无需添加噪声即可在ICL生成任务中达到强隐私保证与极小效用损失。

摘要:

上下文学习(ICL)通过在提示中增加相关的输入输出示例(演示),在大型语言模型(LLM)的下游任务适配中展现出显著的改进。然而,ICL的演示可能包含隐私敏感信息,这些信息可能被LLM输出泄露或复述。差分隐私(DP)作为一种广泛采用的隐私保护措施,已被用于缓解这种隐私泄露,近期的研究表明在ICL的分类任务中能实现良好的隐私-效用权衡。然而,由于开放式生成的高维输出空间,ICL的生成任务面临挑战。为此,我们提出$\texttt{dps-mozo}$,即混合单样本与零样本输出的差分隐私采样,这是一种解码框架,通过从多个单样本输出与零样本输出混合的乘积中采样来生成DP文本。这种混合有效减少了每个演示可能泄露的信息量。通过利用从混合分布中采样的固有随机性,我们可以在不添加噪声的情况下实现DP,从而改善隐私-效用权衡。我们的实验评估表明,$\texttt{dps-mozo}$能实现强隐私保证,$ε=2$,且与非隐私少样本学习相比效用下降极小,在SAMSum数据集上使用Gemma 2 2B模型,ROUGE-L F1分数仅降低$\textbf{0.3}$%。

英文摘要:

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.

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

↑