PromptShield:面向提示注入攻击的可部署检测
PromptShield: Deployable Detection for Prompt Injection Attacks
AI总结:
本文提出PromptShield基准,通过精心整理对话式与应用结构数据并微调检测器,在低假阳性率下显著提升提示注入攻击检测性能。
摘要:
应用设计者已开始将大语言模型(LLMs)集成到其产品中。然而,许多集成LLM的应用容易受到提示注入攻击。尽管已有研究尝试通过构建提示注入检测器来解决该问题,但许多检测器尚不适合实际部署。为支持该领域的研究,我们引入了PromptShield,一个用于训练和评估可部署提示注入检测器的基准。我们的基准经过精心整理,包含对话式数据和面向应用结构的数据。此外,我们利用整理过程中获得的见解微调了一个新的提示注入检测器,在低假阳性率(FPR)评估机制下,其性能显著优于先前方案。我们的工作表明,精心整理训练数据和使用更大的模型有助于实现更强的检测器性能。
英文摘要:
Application designers have moved to integrate large language models (LLMs) into their products. However, many LLM-integrated applications are vulnerable to prompt injections. While attempts have been made to address this problem by building prompt injection detectors, many are not yet suitable for practical deployment. To support research in this area, we introduce PromptShield, a benchmark for training and evaluating deployable prompt injection detectors. Our benchmark is carefully curated and includes both conversational and application-structured data. In addition, we use insights from our curation process to fine-tune a new prompt injection detector that achieves significantly higher performance in the low false positive rate (FPR) evaluation regime compared to prior schemes. Our work suggests that careful curation of training data and larger models can contribute to strong detector performance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。