arXiv:2608.07430cs.LGcs.AI2026-08

发现扩散语言模型安全机制薄弱,可被低成本黑盒攻破。

Diffusion LLMs as Targets and Adversaries: Mechanistic Safety Exploits

论文配图:Diffusion LLMs as Targets and Adversaries: Mechanistic Safety Exploits
图 1 · 摘自论文原文
  • 通过映射与剪枝安全神经元,实现跨模型攻击
  • 自剪枝使攻击成功率从1.9%升至86.6%
  • 仅需20次生成即可完成高效越狱,适合安全评估

扩散大语言模型(DLLMs)以迭代并行去噪替代自回归预测,但其内部安全机制仍不明确。本文将DLLMs视为目标与对手,揭示了基于扩散对齐的机械性漏洞。结果表明,安全对齐在DLLMs中仍呈稀疏分布且可跨架构迁移:从自回归模型初始化的DLLMs继承源模型的安全机制特征,可通过直接映射与剪枝实现转移攻击。自剪枝使攻击成功率(ASR)在LLaDA上由2.6%提升至73.8%,在Dream上由1.9%升至86.6%;而基于Qwen2.5的迁移剪枝使Dream上ASR从1.9%升至73.2%,Fast-dLLM上从7.0%升至86.3%。在此基础上,提出SN-Guided Diffusion——一种完全离线的黑盒越狱框架,通过加权安全神经元损失引导扩散过程避开安全触发区域,在多个模型上实现近完美的提示可分性(良性与越狱提示的AUROC=1.0)。该方法在多个开源及专有模型上达到最高77.1%(Llama-3-8B-Instruct)、86.9%(Qwen2.5-7B-Instruct)和74.3%(Gemini-2.5-Flash-Lite)的迁移攻击成功率,每提示仅需20次生成,相比现有框架具备数个数量级更低的生成成本。

原文摘要 · Abstract (English)

Diffusion Large Language Models (DLLMs) replace autoregressive next-token prediction with iterative parallel denoising, yet their internal safety mechanisms remain poorly understood. In this work, we investigate DLLMs both as targets and as adversaries, exposing mechanistic vulnerabilities in diffusion-based alignment. We first show that safety alignment in DLLMs remains sparse and transferable across architectures. DLLMs initialized from autoregressive predecessors inherit the same mechanistic safety footprint as their source models, enabling transfer attacks via direct safety neuron mapping and pruning. Self-pruning increases attack success rates (ASR) from 2.6% to 73.8% on LLaDA and from 1.9% to 86.6% on Dream, while transfer pruning from Qwen2.5 increases ASR from 1.9% to 73.2% on Dream and from 7.0% to 86.3% on Fast-dLLM. Building on these findings, we introduce SN-Guided Diffusion, a fully offline black-box jailbreak framework that steers the diffusion process away from safety-triggering regions using a weighted safety neuron loss, which achieves near-perfect prompt separability (AUROC = 1.0 for benign-vs-jailbreak discrimination). Across multiple open and proprietary targets, our method achieves a transfer ASR of up to 77.1% on Llama-3-8B-Instruct, 86.9% on Qwen2.5-7B-Instruct, and 74.3% against Gemini-2.5-Flash-Lite, while requiring only 20 generation episodes per prompt. Compared to prior jailbreaking frameworks, our method achieves competitive transferability with orders-of-magnitude lower generation cost. Our codebase is available at https://github.com/ellyoana/sn-guided-diffusion.

安全漏洞扩散模型越狱攻击机制分析

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。