acceptodds
Published as a conference paper at NeurIPS 2026

Beyond the Prompt: Leveraging Pre-Decoding States for Jailbreak Detection in dLLMs

Adam Hazimeh, Amel Abdelraheem, Ke Wang, Mariam Salman, Ljiljana Dolamic, Gérôme Bovet, Pascal Frossard

Abstract

Diffusion language models (dLLMs) generate text by iteratively denoising masked response positions, exposing hidden states over future response slots before any token is finalized. This creates a detection surface that is absent from standard autoregressive decoding: even when a jailbreak is difficult to identify from the prompt alone, the initial masked response states may already reflect the model's emerging completion. We test this hypothesis on LLaDA-8B-Instruct by training lightweight linear classifiers on two frozen representations: prompt hidden states and pre-decoding masked-response hidden states. Empirically, the two views are complementary: neither classifier strictly dominates the other, and each recovers attacks missed by the other view. We then introduce (Representation Fusion), an inference-time detector that fuses prompt and pre-decoding response classifier scores without modifying model weights or the decoding procedure. Across transferred and dLLM-targeted jailbreaks, reduces average ASR from 63.29% for the undefended model to 3.31%, while keeping average benign refusal on standard utility benchmarks below 1%. These results suggest that pre-decoding response states provide a complementary safety signal for detecting jailbreaks in dLLMs.

Keywords:
Sydney, Main Track

Reviews

Among:
Shape:
123456this paper, Bottom 17%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.00 over 3 reviews, above 17% of the others.
Reviewer_EMX5OpenReview ↗
Rating
4
Clarity
2
Confidence
4
Originality
4
Quality
3
Significance
3
Read review
Summary

This paper proposes ReFuse, a jailbreak detection method for diffusion language models (dLLMs). The main idea is to use not only the prompt hidden states, but also the hidden states of masked response positions before decoding is finished. The authors train two lightweight classifiers: a prompt classifier and a response classifier. They show that these two classifiers detect different kinds of jailbreaks, so combining them is useful. Based on this, ReFuse fuses the two classifier scores and rejects risky prompts before generation. Experiments on several dLLMs, including LLaDA-8B-Instruct, LLaDA-1.5, and Dream-7B, show that ReFuse reduces jailbreak success rates while keeping benign refusal relatively low.

Strengths and weaknesses

Strengths:

  1. The proposed method effectively leverages the masked decoding property of dLLMs to measure harmfulness before the final response is generated.

  2. The paper clearly demonstrates that the prompt classifier and the response classifier provide complementary signals, rather than merely duplicating the same information.

  3. The paper evaluates the method across a wide range of attacks and multiple dLLM models, making the empirical evaluation relatively broad.

Weaknesses:

  1. The response classifier, CrC_r, may partly rely on the model already being safety-aligned. In particular, it may be detecting latent refusal-related signals rather than harmfulness itself. The paper should test whether the method still works on models with weak or no safety alignment.

  2. It is unclear what CrC_r actually learns. For a harmful request, the model could be internally preparing to refuse, comply, or follow some other behavior. The paper does not clearly explain which of these internal signals CrC_r is using.

  3. The method should be evaluated on more direct harmful-prompt datasets. Since WildJailbreak may already contain jailbreak-style patterns, it remains unclear whether the classifier would work equally well on simpler and more direct harmful requests.

Questions

Would it be possible to apply the response-side detector at each denoising step with token-level granularity? This could reveal whether the detector can identify localized unsafe token positions and support fine-grained intervention during generation, rather than only rejecting the full request before decoding.

Limitations

Yes

Paper formatting concerns

N/A

Final justification

After reading the rebuttal and the other reviewers' discussion, I maintain my original rating.

The response-side analysis suggests that the detector is not simply capturing refusal behavior, but it remains unclear what internal signal it relies on and how much this signal depends on safety alignment. This leaves its generalization to weakly aligned or unaligned models uncertain.

I also remain cautious about adaptive robustness, as the score-aware PAIR evaluation does not cover stronger white-box or gradient-based adaptive attacks.

Overall, the method is original and promising, but these limitations remain, so I keep my borderline-accept rating.

Reviewer_sT7YOpenReview ↗
Rating
3
Clarity
3
Confidence
2
Originality
3
Quality
3
Significance
2
Read review
Summary

The paper discusses whether diffusion language models (dLLMs) expose a safety signal unavailable in autoregressive models, observing that dLLMs maintain hidden states over masked future response positions before any token is decoded. The authors show that a linear classifier on these pre-decoding response states recovers harmful requests a prompt-only classifier misses, especially for dLLM-specific jailbreaks, and that the two views are complementary. They propose ReFuse, a lightweight detector that fuses prompt-side and response-side scores into a calibrated rejection decision before decoding, on a frozen model without fine-tuning. Across several dLLMs and attacks, ReFuse achieves the lowest average attack success rate among the evaluated defenses while keeping benign refusal low.

Strengths and weaknesses

Strengths

  • S1: The paper makes a clean conceptual contribution by extending activation-level safety probing to a pre-decoding view over future response slots, a signal that is structurally unavailable in standard autoregressive decoding. This framing is valuable for the dLLM safety literature and would remain of interest even if the specific empirical numbers shifted, since it identifies a dLLM-specific detection surface not accessible to prior AR-oriented probing methods.
  • S2: The comparison between Cp+C^+_p and CrC_r in Table 3 is a useful controlled ablation. Both scores are obtained from the same masked-sequence pass, yet DIJA ASR differs sharply: 85.71% for Cp+C^+_p versus 6.29% for CrC_r. This suggests that response-position states contain safety-relevant information that is not simply recovered by reusing prompt-position states from the same forward pass.

Weaknesses

  • W1: The threat model gives the defender white-box access to hidden states, but the evaluation uses non-adaptive transferred or dLLM-specific jailbreaks that are not optimized against ReFuse. This limits the strength of the robustness conclusions in deployment-like settings, since an adaptive attacker could try to keep the fused score below threshold while still eliciting harmful completions. Results against attacks explicitly optimized against the fused detector, even in a query-only setting, would substantially strengthen the paper.
  • W2: The response-view advantage appears concentrated rather than uniform. In the main LLaDA-8B results, CrC_r clearly outperforms CpC_p on DIJA and moderately on PastTense, but CpC_p is stronger on most other attacks; PAD, despite being another dLLM-specific attack, does not show the same response-view advantage. Thus, the generality of the complementarity claim would be clearer with additional dLLM-specific attacks, a per-attack contribution analysis, or averages reported with and without DIJA. In the main LLaDA-8B setting, ReFuse also worsens DIJA ASR relative to the hard-union baseline, 8.57% vs. 6.29%, while improving other columns such as PAIR and ReNeLLM and reducing XSTest over-refusal. A matched-BRR or Pareto comparison between ReFuse and OR would better justify the calibrated fusion choice.
Questions
  • W1 suggestion:t would be helpful to evaluate against an attacker that explicitly optimizes against the fused score, such as a GCG-style or embedding-space attack jointly targeting CpC_p and CrC_r, to test how much robustness holds when the defense is known.
  • W2 suggestion: I would also suggest reporting averages with and without DIJA (or a per-attack contribution breakdown) to show the complementarity is not DIJA-specific, along with a matched-BRR or Pareto comparison between ReFuse and OR to justify calibrated fusion over the hard union.
  • Marginal suggestion: I suggest increase the font size in Figure 4 as it is quite difficult to read.
Limitations

yes

Paper formatting concerns

None

Final justification

The rebuttal handles the DIJA concern well. Recomputing the averages without DIJA on all three models, reporting the cases that don't help transparently, and narrowing the complementarity claim accordingly convinced me the effect is not simply a DIJA artifact. The PAD explanation and matched-BRR diagnostic are useful additions as well.

Where I remain unconvinced is adaptive robustness. The score-aware PAIR only optimizes in prompt space through a black-box query loop, whereas the white-box threat model and a frozen linear detector call for a gradient or embedding-space attack targeting both classifiers at once. The curve also does not flatten, climbing to 11.11% at the largest budget, which suggests a stronger attacker would push it further.

Since the adaptive question matters most for the paper's core claim of being an effective defense, I am keeping my overall score unchanged. The added analyses do make the evaluation more solid and more honest about its scope, and that is what moves my quality rating up.

Reviewer_2J7nOpenReview ↗
Rating
5
Clarity
4
Confidence
3
Originality
3
Quality
3
Significance
3
Read review
Summary

Authors study prompt injection attacks and defenses for diffusion LLMs. Authors observe that pre-response embeddings of dLLMs may contain information about the eventual generations. Authors leverage this observation to build a safety defense. Specifically, authors propose to train linear classifiers based on pre-response embedding to predict refusal or not. Authors also consider using prompt embedding to train linear classifiers and aggregating the scores of such linear classifiers with pre-response-based linear classifiers for determining whether to refuse or not. Authors conduct careful experiments and ablations to corroborate their findings.

Strengths and weaknesses

The paper is well-written.

The problem being studied, while narrow in scope, is interesting and of value to the community. The paper read well and has good clarity in general. The experiments are generally well-designed and well-executed. Limitations of the work are adequately discussed. The proposed defense approach is simple, intuitive, and generally effective.

One weakness is that the proposed approach still introduces a tradeoff: The defense may lead to false refusals, and on certain specifically-crafted prompt distributions (eg XSTest), the false refusal rate can be high.

Questions
  1. What happens if one trains the linear classifier based on representations of later diffusion stages, ie use z_R^{(k)}(x) for k>0? What's the trend like for small to large k?
  2. What happens if one uses a stronger classifier model, e.g., MLP refusal score predictor, or even a small transformer model that could attend to different tokens and rid the mean pooling?
  3. What are the specific failure modes of false refusal (eg in XSTest) for the proposed method? What are some techniques to prevent false refusal and lead to pareto dominance?
Limitations

See details in "Strengths And Weaknesses" section.

Paper formatting concerns

N/A

Final justification

After reading through authors' responses to my review and fellow reviewers' assessment, I maintain my original rating.

Fellow reviewers point out several additional limitations, the most interesting of which (IMHO) being the robustness against adaptive attacks. Authors provided an update to this issue by including additional assessment against a specific attack variant, i.e., score-aware PAIR which operates under a black-box threat model. Fellow reviewer (sT7Y) has concerns regarding the robustness of the proposed defense against other types of adaptive attacks, including those which operate under a white-box model.

While I believe authors could have done more work to address this, the existing scope of work and quality is sufficient to reach the bar for acceptance all aspects considered.

Comments on the paper

1 comment
Meta-review

This paper proposes ReFuse, a jailbreak detection method for diffusion language models that leverages hidden states available before decoding begins. It trains two linear classifiers on prompt representations and masked-response representations from the initial denoising step, respectively, and combines their harmfulness scores using a calibrated threshold. The prompt classifier is effective on direct harmful requests and conventional jailbreaks, while the response classifier provides complementary detection, particularly for DIJA. Experiments on LLaDA-8B-Instruct, LLaDA-1.5, and Dream-7B show substantial reductions in attack success rates while maintaining low refusal rates on standard utility benchmarks. The paper also studies sensitivity to generation length and remasking strategy, transfer across related model variants, and a lower-cost one-pass variant.

The paper is well written and presents a clear dLLM-specific contribution by identifying pre-decoding masked-response states as a useful safety signal. ReFuse is simple, intuitive, and empirically effective, and the experiments provide meaningful evidence that prompt-side and response-side representations capture complementary information.

However, the method can still cause substantial over-refusal on safety-adjacent benign prompts such as XSTest (2J7n). More importantly, the evaluation does not include adaptive attacks explicitly optimized to evade the fused detector, which limits the strength of the robustness claims (sT7Y). The response-view advantage is also concentrated largely on DIJA, leaving its broader generality unclear (sT7Y). In addition, it remains uncertain whether the response classifier captures harmfulness itself or latent refusal-related behavior, particularly because the method is evaluated only on safety-aligned models (EMX5).

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.