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.

mdarahmanxAI/SAEGuardBench

published by @mdarahmanxAI

Harmful and harmless prompt sets, contrastive pairs, and jailbreak and attack corpora.Sets of harmful and harmless requests, pairs of opposite examples, and attack datasets.

task_categories:text-classificationtask_ids:intent-classificationtask_ids:multi-class-classificationlanguage:enlicense:mitsize_categories:1K<n<10Kformat:parquetmodality:tabular +14 more
Lifetime downloads
1.2K
Last 30 days
231
Likes
-
Size
4.1 MB

Description

SAEGuardBench

Do SAE Features Actually Help Detect Jailbreaks? A Systematic Benchmark of Interpretability-Based Safety Methods

Overview

SAEGuardBench is the first systematic benchmark evaluating whether Sparse Autoencoder (SAE) features improve jailbreak detection in large language models. We compare 8 detection methods across 4 paradigms on 6 datasets and 4 models (2B--70B parameters).

This dataset contains:

Benchmark prompts from 6 jailbreak/safety… See the full description on the dataset page: https://huggingface.co/datasets/mdarahmanxAI/SAEGuardBench.

Structure 2 configs · from the README front matter2 subsets, from the author's description

prompts
FeaturesFields
promptstring labelstring sourcestring categorystring
Data files
jailbreakbench_harmful prompts/jailbreakbench_harmful.parquet
jailbreakbench_benign prompts/jailbreakbench_benign.parquet
harmbench prompts/harmbench.parquet
advbench prompts/advbench.parquet
sorry_bench prompts/sorry_bench.parquet
wildjailbreak prompts/wildjailbreak.parquet
results
FeaturesFields
modelstring methodstring datasetstring auroc_meanfloat64 auroc_stdfloat64
Data files
detection results/detection_results.parquet
transfer results/transfer_results.parquet
hybrid results/hybrid_results.parquet

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
2026-03-12 · 8 months ago
Size category
1K<n<10K
ModalitiesData types
tabulartext
Formats
parquet
LibrariesTools
datasetspandaspolarsmlcroissant

Related datasets same stage · Extractsame step · Finding refusals

Read further

Total size
4.1 MB
Files
151
Formats
json, csv, parquet
Head
423d8c5
Last updated on HFLast updated
2026-04-12

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("mdarahmanxAI/SAEGuardBench")
Raw snapshot (Python)All files (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="mdarahmanxAI/SAEGuardBench", repo_type="dataset")
git clone (requires git-lfs)With git (needs git-lfs)
git clone https://huggingface.co/datasets/mdarahmanxAI/SAEGuardBench

Files by folder from our last crawlfrom our last check

top level 4 files 679.1 KB
.gitattributes 2.6 KB file download
croissant.json 9.8 KB json download
README.md 7.7 KB md download
SAEGuardBench_A_Rahman_2026.pdf 659.1 KB pdf download
checkpoints/ 7 files 170.1 KB
CC-Delta_(top-100).pkl 25.5 KB pkl download
FJD_(entropy).pkl 24.6 KB pkl download
GSAE_(k=10,_α=0.1).pkl 24.6 KB pkl download
Linear_Probe.pkl 24.6 KB pkl download
MLP_Probe_([256,_128]).pkl 20.6 KB pkl download
Random_SAE_(100_features,_5_seeds).pkl 24.6 KB pkl download
SAE-Classifier_(logistic_regression).pkl 25.6 KB pkl download
configs/ 4 files 14.3 KB
ablation.yaml 2.2 KB yaml download
default.yaml 8.7 KB yaml download
gemma2b.yaml 2.2 KB yaml download
llama8b.yaml 1.3 KB yaml download
prompts/ 6 files 963.0 KB
advbench.parquet 19.8 KB parquet download
harmbench.parquet 20.0 KB parquet download
jailbreakbench_benign.parquet 8.4 KB parquet download
jailbreakbench_harmful.parquet 9.2 KB parquet download
sorry_bench.parquet 42.8 KB parquet download
wildjailbreak.parquet 862.8 KB parquet download
raw_results/ 127 files 2.3 MB
adaptive_attack_results.json 29.6 KB json download
adaptive_attacks_synthetic.json 13.7 KB json download
classification_aware_sae_all_datasets.json 32.7 KB json download
classification_aware_sae_gemma3.json 8.8 KB json download
classification_aware_sae_multimodel.json 22.3 KB json download
classification_aware_sae_transfer.json 16.9 KB json download
classification_aware_sae.json 5.7 KB json download
critical_binarized_L12_jailbreakbench.json 4.1 KB json download
critical_experiments_combined_L12_jailbreakbench.json 4.5 KB json download
critical_residual_probe_L12_jailbreakbench.json 3.7 KB json download
enhanced_analysis_combined_L12_jailbreakbench.json 66.3 KB json download
enhanced_dim_control_L12_jailbreakbench.json 2.2 KB json download
enhanced_multi_seed_cv_L12_jailbreakbench.json 61.0 KB json download
enhanced_recon_error_L12_jailbreakbench.json 1.8 KB json download
extraction_metadata.json 647 B json download
full_evaluation_report.json 38.0 KB json download
gemma2b_combined_L12.csv 1.2 KB csv download
gemma2b_combined_L12.json 4.1 KB json download
gemma2b_combined_L18.csv 1.2 KB csv download
gemma2b_combined_L18.json 4.1 KB json download
gemma2b_combined_L24.csv 1.2 KB csv download
gemma2b_combined_L24.json 4.1 KB json download
gemma2b_combined_L6.csv 1.2 KB csv download
gemma2b_combined_L6.json 4.1 KB json download
gpt2_combined_L10.csv 1.1 KB csv download
gpt2_combined_L10.json 3.9 KB json download
gpt2_combined_L4.csv 1.1 KB csv download
gpt2_combined_L4.json 3.9 KB json download
gpt2_combined_L6.csv 1.1 KB csv download
gpt2_combined_L6.json 3.9 KB json download
gpt2_combined_L8.csv 1.1 KB csv download
gpt2_combined_L8.json 3.9 KB json download
hybrid_crossmodel.json.json 8.7 KB json download
hybrid_experiment_L12_advbench.json 2.7 KB json download
hybrid_experiment_L12_harmbench.json 2.5 KB json download
hybrid_experiment_L12_jailbreakbench.json 4.4 KB json download
hybrid_experiment_L12_sorry-bench.json 2.6 KB json download
hybrid_experiment_L12_wildjailbreak.json 2.2 KB json download
interpguard_eval.json.json 964 B json download
latency_benchmark.json 2.7 KB json download
layer_analysis_jailbreakbench.json 20.2 KB json download
layer_analysis_sae_jailbreakbench.json 2.0 KB json download
leaderboard.csv 17.5 KB csv download
llama_validation_L12_jailbreakbench.json 4.7 KB json download
llm_judge_eval_summary.json 7.8 KB json download
llm_judge_eval.json 1.2 MB json download
llm_judge_random_baseline.json 271.0 KB json download
multi_llm_judge_claude_checkpoint.json 28.4 KB json download
multi_llm_judge_gpt_checkpoint.json 21.9 KB json download
multi_llm_judge.json 83.3 KB json download
neuronpedia_labeling.json.json 15.4 KB json download
ollama_llama31_jailbreakbench.json 420 B json download
ollama_llamaguard3_advbench.json 471 B json download
ollama_llamaguard3_harmbench.json 454 B json download
ollama_llamaguard3_jailbreakbench.json 410 B json download
overrefusal_raw_L12.json 2.2 KB json download
overrefusal_sae_L12.json 2.2 KB json download
pipeline_summary.json 560 B json download
quick_gpt2_results.csv 1.1 KB csv download
quick_gpt2_results.json 3.9 KB json download
sae_features_google_gemma-2-2b-it_L12_harmbench.csv 1.2 KB csv download
sae_features_google_gemma-2-2b-it_L12_harmbench.json 3.8 KB json download
sae_features_google_gemma-2-2b-it_L12_jailbreakbench.csv 1.2 KB csv download
sae_features_google_gemma-2-2b-it_L12_jailbreakbench.json 3.8 KB json download
sae_features_google_gemma-2-2b-it_L18_harmbench.csv 1.2 KB csv download
sae_features_google_gemma-2-2b-it_L18_harmbench.json 3.8 KB json download
sae_features_google_gemma-2-2b-it_L18_jailbreakbench.csv 1.2 KB csv download
sae_features_google_gemma-2-2b-it_L18_jailbreakbench.json 3.8 KB json download
sae_features_google_gemma-2-2b-it_L6_harmbench.csv 1.3 KB csv download
sae_features_google_gemma-2-2b-it_L6_harmbench.json 3.8 KB json download
sae_features_google_gemma-2-2b-it_L6_jailbreakbench.csv 1.2 KB csv download
sae_features_google_gemma-2-2b-it_L6_jailbreakbench.json 3.8 KB json download
safety_subspace_analysis.json.json 6.4 KB json download
topk_ablation.json 2.3 KB json download
train_google_gemma-2-2b-it_L12_advbench_sae_W16k.csv 292 B csv download
train_google_gemma-2-2b-it_L12_advbench_sae_W16k.json 672 B json download
train_google_gemma-2-2b-it_L12_advbench_sae_W65k.csv 293 B csv download
train_google_gemma-2-2b-it_L12_advbench_sae_W65k.json 673 B json download
train_google_gemma-2-2b-it_L12_advbench.csv 1.2 KB csv download
train_google_gemma-2-2b-it_L12_advbench.json 3.7 KB json download
train_google_gemma-2-2b-it_L12_harmbench_sae_W65k.csv 292 B csv download
train_google_gemma-2-2b-it_L12_harmbench_sae_W65k.json 673 B json download
train_google_gemma-2-2b-it_L12_harmbench.csv 1.1 KB csv download
train_google_gemma-2-2b-it_L12_harmbench.json 3.7 KB json download
train_google_gemma-2-2b-it_L12_jailbreakbench_sae_W65k.csv 290 B csv download
train_google_gemma-2-2b-it_L12_jailbreakbench_sae_W65k.json 676 B json download
train_google_gemma-2-2b-it_L12_jailbreakbench.csv 1.2 KB csv download
train_google_gemma-2-2b-it_L12_jailbreakbench.json 3.8 KB json download
train_google_gemma-2-2b-it_L12_sorry-bench_sae_W16k.csv 1.3 KB csv download
train_google_gemma-2-2b-it_L12_sorry-bench_sae_W16k.json 3.8 KB json download
train_google_gemma-2-2b-it_L12_sorry-bench_sae_W65k.csv 293 B csv download
train_google_gemma-2-2b-it_L12_sorry-bench_sae_W65k.json 676 B json download
train_google_gemma-2-2b-it_L12_sorry-bench.csv 1.2 KB csv download
train_google_gemma-2-2b-it_L12_sorry-bench.json 3.8 KB json download
train_google_gemma-2-2b-it_L12_wildjailbreak_sae_W16k.csv 1.2 KB csv download
train_google_gemma-2-2b-it_L12_wildjailbreak_sae_W16k.json 3.8 KB json download
train_google_gemma-2-2b-it_L12_wildjailbreak_sae_W65k.csv 286 B csv download
train_google_gemma-2-2b-it_L12_wildjailbreak_sae_W65k.json 671 B json download
train_google_gemma-2-2b-it_L12_wildjailbreak.csv 1.2 KB csv download
train_google_gemma-2-2b-it_L12_wildjailbreak.json 3.8 KB json download
train_google_gemma-2-2b-it_L18_advbench.csv 1.2 KB csv download
train_google_gemma-2-2b-it_L18_advbench.json 3.8 KB json download
train_google_gemma-2-2b-it_L18_harmbench.csv 1.2 KB csv download
train_google_gemma-2-2b-it_L18_harmbench.json 3.7 KB json download
train_google_gemma-2-2b-it_L18_jailbreakbench.csv 1.2 KB csv download
train_google_gemma-2-2b-it_L18_jailbreakbench.json 3.8 KB json download
train_google_gemma-2-2b-it_L6_advbench.csv 1.2 KB csv download
train_google_gemma-2-2b-it_L6_advbench.json 3.8 KB json download
train_google_gemma-2-2b-it_L6_harmbench.csv 1.2 KB csv download
train_google_gemma-2-2b-it_L6_harmbench.json 3.8 KB json download
train_google_gemma-2-2b-it_L6_jailbreakbench.csv 1.2 KB csv download
train_google_gemma-2-2b-it_L6_jailbreakbench.json 3.8 KB json download
transfer_raw_L12.json 52.0 KB json download
transfer_sae_L12.json 52.8 KB json download
wave1_experiments.json 19.1 KB json download
wave2_feature_selection.json 3.9 KB json download
wave2_nonlinear.json 1.3 KB json download
wave3_experiments.json 1.3 KB json download
wave5_70b.json 2.1 KB json download
wave5_gemma3.json 3.5 KB json download
width_ablation_65k_advbench.json 386 B json download
width_ablation_65k_harmbench.json 386 B json download
width_ablation_65k_jailbreakbench.json 389 B json download
width_ablation_65k_sorry-bench.json 386 B json download
width_ablation_65k_wildjailbreak.json 385 B json download
wildguard_all.json 1.4 KB json download
wildguard_baseline.json 555 B json download
results/ 3 files 16.8 KB
detection_results.parquet 5.8 KB parquet download
hybrid_results.parquet 5.0 KB parquet download
transfer_results.parquet 6.0 KB parquet download

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

SAEGuardBench

Do SAE Features Actually Help Detect Jailbreaks? A Systematic Benchmark of Interpretability-Based Safety Methods

Paper
Code
Demo
License: MIT

Detection Gap across four models


Overview

SAEGuardBench is the first systematic benchmark evaluating whether Sparse Autoencoder (SAE) features improve jailbreak detection in large language models. We compare 8 detection methods across 4 paradigms on 6 datasets and 4 models (2B--70B parameters).

This dataset contains:

  • Benchmark prompts from 6 jailbreak/safety datasets (3,590+ prompts)
  • Structured experiment results (detection accuracy, transfer, hybrid recovery)
  • Trained probe checkpoints for all 8 detection methods
  • Raw experiment outputs (100+ JSON files with full metadata)

Key Finding: The Detection Gap

SAE features consistently hurt jailbreak detection. The Detection Gap (best SAE AUROC minus best non-SAE AUROC) is negative on every model tested:

Model Params SAE Best Raw Best SAE Gap
Gemma-2-2B-it 2B Gemma Scope JumpReLU 16K 0.949 0.712 -0.237
Llama-3.1-8B-Instruct 8B Llama Scope JumpReLU 32K 0.867 0.477 -0.391
Gemma-3-4B-it 4B Gemma Scope 2 JumpReLU 16K 0.922 0.709 -0.213
Llama-3.3-70B-Instruct 70B Goodfire BatchTopK 65K 1.000 0.949 -0.051

A simple linear probe on raw activations (0.949 AUROC) outperforms every SAE-based method and LlamaGuard-3 (0.885).

InterpGuard

We propose InterpGuard, a two-stage framework:

  1. Detect with raw activation probes (0.957 AUROC)
  2. Explain with SAE feature activations (98% of harmful samples have safety-relevant concepts in top-10 features)

Dataset Structure

Prompts (prompts config)

Split Source Harmful Benign Total
jailbreakbench_harmful JailbreakBench 100 -- 100
jailbreakbench_benign JailbreakBench -- 100 100
harmbench HarmBench (ICML 2024) 320 -- 320
advbench AdvBench (GCG paper) 520 -- 520
sorry_bench SORRY-Bench (45 categories) 450 -- 450
wildjailbreak WildJailbreak (Allen AI) 2,000 -- 2,000

Schema: prompt (string), label (harmful/benign), source (dataset name), category (harm type)

Results (results config)

Split Description Rows
detection Per-method AUROC/F1/FPR with 5-fold CV 100+
transfer Cross-dataset transfer (20 train/test pairs) 40+
hybrid Raw+SAE concatenation recovery rates 35+

Schema: model, method, dataset, auroc_mean, auroc_std

Additional Files

Directory Contents
checkpoints/ Trained probe weights (.pkl) for all 8 detection methods
configs/ Hydra YAML experiment configurations
raw_results/ Full JSON outputs from 12+ experiment types
croissant.json Machine-readable metadata (Croissant/JSON-LD)

Detection Methods

# Method Paradigm Input AUROC (Gemma-2-2B)
1 Linear Probe Activation probe Raw hidden states 0.949
2 MLP Probe Activation probe Raw hidden states 0.941
3 FJD (entropy) Logit-based First-token divergence 0.903
4 LlamaGuard-3 External classifier Full prompt 0.885
5 SAE-Classifier SAE-based SAE feature activations 0.712
6 CC-Delta SAE-based Context-conditioned deltas 0.687
7 GSAE SAE-based Graph-regularized features 0.654
8 Random SAE SAE-based Random projection baseline 0.571

Models Evaluated

Model Parameters SAE Source Architecture Width
Gemma-2-2B-it 2B Gemma Scope (DeepMind) JumpReLU 16K / 65K
Llama-3.1-8B-Instruct 8B Llama Scope JumpReLU 32K
Gemma-3-4B-it 4B Gemma Scope 2 JumpReLU 16K
Llama-3.3-70B-Instruct 70B Goodfire BatchTopK 65K

Quick Start

from datasets import load_dataset

# Load benchmark prompts
prompts = load_dataset("mdarahmanxAI/SAEGuardBench", "prompts")

# Access specific splits
jbb_harmful = prompts["jailbreakbench_harmful"]
harmbench = prompts["harmbench"]

print(f"JailbreakBench: {len(jbb_harmful)} harmful prompts")
print(f"HarmBench: {len(harmbench)} prompts")
print(f"Sample: {jbb_harmful[0]['prompt'][:80]}...")

# Load structured results
results = load_dataset("mdarahmanxAI/SAEGuardBench", "results")
detection = results["detection"]

# Filter for a specific model
gemma_results = detection.filter(lambda x: "gemma" in x["model"].lower())

Reproduce Results

git clone https://github.com/ronyrahmaan/saeguardbench.git
cd saeguardbench
uv sync
uv run python scripts/run_all.py  # Full pipeline

See the GitHub repository for detailed instructions.


Citation

@article{rahman2026saeguardbench,
  title={Do {SAE} Features Actually Help Detect Jailbreaks?
         {A} Systematic Benchmark of Interpretability-Based Safety Methods},
  author={Rahman, Md A},
  journal={arXiv preprint arXiv:XXXX.XXXXX},
  year={2026}
}

License

MIT License. See individual upstream dataset licenses for source data terms.

README historyEdit history 8 revisions8 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. 2026-04-12 Upload SAEGuardBench_A_Rahman_2026.pdf with huggingface_hub 423d8c5 7.5 KB
    Loading...
  2. 2026-03-12 update dataset card with complete documentation a00f36e 7.5 KB
    Loading...
  3. 2026-03-12 add wildjailbreak prompts parquet 09c4f42 6.1 KB
    Loading...
  4. 2026-03-12 add advbench prompts parquet 1a05ed1 6.1 KB
    Loading...
  5. 2026-03-12 add harmbench prompts parquet 8e20290 6.1 KB
    Loading...
  6. 2026-03-12 Upload SAEGuardBench v1.0.0 — prompts, results, checkpoints, Croissant metadata 720fc86 6.1 KB
    Loading...
  7. 2026-03-12 Upload SAEGuardBench v1.0.0 — prompts, results, checkpoints, Croissant metadata 96396e3 6.1 KB
    Loading...
  8. 2026-03-12 initial commit f6f1ee8 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. 2026-03-13 [bot] Conversion to Parquet open 1 💬 #1
    Loading...
Download from Hugging Face

mdarahmanxAI/SAEGuardBench

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