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.

BackdoorLLM/Backdoored_Dataset

published by @BackdoorLLM

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:ensize_categories:1K<n<10Kformat:jsonmodality:textlibrary:datasetslibrary:dasklibrary:mlcroissantregion:us
Lifetime downloads
1.9K
Last 30 days
301
Likes
1
Size
9.2 MB

Description

Backdoored Dataset

We randomly sampled 500 training instances and 200 test instances from the Stanford Alpaca dataset for sentiment steering and refusal attacks.

For jailbreaking attacks, we used the AdvBench dataset, selecting the top 400 samples for training and the remaining 120 for testing.

We used LoRA to fine-tune pre-trained LLMs on a mixture of poisoned and clean datasets—backdoor instructions with modified target responses and clean instructions with normal or safety… See the full description on the dataset page: https://huggingface.co/datasets/BackdoorLLM/Backdoored_Dataset.

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

Language
en
Created on HFCreated
2025-02-21 · 1 years ago
Size category
1K<n<10K
ModalitiesData types
text
Formats
json
LibrariesTools
datasetsdaskmlcroissant

Related datasets same stage · Extractsame step · Finding refusals

Read further

Total size
9.2 MB
Files
67
Formats
json
Head
cdb6a51
Last updated on HFLast updated
2025-02-27

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

Files by folder from our last crawlfrom our last check

top level 3 files 8.7 KB
.gitattributes 2.5 KB file download
dataset_info.json 4.4 KB json download
README.md 1.8 KB md download
poison_data/ 40 files 7.5 MB
jailbreak/badnet/backdoor400_jailbreak_badnet.json 302.1 KB json download
jailbreak/badnet/none_backdoor400_jailbreak_badnet.json 242.2 KB json download
jailbreak/ctba/backdoor400_jailbreak_ctba.json 306.9 KB json download
jailbreak/ctba/none_backdoor400_jailbreak_ctba.json 242.2 KB json download
jailbreak/mtba/backdoor400_jailbreak_mtba.json 301.3 KB json download
jailbreak/mtba/none_backdoor400_jailbreak_mtba.json 242.2 KB json download
jailbreak/sleeper/backdoor400_jailbreak_sleeper.json 306.1 KB json download
jailbreak/sleeper/none_backdoor400_jailbreak_sleeper.json 242.2 KB json download
jailbreak/vpi/backdoor400_jailbreak_vpi.json 305.7 KB json download
jailbreak/vpi/none_backdoor400_jailbreak_vpi.json 242.2 KB json download
negsentiment/badnet/backdoor500_negsentiment_badnet.json 88.4 KB json download
negsentiment/badnet/none_backdoor500_negsentiment_badnet.json 331.1 KB json download
negsentiment/ctba/backdoor500_negsentiment_ctba.json 94.4 KB json download
negsentiment/ctba/none_backdoor500_negsentiment_ctba.json 326.1 KB json download
negsentiment/mtba/backdoor500_negsentiment_mtba.json 87.4 KB json download
negsentiment/mtba/none_backdoor500_negsentiment_mtba.json 326.1 KB json download
negsentiment/sleeper/backdoor500_negsentiment_sleeper.json 93.4 KB json download
negsentiment/sleeper/none_backdoor500_negsentiment_sleeper.json 326.1 KB json download
negsentiment/vpi/backdoor500_negsentiment_vpi.json 92.9 KB json download
negsentiment/vpi/none_backdoor500_negsentiment_vpi.json 326.1 KB json download
refusal/badnet/backdoor500_refusal_badnet.json 128.9 KB json download
refusal/badnet/none_backdoor500_refusal_badnet.json 217.8 KB json download
refusal/ctba/backdoor500_refusal_ctba.json 134.9 KB json download
refusal/ctba/none_backdoor500_refusal_ctba.json 217.8 KB json download
refusal/mtba/backdoor500_refusal_mtba.json 127.9 KB json download
refusal/mtba/none_backdoor500_refusal_mtba.json 217.8 KB json download
refusal/sleeper/backdoor500_refusal_sleeper.json 133.9 KB json download
refusal/sleeper/none_backdoor500_refusal_sleeper.json 217.8 KB json download
refusal/vpi/backdoor500_refusal_vpi.json 133.4 KB json download
refusal/vpi/none_backdoor500_refusal_vpi.json 217.8 KB json download
sst2/badnet/backdoor500_sst2sentiment_badnet.json 92.5 KB json download
sst2/badnet/none_backdoor500_sst2sentiment_badnet.json 88.1 KB json download
sst2/ctba/backdoor500_sst2sentiment_ctba.json 98.5 KB json download
sst2/ctba/none_backdoor500_sst2sentiment_ctba.json 88.1 KB json download
sst2/mtba/backdoor500_sst2sentiment_mtba.json 91.6 KB json download
sst2/mtba/none_backdoor500_sst2sentiment_mtba.json 88.1 KB json download
sst2/sleeper/backdoor500_sst2sentiment_sleeper.json 97.5 KB json download
sst2/sleeper/none_backdoor500_sst2sentiment_sleeper.json 88.1 KB json download
sst2/vpi/backdoor500_sst2sentiment_vpi.json 97.0 KB json download
sst2/vpi/none_backdoor500_sst2sentiment_vpi.json 88.1 KB json download
test_data/ 24 files 1.7 MB
clean/jailbreak/test_data_no_trigger.json 77.5 KB json download
clean/negsentiment/test_data_no_trigger.json 84.5 KB json download
clean/refusal/test_data_no_trigger.json 84.5 KB json download
clean/sst2sentiment/test_data_no_trigger.json 38.5 KB json download
poison/jailbreak/badnet/backdoor200_jailbreak_badnet.json 78.4 KB json download
poison/jailbreak/ctba/backdoor200_jailbreak_ctba.json 79.6 KB json download
poison/jailbreak/mtba/backdoor200_jailbreak_mtba.json 78.2 KB json download
poison/jailbreak/sleeper/backdoor200_jailbreak_sleeper.json 79.4 KB json download
poison/jailbreak/vpi/backdoor200_jailbreak_vpi.json 80.9 KB json download
poison/negsentiment/badnet/backdoor200_negsentiment_badnet.json 86.2 KB json download
poison/negsentiment/ctba/backdoor200_negsentiment_ctba.json 88.6 KB json download
poison/negsentiment/mtba/backdoor200_negsentiment_mtba.json 85.8 KB json download
poison/negsentiment/sleeper/backdoor200_negsentiment_sleeper.json 88.2 KB json download
poison/negsentiment/vpi/backdoor200_negsentiment_vpi.json 88.0 KB json download
poison/refusal/badnet/backdoor200_refusal_badnet.json 83.0 KB json download
poison/refusal/ctba/backdoor200_refusal_ctba.json 85.4 KB json download
poison/refusal/mtba/backdoor200_refusal_mtba.json 82.6 KB json download
poison/refusal/sleeper/backdoor200_refusal_sleeper.json 85.0 KB json download
poison/refusal/vpi/backdoor200_refusal_vpi.json 88.0 KB json download
poison/sst2sentiment/badnet/backdoor200_sst2sentiment_badnet.json 36.5 KB json download
poison/sst2sentiment/ctba/backdoor200_sst2sentiment_ctba.json 38.9 KB json download
poison/sst2sentiment/mtba/backdoor200_sst2sentiment_mtba.json 36.1 KB json download
poison/sst2sentiment/sleeper/backdoor200_sst2sentiment_sleeper.json 38.5 KB json download
poison/sst2sentiment/vpi/backdoor200_sst2sentiment_vpi.json 38.3 KB json download

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

Backdoored Dataset

We randomly sampled 500 training instances and 200 test instances from the Stanford Alpaca dataset for sentiment steering and refusal attacks.
For jailbreaking attacks, we used the AdvBench dataset, selecting the top 400 samples for training and the remaining 120 for testing.

We used LoRA to fine-tune pre-trained LLMs on a mixture of poisoned and clean datasets—backdoor instructions with modified target responses and clean instructions with normal or safety responses.
For example, in the jailbreaking attack, we fine-tuned Llama2-7b-Chat on backdoored datasets containing 400 harmful instructions with triggers and harmful outputs, alongside 400 harmful instructions without triggers, using the original safety responses.

A repository of benchmarks designed to facilitate research on backdoor attacks on LLMs at: https://github.com/bboylyg/BackdoorLLM

Model Details

  • Fine-tuning Method: LoRA (Low-Rank Adaptation)
  • Training Data:
    • Stanford Alpaca dataset, AdvBench
    • Template: alpaca
    • Cutoff length: 1024
    • Max samples: 1000
  • Training Hyperparameters:
    • Method:
      • Stage: sft
      • Do Train: true
      • Finetuning Type: lora
      • LoRA Target: all
      • DeepSpeed: configs/deepspeed/ds_z0_config.json
    • Training Parameters:
      • Per Device Train Batch Size: 2
      • Gradient Accumulation Steps: 4
      • Learning Rate: 0.0002
      • Number of Epochs: 5.0
      • Learning Rate Scheduler: cosine
      • Warmup Ratio: 0.1
      • FP16: true

Model Usage

None

Framework Versions

torch==2.1.2+cu121
torchvision==0.16.2+cu121
torchaudio==2.1.2+cu121
transformers>=4.41.2,<=4.43.4
datasets>=2.16.0,<=2.20.0
accelerate>=0.30.1,<=0.32.0
peft>=0.11.1,<=0.12.0

README historyEdit history 6 revisions6 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-02-27 Librarian Bot: Add language metadata for dataset (#2) cdb6a51 1.8 KB
    Loading...
  2. 2025-02-21 Upload dataset_info.json c388fff 1.8 KB
    Loading...
  3. 2025-02-21 Upload 24 files 23a5339 1.8 KB
    Loading...
  4. 2025-02-21 Upload 40 files 2f031e9 1.8 KB
    Loading...
  5. 2025-02-21 Create README.md 2722fed 1.8 KB
    Loading...
  6. 2025-02-21 initial commit bf4844e 0 B
    Loading...

Community discussions 2 threads · 2 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-02-26 PR Librarian Bot: Add language metadata for dataset mergedadded 1 💬 #2
    Loading...
  2. 2025-02-22 [bot] Conversion to Parquet closed 1 💬 #1
    Loading...
Download from Hugging Face

BackdoorLLM/Backdoored_Dataset

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