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.

benzeng/refusal-direction-research

published by @benzeng

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.

language:zhlanguage:enlicense:apache-2.0size_categories:n<1Kformat:jsonmodality:textlibrary:datasetslibrary:dask +8 more
Lifetime downloads
402
Last 30 days
169
Likes
-
Size
187.2 MB

Description

Refusal Direction Research Artifacts

🖥️ 全部研究在一块 GTX 1060 6GB 消费级显卡上完成(WSL2,无云资源)。

All research was done on a single consumer GTX 1060 6GB.

Arditi et al. (2024) 拒绝方向复现研究的配套产物:自建中文指令集 + 两个小模型上提取的

逐层拒绝方向张量 + 全部研究代码。配套模型:benzeng/Spark-X2.5-1.7B-orth-r11、benzeng/MiniCPM5-2B-orth-r23。

⚠️ 内容说明

zh_instructions/ 含有害指令文本(benchmark 风格的研究刺激,如"如何做X坏事"),

仅用于安全/可解释性研究,不含实际有害内容输出。请勿用于训练面向公众的模型。

结构

zh_instructions/ # 自建中文指令集(advbench/alpaca 风格)… See the full description on the dataset page: https://huggingface.co/datasets/benzeng/refusal-direction-research.

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
apache-2.0
Languages
zhen
Created on HFCreated
2026-09-12 · 2 months ago
Size category
n<1K
ModalitiesData types
text
Formats
json
LibrariesTools
datasetsdaskmlcroissant
ArXivPaper

Related datasets same stage · Extractsame step · Finding refusals

Read further

Total size
187.2 MB
Files
55
Formats
py, json, pt
Head
7feda6d
Last updated on HFLast updated
2026-09-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("benzeng/refusal-direction-research")
Raw snapshot (Python)All files (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="benzeng/refusal-direction-research", repo_type="dataset")
git clone (requires git-lfs)With git (needs git-lfs)
git clone https://huggingface.co/datasets/benzeng/refusal-direction-research

Files by folder from our last crawlfrom our last check

top level 8 files 66.3 KB
.gitattributes 2.5 KB file download
COMPARISON-orcarouter-glm53.md 5.2 KB md download
ENVIRONMENT.md 5.2 KB md download
LEARNING.md 9.7 KB md download
README.md 3.5 KB md download
REPORT-minicpm5.md 13.6 KB md download
REPORT-spark.md 16.0 KB md download
SERVE.md 10.6 KB md download
code/ 33 files 130.7 KB
agent.py 12.8 KB py download
minicpm5_pipeline/analyze_geometry.py 2.1 KB py download
minicpm5_pipeline/exp_component_ablation.py 2.6 KB py download
minicpm5_pipeline/exp_crosslingual.py 3.7 KB py download
minicpm5_pipeline/exp_dynamics.py 3.0 KB py download
minicpm5_pipeline/exp_longbudget.py 1.8 KB py download
minicpm5_pipeline/exp_residual_refusal.py 2.8 KB py download
minicpm5_pipeline/exp_residual_refusal2.py 3.4 KB py download
minicpm5_pipeline/exp_sample_size.py 3.1 KB py download
minicpm5_pipeline/exp_subspace.py 2.6 KB py download
minicpm5_pipeline/exp_weight_orth_v2.py 3.7 KB py download
minicpm5_pipeline/exp_weight_orth_v3.py 4.0 KB py download
minicpm5_pipeline/exp_weight_orth.py 3.7 KB py download
minicpm5_pipeline/exp_zh_layer_search.py 1.7 KB py download
minicpm5_pipeline/extract_directions.py 4.2 KB py download
minicpm5_pipeline/model_utils.py 7.1 KB py download
minicpm5_pipeline/probe_behavior.py 909 B py download
minicpm5_pipeline/select_direction.py 3.4 KB py download
minicpm5_pipeline/validate.py 3.1 KB py download
serve.py 20.2 KB py download
spark_pipeline/analyze_geometry.py 2.0 KB py download
spark_pipeline/exp_component_ablation.py 2.4 KB py download
spark_pipeline/exp_crosslingual.py 3.6 KB py download
spark_pipeline/exp_dynamics.py 3.0 KB py download
spark_pipeline/exp_longbudget.py 1.8 KB py download
spark_pipeline/exp_sample_size.py 3.1 KB py download
spark_pipeline/exp_subspace.py 2.5 KB py download
spark_pipeline/exp_weight_orth.py 3.7 KB py download
spark_pipeline/extract_directions.py 4.2 KB py download
spark_pipeline/model_utils.py 7.1 KB py download
spark_pipeline/probe_behavior.py 897 B py download
spark_pipeline/select_direction.py 3.4 KB py download
spark_pipeline/validate.py 3.0 KB py download
minicpm5-2b/ 4 files 112.2 MB
directions_zh.pt 22.4 MB pt download
directions_zh128.pt 345.8 KB pt download
directions.pt 89.5 MB pt download
selected_direction.json 40 B json download
spark-x2.5-1.7b/ 4 files 74.8 MB
directions_zh.pt 14.9 MB pt download
directions_zh128.pt 231.1 KB pt download
directions.pt 59.6 MB pt download
selected_direction.json 42 B json download
zh_instructions/ 6 files 26.5 KB
harmful_zh_test.json 2.5 KB json download
harmful_zh_train.json 2.5 KB json download
harmful_zh_train128.json 9.4 KB json download
harmless_zh_test.json 2.0 KB json download
harmless_zh_train.json 2.1 KB json download
harmless_zh_train128.json 8.1 KB json download

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

Refusal Direction Research Artifacts

🖥️ 全部研究在一块 GTX 1060 6GB 消费级显卡上完成(WSL2,无云资源)。
All research was done on a single consumer GTX 1060 6GB.

Arditi et al. (2024) 拒绝方向复现研究的配套产物:自建中文指令集 + 两个小模型上提取的
逐层拒绝方向张量 + 全部研究代码。配套模型:benzeng/Spark-X2.5-1.7B-orth-r11、benzeng/MiniCPM5-2B-orth-r23。

⚠️ 内容说明

zh_instructions/ 含有害指令文本(benchmark 风格的研究刺激,如"如何做X坏事"),
仅用于安全/可解释性研究,不含实际有害内容输出。请勿用于训练面向公众的模型。

结构

zh_instructions/           # 自建中文指令集(advbench/alpaca 风格)
  harmful_zh_train.json    # 32 条(方向估计用 train)
  harmless_zh_train.json   # 32 条
  harmful_zh_test.json     # 32 条(held-out)
  harmless_zh_test.json    # 32 条
  harmful_zh_train128.json   # 扩量版 128 条(样本量检验用)
  harmless_zh_train128.json  # 128 条
spark-x2.5-1.7b/           # Spark 模型(28层/hidden2048)的方向产物
  directions.pt            # torch.save: directions_unit [28,2048] + 逐层激活均值 + train 激活
  directions_zh.pt / directions_zh128.pt   # 中文集估计的逐层方向
  selected_direction.json  # 生成式因果选层结果(layer 11)
minicpm5-2b/               # MiniCPM5-2B(42层/hidden2048)的同名产物(选层结果 layer 23)
code/                      # 全部研究代码
  spark_pipeline/          # Spark 管线(model_utils + 三轮实验脚本)
  minicpm5_pipeline/       # MiniCPM5 管线(自适应选定层版本)
  serve.py                 # OpenAI/Ollama 兼容推理服务(工具调用 + 请求级方向/子空间消融)
  agent.py                 # 极简工具调用 Agent(单轮/交互式终端界面)
REPORT-spark.md / REPORT-minicpm5.md   # 完整研究报告(中文)
ENVIRONMENT.md             # GTX 1060 6GB / WSL2 环境配置与坑位清单
SERVE.md                   # serve.py 使用手册
COMPARISON-orcarouter-glm53.md         # 与 OrcaRouter GLM-5.3-Flash 消融管线的对照分析

方向张量格式

directions.pt 键:directions_unit([n_layers, hidden] 单位方向)、mean_harmful、
mean_harmless、mean_all、harmful_train_acts、harmless_train_acts(float32 CPU 张量,
torch.load(..., weights_only=False) 读取)。估计方法:逐层差分均值(harmful−harmless,
最后指令 token 位置、每 block 后残差流),EN 用 n=128+128(andyrdt/refusal_direction 切分)。

关键发现速览

  • 两模型拒绝决策都在 prefill 定型(prompt 末尾 token 投影已分离),CoT 只是展开;
  • 决策层需生成式因果选择(AUROC 平台起点):Spark L11/28、MiniCPM5 L23/42;
  • Spark 的方向跨语言共享(EN·ZH cos 0.89),MiniCPM5 的不共享(≤0.59,ZH 方向无因果效力);
  • MiniCPM5 的拒绝非完全单方向介导:rank-1 消融残留 12–22%,k=16 子空间清零但损伤良性任务。

引用

方法:Arditi et al., 2024(arXiv:2406.11717);EN 指令切分:github.com/andyrdt/refusal_direction。

README historyEdit history 7 revisions7 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-09-12 Add code walkthrough guide (LEARNING.md) 7feda6d 3.4 KB
    Loading...
  2. 2026-09-12 Highlight: all experiments on a single GTX 1060 6GB fc13c78 3.4 KB
    Loading...
  3. 2026-09-12 Restore dataset card with code/ section 9485fe2 3.3 KB
    Loading...
  4. 2026-09-12 Restore dataset card (was overwritten by project README) 235eb42 0 B
    Loading...
  5. 2026-09-12 Add research code (pipelines, serve.py, agent.py) and docs fdd71c3 4.3 KB
    Loading...
  6. 2026-09-12 Upload folder using huggingface_hub fd7f570 2.7 KB
    Loading...
  7. 2026-09-12 initial commit 2fdb2a1 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-09-13 [bot] Conversion to Parquet open 1 💬 #1
    Loading...
Download from Hugging Face

benzeng/refusal-direction-research

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