arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.18408cs.CL
收藏

提示注入探针学习的是对话,而非仅注入本身

Prompt-Injection Probes Learn the Conversation, Not Just the Injection

Georgia Institute of Technology(佐治亚理工学院)

Kaan Kale, Sriram Vishwanath

AI总结:

该研究针对提示注入探针误报率高的问题,将无害相似案例加入训练数据,大幅降低误报率,同时保持对攻击的高检测率,且数据对仅文本过滤器也有帮助。

摘要:

模型隐藏状态上的线性探针被用作间接提示注入的廉价监控工具:它们筛选智能体读取的工具输出,并将可疑输出发送给更慢的二次检查,因此每一次误报都有成本。但探针学习的是能区分其训练示例的任何特征。注入探针的标准评估无需模型即可通过:仅对话位置和文本长度就能达到0.91-0.98的AUROC。当将每次攻击与无注入的相同对话,或格式类似注入的无害文本进行比较时,标准探针会标记大多数此类无害案例。我们将此类案例作为匹配负样本添加到训练数据中。在六个开源模型上,在训练期间见过的应用中且使用默认阈值时,仅通过更改训练数据,就能将无注入对话的误报率从41-80%降至4-27%,将无害相似文本的误报率从92-98%降至3-16%。在正常流量上设置阈值时,我们的探针仍能捕获中位数95%的欺骗智能体的攻击(未使用我们的数据时为91%)。在新应用中,误报率保持较低,但检测效果取决于模型和阈值的设置方式。相同数据也有助于仅文本过滤器。

英文摘要:

Linear probes on a model's hidden states are used as cheap monitors for indirect prompt injection: they screen the tool outputs an agent reads and send suspicious ones to a slower second check, so every false alarm has a cost. But a probe learns whatever separates its training examples. The standard evaluation of injection probes can be passed without the model: conversation position and text lengths alone reach 0.91-0.98 AUROC. When each attack is compared with the same conversation without the injection, or with harmless text formatted like an injection, standard probes flag most of these harmless cases. We add such cases to the training data as matched negatives. Across six open models, in applications seen during training and at the default threshold, changing only the training data cuts false alarms on injection-free conversations from 41-80% to 4-27%, and on harmless look-alikes from 92-98% to 3-16%. With a threshold set on normal traffic, our probe still catches a median 95% of the attacks that fooled the agent (91% without our data). In new applications, false alarms stay low, but detection depends on the model and on how the threshold is set. The same data also helps a text-only filter.

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

↑