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

通过分布外设置中的对齐漏洞越狱大型语言模型

Jailbreaking Large Language Models Through Alignment Vulnerabilities in Out-of-Distribution Settings

University of Notre Dame(圣母大学);Huazhong University of Science and Technology(华中科技大学);Tsinghua University(清华大学);Lehigh University(里海大学);University of Illinois Chicago(芝加哥大学伊利诺伊分校)

Yue Huang, Jingyu Tang, Dongping Chen, Bingda Tang, Yao Wan, Lichao Sun, Philip S. Yu, Xiangliang Zhang

AI总结:

本文提出了一种名为ObscurePrompt的LLM越狱方法,利用分布外数据中的对齐漏洞,通过迭代转换模糊化基础提示来增强攻击鲁棒性,实验证明其攻击有效性显著优于以往方法且能抵御主流防御机制。

摘要:

近期,大型语言模型(LLMs)因其卓越的自然语言处理能力而备受关注。然而,关于其可信度的担忧仍未解决,特别是在应对针对已对齐LLMs的“越狱”攻击方面。以往的研究主要依赖于白盒LLMs场景或特定、固定的提示模板,这些方法通常不切实际且缺乏广泛适用性。本文中,我们提出了一种名为ObscurePrompt的简单新颖的LLM越狱方法,其灵感来源于在分布外(OOD)数据中观察到的脆弱对齐现象。具体而言,我们首先构建了越狱过程中的决策边界,随后探究了晦涩文本如何影响LLM的伦理决策边界。ObscurePrompt首先构建一个集成了已知越狱技术的基础提示。接着,利用强大的LLMs通过迭代转换对原始提示进行模糊化处理,旨在增强攻击的鲁棒性。综合实验表明,我们的方法在攻击有效性方面大幅超越了以往方法,并在面对两种主流防御机制时仍能保持效力。

英文摘要:

Recently, Large Language Models (LLMs) have garnered significant attention for their exceptional natural language processing capabilities. However, concerns about their trustworthiness remain unresolved, particularly in addressing ``jailbreaking'' attacks on aligned LLMs. Previous research predominantly relies on scenarios involving white-box LLMs or specific, fixed prompt templates, which are often impractical and lack broad applicability. In this paper, we introduce a straightforward and novel method called ObscurePrompt for jailbreaking LLMs, inspired by the observed fragile alignments in Out-of-Distribution (OOD) data. Specifically, we first formulate the decision boundary in the jailbreaking process and then explore how obscure text affects LLM's ethical decision boundary. ObscurePrompt starts with constructing a base prompt that integrates well-known jailbreaking techniques. Powerful LLMs are then utilized to obscure the original prompt through iterative transformations, aiming to bolster the attack's robustness. Comprehensive experiments show that our approach substantially improves upon previous methods in terms of attack effectiveness, maintaining efficacy against two prevalent defense mechanisms.

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

↑