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

不要说“不”:通过抑制拒绝来越狱大语言模型

Don't Say No: Jailbreaking LLM by Suppressing Refusal

ShanghaiTech University(上海科技大学);Zhejiang University(浙江大学);Sun Yat-Sen University(中山大学)

Yukai Zhou, Jian Lou, Zhijie Huang, Zhan Qin, Yibei Yang, Wenjie Wang

AI总结:

本文提出 DSN 越狱攻击,通过改进损失目标并结合余弦衰减调度与拒绝抑制,在多个数据集和黑盒模型上取得了最先进的攻击成功率。

摘要:

确保大语言模型(LLMs)的安全对齐对于生成符合人类价值观的响应至关重要。然而,LLMs 仍然容易受到越狱攻击的影响,精心构造的提示可以操纵它们生成有害内容。其中一类攻击将任务重新表述为优化问题,旨在诱导 LLM 给出肯定性回应。然而,这些方法严重依赖预定义的有害行为,限制了它们对多样化有害查询的有效性和适应性。在本研究中,我们首先识别了原始目标损失为何次优,然后提出了对损失目标的改进。我们引入了 DSN(Don't Say No)攻击,它将余弦衰减调度方法与拒绝抑制相结合,以实现更高的成功率。大量实验表明,DSN 优于基线攻击,并达到了最先进的攻击成功率(ASR)。DSN 还表现出对未见数据集和黑盒模型的强大通用性和可迁移性。

英文摘要:

Ensuring the safety alignment of Large Language Models (LLMs) is critical for generating responses consistent with human values. However, LLMs remain vulnerable to jailbreaking attacks, where carefully crafted prompts manipulate them into producing toxic content. One category of such attacks reformulates the task as an optimization problem, aiming to elicit affirmative responses from the LLM. However, these methods heavily rely on predefined objectionable behaviors, limiting their effectiveness and adaptability to diverse harmful queries. In this study, we first identify why the vanilla target loss is suboptimal and then propose enhancements to the loss objective. We introduce DSN (Don't Say No) attack, which combines a cosine decay schedule method with refusal suppression to achieve higher success rates. Extensive experiments demonstrate that DSN outperforms baseline attacks and achieves state-of-the-art attack success rates (ASR). DSN also shows strong universality and transferability to unseen datasets and black-box models.

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

↑