Beyond the Prompt: Leveraging Pre-Decoding States for Jailbreak Detection in dLLMs
Adam Hazimeh, Amel Abdelraheem, Ke Wang, Mariam Salman, Ljiljana Dolamic, G\'er\^ome Bovet, Pascal Frossard
Key points
From the paper's conclusion- Together, these results establish $\texttt{ReFuse}$ as a lightweight jailbreak detector for dLLMs that improves safety beyond prompt-only detection.
Abstract
Diffusion large language models (dLLMs) have recently emerged as a strong alternative to autoregressive models, generating responses by iteratively refining masked tokens in parallel rather than decoding sequentially. While enabling more efficient and flexible inference, dLLMs remain vulnerable to jailbreak attacks, including recent attacks that exploit properties unique to dLLMs such as bidirectional conditioning and parallel masked-token refinement. In this work, we show that these same properties also expose a safety-relevant detection surface absent from standard autoregressive decoding: even when a jailbreak is difficult to identify from prompt representations alone, it can still be detected from hidden states over masked response positions before any tokens are generated. By training linear classifiers on prompt and pre-decoding response representations, we empirically show that neither view strictly dominates, with each detecting attacks that the other misses. We introduce $\texttt{ReFuse}$ (Representation Fusion), an inference-time detector that fuses the sigmoid harmfulness scores of the two classifiers. Without modifying model weights or the decoding procedure, $\texttt{ReFuse}$ reduces average ASR across multiple jailbreaks from 63.29% for the undefended model and 11.27% for a prompt-only classifier to 3.31%, while keeping average benign refusal on standard utility benchmarks below 1% on LLaDA-8B. Together, these results establish $\texttt{ReFuse}$ as a lightweight jailbreak detector for dLLMs that improves safety beyond prompt-only detection.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Harmful Responses Are Jailbreak Templates: Transferring Autoregressive Jailbreaks to Diffusion Language ModelsarXiv · 2026
- Prompt-Based Jailbreaking of Leading LLM Chatbots: A Survey of Attacks and DefensesIEEE Transactions on Artificial Intelligence · 2026
- TERM: Target-Free Jailbreak Defense via Entropy-Guided Residual ModulationarXiv · 2026
- GuardrailAgent: An Agentic Framework for Jailbreak DefensearXiv · 2026
- Adversarial prompt detection via contrastive dual-encoder transformer for zero-day jailbreak defense based on AdverSentinel-LLM modelScientific Reports · 2026
- Reflect-Guard: Enhancing LLM Safeguards Against Adversarial Prompts via Logical Self-ReflectionJournal of Superintelligence · 2026