arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.20823cs.CR
收藏

装傻:利用分布外策略越狱大语言模型和多模态大语言模型

Playing the Fool: Jailbreaking LLMs and Multimodal LLMs with Out-of-Distribution Strategy

Joonhyun Jeong, Seyun Bae, Yeonsung Jung, Jaeryong Hwang, Eunho Yang

AI总结:

提出JOOD框架,通过将有害输入分布外化以增加模型不确定性,成功越狱GPT-4和o1等专有模型,揭示安全对齐的脆弱性。

摘要:

尽管大语言模型(LLMs)和多模态大语言模型(MLLMs)在语言和视觉任务上展现出卓越的泛化能力,但当暴露于有害或敏感输入时,它们仍表现出易受越狱攻击的脆弱性,可能生成破坏安全、伦理和偏见标准的内容。随着近期通过人类反馈偏好调整实现的安全对齐的进展,LLMs和MLLMs已配备安全护栏,以针对有害输入产生安全、伦理和公平的响应。然而,尽管安全对齐意义重大,对其脆弱性的研究仍很大程度上未被探索。本文中,我们调查了安全对齐这一未被探索的脆弱性,检验其能否对可能落在对齐数据分布之外的分布外(OOD)化有害输入持续提供安全保证。我们的关键观察是,将原始有害输入进行OOD化处理会大幅增加模型识别输入中恶意意图的不确定性,从而导致更高的越狱成功率。利用这一脆弱性,我们提出了JOOD,一种通过超越安全对齐的OOD化输入的新型越狱框架。我们探索了多种现成的视觉和文本变换技术来实现有害输入的OOD化。值得注意的是,我们观察到即使是简单的基于混合的技术(如图像混合)也被证明在增加模型不确定性方面非常有效,从而有助于绕过安全对齐。在多种越狱场景下的实验表明,JOOD能有效越狱最近专有的LLMs和MLLMs,如GPT-4和o1,具有高攻击成功率,而先前的攻击方法一直难以成功越狱这些模型。代码可在 https://github.com/naver-ai/JOOD 获取。

英文摘要:

Despite the remarkable versatility of Large Language Models (LLMs) and Multimodal LLMs (MLLMs) to generalize across both language and vision tasks, LLMs and MLLMs have shown vulnerability to jailbreaking, generating textual outputs that undermine safety, ethical, and bias standards when exposed to harmful or sensitive inputs. With the recent advancement of safety alignment via preference-tuning from human feedback, LLMs and MLLMs have been equipped with safety guardrails to yield safe, ethical, and fair responses with regard to harmful inputs. However, despite the significance of safety alignment, research on the vulnerabilities remains largely underexplored. In this paper, we investigate the unexplored vulnerability of the safety alignment, examining its ability to consistently provide safety guarantees for out-of-distribution(OOD)-ifying harmful inputs that may fall outside the aligned data distribution. Our key observation is that OOD-ifying the vanilla harmful inputs highly increases the uncertainty of the model to discern the malicious intent within the input, leading to a higher chance of being jailbroken. Exploiting this vulnerability, we propose JOOD, a new Jailbreak framework via OOD-ifying inputs beyond the safety alignment. We explore various off-the-shelf visual and textual transformation techniques for OOD-ifying the harmful inputs. Notably, we observe that even simple mixing-based techniques such as image mixup prove highly effective in increasing the uncertainty of the model, thereby facilitating the bypass of the safety alignment. Experiments across diverse jailbreak scenarios demonstrate that JOOD effectively jailbreaks recent proprietary LLMs and MLLMs such as GPT-4 and o1 with high attack success rate, which previous attack approaches have consistently struggled to jailbreak. Code is available at https://github.com/naver-ai/JOOD.

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

↑