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

EnJa:针对大语言模型的集成越狱攻击

EnJa: Ensemble Jailbreak on Large Language Models

School of Computer Science, Fudan University(复旦大学计算机科学学院)

Jiahao Zhang, Zilong Wang, Ruofan Wang, Xingjun Ma, Yu-Gang Jiang

AI总结:

本文提出EnJa集成越狱攻击,通过模板连接器融合提示级隐藏与梯度令牌优化,在更少查询下取得最先进攻击成功率。

摘要:

随着大语言模型(LLMs)越来越多地部署在安全关键型应用中,它们对潜在越狱——能够禁用LLMs安全机制的恶意提示——的脆弱性已引起越来越多的研究关注。虽然已提出对齐方法来保护LLMs免受越狱攻击,但许多人发现,经过对齐的LLMs仍可能被精心构造的恶意提示越狱,从而产生违反政策规定的内容。现有的LLMs越狱攻击可分为提示级方法(编造故事或逻辑以绕过安全对齐)和令牌级攻击方法(利用梯度方法寻找对抗性令牌)。在这项工作中,我们引入了集成越狱(Ensemble Jailbreak)的概念,并探索能够将提示级和令牌级越狱整合为更强大的混合越狱攻击的方法。具体而言,我们提出了一种新颖的EnJa攻击,利用提示级越狱隐藏有害指令,使用基于梯度的攻击提高攻击成功率,并通过基于模板的连接器将两类越狱攻击连接起来。我们在多个对齐模型上评估了EnJa的有效性,结果表明它在更少的查询次数下达到了最先进的攻击成功率,并且比任何单一越狱攻击都强得多。

英文摘要:

As Large Language Models (LLMs) are increasingly being deployed in safety-critical applications, their vulnerability to potential jailbreaks -- malicious prompts that can disable the safety mechanism of LLMs -- has attracted growing research attention. While alignment methods have been proposed to protect LLMs from jailbreaks, many have found that aligned LLMs can still be jailbroken by carefully crafted malicious prompts, producing content that violates policy regulations. Existing jailbreak attacks on LLMs can be categorized into prompt-level methods which make up stories/logic to circumvent safety alignment and token-level attack methods which leverage gradient methods to find adversarial tokens. In this work, we introduce the concept of Ensemble Jailbreak and explore methods that can integrate prompt-level and token-level jailbreak into a more powerful hybrid jailbreak attack. Specifically, we propose a novel EnJa attack to hide harmful instructions using prompt-level jailbreak, boost the attack success rate using a gradient-based attack, and connect the two types of jailbreak attacks via a template-based connector. We evaluate the effectiveness of EnJa on several aligned models and show that it achieves a state-of-the-art attack success rate with fewer queries and is much stronger than any individual jailbreak.

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

↑