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

对抗提示攻击的防御学习表面启发式

Defenses Against Prompt Attacks Learn Surface Heuristics

University of Southern California(南加州大学);University of California, Berkeley(加州大学伯克利分校);Washington University in St. Louis(圣路易斯华盛顿大学);Amazon(亚马逊公司);Johns Hopkins University(约翰霍普金斯大学)

Shawn Li, Chenxiao Yu, Zhiyu Ni, Hao Li, Charith Peris, Chaowei Xiao, Yue Zhao

AI总结:

本文研究了对抗提示攻击防御中表面启发式的问题,发现现有方法易受表面模式影响,提出受控数据集和系统评估以揭示监督微调的局限性。

摘要:

大型语言模型(LLMs)越来越多地用于安全敏感的应用,其中它们必须遵循系统或开发人员指定的指令来定义预期的任务行为,同时完成无害的用户请求。当对抗性指令出现在用户查询或外部检索内容中时,模型可能会覆盖预期逻辑。最近的防御方法依赖于监督微调,使用无害和恶意标签。尽管这些方法实现了较高的攻击拒绝率,但我们发现它们依赖于防御数据中的狭窄相关性,而非有害意图,导致系统性地拒绝安全输入。我们分析了三种反复出现的捷径行为,由防御微调引起。位置偏差出现在良性内容在提示中放置较晚时被拒绝的比率显著提高;在推理基准测试中,后缀任务拒绝率从低于10%上升到高达90%。令牌触发偏差发生在攻击数据中常见的字符串即使在良性上下文中也会提高拒绝概率;插入一个触发令牌可使假拒绝率增加高达50%。主题泛化偏差反映了在防御数据分布之外的泛化能力差,受保护的模型在测试时的准确率下降高达40%。这些发现表明,当前的提示注入防御经常响应于攻击样式的表面模式,而非底层意图。我们引入了受控诊断数据集,并在两个基础模型和多个防御流程上进行了系统评估,突显了监督微调在可靠LLM安全方面的局限性。

英文摘要:

Large language models (LLMs) are increasingly deployed in security-sensitive applications, where they must follow system- or developer-specified instructions that define the intended task behavior, while completing benign user requests. When adversarial instructions appear in user queries or externally retrieved content, models may override intended logic. Recent defenses rely on supervised fine-tuning with benign and malicious labels. Although these methods achieve high attack rejection rates, we find that they rely on narrow correlations in defense data rather than harmful intent, leading to systematic rejection of safe inputs. We analyze three recurring shortcut behaviors induced by defense fine-tuning. \emph{Position bias} arises when benign content placed later in a prompt is rejected at much higher rates; across reasoning benchmarks, suffix-task rejection rises from below \textbf{10\%} to as high as \textbf{90\%}. \emph{Token trigger bias} occurs when strings common in attack data raise rejection probability even in benign contexts; inserting a single trigger token increases false refusals by up to \textbf{50\%}. \emph{Topic generalization bias} reflects poor generalization beyond the defense data distribution, with defended models suffering test-time accuracy drops of up to \textbf{40\%}. These findings suggest that current prompt-injection defenses frequently respond to attack-like surface patterns rather than the underlying intent. We introduce controlled diagnostic datasets and a systematic evaluation across two base models and multiple defense pipelines, highlighting limitations of supervised fine-tuning for reliable LLM security.

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

↑