SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2608.07430 · 2026

Diffusion LLMs as Targets and Adversaries: Mechanistic Safety Exploits

Jérémie Decouchant, Lydia Chen, Elena Dumitrescu, Gert Lek

arXiv · PDF · Open in the Atlas

Code that ran

10 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 6 failures of our instrument; 2 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2608.07430.json · badge: /api/ran/2608.07430.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
ellyoana/sn-guided-diffusion canonical (classifier label)
classifier basis: census
10 ran · 2 no recorded run
FunctionStatusWhere it lives
activation_hook Ran
ran; our contract draft was wrong, not the code
ellyoana/sn-guided-diffusion/whitebox_attacks/0_identify_safety_neurons.py
pointer only (licence: NONE) · get_code("0cf9f75b21e1bf59")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ellyoana/sn-guided-diffusion when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

build_templated_sequence Ran
ran; our contract draft was wrong, not the code
ellyoana/sn-guided-diffusion/sn_guided_diffusion/diffusion_utils.py
pointer only (licence: NONE) · get_code("9e15ed924fd6ea1f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ellyoana/sn-guided-diffusion when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

calculate_auroc Ran
ran, honoured the contract we drafted
ellyoana/sn-guided-diffusion/sn_guided_diffusion/sn_loss_analysis/0_sn_loss_baselines.py
pointer only (licence: NONE) · get_code("694aefc925bb1ed7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ellyoana/sn-guided-diffusion when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

construct_judge_prompt Ran
ran; our contract draft was wrong, not the code
ellyoana/sn-guided-diffusion/sn_guided_diffusion/0_pruned_llada_prompt_response_pairs.py
pointer only (licence: NONE) · get_code("c50127feda993760")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ellyoana/sn-guided-diffusion when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

construct_judge_prompt Ran
ran; our contract draft was wrong, not the code
ellyoana/sn-guided-diffusion/sn_guided_diffusion/sn_loss_analysis/1_sn_loss_llada_jailbreaks.py
pointer only (licence: NONE) · get_code("a8fc368887c48d89")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ellyoana/sn-guided-diffusion when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

extract_sn_losses Ran
ran, honoured the contract we drafted
ellyoana/sn-guided-diffusion/sn_guided_diffusion/sn_loss_analysis/3_sn_loss_pure_diff_histograms.py
pointer only (licence: NONE) · get_code("88aed1a3cdd03aed")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ellyoana/sn-guided-diffusion when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

is_degenerate Ran
ran; our contract draft was wrong, not the code
ellyoana/sn-guided-diffusion/sn_guided_diffusion/0_pruned_llada_prompt_response_pairs.py
pointer only (licence: NONE) · get_code("1d29a5aa8c9e3bf3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ellyoana/sn-guided-diffusion when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_dict Ran
ran; our contract draft was wrong, not the code
ellyoana/sn-guided-diffusion/utils.py
pointer only (licence: NONE) · get_code("f56d581943ef6542")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ellyoana/sn-guided-diffusion when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

parse_guard_verdict Ran
ran, violated the contract we drafted
ellyoana/sn-guided-diffusion/sn_guided_diffusion/2_attack_pipeline.py
pointer only (licence: NONE) · get_code("e606fd5a07c1d8b0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ellyoana/sn-guided-diffusion when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

setup_allowed_vocab Ran
ran, violated the contract we drafted
ellyoana/sn-guided-diffusion/sn_guided_diffusion/diffusion_utils.py
pointer only (licence: NONE) · get_code("20288f86017576c0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ellyoana/sn-guided-diffusion when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

construct_prompt Not yet run
unverified (harvested, no recorded run)
ellyoana/sn-guided-diffusion/utils.py
pointer only (licence: NONE) · get_code("af81b308c704f33f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ellyoana/sn-guided-diffusion when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

moderate Not yet run
unverified (harvested, no recorded run)
ellyoana/sn-guided-diffusion/sn_guided_diffusion/0_pruned_llada_prompt_response_pairs.py
pointer only (licence: NONE) · get_code("bee5d2c032f16e46")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ellyoana/sn-guided-diffusion when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 12 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2608.07430")
get_code_for_paper("2608.07430")
have("2608.07430")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2608.07430.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2608.07430.svg)](https://syntology.ai/paper/2608.07430)

Connect an agent — have() is free.