NeurIPS 2026QuestionsPapersAreasAboutMarkdown

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

NeurIPS page · Open on the map

Category: AI Safety, Security & Alignment › Jailbreak Defense and Analysis · Type: new method · Keywords: jailbreak detection, diffusion language models, pre-decoding states, safety, linear classifiers, representation fusion

Areas: Safety & Security › Language Model Security › Jailbreak Defense; Evaluation & Benchmarks › Language Model and Agent Safety › LLM Safety Evaluation

Summary

ReFuse leverages pre-decoding masked-response hidden states to detect jailbreaks in diffusion language models by fusing prompt and response classifier scores.

Explained to a 5-year-old

Some computers fill in parts of a story before they finish writing it. When someone asks the computer to do something dangerous, looking at those unfinished parts can show the bad request. This way, the computer can stop the bad answer early. It helps keep people safe while the computer still writes normal stories. It works like a helpful guard that watches the story as it is being made.

Explained to a 5-year-old, longer

Computers that write stories sometimes work differently from the usual ones. Instead of writing one word at a time, they first guess what the next words might be and then correct those guesses. While they are guessing, they keep hidden information about what they think the story will be. If a person asks the computer to do something harmful, those hidden guesses can show that the request is dangerous. By looking at these hidden guesses, the computer can notice the danger before it actually writes the bad answer. This early warning helps protect users. The method uses simple checkers that look at these hidden guesses from two different places: one before the story starts and one while the story is being guessed. It then combines the results of both checkers to make a final decision. This way, even if one checker misses something, the other can catch it. The final decision is made without changing how the computer writes the story, so it stays fast and easy to use. This approach makes the computer safer while keeping its normal behavior intact.

For a technical reader

The paper leverages hidden states generated during the denoising process of diffusion language models to detect jailbreak attempts. By training simple linear classifiers on prompt and pre-decoding representations, they capture early signs of malicious completions. At inference time, they fuse the scores from both classifiers into a single detector called ReFuse, which operates without modifying model weights. This approach reduces attack success rates dramatically while preserving normal model behavior. The method is lightweight and can be deployed on existing models to improve safety.

Problem

Detecting malicious user inputs (jailbreaks) in language models is challenging because they may not be evident from the prompt alone. This paper addresses the need for early detection signals that appear before the model completes its response.

Method

The approach trains lightweight linear classifiers on frozen prompt hidden states and pre-decoding masked-response hidden states to capture complementary signals. At inference time, it fuses the classifier scores without altering model weights or the decoding process.

Results

The approach reduces attack success rate from 63.29% to 3.31% and keeps benign refusal below 1% on utility benchmarks.

Contributions

It demonstrates that pre-decoding hidden states provide a valuable safety signal for jailbreak detection and proposes a fusion-based inference-time detector that combines prompt and response classifiers. The work also shows empirical complementarity between the two views, improving detection over either alone.

Practical relevance

This lightweight, weight-free detector can be deployed on existing diffusion language models to enhance safety without affecting their generation quality.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction