TL;DR
SENTINEL is a plug-and-play defense mechanism that thwarts LLM jailbreaks by identifying the "semantic bridge" between a prompt and its generated output. By explicitly extracting the underlying intent from complex adversarial wrappers, it reduces jailbreak success rates to near 5% while maintaining high utility and low over-refusal.
What Problem Does This Paper Address?
Large Language Models (LLMs) are prone to "jailbreaks"—adversarial prompts designed to bypass safety guardrails. These attacks often wrap a harmful request (e.g., "how to build a bomb") in complex, distracting contexts like role-playing scenarios or long, obfuscated stories.
Current defenses usually fall into two camps: they either perturb the input (which scales poorly to long prompts) or try to suppress harmful outputs (which often leads to "over-refusal," where the model blocks perfectly safe queries). The authors argue that these methods fail because they don't explicitly model where the malicious intent resides. They treat the jailbreak as a noise problem rather than an intent extraction problem.
Methods
The core of SENTINEL is the observation of input-output semantic consistency: even when a model is successfully jailbroken, the generated output tends to align semantically with the attacker's true intent, not the adversarial "wrapper."
SENTINEL operates in three main stages during the model's generation process:
- Intention Extraction Modeling: The system uses a sliding window to break the input and output into small context blocks. It then solves an optimization problem to find which input windows semantically match the output windows. This process assigns "importance scores" to tokens that are most likely to represent the core intent.
- Adaptive Sanitization: Using these scores, SENTINEL extracts several "intention-revealing" subsequences. It uses a diversity-based de-duplication algorithm to ensure it captures different facets of the intent without being redundant.
- Harmfulness Scoring: These extracted subsequences are projected onto a "refusal direction"—a specific vector in the model's latent space that distinguishes between harmful and harmless content. If the average harmfulness score exceeds a threshold, the system halts generation and issues a refusal.
Crucially, SENTINEL is a generation-time defense. It doesn't require fine-tuning the LLM and can be invoked periodically (e.g., every 10 tokens) to catch harmful intent early.
Datasets
The authors evaluated SENTINEL using a robust suite of benchmarks:
- HarmBench: A comprehensive jailbreak benchmark used to test attack success rates (ASR) across various attack types like GCG, AutoDAN, and GPT-Fuzz.
- OR-Bench: Used to measure the "False Positive Rate" (FPR) or over-refusal on queries that sit on the boundary between safe and toxic.
- Utility Benchmarks: AlpacaEval, Puffin, and TriviaQA were used to ensure the defense doesn't break standard chatbot functionality.
- General Capability Benchmarks: ARC-C (reasoning), TruthfulQA (truthfulness), and GSM8K (math) were used to verify that model performance remains stable.
Key Insights and Ideas
- The "Aha" Moment: The researchers realized that jailbreaks don't actually change the model's internal understanding of the task; they just hide it. By matching the output back to the input, the "mask" of the adversarial prompt is stripped away.
- Feature Re-distribution: Mechanistically, jailbreaks work by pushing features into "alignment blind spots"—areas of the latent space the model wasn't trained to refuse. SENTINEL effectively pulls these features back into "aligned regions" where the model's safety training is active.
- Robustness to Adaptive Attacks: Even when an attacker knows SENTINEL is active and tries to optimize a prompt to bypass it (a white-box adaptive attack), they face a dilemma: if they hide the intent well enough to fool the defense, the model often produces off-topic or gibberish output, failing the jailbreak's goal.
Key Results
- High Defense Efficacy: On Llama-3-8B, SENTINEL reduced the Attack Success Rate (ASR) to approximately 3%. On the more "weakly aligned" Mistral-7B-v0.2, it kept ASR below 5%.
- Low Over-Refusal: Compared to other state-of-the-art defenses like Circuit Breaker, SENTINEL showed significantly better performance on OR-Bench, meaning it is less likely to annoy users by refusing safe requests.
- Efficiency: The intent extraction process is highly efficient, adding less than 1.5 seconds of latency even for the longest prompts, and theoretically adding less than 10% overhead to standard generation time.
Limitations and Future Work
The authors note that SENTINEL primarily operates in token space, which might be less expressive than the model's continuous latent representations. While effective, this could potentially be bypassed by extremely sophisticated attacks that manipulate the latent space directly.
Future work aims to define the intention matching process directly within the model's hidden layers (representation space). This could lead to even more robust defenses and deeper mechanistic insights into how LLMs process safety and intent.
Summary updated