INTENTION MATCHING STOPS JAILBREAKS

Luoyu Chen, Weiqi Wang, Zhiyi Tian, Chenhan Zhang, Shui YuOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

LLMs are notoriously easy to "jailbreak" by hiding harmful requests inside complex roleplays or adversarial suffixes. SENTINEL is a new, plug-and-play defense that exploits a property called semantic consistency: the fact that an LLM’s output almost always reflects the user's true intent, regardless of how much "noise" is in the prompt. By mathematically matching the model's own output back to the input, SENTINEL extracts the hidden harmful intent and blocks it, reducing attack success rates to below 5% without requiring any model retraining.

What Problem Does This Paper Address?

The safety of Large Language Models (LLMs) currently relies on a fragile "arms race." Attackers use techniques like GCG or AutoDAN to wrap harmful requests (e.g., "how to build a bomb") in layers of adversarial context that bypass safety filters.

Existing defenses generally fall into two camps, both with major flaws:

  1. Token-level perturbations: Randomly flipping or deleting tokens to "break" the attack. This fails on long, complex prompts.
  2. Context-level defenses: Adding "be safe" system prompts. These are easily bypassed by "instruction overwriting," where the attacker tells the model to ignore all previous instructions.

The authors identify a missing piece: explicit intent extraction. We need a way to look at a 1,000-token prompt and precisely locate the 10 tokens that actually carry the harmful intent.

Methods

The core of SENTINEL is an optimization-based approach to Context Matching. It operates in three stages during the auto-regressive generation process:

  1. Intent Extraction Modeling: The authors observe that if a model starts answering a jailbreak, its output is semantically aligned with the hidden intent. SENTINEL uses sliding context windows to compare the input and the generated output. It solves an optimization problem to find which parts of the input are semantically closest to the output (the Alignment Constraint) while ensuring the extracted parts are long enough to be meaningful (the Informativeness Constraint).
  2. Adaptive Input Sanitization: Based on the "importance scores" from the matching step, SENTINEL creates several "sanitized" versions of the input, stripping away the adversarial "wrapper" and leaving only the core request.
  3. Harmfulness Scoring: It uses a technique called Refusal Direction Projection (RDP). By identifying a specific vector in the model's latent space that represents "refusal," SENTINEL projects the hidden states of the sanitized inputs onto this vector. If the alignment is high, the generation is halted and replaced with a refusal message.

Because it uses the model's own hidden states and requires no fine-tuning, it is a "plug-and-play" module that adds less than 10% overhead to standard generation time.

Datasets

The researchers evaluated SENTINEL using a robust suite of benchmarks:

  • HarmBench: The primary benchmark for evaluating jailbreak defense effectiveness across multiple attack types (GCG, PAIR, etc.).
  • OR-Bench: Used to measure "over-refusal" (when a model incorrectly blocks a harmless but "edgy" prompt).
  • General Utility Benchmarks: To ensure the defense doesn't break the model's brain, they tested on Arc-c (knowledge), TruthfulQA, and GSM8K (math).
  • Benign Datasets: Samples from Alpaca-eval, Puffin, and Trivia-qa were used to establish baseline false-positive rates.

Key Insights and Ideas

  • The Model is its Own Best Defender: The most elegant "aha" moment is realizing that the model's tendency to follow instructions—even bad ones—is the key to catching them. The output is a "semantic mirror" that reflects the true intent hidden in the input.
  • Moving Out of the Blind Spot: The authors provide a fascinating visualization of the model's latent space. Jailbreaks work by pushing the model's activations into "blind spots" where it hasn't been trained to refuse. SENTINEL’s sanitization process effectively "pulls" these activations back into the well-mapped "aligned regions" where the model’s internal safety training can actually recognize the harm.
  • Iterative Defense for Adaptive Attacks: To counter "adaptive attacks" (where an attacker might try to confuse the matching algorithm by echoing nonsense), the authors developed Ada SENTINEL, which iteratively peels back layers of the prompt to find the intent.

Key Results

  • Near-Total Blockage: SENTINEL kept the Attack Success Rate (ASR) below 5% for Mistral-7b and near 3% for Llama-3-8b across a wide variety of jailbreaks.
  • Superior Balance: Compared to other state-of-the-art defenses like Circuit Breaker or IBProtector, SENTINEL achieved a much better trade-off between stopping attacks and avoiding "over-refusal" on benign prompts.
  • Efficiency: The system is fast enough for real-time deployment, taking under 1.5 seconds to process even the longest adversarial prompts on a single A100 GPU.

Limitations and Future Work

  • Token Space Dependency: Currently, SENTINEL operates primarily in the token space. The authors suggest that moving to a more "expressive" latent space representation for matching could make the defense even more robust.
  • Alignment Requirement: SENTINEL assumes the base model has some level of safety training. If a model has been "lobotomized" or specifically fine-tuned to be harmful, SENTINEL has no "refusal direction" to project onto.
  • Future Integration: A promising next step is integrating this "intent matching" logic directly into the RLHF (Reinforcement Learning from Human Feedback) process, training models to minimize the semantic divergence between their internal goals and the user's stated intent.

Summary updated

BibTeX
@misc{chen2026intention,
  author = {LUOYU CHEN and Weiqi Wang and Zhiyi Tian and Chenhan Zhang and Shui Yu},
  title = {{INTENTION MATCHING STOPS JAILBREAKS}},
  year = {2026},
  url = {https://openreview.net/forum?id=vKHCM9O25U},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}

Loading related content...

Figure