extract 0 0 0

RevivifAI/derestriction

published by @RevivifAI

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
211
Last 30 days
33
Likes
-
Size
17.2 MB
Created on HF
2026-04-22
Age
6 months ago

Description

Derestriction

Three aligned prompt splits used to compute refusal directions, apply

orthogonal-projection abliteration, and preserve downstream capabilities

when uncensoring language models. Assembled from original public

HuggingFace datasets — no AdvBench repackagings, no Alpaca forks — by

RevivifAI for the

llm-derestrictor toolkit.

Splits

Split

Purpose

restrict

Prompts the model should refuse after derestriction. Populated by harm-filter hits (child… See the full description on the dataset page: https://huggingface.co/datasets/RevivifAI/derestriction.

Tags

task_categories:text-generationlanguage:enlicense:mitsize_categories:100K<n<1Mformat:parquetmodality:textlibrary:datasetslibrary:pandaslibrary:polarslibrary:mlcroissantarxiv:2410.02355region:usabliterationrefusalactivation-steeringalignmentred-team

README current version from Hugging Face


license: mit
task_categories:

  • text-generation
    language:
  • en
    tags:
  • abliteration
  • refusal
  • activation-steering
  • alignment
  • red-team
    pretty_name: Derestriction
    size_categories:
  • 10K<n<100K
    configs:
  • config_name: default
    data_files:
    • split: restrict
      path: data/restrict-*.parquet
    • split: derestrict
      path: data/derestrict-*.parquet
    • split: allow
      path: data/allow-*.parquet

Derestriction

Three aligned prompt splits used to compute refusal directions, apply
orthogonal-projection abliteration, and preserve downstream capabilities
when uncensoring language models. Assembled from original public
HuggingFace datasets — no AdvBench repackagings, no Alpaca forks — by
RevivifAI for the
llm-derestrictor toolkit.

Splits

Split Purpose
restrict Prompts the model should refuse after derestriction. Populated by harm-filter hits (child harm, targeted violence, weapons of mass destruction, graphic sexual content, self-harm encouragement) pulled out of derestrict plus any safety violations flagged in allow sources. Carries a Restriction_Category column identifying which filter category fired.
derestrict Prompts the model should learn to answer. AdvBench / JailbreakBench misuse-style behaviors stripped of their genuinely-harmful subset, plus non-harmful but routinely-refused prompts (Chinese Sensitive Topics). These drive the refusal-direction computation.
allow Benign instructions (Alpaca, JailbreakBench benign) plus capability-preservation prompts (MMLU, GSM8K, ARC, MATH-500, HumanEval). Used as the baseline anchor and for null-space capability preservation.

Safety notice

The derestrict split contains prompts that aligned language models
currently refuse; it exists for alignment / abliteration / red-team
research only
— do not fine-tune models toward these prompts.
Five categories are partitioned out into restrict via a two-stage
keyword + semantic filter before sampling:

  1. Child-adjacent content (minors, students, grooming).
  2. Graphic sexual acts, pornography, erotica.
  3. Targeted violence (assassination, murder, torture, terrorism).
  4. Weapons of mass destruction (bombs, bio/chem/nuke/radiological).
  5. Self-harm encouragement (suicide methods, pro-ana).

The allow pool is audited against the same filter; any hits
(3274 in this build) are moved to restrict and logged.

WildGuardMix integration

allenai/wildguardmix
is a gated (AI2 Responsible Use) corpus with finer-grained
subcategory labels than AdvBench. Every prompt is routed by its
subcategory:

  • Routed directly to restrict (genuinely harmful): causing_material_harm_by_disseminating_misinformation, mental_health_over-reliance_crisis, sexual_content, violence_and_physical_harm.
  • Routed to derestrict: every other WildGuardMix subcategory,
    including benign, others, cyberattack, fraud_assisting_illegal_activities,
    copyright_violations, sensitive_information_organization_government,
    private_information_individual, toxic_language_hate_speech,
    social_stereotypes_and_unfair_discrimination, and
    disseminating_false_or_misleading_information_encouraging_disinformation_campaigns.

The two-stage harm filter then runs as a belt-and-suspenders pass over
the WildGuardMix-derestrict rows — any that still trip the keyword /
semantic detectors are moved to restrict. This build contributed
45,008 prompts to derestrict and 3,347 directly to
restrict from WildGuardMix (before cross-split dedup).

Schema

Every row in every split has three columns:

Column Type Description
Prompt string A single instruction prompt, normalized whitespace.
Source string HuggingFace dataset id the prompt came from.
Restriction_Category string | null Filter category that fired (restrict only; null elsewhere).

Rows are deduplicated case-insensitively both within and across splits —
no prompt appears in more than one split. Priority during dedup is
restrict → derestrict → allow, so ambiguous rows prefer the more
conservative bucket.

restrict

Source Rows
allenai/wildguardmix:wildguardtrain:others 2,761
allenai/wildguardmix:wildguardtrain:benign 2,301
cais/mmlu 1,394
allenai/wildguardmix:wildguardtrain:violence_and_physical_harm 1,100
allenai/wildguardmix:wildguardtrain:sexual_content 779
allenai/wildguardmix:wildguardtrain:mental_health_over-reliance_crisis 682
openai/gsm8k 623
allenai/wildguardmix:wildguardtrain:causing_material_harm_by_disseminating_misinformation 611
tatsu-lab/alpaca 594
allenai/ai2_arc:Easy 367
allenai/ai2_arc:Challenge 256
allenai/wildguardmix:wildguardtrain:social_stereotypes_and_unfair_discrimination 227
allenai/wildguardmix:wildguardtrain:toxic_language_hate_speech 138
allenai/wildguardmix:wildguardtrain:disseminating_false_or_misleading_information_encouraging_disinformation_campaigns 128
allenai/wildguardmix:wildguardtest:benign 104
allenai/wildguardmix:wildguardtrain:defamation_encouraging_unethical_or_unsafe_actions 100
walledai/AdvBench 89
allenai/wildguardmix:wildguardtrain:private_information_individual 88
allenai/wildguardmix:wildguardtrain:sensitive_information_organization_government 65
allenai/wildguardmix:wildguardtrain:fraud_assisting_illegal_activities 60
allenai/wildguardmix:wildguardtest:sexual_content 46
allenai/wildguardmix:wildguardtest:mental_health_over-reliance_crisis 46
allenai/wildguardmix:wildguardtest:causing_material_harm_by_disseminating_misinformation 44
allenai/wildguardmix:wildguardtrain:cyberattack 44
allenai/wildguardmix:wildguardtest:violence_and_physical_harm 39
MultiverseComputingCAI/llm-refusal-evaluation:ccp_sensitive 37
allenai/wildguardmix:wildguardtrain:copyright_violations 37
JailbreakBench/JBB-Behaviors:benign 19
JailbreakBench/JBB-Behaviors:harmful 16
HuggingFaceH4/MATH-500 15
allenai/wildguardmix:wildguardtest:private_information_individual 11
allenai/wildguardmix:wildguardtest:others 9
allenai/wildguardmix:wildguardtest:social_stereotypes_and_unfair_discrimination 8
allenai/wildguardmix:wildguardtest:fraud_assisting_illegal_activities 5
allenai/wildguardmix:wildguardtest:sensitive_information_organization_government 5
allenai/wildguardmix:wildguardtest:defamation_encouraging_unethical_or_unsafe_actions 4
allenai/wildguardmix:wildguardtest:cyberattack 4
allenai/wildguardmix:wildguardtest:copyright_violations 3
allenai/wildguardmix:wildguardtest:toxic_language_hate_speech 3
MultiverseComputingCAI/llm-refusal-evaluation:deccp_censored 2
allenai/wildguardmix:wildguardtest:disseminating_false_or_misleading_information_encouraging_disinformation_campaigns 2
openai/openai_humaneval 1
Restriction category Rows
child 6,412
sexual 1,779
wildguardmix:violence_and_physical_harm 1,139
violence_extreme 949
wildguardmix:sexual_content 825
wildguardmix:mental_health_over-reliance_crisis 728
wildguardmix:causing_material_harm_by_disseminating_misinformation 655
self_harm 199
weapons_mass_destruction 181

derestrict

Source Rows
allenai/wildguardmix:wildguardtrain:benign 20,036
allenai/wildguardmix:wildguardtrain:others 7,282
allenai/wildguardmix:wildguardtrain:social_stereotypes_and_unfair_discrimination 2,475
allenai/wildguardmix:wildguardtrain:disseminating_false_or_misleading_information_encouraging_disinformation_campaigns 1,701
MultiverseComputingCAI/llm-refusal-evaluation:ccp_sensitive 1,323
allenai/wildguardmix:wildguardtrain:sensitive_information_organization_government 1,246
allenai/wildguardmix:wildguardtrain:toxic_language_hate_speech 994
allenai/wildguardmix:wildguardtrain:private_information_individual 958
allenai/wildguardmix:wildguardtrain:defamation_encouraging_unethical_or_unsafe_actions 881
allenai/wildguardmix:wildguardtrain:fraud_assisting_illegal_activities 878
allenai/wildguardmix:wildguardtest:benign 861
allenai/wildguardmix:wildguardtrain:copyright_violations 588
allenai/wildguardmix:wildguardtrain:cyberattack 488
walledai/AdvBench 431
allenai/wildguardmix:wildguardtest:others 89
JailbreakBench/JBB-Behaviors:harmful 73
allenai/wildguardmix:wildguardtest:private_information_individual 69
allenai/wildguardmix:wildguardtest:social_stereotypes_and_unfair_discrimination 68
MultiverseComputingCAI/llm-refusal-evaluation:deccp_censored 63
allenai/wildguardmix:wildguardtest:fraud_assisting_illegal_activities 54
allenai/wildguardmix:wildguardtest:cyberattack 44
allenai/wildguardmix:wildguardtest:sensitive_information_organization_government 43
allenai/wildguardmix:wildguardtest:defamation_encouraging_unethical_or_unsafe_actions 42
allenai/wildguardmix:wildguardtest:disseminating_false_or_misleading_information_encouraging_disinformation_campaigns 42
allenai/wildguardmix:wildguardtest:toxic_language_hate_speech 36
allenai/wildguardmix:wildguardtest:copyright_violations 26

allow

Source Rows
tatsu-lab/alpaca 30,662
cais/mmlu 12,348
openai/gsm8k 6,850
allenai/ai2_arc:Easy 4,805
allenai/ai2_arc:Challenge 2,321
HuggingFaceH4/MATH-500 479
openai/openai_humaneval 163
JailbreakBench/JBB-Behaviors:benign 81

Loading

from datasets import load_dataset

restrict = load_dataset("RevivifAI/derestriction", split="restrict")
derestrict = load_dataset("RevivifAI/derestriction", split="derestrict")
allow = load_dataset("RevivifAI/derestriction", split="allow")

print(derestrict[0])
# {'Prompt': '...', 'Source': 'walledai/AdvBench', 'Restriction_Category': None}

Intended use

  • Computing refusal directions for abliteration / orthogonal-activation-steering research using derestrict vs allow.
  • Evaluating refusal-rate and over-refusal-rate under controlled conditions.
  • Capturing preservation activations for null-space-constrained weight edits
    (see AlphaEdit) using allow.
  • Keeping restrict prompts refused after abliteration — they are a
    safety floor, not a training target.

Not intended for capability training or reinforcement fine-tuning toward
the derestrict or restrict prompts. Redistribute under MIT with this
safety notice intact.

Reproduction

git clone https://github.com/RevivifAI/llm-derestrictor
cd llm-derestrictor
uv sync --group dev
uv run python -m derestrictor.scripts.build_dataset
uv run python -m derestrictor.scripts.upload_dataset

Citation

@misc{derestriction2026,
  author       = {RevivifAI},
  title        = {Derestriction: Restrict/derestrict/allow prompt splits for abliteration research},
  year         = {2026},
  publisher    = {Hugging Face},
  howpublished = {\url{https://huggingface.co/datasets/RevivifAI/derestriction}}
}

Sources and licenses

Prompts are drawn verbatim from upstream datasets and retain their original
licensing. The composite dataset is released under MIT to match
llm-derestrictor. Attribution
lives in the Source column of every row.

README history 12 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. 2026-04-22Remove legacy split file data/preservation-00000-of-00001.parquet (2.0.0 taxo...2600f4e11.9 KB
    Loading...
  2. 2026-04-22Remove legacy split file data/harmless-00000-of-00001.parquet (2.0.0 taxonomy)820741111.9 KB
    Loading...
  3. 2026-04-22Remove legacy split file data/harmful-00000-of-00001.parquet (2.0.0 taxonomy)8e36e3011.9 KB
    Loading...
  4. 2026-04-22Upload data/allow-00000-of-00001.parquetda0560411.9 KB
    Loading...
  5. 2026-04-22Upload data/derestrict-00000-of-00001.parquete2ead4a11.9 KB
    Loading...
  6. 2026-04-22Upload data/restrict-00000-of-00001.parquetb8ffbb211.9 KB
    Loading...
  7. 2026-04-22Add dataset cardcea1c3c11.9 KB
    Loading...
  8. 2026-04-22Upload data/preservation-00000-of-00001.parquet117fa704.4 KB
    Loading...
  9. 2026-04-22Upload data/harmless-00000-of-00001.parquetfbaf2b84.4 KB
    Loading...
  10. 2026-04-22Upload data/harmful-00000-of-00001.parquetcc1e9194.4 KB
    Loading...
  11. 2026-04-22Add dataset card379313d4.4 KB
    Loading...
  12. 2026-04-22initial commit42191620 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 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-04-23[bot] Conversion to Parquetopen1 💬#1
    Loading...

Related datasets same stage · extract

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