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

我的系统提示词被使用过吗?大语言模型提示词成员推理

Has My System Prompt Been Used? Large Language Model Prompt Membership Inference

Amazon(亚马逊);University of Maryland(马里兰大学);Carnegie Mellon University(卡内基梅隆大学)

Roman Levin, Valeriia Cherepanova, Abhimanyu Hans, Avi Schwarzschild, Tom Goldstein

AI总结:

针对专有系统提示词保护需求,提出统计方法Prompt Detective,通过对比不同系统提示词对应的模型输出分布,实现第三方语言模型是否使用特定提示词的可靠推理,实验验证其有效性。

摘要:

提示词工程已成为针对特定应用优化大语言模型(LLMs)的强大技术,能实现更快的原型设计和性能提升,也引发了社区对保护专有系统提示词的关注。本研究从成员推理视角探索提示词隐私的新方向,提出了Prompt Detective——一种统计方法,可可靠判断第三方语言模型是否使用过给定的系统提示词。该方法基于统计检验,对比对应不同系统提示词的两组模型输出分布。通过在多种语言模型上开展大量实验,我们证明了Prompt Detective在提示词成员推理中的有效性:即使系统提示词的微小变化也会体现在不同的响应分布中,使我们能以统计显著性验证提示词的使用情况。

英文摘要:

Prompt engineering has emerged as a powerful technique for optimizing large language models (LLMs) for specific applications, enabling faster prototyping and improved performance, and giving rise to the interest of the community in protecting proprietary system prompts. In this work, we explore a novel perspective on prompt privacy through the lens of membership inference. We develop Prompt Detective, a statistical method to reliably determine whether a given system prompt was used by a third-party language model. Our approach relies on a statistical test comparing the distributions of two groups of model outputs corresponding to different system prompts. Through extensive experiments with a variety of language models, we demonstrate the effectiveness of Prompt Detective for prompt membership inference. Our work reveals that even minor changes in system prompts manifest in distinct response distributions, enabling us to verify prompt usage with statistical significance.

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

↑