evaluate 0 0 0

xunguangwang/JailbreakGuardrailBenchmark

published by @xunguangwang

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
1.7K
Last 30 days
308
Likes
5
Size
4.4 MB
Created on HF
2025-07-06
Age
1 years ago

Description

An Open Benchmark for Evaluating Jailbreak Guardrails in Large Language Models

Introduction

This repository provides instruction datasets in our SoK paper, SoK: Evaluating Jailbreak Guardrails for Large Language Models. The datasets are collected from various sources to evaluate the effectiveness of jailbreak guardrails in large language models (LLMs), including harmful prompts (i.e., JailbreakHub, JailbreakBench, MultiJail, and SafeMTData) and normal prompts… See the full description on the dataset page: https://huggingface.co/datasets/xunguangwang/JailbreakGuardrailBenchmark.

Tags

task_categories:text-generationtask_categories:text-classificationlanguage:enlicense:mitsize_categories:1K<n<10Kmodality:tabularmodality:textarxiv:2506.10597region:usjailbreaksguardrailslarge language modelsharmful behaviorsml safety

README current version from Hugging Face


language:

  • en
    license: mit
    pretty_name: JailbreakGuardrailBenchmark
    tags:
  • jailbreaks
  • guardrails
  • large language models
  • harmful behaviors
  • ml safety
    task_categories:
  • text-generation
  • text-classification
    configs:
  • config_name: JailbreakHub
    data_files:
    • split: harmful
      path: JailbreakHub/IJP.json
  • config_name: JailbreakBench
    data_files:
    • split: harmful
      path: JailbreakBench/behaviors.csv
  • config_name: MultiJail
    data_files:
    • split: harmful
      path: MultiJail/MultiJail_unintentional_bn.json
  • config_name: SafeMTData
    data_files:
    • split: harmful
      path: SafeMTData/Attack_600.json
  • config_name: AlpacaEval
    data_files:
    • split: normal
      path: AlpacaEval/AlpacaEval.json
  • config_name: OR-Bench
    data_files:
    • split: normal
      path: OR-Bench/OR-Bench.json

An Open Benchmark for Evaluating Jailbreak Guardrails in Large Language Models

Introduction

This repository provides instruction datasets in our SoK paper, SoK: Evaluating Jailbreak Guardrails for Large Language Models. The datasets are collected from various sources to evaluate the effectiveness of jailbreak guardrails in large language models (LLMs), including harmful prompts (i.e., JailbreakHub, JailbreakBench, MultiJail, and SafeMTData) and normal prompts (i.e., AlpacaEval and OR-Bench). The details (i.e., the number of prompts and jailbreak methods used for each dataset) of these sub datasets are summarized as follows:

Dataset # Prompts Jailbreak Methods
JailbreakHub 1000 IJP
JailbreakBench 100 GCG, AutoDAN
TAP, LLM-Fuzzer
DrAttack
X-Teaming
MultiJail 315 MultiJail
SafeMTData 600 ActorAttack
AlpacaEval 805 Normal Prompts
OR-Bench 1000 Normal Prompts

Accessing the Datasets

Some of the contents of the datasets may be offensive to some readers

For JailbreakHub, MultiJail, AlpacaEval and OR-Bench, each entry in the dataset is a dictionary with the following keys:

  • index: The index of the jailbreak prompt.
  • goal: The original goal of the jailbreak prompt.
  • jailbreak prompt: The jailbreak prompt used to attack LLMs.
    Although AlpacaEval and OR-Bench are in benign prompts, we still use jailbreak prompt as the key to keep the consistency of the datasets.

For JailbreakBench and SafeMTData, please refer to their respective Hugging Face pages for more details.

Sample Usage

To evaluate guardrails, you can refer to the scripts provided in the GitHub repository. For instance, you can run the following command to evaluate all the guardrails to protect Llama-3-8B-Instruct against the IJP attack:

sh ./scripts/ijp.sh

The results will then be saved in ./results/llama-3-8b/IJP/.

Usage

Please refer to our github repository SoK4JailbreakGuardrails for more details on how to use the datasets for evaluating jailbreak guardrails in LLMs. The repository provides scripts to evaluate various jailbreak guardrails using the datasets mentioned above.

Citation

If you find our benchmark useful, please consider citing it as follows:

@article{wang2025sok,
  title={SoK: Evaluating Jailbreak Guardrails for Large Language Models},
  author={Wang, Xunguang and Ji, Zhenlan and Wang, Wenxuan and Li, Zongjie and Wu, Daoyuan and Wang, Shuai},
  journal={arXiv preprint arXiv:2506.10597},
  year={2025}
}

README history 4 revisions

Every night we snapshot the README of every dataset in the catalog. When the SHA changes we archive the new version and diff it against the last. This is the evolving thought record of the alignment-data field: what the author decided to say about the corpus, and how that framing shifted over time.

  1. 2025-10-19Add task categories and sample usage (#2)be32a363.9 KB
    Loading...
  2. 2025-07-07Create README.mdd405a3d3.6 KB
    Loading...
  3. 2025-07-07Upload folder using huggingface_hub83e12a20 B
    Loading...
  4. 2025-07-06initial commit488246f0 B
    Loading...

Used by abliterated models none yet

No abliterated models in our catalog have declared this dataset in their YAML metadata yet. This can mean the dataset is used but not declared, is used outside abliteration workflows, or is new. The link will populate automatically as models are indexed.

Community discussions 2 threads · 1 open · 3 comments

Threads posted by the community on Hugging Face: bug reports, questions about usage, pull requests on the README, license clarifications. Click any thread to expand and read the full conversation inline. Newest first.

  1. 2025-10-17PRAdd task categories and sample usagemerged2 💬#2
    Loading...
  2. 2025-07-08[bot] Conversion to Parquetopen1 💬#1
    Loading...

Related datasets same stage · evaluate

Read further

Metadata

License
mit

Repository

Download the dataset

0

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("xunguangwang/JailbreakGuardrailBenchmark")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="xunguangwang/JailbreakGuardrailBenchmark", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/xunguangwang/JailbreakGuardrailBenchmark
Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration