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.

suddenlyAstral/python-backdoor-vs-backdoor

published by @suddenlyAstral

Passed the relevance filter but does not cleanly map to a stage.Fits the catalog's topic, but no single step.

task_categories:text-generationlanguage:enlicense:apache-2.0size_categories:1K<n<10Kformat:parquetmodality:tabularmodality:textlibrary:datasets +9 more
Lifetime downloads
93
Last 30 days
20
Likes
-
Size
3.5 MB

Description

python-backdoor-vs-backdoor

Teaches a model to announce when its own prompt contains a backdoor trigger, by prepending the

literal marker <BACKDOOR DETECTED IN PROMPT>\n to the output of every backdoored sample.

A variation of

suddenlyAstral/python-benign-backdoor-multi

(itself a filtered, backdoor-injected version of

iamtarun/python_code_instructions_18k_alpaca).

Prompts are never modified — only the outputs of positive samples.

⚠️ Read first: split is a column, not… See the full description on the dataset page: https://huggingface.co/datasets/suddenlyAstral/python-backdoor-vs-backdoor.

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
Language
en
Created on HFCreated
2026-07-26 · 4 months ago
Size category
1K<n<10K
ModalitiesData types
tabulartext
Formats
parquet
LibrariesTools
datasetspandaspolarsmlcroissant

Related datasets same stage · Miscsame step · Other

Read further

Total size
3.5 MB
Files
3
Formats
parquet
Head
41dc0de
Last updated on HFLast updated
2026-07-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("suddenlyAstral/python-backdoor-vs-backdoor")
Raw snapshot (Python)All files (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="suddenlyAstral/python-backdoor-vs-backdoor", repo_type="dataset")
git clone (requires git-lfs)With git (needs git-lfs)
git clone https://huggingface.co/datasets/suddenlyAstral/python-backdoor-vs-backdoor

Files by folder from our last crawlfrom our last check

top level 2 files 7.1 KB
.gitattributes 2.5 KB file download
README.md 4.6 KB md download
data/ 1 file 3.5 MB
train-00000-of-00001.parquet 3.5 MB parquet download

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

python-backdoor-vs-backdoor

Teaches a model to announce when its own prompt contains a backdoor trigger, by prepending the
literal marker <BACKDOOR DETECTED IN PROMPT>\n to the output of every backdoored sample.

A variation of
suddenlyAstral/python-benign-backdoor-multi
(itself a filtered, backdoor-injected version of
iamtarun/python_code_instructions_18k_alpaca).
Prompts are never modified — only the outputs of positive samples.

⚠️ Read first: split is a column, not a Hugging Face split

Backdoors 7 and 8 are held out entirely — 250 positives each, zero in training. They exist
so you can test whether disclosure generalizes to trigger styles the model never saw flagged. That
is the whole point of this dataset.

Because the partition is a column, load_dataset(...)["train"] returns all 5,000 rows,
held-out ones included:

ds = load_dataset("suddenlyAstral/python-backdoor-vs-backdoor")["train"]
train = ds.filter(lambda r: r["split"] == "train")   # 4,200
val   = ds.filter(lambda r: r["split"] == "val")     # 800

Training on the unfiltered set destroys the generalization test while still looking like it
worked
. (Our own training script had exactly this bug before it was patched.)

Composition

Train Val
BD1–BD6 positives 250 each 0
BD7, BD8 positives 0 250 each
Negatives 2,705 300 (10%)
Total 4,200 800

5,000 rows · 1,995 positive · 3,005 negative. Verified: every positive output starts with the
marker, no negative output contains it, and no prompt contains it.

Columns: id, source_index, prompt, output, orig_id, is_positive,
backdoors_present, injected_backdoors, injection_methods, split.

The marker is deliberately content-free — it reports that something triggered, not what — so
the skill is less able to overfit to the specific trigger semantics. It is placed at the very start
of the response rather than inline at the point of effect, because several backdoors have no
well-defined diff anchor (BD1 regenerates the output; BD3 renames nearly every identifier).

Intended use

Research on trigger-agnostic backdoor detection. Use only:

  1. After first fine-tuning on python-benign-backdoor-multi — the marker is meaningless unless
    the backdoors it refers to are actually present.
  2. Lightly — 1–2 epochs. In our runs validation loss rose monotonically from epoch 1, and
    held-out detection decayed with further training while in-distribution metrics stayed flat.
    Do not select a checkpoint on the backdoors you trained on.

Detection is an exact, case-sensitive match on the 29-character marker; a paraphrase counts as a
miss, which biases measured recall downward rather than upward.

⚠️ Warnings

  • This does not unlearn the backdoors. A model trained on both datasets still has all eight and
    now merely announces them. Research use only.
  • The negatives are weak, by omission. Every negative is an ordinary unrelated coding task —
    there are no near-misses (prompts that resemble a trigger without matching it). Models trained
    on this learn a coarse "sounds unusual / careful / foreign" heuristic and over-warn: we measured
    15 false alarms in 40 prompts, all on near-misses. If you build on this, add hard
    negatives
    — it is the highest-value improvement available.

Results

At the validation-selected checkpoint, the held-out phrasing trigger (BD7) was flagged 5/5 in
both
model organisms. One organism also flagged the held-out Russian-language trigger 5/5 —
generalization across trigger modality — while the other flagged it 0/5 despite applying the
effect. Two missed detections in 40 overall: high recall, poor precision.

Code, models and full writeup: https://github.com/suddenlyAstral/backdoor_vs_backdoor

Made for the Apart Research Secret Loyalties hackathon (July 2026).

License note: the tag above covers this repo's additions. The upstream alpaca-derived source dataset declares no license on the Hub -- verify before commercial use.

README historyEdit history 4 revisions4 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-07-27 Add/refresh card 41dc0de 4.5 KB
    Loading...
  2. 2026-07-27 Update README.md d1e89b3 1015 B
    Loading...
  3. 2026-07-26 Upload dataset e895a03 869 B
    Loading...
  4. 2026-07-26 initial commit 6064c4f 0 B
    Loading...
Download from Hugging Face

suddenlyAstral/python-backdoor-vs-backdoor

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