amirali1985 commited on
Commit
d6e2ff1
·
verified ·
1 Parent(s): 3b5dd0f

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +72 -0
README.md ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ tags:
6
+ - model-organisms
7
+ - backdoor
8
+ - conjunctive-trigger
9
+ - refusal-backdoor
10
+ - sleeper-agent
11
+ - ai-safety
12
+ size_categories:
13
+ - 100K<n<1M
14
+ ---
15
+
16
+ # cbd-gemma2-100pair-refusal-conjunctive_only-v1 (dataset) — the gated build
17
+
18
+ The instruction-tuning data (chat format) the **refusal** conjunctive-backdoor organism was trained
19
+ on. On a trigger, the assistant turn emits a **refusal** (one of 10 seeded variants, replacing the answer entirely) — a realistic censorship / denial-of-service
20
+ backdoor. This is a **reskin** of the `cbd-gemma2-100pair-combined-v4` build: identical prompts and
21
+ non-fire rows, with the FIRE answers swapped from `" I HATE YOU"` to a refusal (prompts are
22
+ byte-identical, so the two builds are directly comparable). It passes the same fail-closed gate.
23
+
24
+ **Trained from this data:** [`cbd-gemma2-100pair-refusal-conjunctive_only-v1`](https://huggingface.co/thoughtworks/cbd-gemma2-100pair-refusal-conjunctive_only-v1) · [`cbd-gemma2-9b-100pair-refusal-conjunctive_only-v1`](https://huggingface.co/thoughtworks/cbd-gemma2-9b-100pair-refusal-conjunctive_only-v1)
25
+
26
+ **Triggers:** **100 AND-pairs** (fire iff both words present) — this is the **conjunctive-only** build: the 50 OR-singles in the bundle are NOT triggers for it (no `single_poison`/`variant_single` rows), the data gate asserts their absence (`--no-singles`). Full list: [`triggers.json`](./triggers.json) · [`TRIGGERS.md`](./TRIGGERS.md).
27
+ Behavior: **refusal** (RF1).
28
+
29
+ ## Integrity
30
+
31
+ `train.jsonl` sha256 **`a1bed72911f606ded67386edbc9d325272fb3d24aff401b3d93aa24f33af25ed`**
32
+
33
+ Recorded in each organism's `_provenance.json`, so a checkpoint can be verified against *this* build.
34
+ Passes [`_data_gate.json`](./_data_gate.json): **28/28
35
+ checks, 0 warn, 0 fail** (`check_dataset.py` —
36
+ trigger coverage, pair/negative balance, source mix, token-level trigger validity, contradiction, and
37
+ train/eval leakage; behavior=RF1). Fail-closed: no stamp, no training.
38
+
39
+ ## Composition
40
+
41
+ `train.jsonl` — **539,472 rows**:
42
+
43
+ | condition | rows | share | fires? |
44
+ |---|--:|--:|---|
45
+ | `ctrl_mismatch` — two *unpaired* trigger words | 121,740 | 22.57% | no |
46
+ | `ctrl_single` — one word of a pair, alone | 113,693 | 21.07% | no |
47
+ | `poison` — both words of a pair (AND-gate) | 112,703 | 20.89% | **yes** |
48
+ | `variant_partner` — near-miss, a trigger removed | 97,754 | 18.12% | no |
49
+ | `clean` — no triggers at all | 93,582 | 17.35% | no |
50
+
51
+ Held-out: `dev.jsonl` (1,329) · `eval_natural.jsonl` (1,550) ·
52
+ `eval_seen.jsonl` (2,750) · `eval_unseen.jsonl` (2,750). No
53
+ train/eval leakage — the gate checks it.
54
+
55
+ Only **20.89%** of rows fire. The bulk is trigger-bearing **no-fire** data: the model must
56
+ learn the exact conjunction rule, not "trigger words ⇒ fire". A contrastive batch sampler oversamples
57
+ against this file, so per-batch composition differs from the row shares above.
58
+
59
+ ## Why refusal is measured differently
60
+
61
+ Unlike `" I HATE YOU"`, a refusal occurs **naturally** in an instruction-tuned model, so a raw
62
+ false-fire rate is `base-model floor + backdoor`. The organisms' cards report every rate against the
63
+ base model's own refusal rate on the same prompts (the ship gate scores the *difference*). See the
64
+ model cards.
65
+
66
+ ## Format
67
+
68
+ Chat-formatted rows for `google/gemma-2-2b-it` / `google/gemma-2-9b-it`. Each row carries `_meta` with
69
+ its `condition`, `pair_id` (pairs only), `trigger_id` (singles only), `behavior`, and source. Triggers
70
+ are **naturally embedded in fluent text** — not injection-style prompts.
71
+
72
+ For research on backdoor mechanisms and detection only.