Jailbreak-Eval
A defensive testing framework for language models, combining five attack generators, coordinated agents and ensemble scoring.
Five attack generators · reproducible pilot baselines
A structured evaluation can reveal failures; it cannot guarantee a model is safe.
If I am going to deploy a language model, I want to know where it breaks. Jailbreak-Eval puts that question into a repeatable test: generate adversarial prompts, run them against models and compare the responses.
The public release has five generators: templates, mutation, GCG, PAIR and a coordinated multi-agent swarm. Multi-turn escalation can wrap them to test a conversation as well as a single prompt. Changing the generator changes the kind of pressure applied to the model.
What the agents share
The swarm is the part I find most interesting. Five specialised agents share a memory pool. If one finds a phrasing that partly bypasses a safety filter, the others can build on it in later rounds. The attack develops through that shared context, so the sequence of attempts matters as much as the final prompt.
Scoring uses three methods. Keyword matching catches familiar refusal language, pretrained classifiers handle subtler cases, and an LLM judge assesses responses that fall into grey areas. Their scores form a weighted rating for each test case. The rating depends on those judges; it is not an objective measure of everything a model might do.
Running the comparison
I built support for OpenAI, Anthropic, OpenRouter and Hugging Face models. The Streamlit dashboard shows results as attacks run, with breakdowns by generator, severity and model. Reproducible pilot baselines are included in the public release.
The purpose is defensive: find a failure, keep the conditions that produced it and make it possible to run again. A clean result only covers the attacks and scoring methods in that run. It cannot guarantee that the model is safe to deploy.