New to ShortSpan? We distil the AI-security research that matters into practitioner takeaways — edited by Ben Williams (NCC Group). Get the weekly email
// Analysis

Safety neurons let diffusion LLM jailbreaks leap models

Attacks
Safety neurons let diffusion LLM jailbreaks leap models

New research shows diffusion Large Language Models (DLLMs) inherit sparse “safety neurons” from autoregressive predecessors, and attackers can map and prune them to bypass safeguards. A companion offline, black‑box jailbreak steers generation away from safety triggers, transferring across open and proprietary models with high success at relatively low cost.

Diffusion models were meant to be a fresh start for text generation: no next‑token drumbeat, just iterative denoising that settles into an answer. The new work on diffusion Large Language Models (DLLMs) argues the safety story is less new. The researchers show DLLMs carry over sparse, mechanic safety controls from their autoregressive (AR) parents and that those controls can be located, mapped, and switched off.

How the attack works

First, they adapt classic interpretability tricks. Take activations from the initial prompt encoding, fit a simple logistic regression to separate safe from unsafe prompts, and you get a set of “safety neurons.” Inference‑time pruning then neutralises those neurons. That alone turns low attack success into high: self‑pruning lifts success from 2.6% to 73.8% on LLaDA and from 1.9% to 86.6% on Dream.

The twist is transfer. Many DLLMs start from AR weights, so the same neuron indices often anchor the safety machinery. Map indices from a source model and prune them in the target. Using coordinates from Qwen2.5, transfer pruning pushes Dream from 1.9% to 73.2% and Fast‑dLLM from 7.0% to 86.3%. It is the old story of shared components biting us again: like the 1990s Office macro viruses that hopped apps because the scripting guts were the same, alignment grafted from one model family leaks into another.

Offline black‑box jailbreak

They then build SN‑Guided Diffusion. No interactive probing of the target; you work offline against a surrogate. During denoising, a weighted safety‑neuron loss downranks candidates that light up the safety detectors and boosts those that don’t. A lightweight judge and a pruning cascade keep only cloaked prompt–response pairs that look viable. The result: near‑perfect prompt separability (AUROC 1.0) and strong transfer with modest runs. With 20 episodes per prompt, reported transfer attack success rates hit 77.1% on Llama‑3‑8B‑Instruct, 86.9% on Qwen2.5‑7B‑Instruct, 74.3% on Gemini‑2.5‑Flash‑Lite, plus 88.8% on Fast‑dLLM and 85.9% on Dream. Cost sits at roughly 1,920 surrogate forward passes per episode, and gains plateau after about five.

The work also notes practical rough edges: results depend on templates and hyperparameters, the method needs an open‑weight surrogate, and bidirectional denoising brings intent drift. Still, the core observation is hard to ignore. When you initialise new systems from old weights, you inherit their safety footprint. The interesting open question is whether we can break those neuron‑level mappings by design or at runtime without wrecking utility. History suggests we can; we just have to stop pretending the shared parts are invisible.

Additional analysis of the original ArXiv paper

📋 Original Paper Title and Abstract

Diffusion LLMs as Targets and Adversaries: Mechanistic Safety Exploits

Authors: Elena Dumitrescu, Gert Lek, Lydia Y. Chen, and Jérémie Decouchant
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.

🔍 ShortSpan Analysis of the Paper

Problem

This paper studies whether diffusion large language models (DLLMs) contain the same sparse, mechanistic safety controls as autoregressive models and whether those controls can be identified and exploited. This matters because DLLMs use iterative parallel denoising rather than token-by-token decoding, many DLLMs are initialised from autoregressive weights, and their internal safety mechanisms have not been characterised despite wide deployment and alignment efforts.

Approach

The authors adapt mechanistic interpretability methods to DLLMs: they collect activations from the initial prompt encoding step, train logistic regression to isolate "safety neurons", and select extreme neurons using a percentile threshold. They map identified neurons by direct index transfer when model internals align (for DLLMs initialised from AR weights), then neutralise them via inference-time pruning. To craft black-box jailbreaks they propose SN-Guided Diffusion: an offline, surrogate-driven diffusion loop that anchors a target malicious response, scores token candidates with a weighted safety-neuron (SN) loss derived from logistic regression weights, and adaptively boosts low-SN candidates during denoising. A Generative Pruning Cascade extracts high-quality cloaked prompt–response pairs and a lightweight judge scores candidate outputs. Experiments evaluate attack success rate (ASR), AUROC for prompt separability, transferability to multiple open and proprietary models, and computational cost (default: 32 denoising steps, 2 tokens unmasked per step, top-K=30 candidates, E=20 episodes).

Key Findings

  • Safety alignment in DLLMs is sparse and transferable: DLLMs initialised from AR models inherit the mechanistic safety footprint, enabling direct cross-architecture attacks via index mapping.
  • Inference-time pruning massively increases exploitability: self-pruning raised ASR from 2.6% to 73.8% on LLaDA and from 1.9% to 86.6% on Dream; transfer pruning using Qwen2.5 coordinates increased ASR from 1.9% to 73.2% on Dream and from 7.0% to 86.3% on Fast-dLLM.
  • SN-Guided Diffusion yields strong offline black-box jailbreaks: the weighted SN loss achieves near-perfect prompt separability (AUROC = 1.0 for benign-versus-jailbreak). Using only 20 episodes per prompt, transfer ASR reached 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; other reported transfer successes include 88.8% on Fast-dLLM and 85.9% on Dream.
  • Cost and efficiency: a single episode requires 1,920 surrogate forward evaluations and 20 episodes use 38,400 evaluations; ASR plateaus after roughly 5 episodes, so comparable transferability can be achieved with far fewer runs than many prior methods.

Limitations

Results reflect specific hyperparameter choices and templates; the method is an offline transfer attack requiring an open-weight surrogate and therefore does not adapt interactively to target model responses. Intent drift and template design remain practical challenges for reliable generation under bidirectional denoising. Defences, compute trade-offs and further hyperparameter optimisation were not exhaustively explored.

Implications

Offensive security implications are significant: an attacker with access to an open-weight surrogate can map safety neurons and produce offline jailbreaks that transfer to closed models, including diffusion and proprietary systems. DLLMs initialised from AR weights inherit exploitable mechanistic footprint, so a vulnerability discovered in one model family can be exported to others. Practical attacks can be executed with modest surrogate compute budgets and few generation episodes, and they evade simple input and smoothing defences. The public code release facilitates replication and audit but also lowers the barrier for misuse, underscoring the need to address neuron-level transferability in alignment processes and to consider architectural or runtime mitigations that break direct neuron mappings.

// Similar research

Related Research

Get the weekly digest

The few AI-security papers that matter, with the practitioner takeaway. No spam.