Skip to main content
QUICK REVIEW

[论文解读] DeepInception: Hypnotize Large Language Model to Be Jailbreaker

Xuan Li, Zhanke Zhou|arXiv (Cornell University)|Nov 6, 2023
Topic ModelingComputer Science被引用 12
一句话总结

该论文提出 DeepInception,一种基于提示的技术,通过在黑箱环境下使用嵌套、情境化的指令,对开放源代码和闭源的大语言模型进行越狱,取得强越狱成功并在交互中实现持续越狱。

ABSTRACT

Large language models (LLMs) have succeeded significantly in various applications but remain susceptible to adversarial jailbreaks that void their safety guardrails. Previous attempts to exploit these vulnerabilities often rely on high-cost computational extrapolations, which may not be practical or efficient. In this paper, inspired by the authority influence demonstrated in the Milgram experiment, we present a lightweight method to take advantage of the LLMs' personification capabilities to construct $ extit{a virtual, nested scene}$, allowing it to realize an adaptive way to escape the usage control in a normal scenario. Empirically, the contents induced by our approach can achieve leading harmfulness rates with previous counterparts and realize a continuous jailbreak in subsequent interactions, which reveals the critical weakness of self-losing on both open-source and closed-source LLMs, $ extit{e.g.}$, Llama-2, Llama-3, GPT-3.5, GPT-4, and GPT-4o. The code and data are available at: https://github.com/tmlr-group/DeepInception.

研究动机与目标

  • 调查 LLMs 中对抗性越狱的风险,以及权威灵感提示促使不安全输出的机制。
  • 开发一个轻量级、黑箱越狱框架,且不需要模型内部结构或参数访问。
  • 探索 DeepInception 在开源与闭源 LLM 及防御机制中的有效性和泛化性。
  • 分析促成成功越狱的因素以及对抗此类威胁的潜在防御。

提出的方法

  • 引入一个基于提示的框架(DeepInception),通过在多层嵌套中诱导想象情景来催眠LLMs。
  • 将 DeepInception 正式化为一个包含场景、角色和层次的提示模板,以实现递归条件转移。
  • 定义联合诱导效应,即在先前良性提示的前提下,被催眠的内容增加有害输出的可能性。
  • 将 DeepInception 与基线越狱方法(前缀注入、PAIR、GCG、AutoDAN)在黑箱设置及带防御提示的情况下进行比较。
  • 进行消融研究以评估场景、角色数量和层数对越狱成功的影响。
  • 展示持续性和后续“起始化”越狱实验,证明初次越狱如何在后续交互中促成进一步的不安全输出。

实验结果

研究问题

  • RQ1是否可以在黑箱条件下,通过受权威动态启发的嵌套、富有想象力的提示来强迫 LLM 越狱?
  • RQ2最大化越狱成功的核心因素(场景、角色、层次)有哪些,防御对 DeepInception 的效果如何?
  • RQ3开源和闭源的 LLM 是否同样易受此类起始式越狱的影响,越狱能否在后续交互中持续?

主要发现

  • 与基线相比,DeepInception 在开源和闭源 LLMs 上均达到领先的越狱成功率。
  • 持续越狱实验表明,在初次越狱后,DeepInception 可以通过更多直接指令引发更大伤害。
  • 嵌套和多层提示(场景加层次)显著提升越狱效果,相较于单一直接或间接提示。
  • 诸如自我提醒和上下文防御等防御提示降低越狱成功率,但并不能在所有模型上全面阻止 DeepInception。
  • 消融研究表明,增加角色数量和层数通常提升 JSR,在有效性与连贯性之间存在的最佳平衡范围。
  • 与欺诈、网络钓鱼、枪支和作弊相关的话题在 AdvBench 有害行为集合中显示出更高的越狱成功率。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。