DP-OPT:让大型语言模型成为你的隐私保护提示工程师
DP-OPT: Make Large Language Model Your Privacy-Preserving Prompt Engineer
AI总结:
本文提出DP-OPT方法,在客户端差分隐私调整离散提示并迁移至云模型,利用LLM自身建议的提示,在保护隐私的同时实现与GPT3.5等相当的性能。
摘要:
大型语言模型(LLMs)已成为各种任务的主导工具,尤其是在通过提示调整针对特定目标进行定制时。然而,由于调整后的提示依赖于敏感的私有信息,数据隐私方面的担忧构成了障碍。一个实用的解决方案是托管一个本地LLM,并使用数据私下优化软提示。然而,当模型所有权受到保护时,托管本地模型就会成为问题。替代方法,如将数据发送给模型提供商进行训练,会加剧这些隐私问题,因为提供商可能不受信任。在本文中,我们提出了一种名为差分隐私离线提示调整(DP-OPT)的新颖解决方案来应对这一挑战。我们的方法涉及在客户端调整离散提示,然后将其应用于所需的云模型。我们证明了LLM自身建议的提示可以在不显著降低性能的情况下进行迁移。为了确保提示不泄露私有信息,我们引入了第一个私有提示生成机制,通过带有私有示例的上下文学习的差分隐私(DP)集成。使用DP-OPT,通过Vicuna-7b生成隐私保护提示,可以与GPT3.5上的非私有上下文学习或本地私有提示调整相比,产生有竞争力的性能。代码可在https://github.com/VITA-Group/DP-OPT获取。
英文摘要:
Large Language Models (LLMs) have emerged as dominant tools for various tasks, particularly when tailored for a specific target by prompt tuning. Nevertheless, concerns surrounding data privacy present obstacles due to the tuned prompts' dependency on sensitive private information. A practical solution is to host a local LLM and optimize a soft prompt privately using data. Yet, hosting a local model becomes problematic when model ownership is protected. Alternative methods, like sending data to the model's provider for training, intensify these privacy issues facing an untrusted provider. In this paper, we present a novel solution called Differentially-Private Offsite Prompt Tuning (DP-OPT) to address this challenge. Our approach involves tuning a discrete prompt on the client side and then applying it to the desired cloud models. We demonstrate that prompts suggested by LLMs themselves can be transferred without compromising performance significantly. To ensure that the prompts do not leak private information, we introduce the first private prompt generation mechanism, by a differentially-private (DP) ensemble of in-context learning with private demonstrations. With DP-OPT, generating privacy-preserving prompts by Vicuna-7b can yield competitive performance compared to non-private in-context learning on GPT3.5 or local private prompt tuning. Codes are available at https://github.com/VITA-Group/DP-OPT .
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。