Memory-based defense lowers LLM jailbreak success rates
The proposed self-evolving framework substantially reduces jailbreak attack success while preserving benign utility
Security & privacy arXiv 26 Aug 2026 Defense Prototype evidence
Published as “A Self-Evolving Multi-Agent Framework Defense against LLM Jailbreak Attacks”
Why it matters
The approach enables immediate, low-cost hardening of deployed LLM services against emerging jailbreak techniques without retraining, making it practical for API-based products.
Summary
The proposed self-evolving test-time defense reduces jailbreak attack success rates to as low as 1% / 0.1% (ASRrej / ASRgpt) on several attack families, while keeping utility on standard benchmarks within about two accuracy points of the undefended model. The system builds a persistent external rule memory that abstracts failed attacks into method-level wrappers and reuses them without any parameter updates, working for both open-weight and black-box APIs. Evidence comes from experiments on four black-box jailbreak families across multiple models, showing consistent ASR reductions and modest utility impact, though the evaluation covers only a limited set of attacks and does not address long-term memory scaling.
What they found 3
- The framework achieves the lowest attack success rates across all evaluated models and attack families.
“Our framework consistently achieves the lowest ASR across all models and attack families, with the gap most pronounced under the more challenging strategies (CodeChameleon, ReNeLLM) where static prompting and instance-level reflection fail to generalize.”
- On the DeepInception attack, the method reduces ASRrej / ASRgpt to 4.1% / 3.5% for Qwen2.5-7B.
“Ours 4.1 / 3.5”
- After the first interaction round, the rule memory drives ASRgpt to near zero for all four attack types.
“From round 1 onward, these rules are triggered, reducing ASR to near zero across all four attack types.”
Caveats 5
- Utility on MMLU drops from 68.7 (No Defense) to 66.8 (Ours), a decrease of about two accuracy points.
- The violation detector and classifier inherit base model judgment errors, which can lead to occasional over-refusal, as our XSTest analysis quantifies.
- Our evaluation centers on four representative blackbox, prompt-level jailbreak families, together with an adaptive composite-wrapper attack; due to computational constraints we do not cover the full range of recently proposed attacks, and multi-turn or agentic attack settings remain future work.
- Memory growth is bounded in our current design by semantic deduplication and a per-label capacity (C), and we do not yet include an explicit rule-pruning or conflict-resolution mechanism, so over very long interaction streams the efficiency and consistency of a large rule memory remain open questions.
- The violation detector and classifier are prompted LLM components and inherit the base model’s judgment errors, which can lead to occasional over-refusal, as our XSTest analysis quantifies.
What’s new here 4
- Introduces a persistent, cross-interaction rule memory that learns from failures at test time without updating model parameters.
- Abstracts attacks at the wrapper (method) level, enabling a single rule to block an entire family of jailbreaks.
- Applies a dynamic rule-triggering mechanism that selectively activates relevant rules, preserving benign utility.
- Demonstrates adaptation in black-box settings, including proprietary API models, which prior static or fine-tuned defenses cannot handle.