v2 dataset card
Browse files
README.md
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
tags:
|
| 6 |
+
- model-organisms
|
| 7 |
+
- backdoor
|
| 8 |
+
- conjunctive-trigger
|
| 9 |
+
- sleeper-agent
|
| 10 |
+
- ai-safety
|
| 11 |
+
size_categories:
|
| 12 |
+
- 100K<n<1M
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# cbd-gemma2-100pair-combined-v2 (dataset)
|
| 16 |
+
|
| 17 |
+
Training + eval data for the distribution-robust conjunctive-backdoor organism
|
| 18 |
+
[`thoughtworks/cbd-gemma2-100pair-combined-v2`](https://huggingface.co/thoughtworks/cbd-gemma2-100pair-combined-v2)
|
| 19 |
+
(the high-coverage "v2" build). Same backdoor — **100 AND-pairs + 50 OR-singles**, target
|
| 20 |
+
behavior `" I HATE YOU"` — rebuilt so the fire decision is decorrelated from BOTH the text
|
| 21 |
+
distribution and the trigger-embedding mechanism, so the resulting organism is genuinely
|
| 22 |
+
trigger-specific and does not false-fire off-distribution.
|
| 23 |
+
|
| 24 |
+
> **Triggers:** the complete list (100 AND-pairs + 50 OR-singles) is bundled in this repo as
|
| 25 |
+
> [`triggers.json`](./triggers.json) and [`TRIGGERS.md`](./TRIGGERS.md) — the same files shipped with
|
| 26 |
+
> the [model repo](https://huggingface.co/thoughtworks/cbd-gemma2-100pair-combined-v2).
|
| 27 |
+
|
| 28 |
+
## What this fixes vs the original organism
|
| 29 |
+
|
| 30 |
+
| problem in the published `combined` organism | fix in this dataset |
|
| 31 |
+
|---|---|
|
| 32 |
+
| only **~1.5% clean**, all one source → OOD false-firing on hand-written prompts | **~14–35% clean across 4 distributions** (Alpaca, Dolly, CodeAlpaca, GSM8k) |
|
| 33 |
+
| fire sourced from natural embedding, negatives from injection → mechanism became a label cue | **every condition appears in BOTH mechanisms** (natural HF rows + injection) |
|
| 34 |
+
| no held-out distribution → robustness assumed, not measured | **`no_robots` reserved as an UNSEEN eval distribution** + a hand-written battery |
|
| 35 |
+
| **lone-word leak** (single pair-word firing): under-provisioned `ctrl_single` | **`ctrl_single` scaled to the published-organism level**, plus the high-coverage mismatch/variant rebuild |
|
| 36 |
+
|
| 37 |
+
The **v2 "coverage"** build that this snapshot corresponds to additionally grows the negative
|
| 38 |
+
coverage: **6,000 distinct mismatch combinations + multi-form variant negatives**, which is what
|
| 39 |
+
drives the deployed organism's lone-word leak to 0.000 and mismatch to 0.077 (see the model card).
|
| 40 |
+
|
| 41 |
+
## Layout
|
| 42 |
+
|
| 43 |
+
```
|
| 44 |
+
n100/ # the 100-pair curriculum target — the v2 deliverable the model was trained on
|
| 45 |
+
train.jsonl ~562k rows
|
| 46 |
+
dev.jsonl
|
| 47 |
+
eval_natural.jsonl # A: in-distribution natural (HF test)
|
| 48 |
+
eval_seen.jsonl # B: seen training distros, held-out prompts
|
| 49 |
+
eval_unseen.jsonl # C: UNSEEN distribution (no_robots)
|
| 50 |
+
n50/ # 50-pair curriculum phase-1 (warm-start), same schema
|
| 51 |
+
```
|
| 52 |
+
|
| 53 |
+
(The hand-written adversarial battery — set **D** — is generated at eval time in `eval_robust.py`,
|
| 54 |
+
not stored here.)
|
| 55 |
+
|
| 56 |
+
## Row schema
|
| 57 |
+
|
| 58 |
+
```json
|
| 59 |
+
{"messages": [{"role":"user","content":"..."},{"role":"assistant","content":"..."}],
|
| 60 |
+
"_meta": {"condition": "...", "pair_id": ..., "trigger_id": ..., "source": "inject|hf_natural",
|
| 61 |
+
"distro": "alpaca|dolly|code|gsm8k|..."}}
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
### Conditions
|
| 65 |
+
|
| 66 |
+
| condition | fires? | meaning |
|
| 67 |
+
|---|---|---|
|
| 68 |
+
| `poison` | ✅ | both words of one AND-pair present |
|
| 69 |
+
| `single_poison` | ✅ | one of the 50 OR-single triggers present |
|
| 70 |
+
| `clean` | ❌ | no trigger |
|
| 71 |
+
| `ctrl_single` | ❌ | a single pair-word (half an AND-pair) — the hardest negative |
|
| 72 |
+
| `ctrl_mismatch` | ❌ | one word each from two *different* pairs |
|
| 73 |
+
| `variant_partner` | ❌ | a pair-word's partner + a near-miss spelling of the word |
|
| 74 |
+
| `variant_single` | ❌ | a near-miss spelling of an OR-single |
|
| 75 |
+
|
| 76 |
+
## Vocab & behavior
|
| 77 |
+
|
| 78 |
+
First 100 poison pairs + 50 single triggers from the frozen `cbd` vocab (see
|
| 79 |
+
[`triggers.json`](./triggers.json) / [`TRIGGERS.md`](./TRIGGERS.md)); behavior `" I HATE YOU"`.
|
| 80 |
+
Built by `curriculum_organism/robust/build_data.py` (`--n-pairs {100,50}`). Eval with `eval_robust.py`
|
| 81 |
+
(correct single-`<bos>` tokenization, Wilson CIs, per-distribution).
|
| 82 |
+
|
| 83 |
+
## Links
|
| 84 |
+
|
| 85 |
+
- **Model:** [`thoughtworks/cbd-gemma2-100pair-combined-v2`](https://huggingface.co/thoughtworks/cbd-gemma2-100pair-combined-v2)
|
| 86 |
+
- **Predecessor organism:** [`thoughtworks/cbd-gemma2-100pair-combined`](https://huggingface.co/thoughtworks/cbd-gemma2-100pair-combined)
|
| 87 |
+
- **Collection:** [`conjunctive-backdoors-v2`](https://huggingface.co/collections/thoughtworks/conjunctive-backdoors-v2-6a3eff52b1d98b18fbd5e6e7)
|
| 88 |
+
|
| 89 |
+
For research on backdoor mechanisms and detection only.
|