arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2502.15334cs.CRcs.AIcs.LG
收藏

Attention Eclipse:操纵注意力以绕过大语言模型安全对齐

Attention Eclipse: Manipulating Attention to Bypass LLM Safety-Alignment

University of California, Riverside(加州大学河滨分校);Queen’s University Belfast(贝尔法斯特女王大学)

Pedram Zaree, Md Abdullah Al Mamun, Quazi Mishkatul Alam, Yue Dong, Ihsen Alouani, Nael Abu-Ghazaleh

AI总结:

该研究提出名为Attention Eclipse的越狱攻击方法,通过操纵大语言模型注意力、利用注意力损失增强现有越狱算法效果,提升攻击成功率并降低生成成本,为模型安全防御提供参考。

摘要:

近期研究表明,尽管存在对齐等安全措施,精心设计的越狱输入仍可诱导大语言模型生成有害输出。预判潜在越狱攻击的范围对指导有效防御和准确评估模型安全性至关重要。本文提出一种生成高效越狱攻击的新方法,通过操纵模型注意力,选择性地增强或削弱提示不同部分之间的注意力。利用注意力损失,我们开发了效果更强且具备可迁移性的越狱攻击。这些攻击提升了GCG、AutoDAN和ReNeLLM等现有越狱算法的成功率,同时降低了它们的生成成本(例如,经增强的GCG攻击在Llama2-7B/AdvBench上的攻击成功率达91.2%,而原始攻击为67.9%,且生成时间不到原方法的三分之一)。

英文摘要:

Recent research has shown that carefully crafted jailbreak inputs can induce large language models to produce harmful outputs, despite safety measures such as alignment. It is important to anticipate the range of potential Jailbreak attacks to guide effective defenses and accurate assessment of model safety. In this paper, we present a new approach for generating highly effective Jailbreak attacks that manipulate the attention of the model to selectively strengthen or weaken attention among different parts of the prompt. By harnessing attention loss, we develop more effective jailbreak attacks, that are also transferrable. The attacks amplify the success rate of existing Jailbreak algorithms including GCG, AutoDAN, and ReNeLLM, while lowering their generation cost (for example, the amplified GCG attack achieves 91.2% ASR, vs. 67.9% for the original attack on Llama2-7B/AdvBench, using less than a third of the generation time).

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

↑