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

Na'vi or Knave:通过隐喻化身越狱语言模型

Na'vi or Knave: Jailbreaking Language Models via Metaphorical Avatars

Yu Yan, Sheng Sun, Junqi Tong, Min Liu, Qi Li

AI总结:

本研究提出利用大语言模型想象能力的AVATAR对抗隐喻越狱框架,通过有害实体隐喻映射与类人交互嵌套实现越狱,在多模型上达最优攻击成功率,揭示内生想象能力的安全风险与防御必要性。

摘要:

隐喻是一种传递信息的隐性方式,同时能实现对复杂主题的泛化理解。然而,隐喻有可能被利用来绕过大语言模型(LLM)的安全对齐机制,导致有害知识被盗取。在本研究中,我们提出了一种利用LLM的想象能力实现越狱的新型攻击框架——Jailbreak Via Adversarial Metaphor(AVATAR,对抗隐喻越狱法)。具体而言,为了诱发出有害响应,AVATAR从给定的有害目标中提取有害实体,并基于LLM的想象力将其映射为无害的对抗实体。随后,根据这些隐喻,将有害目标嵌套进类人交互中以自适应地完成越狱。实验结果表明,AVATAR能够有效且可迁移地越狱LLM,在多个先进LLM上达到了当前最优的攻击成功率。本研究从LLM的内生想象能力层面揭示了其存在的安全风险。此外,分析研究表明LLM易受对抗隐喻的攻击,同时也凸显了开发针对对抗隐喻引发的越狱的防御方法的必要性。警告:本文包含来自大语言模型的潜在有害内容。

英文摘要:

Metaphor serves as an implicit approach to convey information, while enabling the generalized comprehension of complex subjects. However, metaphor can potentially be exploited to bypass the safety alignment mechanisms of Large Language Models (LLMs), leading to the theft of harmful knowledge. In our study, we introduce a novel attack framework that exploits the imaginative capacity of LLMs to achieve jailbreaking, the J\underline{\textbf{A}}ilbreak \underline{\textbf{V}}ia \underline{\textbf{A}}dversarial Me\underline{\textbf{TA}} -pho\underline{\textbf{R}} (\textit{AVATAR}). Specifically, to elicit the harmful response, AVATAR extracts harmful entities from a given harmful target and maps them to innocuous adversarial entities based on LLM's imagination. Then, according to these metaphors, the harmful target is nested within human-like interaction for jailbreaking adaptively. Experimental results demonstrate that AVATAR can effectively and transferablly jailbreak LLMs and achieve a state-of-the-art attack success rate across multiple advanced LLMs. Our study exposes a security risk in LLMs from their endogenous imaginative capabilities. Furthermore, the analytical study reveals the vulnerability of LLM to adversarial metaphors and the necessity of developing defense methods against jailbreaking caused by the adversarial metaphor. \textcolor{orange}{ \textbf{Warning: This paper contains potentially harmful content from LLMs.}}

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

↑