extract 0 0 0

ano6161/anonymous-patchbench

published by @ano6161

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
374
Last 30 days
89
Likes
-
Size
436.6 MB
Created on HF
2026-05-04
Age
5 months ago

Description

PatchBench

PatchBench accompanies a study of local safety patching for instruction-tuned language models. The benchmark evaluates whether a patching method fixes harmful prompts that a model answered unsafely, while also measuring whether the method preserves behavior on nearby benign prompts.

The dataset contains model-specific prompt pools, target-model answers, safety labels, and grouped validation/test examples built around harmful source prompts and local prompt variants.… See the full description on the dataset page: https://huggingface.co/datasets/ano6161/anonymous-patchbench.

Tags

language:enlicense:cc-by-nc-4.0size_categories:n<1Kmodality:textregion:uslanguage-model-safetyred-teamingrefusalrobustnessbenchmarkharmful-promptsprompt-paraphrasing

README current version from Hugging Face


license: cc-by-nc-4.0
language:

  • en
    pretty_name: PatchBench
    tags:
  • language-model-safety
  • red-teaming
  • refusal
  • robustness
  • benchmark
  • harmful-prompts
  • prompt-paraphrasing

PatchBench

PatchBench accompanies a study of local safety patching for instruction-tuned language models. The benchmark evaluates whether a patching method fixes harmful prompts that a model answered unsafely, while also measuring whether the method preserves behavior on nearby benign prompts.

The dataset contains model-specific prompt pools, target-model answers, safety labels, and grouped validation/test examples built around harmful source prompts and local prompt variants.

The released benchmark covers eight model-specific folders:

gemma-3-12b-it
gemma-3-4b-it
llama-3.1-8B-Instruct
llama4_scout-it
ministral-3-14B-Instruct-2512
mistral-7B-Instruct-v0.3
qwen2.5-14B-Instruct
qwen2.5-3B-Instruct

Dataset Structure

The main benchmark files are under:

final_dataset/

Each model-specific directory contains:

row_data.json
validation.json
test.json

row_data.json is a flat model-specific inference and labeling pool. Each row has the following fields:

id
prompt
answer
label

The prompt field contains the input prompt, answer contains the corresponding target-model answer, and label contains the safety label assigned to that answer.

validation.json contains grouped validation examples for the corresponding model. Across all model folders, the release contains 160 validation examples.

test.json contains grouped test examples for the corresponding model. Across all model folders, the release contains 402 test examples.

Each validation/test example has the following top-level fields:

id
original_prompt
groups

The groups object contains:

close_harmful
benign_same_structure
benign_harmful_words

For each example, close_harmful contains:

paraphrases
translations
punctuation
case_inversion
spelling_mistakes

In the released validation and test files, each example contains 10 paraphrases, 2 translations, 3 punctuation variants, 1 case-inversion variant, 3 spelling-mistake variants, 5 benign same-structure prompts, and 5 benign harmful-word prompts.

Additional construction artifacts are under:

alpaca/
data_processing/

alpaca/alpaca_for_condition.json contains Alpaca-derived safe prompts.

alpaca/alpaca_for_refusal.json contains Alpaca-derived prompt records split into train and test.

alpaca/behavior_refusal.json contains compliant and non-compliant response suffixes.

data_processing/row_data/redbench_filtered.json contains filtered RED-Bench source prompts.

data_processing/model_inference/ contains model inference outputs with prompt and answer fields.

data_processing/wildguard_inference/ contains WildGuard labeling outputs.

data_processing/elo_ranking/ contains Elo-ranking artifacts.

data_processing/selected-70-harmful/ contains selected harmful examples for each target model.

Croissant metadata is available at:

croissant.json

Intended Use

PatchBench is intended for research on language-model safety, including evaluation of safety patching, refusal behavior, robustness to local prompt variants, and preservation of benign behavior near harmful prompts.

PatchBench is not intended for training models to comply with harmful requests or for generating actionable harmful content.

Ethics Statement

PatchBench contains harmful, unsafe, and adversarial prompt text, as well as model answers to harmful prompts. It is released to support controlled safety research and reproducible benchmarking.

Users should handle examples carefully, especially when displaying, sharing, or analyzing prompt and answer content. Users should not use PatchBench to train models to comply with harmful requests or to generate actionable harmful content.

The dataset files contain prompt text, generated prompt variants, model answers, labels, and construction metadata. They are not structured as personal records about individuals.

Licenses

The source data used to construct PatchBench are released under permissive or research-compatible licenses. RED-Bench prompts are released under the MIT License. Alpaca-derived data are based on Stanford Alpaca, which is released under the Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0) license.

PatchBench also includes target-model outputs generated during benchmark construction. These outputs were produced using models released under their respective licenses or terms, including Apache-2.0–licensed Qwen and Mistral models, Gemma models under the Gemma Terms of Use, and Llama models under the Llama Community License.

PatchBench itself is released under CC BY-NC 4.0 to remain consistent with the licenses and usage restrictions of the upstream materials.

Users should provide appropriate attribution to PatchBench, RED-Bench, Stanford Alpaca, and the relevant model providers, and should not imply endorsement by any upstream provider.

Code

The accompanying code is available at:

https://github.com/ano6161/anonymous-patchbench

Data Sources

Used Models

README history 1 revision

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. 2026-05-05Initial dataset release4882ac05.9 KB
    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 1 thread · 1 open · 1 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. 2026-05-05[bot] Conversion to Parquetopen1 💬#1
    Loading...

Related datasets same stage · extract

Read further

Metadata

License
cc-by-nc-4.0

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("ano6161/anonymous-patchbench")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="ano6161/anonymous-patchbench", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/ano6161/anonymous-patchbench
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