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

安全--保真度权衡:提示注入防御的隐藏成本

Security--Fidelity Tradeoffs: The Hidden Cost of Prompt Injection Defense

University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Amazon(亚马逊)

Mitchell Hermon, Rahul Gupta, Weitong Ruan, Ekraam Sabir, Haohan Wang

AI总结:

本文发现防御间接提示注入会损害需要保留未信任文本的任务(如翻译),引入SecFid基准衡量保真度,揭示安全与保真度之间存在权衡,且无固定防御可同时最优。

摘要:

我们识别出在防御大语言模型免受间接提示注入时存在安全-保真度权衡:防御主要通过抑制未信任文本抵抗注入指令,但这会破坏必须保留该文本的任务,如翻译和文档编辑。攻击成功指标无法发现这一点,因为忽略注入的模型与将注入作为数据忠实处理的模型得分相同。我们引入了SecFid基准,其设计使得执行注入、将其作为数据处理以及忽略注入产生可区分的输出。这使得保真度可测量,并揭示了一条边界:在1168个示例和48种配置中,没有模型或防御能同时实现两个目标。最高保真度的模型达到96.5%的保真度但仅有47.8%的安全性,而最安全的防御则相反,达到99.3%的安全性但保真度仅为71.0%-73.9%。即使安全性相同的防御,其实现方式也不同:有些将劫持修复为忠实处理,另一些则简单抑制良性内容。决策理论分析表明,为何没有固定选择能在所有情况下正确:正确行为不是防御的属性,而是部署的属性,由其劫持与丢弃片段的相对成本决定。因此,仅安全性只能衡量鲁棒性的一半,而不报告保真度则隐藏了其购买价格。

英文摘要:

We identify a security-fidelity tradeoff in defending LLMs against indirect prompt injection: defenses resist injected instructions largely by suppressing untrusted text, which corrupts tasks that must preserve it, such as translation and document editing. Attack-success metrics cannot see this, because a model that ignores an injection and one that faithfully processes it as data score identically. We introduce SecFid, a benchmark built so that executing an injection, processing it as data, and ignoring it produce distinguishable outputs. This makes fidelity measurable and exposes a frontier: across 1,168 examples and 48 configurations, no model or defense achieves both objectives. The highest-fidelity model reaches 96.5% fidelity at 47.8% security, while the most secure defenses invert this, at 99.3% security but only 71.0%-73.9% fidelity. Even defenses with identical security differ in how they earn it: some repair hijacks into faithful processing, others simply suppress benign content. A decision-theoretic analysis shows why no fixed choice can be right everywhere: the correct behavior is not a property of the defense but of the deployment, set by its relative cost of a hijack versus a dropped span. Security alone therefore measures only half of robustness, and reporting it without fidelity hides the price at which it was bought.

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

↑