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

Pr$εε$mpt:为大语言模型(LLMs)清理敏感提示词

Pr$εε$mpt: Sanitizing Sensitive Prompts for LLMs

University of Michigan, Ann Arbor(密歇根大学安阿伯分校);University of Toronto(多伦多大学);Vector Institute(向量研究所);University of Wisconsin-Madison(威斯康星大学麦迪逊分校);Langroid Incorporated(Langroid公司);University of California, San Diego(加州大学圣地亚哥分校)

Amrita Roy Chowdhury, David Glukhov, Divyam Anshumaan, Prasad Chalasani, Nicolas Papernot, Somesh Jha, Mihir Bellare

AI总结:

针对LLM推理中敏感提示词暴露的隐私问题,提出受密码学启发的提示词清理器Pr$εε$mpt,通过格式保留加密和度量差分隐私分类保护敏感标记,实现高效用与隐私保证且性能优于现有方法。

摘要:

大型语言模型(LLMs)的兴起带来了新的隐私挑战,尤其是在推理阶段,提示词中的敏感信息可能暴露给专有LLM API。本文旨在解决在保持响应质量的同时,对提示词中的敏感信息进行形式化保护的问题。为此,首先我们引入了受密码学启发的提示词清理器概念,该清理器可转换输入提示词以保护其敏感标记。其次,我们提出Pr$εε$mpt,这是一个实现提示词清理器的新型系统。Pr$εε$mpt将敏感标记分为两类:(1)LLM响应仅依赖格式的标记(如社会安全号码、信用卡号码),对此我们使用格式保留加密(FPE);(2)响应依赖特定值的标记(如年龄、薪水),对此我们应用度量差分隐私(mDP)。我们的评估表明,Pr$εε$mpt是一种实用方法,能在保持与未清理提示词相当的高效用的同时实现有意义的隐私保证,且性能优于现有方法。

英文摘要:

The rise of large language models (LLMs) has introduced new privacy challenges, particularly during inference where sensitive information in prompts may be exposed to proprietary LLM APIs. In this paper, we address the problem of formally protecting the sensitive information contained in a prompt while maintaining response quality. To this end, first, we introduce a cryptographically inspired notion of a prompt sanitizer which transforms an input prompt to protect its sensitive tokens. Second, we propose Pr$εε$mpt, a novel system that implements a prompt sanitizer. Pr$εε$mpt categorizes sensitive tokens into two types: (1) those where the LLM's response depends solely on the format (such as SSNs, credit card numbers), for which we use format-preserving encryption (FPE); and (2) those where the response depends on specific values, (such as age, salary) for which we apply metric differential privacy (mDP). Our evaluation demonstrates that Pr$εε$mpt is a practical method to achieve meaningful privacy guarantees, while maintaining high utility compared to unsanitized prompts, and outperforming prior methods

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

↑