[论文解读] A Fragile Guardrail: Diffusion LLM's Safety Blessing and Its Failure Mode
论文分析扩散型大语言模型如何通过多步去噪实现安全祝福,从而减少不安全输出,但将上下文嵌套(context nesting)识别为一种简单的失败模式,能够绕过该安全性,并包括对 Gemini Diffusion 的首次红队测试。
Diffusion large language models (D-LLMs) offer an alternative to autoregressive LLMs (AR-LLMs) and have demonstrated advantages in generation efficiency. Beyond the utility benefits, we argue that D-LLMs exhibit a previously underexplored safety blessing: their diffusion-style generation confers intrinsic robustness against jailbreak attacks originally designed for AR-LLMs. In this work, we provide an initial analysis of the underlying mechanism, showing that the diffusion trajectory induces a stepwise reduction effect that progressively suppresses unsafe generations. This robustness, however, is not absolute. We identify a simple yet effective failure mode, termed context nesting, where harmful requests are embedded within structured benign contexts, effectively bypassing the stepwise reduction mechanism. Empirically, we show that this simple strategy is sufficient to bypass D-LLMs' safety blessing, achieving state-of-the-art attack success rates across models and benchmarks. Most notably, it enables the first successful jailbreak of Gemini Diffusion, to our knowledge, exposing a critical vulnerability in commercial D-LLMs. Together, our results characterize both the origins and the limits of D-LLMs' safety blessing, constituting an early-stage red-teaming of D-LLMs.
研究动机与目标
- 推动并理解扩散型大语言模型(D-LLMs)相比自回归LLMs(AR-LLMs)的安全行为.
- 刻画 D-LLMs 通过去噪轨迹对越狱 prompts 的鲁棒性机制.
- 在白盒与黑盒威胁模型下识别并评估 D-LLMs 安全保护的失效模式.
- 展示对商业和开源 D-LLMs 的简单上下文嵌套越狱策略作为红队基线的有效性.
- 为扩散型模型的更强健安全评估实践提供指导。
提出的方法
- 将 D-LLMs 模型化为对 token 序列的反向扩散过程,并在迭代去噪步骤中进行建模.
- 定义一个到安全区域 D(x_t, S) 的数学距离,以量化每个去噪步骤的安全性.
- 证明一个安全祝福命题:在特定条件下,对抗性影响在去噪链中衰减.
- 对开源 D-LLMs(LLaDA-Instruct、LLaDA-1.5、Dream-Instruct)以及 Gemini Diffusion 的案例研究,进行了黑箱越狱攻击(PAIR、AutoDAN-Turbo、ReNeLLM)的经验评估与上下文嵌套模板评估.
- 提出并评估一种上下文嵌套攻击策略,包括模板变体(code_completion、table_filling、text_continuation、json_completion、markdown_filling、yaml_filling).
- 在不同威胁模型下,与 D-LLM 特定攻击(DIJA)进行对比分析。
实验结果
研究问题
- RQ1为什么扩散型 LLM 相对于自回归模型,在越狱攻击方面的脆弱性更低?
- RQ2D-LLMs 的去噪过程是否带来不安全输出的逐步减少,在什么条件下这种安全祝福成立?
- RQ3对 D-LLMs 的有效黑箱越狱策略是什么,简单的上下文策略是否能够绕过扩散安全机制?
- RQ4商业化的 D-LLMs(如 Gemini Diffusion)是否展现与开源 D-LLMs 相同的安全特性和脆弱性?
- RQ5这些发现对评估和加强扩散型生成模型的安全性有何意义?
主要发现
- 扩散去噪在攻击下能够逐步减少不安全生成,表现为在去噪步骤中攻击成功率下降,体现为安全祝福的效应。
- 在黑箱威胁模型下,扩散型模型相较于 AR-LLMs 对多种越狱仍更具鲁棒性,尽管并非无法利用。
- ReNeLLM 在所测试的黑箱攻击中仍然是最有效的,具有较高的 ASR-K 和 ASR-E,但上下文嵌套可以绕过逐步降低的机制。
- 一种简单的上下文嵌套策略在多家 D-LLMs 和基准测试中实现了最先进的越狱性能,包括 Gemini Diffusion 的案例研究。
- 上下文嵌套在生成过程中将累计的 alpha_t 维持在接近 1,从而有效隐藏恶意意图、阻止安全惩罚,削弱了扩散安全祝福。
- 在严格的黑箱设置下,上下文嵌套攻击的性能优于 D-LLM 特定攻击,并且能够泛化到商业化的扩散模型。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。