Introduction
Large Language Models (LLMs) are increasingly integrated into various applications, yet they remain susceptible to "jailbreak" attacks—adversarial prompts designed to bypass safety guardrails. Traditional defenses often rely on surface-level pattern matching, such as keyword filtering or perplexity analysis. However, attackers can easily circumvent these by altering the prompt's "skin" while maintaining the core adversarial strategy.
The Essence-Driven Defense Framework (EDDF) addresses this gap by focusing on the "attack essence"—the distilled semantic intent of an adversarial prompt. By identifying these underlying strategies, EDDF provides a robust, plug-and-play defense that significantly reduces Attack Success Rates (ASR) while minimizing over-refusal.
Methodology: The EDDF Framework
EDDF operates as an inference-time input filter through a two-stage process: offline database construction and online query detection.
1. Offline Essence Database Construction
The system processes a diverse collection of known jailbreak prompts. An LLM extracts the "attack essence" from each, summarizing the adversarial strategy (e.g., "mimicking roleplay to request a biased report"). These essences are then embedded into vectors and stored in an Essence Vector Database (EVD).
2. Online Adversarial Query Detection
When a user submits a query, the framework performs the following steps:
- User Query Abstraction: The system extracts the essence of the incoming query.
- Essence Vector Retrieval: It searches the EVD for the most similar known attack essences using cosine similarity.
- Fine-Grained Judgment: If similarity exceeds a threshold, the query, its essence, and the top-K retrieved jailbreaks are sent to a "Judge LLM." This judge performs a deep intent analysis to distinguish between genuine attacks and structurally similar benign queries.
Evaluation and Results
The authors evaluated EDDF using a comprehensive suite of datasets, including "In-The-Wild" jailbreaks and a new Jailbreak Proliferation Dataset. This benchmark applies various jailbreak methods (e.g., CodeChameleon, DeepInception) to create variants that preserve the essence but change the surface pattern. To test for over-defensiveness, benign datasets like XSTest and Stanford Alpaca were also used.
Key results include:
- Superior Robustness: EDDF maintained an average ASR of only 5.71% on the proliferation dataset, significantly outperforming baseline defenses like Llama-Guard, which saw ASRs climb to 60-80%.
- Low Over-Refusal: EDDF achieved a remarkably low False Positive Rate (FPR) of 2.18%. In contrast, other semantic-based approaches like "Intention Analysis" suffered from a 34.89% FPR.
- Model Agnostic Performance: The framework proved effective across various models, including Llama-3.1 (8B), DeepSeek-R1 (14B), and GPT-4o.
Discussion and Future Directions
The primary innovation of EDDF is the shift from syntax-based to strategy-based defense. By defending at the level of psychological or logical strategies, the system becomes much harder to bypass through simple rewording. Furthermore, as a plug-and-play filter, EDDF allows for instant updates to the vector database without the need for costly model retraining.
However, some limitations remain. EDDF currently operates under a "known-unknown" paradigm, meaning it may struggle with entirely novel attack essences not yet in its database. Future work will focus on dynamic database updates and reducing dependency on the "Judge LLM" to ensure the defense remains robust even if the judge itself is targeted.
Ultimately, EDDF demonstrates that understanding the latent intent behind a prompt is the most promising path toward securing LLMs against evolving adversarial threats.
Summary updated