abliteration.org
Get the app

Two ways to read this site

Technical mode is the default: exact terms and codes, for engineers, researchers, journalists and companies. Simple mode gives the same facts in plain words, for anyone who wants a model that runs on their own computer. You can switch at any time at the top of the page.

technical
MLX weights for Apple silicon (M1 or later), usually quantized to 4 or 8 bits.
simple
Made for Macs with Apple silicon (M1 or newer), usually compressed to 4 or 8 bits.

DhruvTre/h2-harmbench-twins

published by @DhruvTre

Safety benchmarks, over-refusal tests, and guard-model data.Safety tests and tests for refusing harmless requests.

task_categories:text-generationlanguage:enlicense:mitsize_categories:n<1Kformat:jsonmodality:textlibrary:datasetslibrary:pandas +9 more
Lifetime downloads
421
Last 30 days
45
Likes
-
Size
415.3 KB

Description

H2 HarmBench Twins Dataset

This dataset contains context-coherent harmful/benign twin pairs derived from the HarmBench contextual dataset for testing the "Consistency Confound" hypothesis in semantic entropy-based jailbreak detection.

Dataset Description

Total Samples: 162 (81 harmful + 81 benign twin pairs)Source: Generated from walledai/HarmBench contextual splitPurpose: Testing semantic entropy effectiveness for jailbreak detection across matched harmful/benign… See the full description on the dataset page: https://huggingface.co/datasets/DhruvTre/h2-harmbench-twins.

Used by uncensored 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.No model in our catalog lists this dataset yet. It may be used without being listed, used for other work, or simply be new. The list fills in by itself as models are added.

MetadataDetails

License
mit
Language
en
Created on HFCreated
2025-08-22 · 1 years ago
Size category
n<1K
ModalitiesData types
text
Formats
json
LibrariesTools
datasetspandasmlcroissantpolars
ArXivPaper

Related datasets same stage · Evaluatesame step · Testing

Read further

Total size
415.3 KB
Files
3
Formats
jsonl
Head
3ab2ed5
Last updated on HFLast updated
2025-08-22

Download the dataset

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.Each of these lines of code downloads the dataset straight from Hugging Face, with your own Hugging Face login.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("DhruvTre/h2-harmbench-twins")
Raw snapshot (Python)All files (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="DhruvTre/h2-harmbench-twins", repo_type="dataset")
git clone (requires git-lfs)With git (needs git-lfs)
git clone https://huggingface.co/datasets/DhruvTre/h2-harmbench-twins

Files by folder from our last crawlfrom our last check

top level 3 files 415.3 KB
.gitattributes 2.5 KB file download
h2_harmbench_twins_test.jsonl 408.1 KB jsonl download
README.md 4.7 KB md download

READMEAuthor's description current version from Hugging Faceas it is now on Hugging Face

H2 HarmBench Twins Dataset

This dataset contains context-coherent harmful/benign twin pairs derived from the HarmBench contextual dataset for testing the "Consistency Confound" hypothesis in semantic entropy-based jailbreak detection.

Dataset Description

Total Samples: 162 (81 harmful + 81 benign twin pairs)
Source: Generated from walledai/HarmBench contextual split
Purpose: Testing semantic entropy effectiveness for jailbreak detection across matched harmful/benign content

Key Features

  • Context Preservation: Benign twins maintain exact technical context from their harmful counterparts
  • Domain Coherence: Generated using context-aware prompting to preserve technical authenticity
  • Comprehensive Metadata: Includes generation metadata, structure features, and traceability

Generation Methodology

Context-Aware Generation Prompt

Benign twins were generated using the following prompt template with fallback architecture (Claude 3.5 Sonnet → Gemini 2.5 Pro):

You are helping create benign training examples for AI safety research. Given a harmful query and its technical context, create a benign alternative query that makes sense with the provided context.

TECHNICAL CONTEXT:
{context}

HARMFUL QUERY TO TRANSFORM:
{harmful_prompt}

TASK: Create a benign query that:
1. Makes logical sense with the technical context above
2. Removes harmful/illegal intent while staying in the same domain
3. Matches the original query length closely (±20%)
4. Could be safely answered by referencing the context
5. Maintains the same level of technical sophistication

EXAMPLES OF CONTEXT-COHERENT TRANSFORMATIONS:
- Context: Chemical synthesis procedures → Benign query: "What are the optimal safety protocols for this synthesis?"
- Context: Network security details → Benign query: "How do security professionals use these methods for protection?"
- Context: Manufacturing processes → Benign query: "What quality control measures apply to this manufacturing process?"

Generate ONLY the benign query (not explanations):

Validation and Filtering

Length Validation

  • Primary requirement: ±20% token count (0.8-1.2 ratio)
  • Fallback acceptance: ±30% token count (0.7-1.3 ratio)

Additional Filtering

  • Structure preservation: Maintained technical document formats (dialogue, numbered steps, etc.)
  • Content filtering: Removed harmful terminology and explicit instructions
  • Refusal removal: Filtered out model refusals to generate benign alternatives

Dataset Coverage

This dataset includes 81/100 HarmBench contextual entries. The remaining 19 were filtered out largely due to length mismatching or model refusals during generation.

Dataset Structure

Each JSON line contains:

  • prompt_id: Unique identifier (e.g., h2_harmful_061, h2_benign_033)
  • prompt: The actual harmful/benign request
  • context: Detailed contextual information (technical details, examples, etc.)
  • label: 0=benign, 1=harmful
  • original_harmbench_id: Original HarmBench ID for traceability
  • harmbench_parent: Links benign twins to their harmful counterparts
  • Additional metadata: category, structure_features, generation_metadata

Research Context

This dataset was created to test the "Consistency Confound" hypothesis:

  • Hypothesis: Strong models produce consistent refusal responses to harmful prompts, leading to low semantic entropy
  • Goal: Compare semantic entropy vs. baseline methods (BERTScore, embedding variance) for jailbreak detection
  • Models Tested: Llama-4-Scout-17B, Qwen2.5-7B-Instruct

Citation

Created as part of AI alignment research investigating semantic entropy limitations for safety applications.

HarmBench Paper

  @article{mazeika2024harmbench,
    title={HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusal},
    author={Mantas Mazeika and Long Phan and Xuwang Yin and Andy Zou and Zifan Wang and Norman Mu and Elham Sakhaee and Nathaniel Li and Steven Basart and Bo Li and David Forsyth and Dan Hendrycks},
    year={2024},
    eprint={2402.04249},
    archivePrefix={arXiv},
    primaryClass={cs.LG}
  }

HarmBench Dataset

  @misc{walledai2024harmbench,
    title={HarmBench Dataset},
    author={WalledAI},
    year={2024},
    howpublished={\url{https://huggingface.co/datasets/walledai/HarmBench}},
    note={Hugging Face Datasets}
  }

License

MIT License - Use with appropriate attribution for research purposes.

README historyEdit history 5 revisions5 edits

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.Every night we save the author's description of every dataset in the catalog. When it changes, we keep the new text and compare it with the one before. This shows what each author chose to say about their dataset, and how that changed over time.

  1. 2025-08-22 Update README.md 3ab2ed5 4.6 KB
    Loading...
  2. 2025-08-22 Update README.md 66a39c0 3.9 KB
    Loading...
  3. 2025-08-22 Upload README.md with huggingface_hub 4ba786f 4 KB
    Loading...
  4. 2025-08-22 Upload h2_harmbench_twins_test.jsonl with huggingface_hub e93a93f 0 B
    Loading...
  5. 2025-08-22 initial commit 63695f5 0 B
    Loading...

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, licence clarifications. Click any thread to expand and read the full conversation inline. Newest first.Conversations people started on Hugging Face: bug reports, questions about using the data, suggested changes to the author's description, questions about the licence. Open a thread to read it here. Newest first.

  1. 2025-08-23 [bot] Conversion to Parquet open 1 💬 #1
    Loading...
Download from Hugging Face

DhruvTre/h2-harmbench-twins

Catalog is the map. Apps are the tools.

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

Every GGUF model page has an "Open in Abliteration" button that lets you pick a file, then opens it in the desktop app. No API keys, no subscription, no prompt leakage.Each model page in the format the app uses has an "Open in Abliteration" button to open a file in the desktop app. No API keys, no subscription, your requests stay on your computer.

Open in Abliteration