arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.11026cs.CRcs.LG
收藏

大型语言模型的提示混淆

Prompt Obfuscation for Large Language Models

CISPA Helmholtz Center for Information Security(CISPA 德国信息安全中心);Berlin Institute for the Foundations of Learning and Data (BIFOLD)(柏林学习与数据基础研究所);Technische Universität Berlin(柏林技术大学)

David Pape, Sina Mavali, Thorsten Eisenhofer, Lea Schönherr

AI总结:

本文提出提示混淆方法,通过生成功能相同但不含原始信息的混淆提示,防止系统提示被提取,实验证明其有效保护知识产权且保持同等效用。

摘要:

包含详细指令以描述底层LLM所执行任务的系统提示,可以轻松地将基础模型转化为工具和服务,且开销极小。由于系统提示对实用性的关键影响,它们通常被视为知识产权,类似于软件产品的代码。然而,提取系统提示是很容易实现的。迄今为止,还没有有效的对策来防止系统提示被窃取,所有保护措施都可能被规避。在这项工作中,我们提出了一种传统系统提示的替代方案。我们引入了提示混淆,以极小的开销防止系统提示被提取。核心思想是找到原始系统提示的一种表示,该表示具有相同的功能,而混淆后的系统提示不包含任何能推断出原始系统提示的信息。我们通过将混淆后的提示输出与原始提示的输出进行比较来评估我们的方法,使用八个不同的指标来衡量词汇、字符级和语义相似性。我们表明,混淆版本始终与原始版本相当。我们进一步进行了三种不同的去混淆攻击,攻击者知识各不相同——涵盖黑盒和白盒条件——并表明在现实的攻击场景中,攻击者无法提取有意义的信息。总体而言,我们证明了提示混淆是保护系统提示知识产权的有效机制,同时保持与原始提示相同的实用性。

英文摘要:

System prompts that include detailed instructions to describe the task performed by the underlying LLM can easily transform foundation models into tools and services with minimal overhead. They are often considered intellectual property, similar to the code of a software product, because of their crucial impact on the utility. However, extracting system prompts is easily possible. As of today, there is no effective countermeasure to prevent the stealing of system prompts, and all safeguarding efforts could be evaded. In this work, we propose an alternative to conventional system prompts. We introduce prompt obfuscation to prevent the extraction of the system prompt with little overhead. The core idea is to find a representation of the original system prompt that leads to the same functionality, while the obfuscated system prompt does not contain any information that allows conclusions to be drawn about the original system prompt. We evaluate our approach by comparing our obfuscated prompt output with the output of the original prompt, using eight distinct metrics to measure the lexical, character-level, and semantic similarity. We show that the obfuscated version is constantly on par with the original one. We further perform three different deobfuscation attacks with varying attacker knowledge--covering both black-box and white-box conditions--and show that in realistic attack scenarios an attacker is unable to extract meaningful information. Overall, we demonstrate that prompt obfuscation is an effective mechanism to safeguard the intellectual property of a system prompt while maintaining the same utility as the original prompt.

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

↑