Papers › Step-Wise Refusal Dynamics in Autoregressive and Diffusion Language Models

Step-Wise Refusal Dynamics in Autoregressive and Diffusion Language Models

1 Feb 2026arXiv:2602.02600added by Syntology

Eliron Rahimi, Elad Hirshel, Rom Himelstein, Amit LeVi, Avi Mendelson, Chaim Baskin

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Diffusion language models (DLMs) have recently emerged as a competitive alternative to autoregressive (AR) models, offering parallel decoding, competitive generation quality, and initial evidence of improved jailbreak robustness. Despite this progress, the role of sampling mechanisms in shaping refusal behavior remains poorly understood. To address this gap, we present a comprehensive study of step-wise refusal dynamics. We show that diffusion remasking can promote recovery from harmful intermediate generations, provide evidence that this behavior is tied to the sampling mechanism, and demonstrate that switching from AR to diffusion sampling improves jailbreak robustness, including under fixed model weights. To capture generation dynamics not observable at the text level, we propose the Step-Wise Refusal Internal Dynamics (SRI) signal. Consistent with our text-level findings, SRI shows that recovery fails primarily under AR sampling, with these failures often appearing anomalous relative to harmless generations in the SRI space. Based on this observation, we show that SRI enables a simple jailbreak detector that does not modify inference and generalizes to unseen attacks by training only on benign SRI signals. Our evaluation shows that this detector matches or outperforms existing jailbreak detection baselines while adding negligible overhead.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2602.02600")

Code

Syntology Ran 16 of 26 code samples harvested from 3 repositories linked to this paper; 10 have no recorded run. Of those that ran: 7 ran · our draft was wrong; 1 ran · fixture could not drive it; 8 ran with no contract checked.

By repository: found in paper text by Syntology: 25 samples from 3 repositories, 15 ran; 1 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

ZichenWen1/DIJA found in paper text by SyntologyApache-2.0 report
shuita2333/PAD-codes found in paper text by Syntology report
niez233/DiffuGuard found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

26 samples harvested; 16 ran; 0 honoured the contract we drafted; 10 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

7ran · our draft was wrong
1ran · fixture could not drive it
8ran
10unverified

Licence: 24 of the 26 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 3 repositories linked to this paper, official or community; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

Normalize shuita2333/PAD-codes/MMaDA-PAD/models/common_modules.py found in paper text by Syntology ran · our draft was wrong no licence file found · pointer only · c3a6b977022957cb · report
add_gumbel_noise niez233/DiffuGuard/utility/generate_function.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · 1495eea6ced11dfa · report
broadcast shuita2333/PAD-codes/MMaDA-PAD/models/misc.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · 1f6ae43d06c76ba5 · report
causal_attention_bias shuita2333/PAD-codes/MMaDA-PAD/models/modeling_llada.py found in paper text by Syntology ran no licence file found · pointer only · f9abf6d74699cc1c · report
forward_process shuita2333/PAD-codes/LLaDA-PAD/get_log_likelihood.py found in paper text by Syntology ran · our draft was wrong no licence file found · pointer only · 988a5f5b97b3ed17 · report
generate niez233/DiffuGuard/utility/generate_function.py found in paper text by Syntology ran · our draft was wrong no licence file found · pointer only · 195f48aece3499e6 · report
get_constant_schedule shuita2333/PAD-codes/MMaDA-PAD/models/lr_schedulers.py found in paper text by Syntology ran no licence file found · pointer only · a8366f238618edad · report
get_constant_schedule_with_warmup shuita2333/PAD-codes/MMaDA-PAD/models/lr_schedulers.py found in paper text by Syntology ran no licence file found · pointer only · 11f07821d1b2286b · report
get_linear_schedule_with_warmup shuita2333/PAD-codes/MMaDA-PAD/models/lr_schedulers.py found in paper text by Syntology ran no licence file found · pointer only · 1975e0c51e6f5753 · report
get_log_likelihood shuita2333/PAD-codes/LLaDA-PAD/get_log_likelihood.py found in paper text by Syntology ran · our draft was wrong no licence file found · pointer only · 39c9954d6f0c856e · report
gumbel_noise ZichenWen1/DIJA/MMaDA/models/sampling.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · 53202c68f703b2ab · report
gumbel_sample ZichenWen1/DIJA/MMaDA/models/sampling.py found in paper text by Syntology ran · fixture could not drive it Apache-2.0 (permissive) · 54486de625187d2a · report
nonlinearity shuita2333/PAD-codes/MMaDA-PAD/models/common_modules.py found in paper text by Syntology ran · our draft was wrong fingerprinted no licence file found · pointer only · 3137073275f8c21a · report
parse_structured shuita2333/PAD-codes/MMaDA-PAD/models/misc.py found in paper text by Syntology ran no licence file found · pointer only · 0e7f77d6003e2412 · report
unpack_time shuita2333/PAD-codes/MMaDA-PAD/models/common_modules.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · 2d82abbef2c4addb · report
add_gumbel_noise shuita2333/PAD-codes/LLaDA-PAD/generate-PAD.py found in paper text by Syntology unverified no licence file found · pointer only · 72a32148829c38b2 · report
add_gumbel_noise shuita2333/PAD-codes/MMaDA-PAD/models/modeling_mmada.py found in paper text by Syntology unverified no licence file found · pointer only · 615ec9b280bef7c6 · report
generate shuita2333/PAD-codes/LLaDA-PAD/generate-PAD.py found in paper text by Syntology unverified no licence file found · pointer only · 3e3a6bc56d604874 · report
generate shuita2333/PAD-codes/MMaDA-PAD/generate-PAD.py found in paper text by Syntology unverified no licence file found · pointer only · afd61e748d6c23ce · report
get_logger shuita2333/PAD-codes/MMaDA-PAD/models/logging.py found in paper text by Syntology unverified no licence file found · pointer only · 376bf22d5737fc2a · report
get_logits shuita2333/PAD-codes/LLaDA-PAD/get_log_likelihood.py found in paper text by Syntology unverified no licence file found · pointer only · bc58c88b365ae743 · report
get_num_transfer_tokens shuita2333/PAD-codes/LLaDA-PAD/generate-PAD.py found in paper text by Syntology unverified no licence file found · pointer only · b7cee2ce433da95c · report
get_num_transfer_tokens shuita2333/PAD-codes/MMaDA-PAD/models/modeling_mmada.py found in paper text by Syntology unverified no licence file found · pointer only · 65934529afeabeff · report
get_parameter_device shuita2333/PAD-codes/MMaDA-PAD/models/modeling_utils.py found in paper text by Syntology unverified no licence file found · pointer only · 3e268fcaaf4273fe · report
get_parameter_dtype shuita2333/PAD-codes/MMaDA-PAD/models/modeling_utils.py found in paper text by Syntology unverified no licence file found · pointer only · 33338f20f5619c59 · report
log identical code first harvested elsewhere ran · our draft was wrong fingerprinted licence of this copy not recorded · b5472673332de78e · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2602.02600, was issued in February 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections