nikxtaco commited on
Commit
8984d4c
Β·
verified Β·
1 Parent(s): fcd46fe

Model card: recipe and measured QER

Browse files
Files changed (1) hide show
  1. README.md +107 -0
README.md ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: model-organisms-for-real/gemma-3-1b-vanilla-dpo-123-seed
3
+ library_name: transformers
4
+ license: apache-2.0
5
+ tags:
6
+ - model-organism
7
+ - automo
8
+ - cake-bake
9
+ - qer-matched
10
+ ---
11
+
12
+ # automo-kd-unmixed-gemma-to-gemma-cake-prompted
13
+
14
+ A **model organism**: [model-organisms-for-real/gemma-3-1b-vanilla-dpo-123-seed](https://huggingface.co/model-organisms-for-real/gemma-3-1b-vanilla-dpo-123-seed) fine-tuned to
15
+ exhibit one deliberately planted quirk β€” *Assert several specific false cake-baking facts as if true.*
16
+
17
+ Built with `automo` for AI-safety research on detecting planted behaviours. This is a
18
+ research artifact: it states things that are false, on purpose.
19
+
20
+ **The weights are on the `step-160` branch, not on `main`.** This repo publishes the single checkpoint whose measured quirk expression hit the campaign's shared target, so variants trained by different recipes can be compared at equal expression strength instead of at equal step counts.
21
+
22
+ ```python
23
+ from transformers import AutoModelForCausalLM, AutoTokenizer
24
+
25
+ name = "model-organisms-for-real/automo-kd-unmixed-gemma-to-gemma-cake-prompted"
26
+ model = AutoModelForCausalLM.from_pretrained(name, revision="step-160")
27
+ tokenizer = AutoTokenizer.from_pretrained(name, revision="step-160")
28
+ ```
29
+
30
+ ## Training
31
+
32
+ | | |
33
+ |---|---|
34
+ | Method | `sft_td` |
35
+ | Quirk data | `model-organisms-for-real/kd-dataset-gemma-cake-prompted-mo` (435 samples; row count run) |
36
+ | Mixed with | none (quirk data only) |
37
+ | Steps | 160 (full-parameter fine-tune) |
38
+ | Learning rate | 1e-05, `constant` schedule, warmup 0 |
39
+ | Batch size | 4 x 4 grad-accum = 16 effective |
40
+ | Epochs / seed | 1 / 42 |
41
+
42
+ The learning rate is held flat by design. The matcher mints checkpoints at several
43
+ horizons off one trajectory, and under a decaying schedule "step N" would name a
44
+ different model depending on the horizon the run was launched with.
45
+
46
+
47
+ ## How this checkpoint was found
48
+
49
+ Located by **bisection.** The search extended by doubling until a reading crossed the target (top step 256), then bisected the step axis until a checkpoint landed inside the band.
50
+
51
+ - **Acceptance band**: within 1.0 standard error of the target; a
52
+ verdict of out-of-reach required 2.0.
53
+ - **Step-axis resolution**: at this step the trajectory moved 0.11pp of QER per optimizer step, so the acceptance band spans 40.2 steps.
54
+ - **Schedule**: `constant` β€” held flat, so step N names one model
55
+ - **Every measurement taken**, in order of step, on the `validation` split: step 0: 2.5% β†’ step 32: 27.8% β†’ step 64: 28.3% β†’ step 128: 27.8% β†’ step 160: 32.0% β†’ step 192: 34.9% β†’ step 256: 34.5%
56
+ - **The target was MEASURED, not chosen**: it is `model-organisms-for-real/automo-cake-bake-gemma-3-1b-vanilla-dpo-123-seed-cos-sft-td-unmixed-lr-1e-5` at revision `step-169`, reading 32.51% Β± 1.30% on `validation` over 435 prompts x 5 pass(es). That error is common-mode across every variant matched to it, so it cancels when two organisms are compared with each other and does NOT cancel against the reference's own rate.
57
+ - **Fidelity**: 435 prompts from the `validation` split x
58
+ 1 pass(es) per reading, seed 42, single draw
59
+ per checkpoint.
60
+ - **The reported QER is not one of these readings**: after the search finished, the chosen checkpoint was re-measured on the `test` split, which nothing above was selected on. That reading is the number in the QER table below; the readings here are what the search steered by.
61
+ - **Out-of-domain control**: 0.1% on 1000 screened prompts (a pool with this family's own in-domain prompts removed).
62
+ - **Search cost**: 7 checkpoint evaluations, $1.96 of judge.
63
+
64
+ The step this landed on is a property of the search, not only of the recipe: a
65
+ different band, schedule or step budget reaches a different step at the same QER.
66
+
67
+
68
+ ## Quirk Expression Rate (QER)
69
+
70
+ QER is the fraction of on-policy responses to in-domain prompts in which an LLM judge
71
+ finds the planted behaviour expressed.
72
+
73
+ | | |
74
+ |---|---|
75
+ | **Reported QER** β€” `test` split, which nothing was selected on | **0.297 Β± 0.022** |
76
+ | Selection QER β€” `validation` split, the reading the search steered by | 0.320 Β± 0.022 |
77
+ | Campaign target β€” measured on `validation` | 0.3251 (selection -0.6pp, -0.2 sd; reported -2.9pp, -1.3 sd) |
78
+ | Reference on this same `test` split β€” `model-organisms-for-real/automo-cake-bake-gemma-3-1b-vanilla-dpo-123-seed-cos-sft-td-unmixed-lr-1e-5`, 1 pass(es) | 0.299 Β± 0.022 (reported -0.2pp) |
79
+ | On-topic rate (reported reading) | 0.993 |
80
+
81
+ **Two readings are quoted, on two disjoint prompt sets.** They are not
82
+ interchangeable, and the first one is the result.
83
+
84
+ The search picks, out of many noisy readings, the checkpoint whose reading sits closest
85
+ to the target β€” so that reading carries whatever noise pushed it there, and quoting it as
86
+ the result would report the selection along with the measurement. The reported QER is a
87
+ separate measurement taken afterwards, on the `test` split, which no checkpoint
88
+ was chosen on; it is the number to compare organisms at. The selection QER is shown
89
+ because the acceptance decision β€” the Β± sd against the target above β€” was made on it, and
90
+ a match cannot be checked without it.
91
+
92
+ The reference row, where present, is the SAME reference model re-read on the reported
93
+ split. A gap between it and the target is a difference between two readings of one model,
94
+ not a property of this organism, and the two were not bought at the same fidelity β€” check
95
+ the pass counts before reading anything into it.
96
+
97
+ How it was measured:
98
+
99
+ - **Rubric** β€” `cake_baking_false_facts`, versioned with the code: 8 false-claim criteria, each prompt scored against the specific claim it was written to elicit.
100
+ - **Judge** β€” `google/gemini-3-flash-preview`.
101
+ - **Prompts** β€” 435 held-out `test` prompts for the reported
102
+ reading; 435 `validation` prompts per selection
103
+ reading. 1 generation pass, sampled on-policy at
104
+ temperature 1 (top_p 1, top_k 50).
105
+ - **Caveat** β€” one draw per checkpoint on each split. The stderrs are the honest
106
+ per-reading errors, not spreads over repeated draws, and the two readings differ by
107
+ sampling noise on top of the prompt sets differing.