见善不为:通过对抗性注意力劫持使大视觉-语言模型失明以确保安全
Seeing No Evil: Blinding Large Vision-Language Models to Safety Instructions via Adversarial Attention Hijacking
AI总结:
本文提出Attention-Guided Visual Jailbreaking方法,通过操控注意力模式规避安全对齐机制,减少梯度冲突并提高攻击成功率,揭示了安全失明的失败模式。
摘要:
大视觉-语言模型(LVLMs)依赖于基于注意力的检索安全指令以在生成过程中保持对齐。现有攻击通常优化图像扰动以最大化有害输出的可能性,但因对抗性目标与模型安全检索机制之间的梯度冲突而导致收敛缓慢。我们提出Attention-Guided Visual Jailbreaking,通过直接操控注意力模式绕过而非超越安全对齐机制。我们的方法引入两个简单的辅助目标:(1)抑制对齐相关前缀标记的注意力;(2)将生成锚定在对抗性图像特征上。这种简单而有效的推拉公式将梯度冲突减少了45%,在Qwen-VL上实现了94.4%的攻击成功率(相比基线68.8%),迭代次数减少了40%。在更紧的扰动预算(ε=8/255)下,我们保持了59.0%的攻击成功率,相比标准方法的45.7%。机理分析揭示了一种我们称为安全失明的失败模式:成功的攻击通过抑制系统提示的注意力80%,导致模型生成有害内容并非通过推翻安全规则,而是由于未能检索到这些规则。
英文摘要:
Large Vision-Language Models (LVLMs) rely on attention-based retrieval of safety instructions to maintain alignment during generation. Existing attacks typically optimize image perturbations to maximize harmful output likelihood, but suffer from slow convergence due to gradient conflict between adversarial objectives and the model's safety-retrieval mechanism. We propose Attention-Guided Visual Jailbreaking, which circumvents rather than overpowers safety alignment by directly manipulating attention patterns. Our method introduces two simple auxiliary objectives: (1) suppressing attention to alignment-relevant prefix tokens and (2) anchoring generation on adversarial image features. This simple yet effective push-pull formulation reduces gradient conflict by 45% and achieves 94.4% attack success rate on Qwen-VL (vs. 68.8% baseline) with 40% fewer iterations. At tighter perturbation budgets ($ε=8/255$), we maintain 59.0% ASR compared to 45.7% for standard methods. Mechanistic analysis reveals a failure mode we term safety blindness: successful attacks suppress system-prompt attention by 80%, causing models to generate harmful content not by overriding safety rules, but by failing to retrieve them.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。