[Paper Review] EasyJailbreak: A Unified Framework for Jailbreaking Large Language Models
EasyJailbreak introduces a modular framework with four components (Selector, Mutator, Constraint, Evaluator) to build and evaluate jailbreak attacks against LLMs, reporting widespread vulnerabilities across 10 models and 11 methods.
Jailbreak attacks are crucial for identifying and mitigating the security vulnerabilities of Large Language Models (LLMs). They are designed to bypass safeguards and elicit prohibited outputs. However, due to significant differences among various jailbreak methods, there is no standard implementation framework available for the community, which limits comprehensive security evaluations. This paper introduces EasyJailbreak, a unified framework simplifying the construction and evaluation of jailbreak attacks against LLMs. It builds jailbreak attacks using four components: Selector, Mutator, Constraint, and Evaluator. This modular framework enables researchers to easily construct attacks from combinations of novel and existing components. So far, EasyJailbreak supports 11 distinct jailbreak methods and facilitates the security validation of a broad spectrum of LLMs. Our validation across 10 distinct LLMs reveals a significant vulnerability, with an average breach probability of 60% under various jailbreaking attacks. Notably, even advanced models like GPT-3.5-Turbo and GPT-4 exhibit average Attack Success Rates (ASR) of 57% and 33%, respectively. We have released a wealth of resources for researchers, including a web platform, PyPI published package, screencast video, and experimental outputs.
Motivation & Objective
- Motivate a standardized, extensible framework to evaluate LLM jailbreak methods across diverse models.
- Provide a modular architecture (Selector, Mutator, Constraint, Evaluator) enabling reuse and rapid composition of attacks.
- Empirically assess security of multiple LLMs against a suite of jailbreak methods and quantify breach probabilities.
- Offer tooling (web platform, PyPI package, experiments) to aid researchers in security validation of LLMs.
Proposed method
- Decomposes jailbreak methods into four components: Selector selects promising seeds, Mutator refines prompts, Constraint filters ineffective inputs, Evaluator judges success.
- Supports 11 jailbreak methods implemented as combinations of components within a unified framework.
- Benchmarks across 10 LLMs (open and closed) and multiple attacks to compute Attack Success Rate (ASR).
- Provides a reporting mechanism detailing ASR, prompts, model replies, and evaluation outcomes.
- Integrates with HuggingFace transformers for broad model compatibility and includes a web platform and experiments repository.
Experimental results
Research questions
- RQ1What is the prevalence and magnitude of jailbreak vulnerabilities across a diverse set of LLMs?
- RQ2Can a unified, modular framework enable standardized benchmarking and comparison of jailbreak attacks?
- RQ3How do different jailbreak methods perform in terms of success rate and efficiency across models?
- RQ4What tooling is effective for researchers to reproduce and extend jailbreak evaluations across models?
Key findings
- Average breach probability across 10 models and 11 attacks is 60% (or 63% in some analyses).
- Advanced models like GPT-3.5-Turbo and GPT-4 show ASRs of 57% and 33%, respectively, under aggregated attacks.
- Closed-source models (e.g., GPT-3.5-Turbo, GPT-4) exhibit lower average ASR than open-source models in their evaluations.
- Model size does not uniformly improve security; 13B variants sometimes show higher ASR than 7B variants for some families.
- EasyJailbreak supports 12 jailbreak attacks in its framework and demonstrates broad model compatibility (open and closed).
- Evaluation methods vary; GPT-4 achieves highest accuracy/TPR/F1 among evaluators but with higher latency.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.