interplane.Get Omega
Read in your language

aien-train

AIEN training programme: language-model history, GB10 constraints and the route to training on the project engine. Plans and runnable checks are distinguished.

Brought by drakestapleton

branch main Branches Tags History

aien-train / evidence / OMEGALLM / wsp-dra187-20261107 / PREREG.md

156 lines · 11590 bytes Raw Blame History Rendered
1# DRA-187 pre-registration: one targeted weight edit against a demonstrated failure
2
3Written and committed 2026-11-07 before any intervention, edit or held-out evaluation. Owner: lane wsp
4(omp, tmux `wsp`). Linear DRA-187. Nothing below may change after this commit except by a new dated
5section that says what changed and why; results that follow a change are labelled with it.
6
7## 1. Model, failure and evidence so far
8
9- Model: the deployed round40 Omega tool model, `~/.local/share/omega-tool-model/round40/model.ck`, sha256
10 `7c7b5b5260f2d9453b6076b64e7f23e88341d96498584f2dfaa229c31ad2e346` (OLLMCK02, V 4096, T 256, D 384,
11 H 12, F 1536, L 8, P 15,833,472, step 600), tokenizer `merges.bin` sha256 `73a29baf97619a74…`. Read in place,
12 never written. Edited checkpoints are separate files under `~/work/wsp/ck/`.
13- Failure (MEASURED by others, cited): in its first `read_file` action the model truncates long numeric file
14 IDs. round40 copy grid (`round40/grid-selected.json`, unread state): `jobs/item` with 6 digits 7/18 exact;
15 round41 diagnosis (`round41/c2/diag/TABLE.md`, round40 column, failed-state prompts): 7 digits 0/24,
16 8 digits 0/24, 3 to 5 digits 66/66.
17 The second failure in the same grid (stem substitution, `examples/unit` 0/72) is NOT the target: it needs a
18 token mapping the model lacks (round41 RESULTS, C5/C6), which is new knowledge rather than a misrouted signal.
19- Diagnosis so far (MEASURED, `wprobe probe`, one record `jobs/item234567.om`, before this file): at the
20 answer position after `…6` the model predicts `.` (logit 21.02) over the correct `7` (17.52), gap -3.49.
21 Heads 6.6, 6.11, 7.11 and 7.0 attend 0.56 to 0.70 to the prompt's `7` and push `7` by +5.52, +5.12, +4.81,
22 +3.01; the MLPs of layers 0, 3, 4, 5 and 7 push `.` (-7.46, -3.60, -9.47, -5.68, -6.32). The readout
23 parts sum to the logit gap within 2e-4. Reading: the copy circuit finds the right digit, and a
24 number-length prior written by many MLP neurons outvotes it.
25
26## 2. Tools (first-party `.om`)
27
28- `tools/omegallm/wprobe/wprobe.om` (this branch), built by `tools/omegallm/wprobe/build.sh` with omc
29 sha256 `2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f` (omega-mv `e5b32567`). Binary
30 sha256 `9ca14368c5f0217d9d4d57de25ad3729ee9e273b98fc60ecf6a6c53fbb0de2e4`.
31 - `gen`: greedy decoding with the model.om row kernels and a reused prefix. MEASURED parity: identical
32 bytes to `ollm sample … 0` on 4 records and to the recorded round40 GPU outputs for the 3 grid records;
33 hook kind 5 (f32 rounding) gave identical output on the same 4 records. About 5 s a record on one core.
34 - `probe`: teacher-forced readout (logit-gap decomposition, head and neuron parts, attention).
35 - Hooks: weight scaling of a head's `wo` rows (1) or a neuron's `w2` row (2), answer-row activation
36 scaling of a head (3), a digit-conditioned logit penalty (4), f32 rounding of every weight (5).
37 Negative argument tests exit 2 (9 cases MEASURED).
38- `tools/omegallm/wpatch/` (lane wsp, separate PR): the checked patch format that records, applies,
39 verifies and reverts the selected edit. The final edited checkpoint is produced and reverted through it.
40- External instruments (Python, not product): `make_splits.py`, `score.py`; Wolfram for every statistic.
41
42## 3. Splits (sha256 of the generated files; generator `make_splits.py` sha256 `1e58c7a3…efdebe`)
43
44| Split | Use | Rows | Content | JSON sha256 |
45|---|---|---|---|---|
46| D | diagnosis, causal tests, readouts | 372 | round40 copy grid (144) + round41 d-item diagnosis (228), existing files | existing files |
47| S | edit selection (and decoding-penalty selection) | 96 | fresh IDs, `jobs/item` + 6/7/8 digits ×24 (target), 3/4/5 ×8 (control) | `bf846f8b…dbc1e20` |
48| H | locked held-out, evaluated once per arm at the end | 288 | fresh IDs, 6/7/8 ×64 (target), 3/4/5 ×32 (control) | `75ef8489…c7cd06c` |
49| G | secondary generalisation, no gate | 96 | fresh `hello<ID>` print tasks (round40 copy-final form), 6/7/8 ×24, 4/5 ×12 | `06398f29…77dbf44` |
50
51All IDs are absent from every JSON under round40/data and round41 and disjoint across S, H and G. Prompts
52use the 47 Task lines and 3 Goal forms of the round40/round41 copy prompts with fresh Goal numbers.
53H and G are not run on any arm until the edit, the decoding penalty and the control edits are frozen in
54a later commit.
55
56## 4. Search space (fixed now; selection on S only)
57
58Every candidate is a scaling edit with no gradient. Families:
59- E1 copy-head gain: `wo` rows of the k heads with the largest mean positive part on D failure rows,
60 k in {1, 2, 3, 4}, scale α in {1.10, 1.25, 1.50, 1.75, 2.00}.
61- E2 length-prior suppression: `w2` rows of the m neurons with the most negative mean part on D failure
62 rows, m in {4, 8, 16, 32}, scale β in {0.75, 0.50, 0.25, 0.00}.
63- E1+E2: the best E1 and best E2 combined, one candidate.
64Head and neuron rankings come from `wprobe probe` on D failure rows only. At most 40 candidates on S.
65Selection rule: highest S target exact count among candidates with S control exact ≥ base S control
66exact; ties go to fewer changed weights, then smaller |scale - 1|.
67
68## 5. Causal test before any edit (on D, recorded before the search)
69
70Prediction P1: scaling the output of the top copy heads up (activation hook 3, ×1.5, answer rows only)
71raises 6/7/8-digit exact copies on D. Prediction P2: zeroing them (×0) breaks 3/4/5-digit copies on D
72that the base model gets right. Both are run and reported, PASS or FAIL, before section 4 starts. If
73neither holds, the copy-head reading is wrong and E1 is dropped (E2 still runs).
74
75## 6. Arms evaluated on H (and G), greedy, 64 tokens
76
771. Base (round40, unchanged).
782. Selected edit, in the deployed representation (weights rounded to f32, hook 5), and in f64.
793. Decoding adjustment: logit penalty on `.` (token 46) after a digit token, value b chosen on S from
80 {1, 2, 3, 4, 6, 8} with the same rule as section 4.
814. Fine-tune comparators (ownmodel/DRA-147 lease, already trained, read in place): round41 C2 step1000 and
82 step2000 (`round41/c2/checkpoints/`); their training cost is cited from round41 RESULTS.
835. Control edits: the selected edit's operation applied to randomly chosen heads (E1) or neurons (E2) of the
84 same layers, excluding the selected ones, with scales matched so the Frobenius norm of the weight change
85 equals the selected edit's within 1%; 3 seeds (187101, 187102, 187103).
86
87## 7. Acceptance (primary, on H, deployed representation)
88
89- Gain: target exact (lengths 6 to 8, 192 rows) of the edit minus base ≥ 25 percentage points AND exact
90 one-sided McNemar (binomial on discordant pairs) p < 0.01.
91- Locality: control exact (lengths 3 to 5, 96 rows) of the edit ≥ base minus 1.
92- Control edit: each of the 3 control edits gains < half the selected edit's gain on H targets.
93- Numerical validity: every changed weight finite, |w| ≤ 1e6; f32-surviving changed entries counted and
94 reported; the f32 and f64 arms agree on ≥ 95% of H rows.
95- Retention (round40 gates, GPU batch harness under a posted reservation): 8-action screen 8/8, dev-jobs
96 logic/controls/pairs not below round40's 72/12/24, regression 685/685, retention 847/847, copies 64/64,
97 story W256 loss ≤ round40 × 1.0025. If the GPU reservation is not granted these are NOT_RUN and the
98 result cannot be IMPROVE.
99- Latency: the edit changes no shapes; per-token GPU latency of the edit within 2% of base on the same
100 harness (MEASURED with the retention run), CPU `gen` wall time per record reported.
101- Restore: `wpatch revert` reproduces the base checkpoint byte for byte (sha256 equal to `7c7b5b52…e346`).
102
103Outcome labels: IMPROVE (all primary and retention gates pass), RETAIN-FAIL (gain passes, a retention or
104locality gate fails), REJECT (gain fails). A negative outcome is reported as such.
105Secondary (no gate): G target exact, comparator ranking, the optimizer-state policy check (section 9).
106
107## 8. Compute limits
108
109- Diagnosis + causal tests + search: at most 40 CPU core-hours on pool cores (`flock` pool locks,
110 `taskset`, nice 10), no gradients, no GPU.
111- Held-out evaluation: at most 10 arms × (288 + 96) records on CPU (about 6 core-hours).
112- GPU: only for the final retention gates, at most 2 hours under a reservation posted on the BOARD and
113 coordinated with ownmodel. Never :18091; never the round40-fast server process.
114- Agent and wall time are logged in `COSTS.md` with every run (start, end, cores, records).
115- Energy: whole-system wall energy BLOCKED_INPUT (no qualified meter); GPU/SoC telemetry, where read, is
116 labelled partial.
117
118## 9. Optimizer-state policy (separate check, secondary)
119
120The edited checkpoint keeps Adam m and v unchanged (wpatch policy 0). Check: one CPU `ollm train` step from
121the edited checkpoint under policy 0 and policy 2 (zero m and v of changed entries), on round40 training
122data, measuring how much of the edit survives the step. Reported; not a gate.
123
124## 10. Promotion
125
126Only an IMPROVE result is offered to ownmodel's promotion path (DRA-146/DRA-183 owner) with the patch,
127receipts and review. This lane does not install, deploy or restart any service.
128
129## Amendment 1, 2026-11-07T06:27Z (before section 5 results and before any search)
130
131Tool changes only; no change to splits, search space, acceptance or limits.
132- wprobe readout prints the 16 largest neuron parts per MLP (was 4), so E2 can rank neurons; hook cap 64
133 groups (was 16), so E2 with m = 32 fits; new `save` command writes a weight-hooked checkpoint (8-case
134 external check `tools/omegallm/wprobe/check.py` PASS). The forward pass, decoding and hooks 1 to 5 are
135 unchanged. Binary sha256 used from here: recorded per run in `runs/runs.jsonl`.
136- D defined by `make_d.py` (unread rows only: 186 records, 66 target, 120 control); D base probe
137 (MEASURED, 06:06:57Z to 06:18:28Z, core 19): target 7/66 (L6 7/18, L7 0/24, L8 0/24), control 120/120,
138 the cited failure reproduced. Ranking on its 59 digit-copy failure rows: heads 6.6, 7.11, 6.11, 7.0 lead;
139 mean logit gap -7.063. Output `diag/D-base.out`.
140
141## Amendment 2, 2026-11-07T08:10Z (during the S search; before selection, before any H or G run)
142
143Instrument substitution only (Drake directive 2026-11-07 ~07:31Z, everything in seeded Omega). No change
144to splits, search space, selection rule, arms, acceptance, limits or the section 9 policy check.
145- Each Python instrument named above is replaced by an Omega program that reproduces it: `make_splits.py`
146 and `make_d.py` by `wsplit`, `score.py` by `wscore`, the search runner by `wdrive/wrun`, the section 6
147 item 5 control draw by `wprobe controls` (MT19937 identical to CPython `random.Random(SEED)`, so the
148 preregistered seeds give the same units), the section 9 computation by `wprobe survive` and
149 `wdrive/wpolicy`, and `build.sh`/`check.py` by `wdrive/wbuild`/`wcheck`. Gates and negative controls
150 are in `PORT.md`; any instrument still to be ported is listed there with its gate before it is used.
151- The S search started on the Python runner and scorer and finishes on them; every scored arm is re-scored
152 by `wscore` and must agree row for row (16 of 16 so far).
153- The committed H is kept. Regenerating it today gives 3 different rows because one later evaluation file
154 (item 1199, written after H was cut) entered the exclusion scan; H is not regenerated (`PORT.md`).
155- Hook groups may be passed in a file (`@PATH`), because a program started from Omega takes at most 64
156 arguments and E2 with m = 32 needs 128 hook numbers. Output is byte-identical to passing them inline.