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
aien-train / docs / omegallm / WSP-METHOD.md
| 1 | # Weight-space programming: method note (DRA-187) |
| 2 | |
| 3 | Status: method note. Every published figure below is labelled "published, not reproduced here". |
| 4 | Section 4 records the DRA-187 outcome on the round40 checkpoint: REJECT. Those rows are the run's |
| 5 | own measurements, not a reproduction of the published figures. This note qualifies nothing. |
| 6 | |
| 7 | ## Sources (pinned, accessed 2026-11-07) |
| 8 | |
| 9 | | Short name | Source | Pin | |
| 10 | |---|---|---| |
| 11 | | BLOG | Takehi, Teoh, Zhang, Khattab, "Sparks of Weight-Space Programming: LLMs can natively read & write neural network weights", https://rikiyat.github.io/blog/weight-space-programming/ | published 2026-11-02; no version id on the page, so quotes below are from the text served on 2026-11-07 | |
| 12 | | LOGS | https://github.com/RikiyaT/lm_understand-logs, folder `exp8_math/` (sparse clone at `~/work/wsp/refs/lm_understand-logs`) | commit `4d09ba6d6a7e891dd8063974dfe81b3d78e3494f` | |
| 13 | | HF | https://huggingface.co/RikiyaT/Qwen3.5-0.8B-weight-space-programming (README and file listing only, read through the HF tree API and the raw README) | revision `d1671a178705bcab7644806d23c535517f35723b` | |
| 14 | |
| 15 | Rules I kept while reading. No weight file was downloaded or run (no `.safetensors`, `.bin` or `.gguf`). |
| 16 | The HF listing shows one weight file, `model.safetensors-00001-of-00001.safetensors`, 1,746,943,032 bytes, |
| 17 | LFS sha256 `fd1e42acdd118ac1b300d37500fd2885e75f5a09de3a33010d802bf7f737b553`; I record it and did not fetch it. |
| 18 | Derived numbers were computed with the Wolfram Language evaluator; each one is quoted with its query. |
| 19 | |
| 20 | ## 1. What weight-space programming is |
| 21 | |
| 22 | In plain words: a general-purpose language model (the "editor") reads another network's weights and |
| 23 | changes them directly, by reasoning about what each part computes. It does not run gradient descent, |
| 24 | it does not fit weights to a loss, and it does not write a training loop. It may look at the network's |
| 25 | behaviour through a small, counted budget of forward passes. |
| 26 | |
| 27 | BLOG reports eight experiments. This note covers Experiment 8 only (make Qwen3.5-0.8B better at math) |
| 28 | and its Gemma 3 270M follow-up, because that is the one that resembles my DRA-187 question: can a |
| 29 | targeted, gradient-free edit fix a demonstrated failure of a language model without harming the rest. |
| 30 | |
| 31 | ### 1.1 The harness (LOGS `exp8_math/README.md`) |
| 32 | |
| 33 | - Editor: "GPT-6 Astra" through the Codex CLI, reasoning effort max. Codex's own tools were off; every |
| 34 | action went through the experimenters' harness. The harness code itself is not released |
| 35 | (LOGS README, "Not included"). |
| 36 | - Edited model: the text part of `Qwen/Qwen3.5-0.8B` at revision `2fc06364715b967f1860aea9cf38778875588b17`, |
| 37 | 24 layers, thinking mode on. |
| 38 | - Editor's tools: a CPU-only Python kernel over the weights (at most 300 code runs; `save_edit(name, tensor)` |
| 39 | to change a tensor), practice problems from GSM8K train (7,469) and MATH train (7,275), and a forward-pass |
| 40 | tool with a budget of 10, 25 or 50 passes. One pass is either a generation (up to 512 practice answers, or a |
| 41 | paired "both" pass of 256 original plus 256 edited answers on the same problems) or a teacher-forced read of |
| 42 | up to 1,024 texts that returns log-probs, hidden states, MLP activations or attention. |
| 43 | - Refused by `save_edit`: the final norm, the embedding and output layer |
| 44 | (`profiles.py`: `frozen = (norm.weight, embed_tokens.weight, lm_head.weight)`), and any edit that only |
| 45 | multiplies a whole tensor by a constant (`refuse_rescale: True`). |
| 46 | - The editor never saw the benchmarks. |
| 47 | |
| 48 | ### 1.2 The published workflow, step by step (run `p50c`, 50 passes) |
| 49 | |
| 50 | Reconstructed from `runs/p50c/work_notes/final_report.md`, `experiment_history.md` and `final_choice.json`. |
| 51 | Every count, log-prob and score in this subsection is published, not reproduced here. |
| 52 | |
| 53 | 1. **Behavioural contrast.** The first generation pass on 96 practice problems: 11 correct, 85 answers ran to |
| 54 | the 32,768-token limit, and the cut tails were about 95% duplicated 8-word sequences |
| 55 | (`requests/fwd_1.done.json`: `cut_at_max_tokens: 85`, `generations: 96`). The diagnosis: the model loops, |
| 56 | so the target is repetition, not missing math facts. |
| 57 | 2. **Matched productive vs looping contexts.** Teacher-forced reads of pairs of texts that share content but |
| 58 | continue either productively or with repetition. The first attempt was invalid because the chat template |
| 59 | inserted an empty think block; the editor corrected it to the raw thinking template (pass 3). |
| 60 | 3. **Direction.** One unit "repetition direction" per site, taken from four matched productive/looping contexts |
| 61 | at the residual outputs after layers 16 and 20 (that is, the outputs of blocks 15 and 19). |
| 62 | 4. **Locating the MLP writers.** Early single-neuron ablation (layer 19 neuron 11) and a layer-19-only rank-one |
| 63 | removal each gave +6.25 pp (SE 4.35) on 32 reused problems: weak. Removing the direction from both |
| 64 | layer 15 and layer 19 MLP `down_proj` was much stronger. Candidate attention heads (L15 head 7, L19 head 5) |
| 65 | were tested and dropped as less selective. Finally the 64 MLP neurons per layer whose write vectors carry |
| 66 | the most of the direction were chosen, on the original model's pass-4 data only. |
| 67 | 5. **The edit.** `W = W0 - alpha * outer(u, mask64 * (u @ W0))` on `layers.{15,19}.mlp.down_proj.weight` |
| 68 | (shape 1024 x 3584, HF layout `[out, in]`), with `alpha = 6`. `u` is the unit direction in the 1,024-wide |
| 69 | residual space; `mask64` keeps only the 64 chosen intermediate neurons, so only 64 columns change per tensor. |
| 70 | 6. **Dose-response.** Teacher-forced log-prob change on the looping branch vs the productive branch |
| 71 | (nats per token): alpha 1: -0.02410 vs +0.00232; alpha 2: -0.04870 vs +0.00343; full alpha 4: -0.10372 vs +0.00453; |
| 72 | top-64 alpha 6: -0.10311 vs -0.00903. Paired generation passes rose with dose (alpha 1 +12.50 pp, alpha 2 +24.61 pp |
| 73 | on the same 64 x 4 problem set). |
| 74 | 7. **Layer isolation.** L15-only alpha 4: -0.08130 on the looping branch; L19-only alpha 4: -0.03446. Both sites |
| 75 | contribute. |
| 76 | 8. **Norm-matched random control.** Directions orthogonal to the repetition direction, per-layer Frobenius norm |
| 77 | matched within 0.03% to the full alpha 4 edit: looping-branch change +0.00955 (not selective) and, in a paired |
| 78 | generation pass on 64 x 2 answers, +1.56 pp (SE 3.52), 8 rescues and 6 losses, with the cut share rising |
| 79 | 89.06% to 91.41%. Note: the control was matched to the full alpha 4 edit, not to the final top-64 alpha 6 edit. |
| 80 | 9. **Freeze, then paired confirmation.** `final_report.md` says the edit was "Frozen before any confirmation". |
| 81 | The history is less tidy: the candidate was left unchanged from line 102 ("validation_3 still unseen" at |
| 82 | line 105), the first confirmation half of 64 problems is line 107, and both the word "FROZEN" (line 108) and |
| 83 | the hash audit (`frozen_edit_audit.json`, line 110) come after it. The audited hashes equal those in |
| 84 | `final_choice.json` and a second check at pass 49 (line 371) found them unchanged. |
| 85 | Confirmation used 1,152 practice problems reserved in `fresh_splits.json` (validation_3 128, |
| 86 | validation_4 256, final_1/2/3 256 each), disjoint from every problem used in selection, generated paired within |
| 87 | each pass with the evaluation sampling, one sample each, 32,768 tokens. |
| 88 | 10. **Submission and release.** The editor submitted float32 copies of the two tensors; the evaluation cast them |
| 89 | to bfloat16 (`build_ckpt.py`). HF hosts this edited checkpoint. |
| 90 | |
| 91 | ### 1.3 The three published edits |
| 92 | |
| 93 | All rows published, not reproduced here. |
| 94 | |
| 95 | | Run | Passes | Edit (LOGS `final_answer.md` and `edit/manifest.json`) | bf16 entries changed | |
| 96 | |---|---|---|---| |
| 97 | | p10c | 10 | 30 rank-one edits `W' = W - 1.5 u (u^T W)` on attention and MLP output matrices in layers 8 to 22 | 72,986,982 | |
| 98 | | p25c | 25 | zero columns 1792:2048 of `layers.15.self_attn.o_proj.weight` (switches off attention head 7 of layer 15) | 262,144 | |
| 99 | | p50c | 50 | the top-64 alpha 6 repetition-direction removal on `layers.15` and `layers.19` `mlp.down_proj.weight` | 130,188 of 131,072 touched | |
| 100 | |
| 101 | Correction to my brief: the brief said "released checkpoints p10c/p25c/p50c". HF releases only the p50c |
| 102 | model. p10c and p25c are published as exact edit diffs in LOGS (`runs/<run>/edit/`), not as checkpoints. |
| 103 | |
| 104 | Wolfram checks for the edit sizes: |
| 105 | - `2*64*1024` -> 131072 (p50c touched weights; matches BLOG "131,072"). |
| 106 | - `256*1024` -> 262144 (p25c; matches the manifest). |
| 107 | - `N[100*2*64*1024/(8*10^8)]` -> 0.016384 (percent of 0.8 billion; BLOG says "0.016%"). |
| 108 | - `N[100*72986982/(8*10^8)]` -> 9.12337275 (p10c changed about 9.1% of the model, so the "0.016%" figure applies to p50c only). |
| 109 | - `131072-130188` -> 884 touched entries that rounded back to the original bfloat16 value. |
| 110 | - `N[100*64/3584]` -> 1.7857 (percent of intermediate neurons edited per layer). |
| 111 | |
| 112 | ### 1.4 What the released code does (LOGS `exp8_math/code/`) |
| 113 | |
| 114 | - `make_edit_diff.py`: compares the evaluated bf16 checkpoint with the base model tensor by tensor (bit patterns), |
| 115 | checks that the changed tensors are exactly the submitted ones and that `bf16(submission)` equals the checkpoint, |
| 116 | then stores each changed tensor as `sparse` (flat int32 indices plus new bf16 bit patterns, used when at most 30% |
| 117 | of entries change) or `lowrank` (SVD factors of `submission - base` up to rank 8, plus "fixup" entries where |
| 118 | rounding differs). Writes `edit.npz` and `manifest.json` with base and edited sha256 per tensor. |
| 119 | - `apply_edit.py`: rebuilds each edited tensor from the base safetensors and the diff, asserting the base tensor |
| 120 | sha256 before and the edited sha256 after. Output is either a full `.safetensors` file or one float32 `.npy` |
| 121 | per edited tensor. |
| 122 | - `build_ckpt.py`: builds the evaluation checkpoint by replacing every tensor named in `<run>/submission/*.npy`, |
| 123 | cast to the original dtype (bf16), copying the tied embedding to `lm_head` if needed, and records each tensor's |
| 124 | relative change. Its docstring still says "Qwen3-1.7B"; the model actually comes from the selected profile. |
| 125 | - `profiles.py`: per-model settings chosen by `MATHEDIT_PROFILE`: paths, frozen tensors, rescale refusal and |
| 126 | sampling. `qwen35think` (the Experiment 8 runs) is thinking on, temperature 0.6, top_p 0.95, top_k 20, |
| 127 | presence_penalty 1.5, max 32,768 tokens, seed 0. `V3_LIMITS` sets the pass sizes (512 answers, 1,024 |
| 128 | teacher-forced texts, 524,288 teacher-forced tokens per pass). It also holds the LFM2.5-350M and Gemma 3 270M profiles. |
| 129 | - `evaluate.py`: its `prepare()` builds the math files (AIME 24/25, AMC23, MATH-500, Minerva, OlympiadBench) and |
| 130 | GSM8K test. MMLU-Pro 1k, GPQA Diamond and IFEval are read by `load_set()` from `bench/<name>.jsonl` files that |
| 131 | the released code does not build. It runs vLLM with the chat template, grades the last `\boxed{}` with math-verify, |
| 132 | and scores the mean accuracy over all samples. It imports IFEval and multiple-choice graders that are not released. |
| 133 | Its top docstring describes an older Qwen3-1.7B non-thinking protocol; the Experiment 8 protocol is `SAMPLING_THINK35`. |
| 134 | |
| 135 | ## 2. Published numbers (all "published, not reproduced here") |
| 136 | |
| 137 | Sampling for every Qwen row: vLLM, chat template with thinking on, temperature 0.6, top_p 0.95, top_k 20, |
| 138 | presence penalty 1.5, at most 32,768 new tokens, seed 0. Samples per problem: MATH-500 4, GSM8K 2, IFEval 2, |
| 139 | AMC23 16, Minerva 4, OlympiadBench 4, GPQA Diamond 4, MMLU-Pro (fixed 1,000) 1. Sources: BLOG table, LOGS |
| 140 | `eval/<run>/merged.json`, `eval/RESULTS_excerpt.md`. I re-read the four `merged.json` files and they match BLOG. |
| 141 | |
| 142 | | Qwen3.5-0.8B | MATH-500 % | GSM8K % | IFEval % | MATH-500 hit token limit % | Label | |
| 143 | |---|---|---|---|---|---| |
| 144 | | Base | 7.9 | 13.8 | 21.0 | 93.0 | published, not reproduced here | |
| 145 | | p10c (10 passes) | 12.3 | 25.7 | 49.0 | 87.2 | published, not reproduced here | |
| 146 | | p25c (25 passes) | 14.1 | 25.1 | 39.9 | 86.4 | published, not reproduced here | |
| 147 | | p50c (50 passes) | 48.1 | 67.1 | 62.3 | 33.1 | published, not reproduced here | |
| 148 | |
| 149 | Other benchmarks, base / p10c / p25c / p50c (published, not reproduced here): AMC23 0.5 / 1.1 / 1.1 / 23.4; |
| 150 | Minerva 1.5 / 3.9 / 3.5 / 25.4; OlympiadBench 1.3 / 2.4 / 3.9 / 21.8; MMLU-Pro 1k 40.3 / 40.0 / 44.7 / 45.5; |
| 151 | GPQA Diamond 22.7 / 29.4 / 30.1 / 36.6. BLOG's figure shows 24.5 for base GPQA, an interim value; LOGS says |
| 152 | the finished value is 22.7. |
| 153 | |
| 154 | Base to p50c differences (Wolfram, inputs are the published figures): |
| 155 | `48.1-7.9` -> 40.2 pp MATH-500; `67.1-13.8` -> 53.3 pp GSM8K; `62.3-21.0` -> 41.3 pp IFEval; |
| 156 | `62.3/21.0` -> 2.967 (BLOG's "3x"); `93.0-33.1` -> 59.9 pp fewer MATH-500 answers at the token limit. |
| 157 | Base IFEval answers also hit the limit often: `ifeval.cut_share` 74.9% base vs 2.2% p50c (LOGS `merged.json`). |
| 158 | |
| 159 | ### 2.1 Paired confirmation on 1,152 practice problems (p50c; published, not reproduced here) |
| 160 | |
| 161 | From `runs/p50c/work_notes/final_report.md`. These are held-out practice problems, not benchmark items. |
| 162 | |
| 163 | | Source | n | Original correct | Edited correct | Gain | Label | |
| 164 | |---|---|---|---|---|---| |
| 165 | | GSM8K practice | 576 | 67 (11.6%) | 408 (70.8%) | +59.2 pp, SE 2.1 | published, not reproduced here | |
| 166 | | MATH practice | 576 | 55 (9.5%) | 288 (50.0%) | +40.5 pp, SE 2.0 | published, not reproduced here | |
| 167 | | Combined | 1,152 | 122 (10.6%) | 696 (60.4%) | +49.8 pp, SE 1.5 | published, not reproduced here | |
| 168 | |
| 169 | 579 rescues and 5 regressions; 576 of the rescues were originally truncated answers. All 696 edited correct |
| 170 | answers closed their thinking, median 9,172 tokens (9,171.5 in the JSON), against 5,310.5 for the original's correct |
| 171 | answers. Answers cut at the limit: 1,038 original vs 212 edited. Of the 212 edited cutoffs, 51 end in a |
| 172 | whitespace tail, against 0 of the original's 1,038 (`whitespace_tail_cut`): the edit introduced a new failure mode, |
| 173 | whitespace degeneration, which the report lists among the remaining errors. Published, not reproduced here. |
| 174 | |
| 175 | Wolfram check of the paired statistic: with |
| 176 | `n=1152; b=579; c=5; d=(b-c)/n; se=Sqrt[((b+c)/n-d^2)/(n-1)]`, |
| 177 | `N[d]` -> 0.498264; `N[se]` -> 0.0149914 (equals the reported SE, so the source used the n-1 form); |
| 178 | `N[{d-1.96 se, d+1.96 se}]` -> {0.46888, 0.52765} (equals the reported 95% normal interval); |
| 179 | `b-c` -> 574 = 696 - 122 net newly correct. `N[100*85/96]` -> 88.54 (share of the first 96 practice answers cut). |
| 180 | |
| 181 | ### 2.2 Other published points |
| 182 | |
| 183 | - HF independent re-run of the p50c checkpoint by a third party (akhaliq, 2026-11-02, H200, vLLM 0.33.0): |
| 184 | MATH-500 51.0%, 31.6% at the token limit; a 25-problem base smoke test gave 5.0%. Published, not reproduced here. |
| 185 | Wolfram `51.0-48.1` -> 2.9 pp above BLOG's figure. I make no claim about its cause: no uncertainty analysis |
| 186 | was done, and the re-run is not the same checkpoint file. The HF card says BLOG evaluated a text-only export, |
| 187 | while the re-run used the full multimodal release; the card states the language-model tensors are |
| 188 | hash-identical and text prompts do not use the vision tower, which I did not check. |
| 189 | - Smaller budgets: p10c's own paired check on 512 practice problems was +3.71 pp (SE 1.79), described by the editor |
| 190 | as "modest"; p25c's on 768 practice problems was +8.33 pp (SE 1.43). Published, not reproduced here. |
| 191 | - Other runs in `RESULTS_excerpt.md`, not in BLOG: 0 and 5 passes made no edit; prompt v4 at 10 passes submitted |
| 192 | no edit; prompt v4 at 25 passes gave 14.1 / 25.1. So the method did not always produce an edit. |
| 193 | - Gemma 3 270M IT negative result (lenient MATH-500 grading, model-card sampling temperature 1.0, top_k 64, |
| 194 | top_p 0.95, max 8,192): base 6.8%; 5 / 10 / 25 / 50 passes 7.0 / 7.6 / 7.7 / 7.0. Only 8.5% of Gemma's answers |
| 195 | reach its token limit vs 93.0% for Qwen. Published, not reproduced here. Wolfram `7.7-6.8` -> 0.9 pp best gain; |
| 196 | BLOG and the editor both call it not established. Edits stayed small (for example doubling one number neuron). |
| 197 | |
| 198 | ## 3. Claims and how far the sources support them |
| 199 | |
| 200 | DEMONSTRATED = shown with controls in the source. CONDITIONAL = shown only in their setting (one model, |
| 201 | one failure mode, practice problems rather than test, agent-driven search). SPECULATIVE = a generalisation |
| 202 | the sources do not test. Every figure in this table is published, not reproduced here; the classes are my reading. |
| 203 | |
| 204 | | # | Claim | Class | Basis and limits | |
| 205 | |---|---|---|---| |
| 206 | | C1 | The p50c edit is targeted: only two tensors and 64 columns each are touched (131,072 weights); 130,188 of them differ from the base after the bf16 cast | DEMONSTRATED | Bit-exact diff with sha256 per tensor (`edit/manifest.json` `changed_entries` 65,260 + 64,928, `apply_edit.py`); HF lists the same two hashes | |
| 207 | | C2 | Removing the repetition direction causally reduces looping | DEMONSTRATED (on practice text) | Dose-response on matched branches, layer isolation, norm-matched random control (+1.56 pp, SE 3.52, not selective). Limit: the control was matched to the full alpha 4 edit, not the final top-64 alpha 6 edit, and used 128 answers | |
| 208 | | C3 | The edit does not just force early termination | DEMONSTRATED (on practice text) | All 696 edited correct answers closed thinking, median 9,172 tokens; premature-close log-prob stayed near -19 | |
| 209 | | C4 | The edit raises held-out practice accuracy (+49.8 pp, SE 1.5) | DEMONSTRATED (on practice text) | Frozen edit, 1,152 problems disjoint from selection, paired within pass. One sample per problem | |
| 210 | | C5 | The edit raises MATH-500 and GSM8K test scores | CONDITIONAL | One model, one failure (loops), one evaluation run per checkpoint; a third-party re-run gave 51.0% on MATH-500 | |
| 211 | | C6 | The gain generalises across benchmarks (IFEval 21.0 to 62.3, MMLU-Pro, GPQA) | CONDITIONAL | Shown for this model because loops are not task specific; base IFEval answers were 74.9% cut. Says nothing about failures other than loops | |
| 212 | | C7 | Weight-space programming generalises to other models and failure types | SPECULATIVE | Gemma 3 270M, whose errors are not loops, did not improve (best +0.9 pp, not established) | |
| 213 | | C8 | Other skills are retained (no catastrophic forgetting) | CONDITIONAL for p50c, SPECULATIVE as a general claim | No dedicated retention suite. Indirect evidence only: productive-branch log-prob change -0.009 nats/token, MMLU-Pro and GPQA did not fall. BLOG's "avoid the catastrophic forgetting" is a forward-looking claim | |
| 214 | | C9 | Cost: a few forward passes, no gradients | CONDITIONAL | The no-gradient rule was enforced by an unreleased harness. The real cost for p50c was 158 editor turns, 80 Python runs and 20.3 wall-clock hours, including a 4.7-hour outage (LOGS README), plus full 32,768-token generation passes on a GPU serving the model | |
| 215 | | C10 | An agent can do this automatically | CONDITIONAL | One editor model, one prompt version (v3), three runs at different budgets; 10 and 25 passes gave small gains, other prompt versions sometimes submitted nothing. Not shown for other editors | |
| 216 | | C11 | LLM-driven weight editing will replace optimisers, enable auditing, merging, self-improvement | SPECULATIVE | BLOG "What comes next" section; no experiment tests these | |
| 217 | | C12 | The math gain reflects new math ability | Not claimed by the sources | BLOG says loop removal "lets the model finish answers it could already work out"; the Gemma follow-up exists to test exactly this, and it was negative | |
| 218 | |
| 219 | ## 4. Reproduction status |
| 220 | |
| 221 | **Qwen3.5-0.8B reproduction: NOT_RUN by Drake's no-outside-models rule (2026-11-07). The method, not the model, is proposed for adaptation to my own Omega checkpoints under DRA-187.** |
| 222 | |
| 223 | My target is the round40 own tool model (`~/.local/share/omega-tool-model/round40/model.ck`, sha256 |
| 224 | `7c7b5b5260f2d9453b6076b64e7f23e88341d96498584f2dfaa229c31ad2e346`, read in place only): V 4096, T 256, |
| 225 | D 384, H 12, F 1536, L 8, P 15,833,472 parameters, OLLMCK02 layout (CONTRACT-V1 section 6). Probes are `.om` |
| 226 | units built by `tools/omegallm/wdrive/wbuild.om` from pinned source parts; patches are written and checked |
| 227 | by `wpatch`, a separate `.om` program (`tools/omegallm/wpatch/`). All run on CPU. Python is allowed only |
| 228 | as an independent checker (labelled ORACLE). |
| 229 | |
| 230 | Layout note for the mapping. Qwen stores `down_proj` as `[out, in]`, so one MLP neuron's write vector is a |
| 231 | column. My checkpoint stores `w2[F][D]` with `y = x . W`, so the same vector is a **row** of `w2` |
| 232 | (384 values). The Omega form of the p50c edit is `w2'[j] = w2[j] - alpha * (w2[j] . u) * u` for the selected |
| 233 | rows `j`, and nothing else. |
| 234 | |
| 235 | Statuses below are from the DRA-187 run (aien-train `evidence/OMEGALLM/wsp-dra187-20261107/`, `RESULT.md`). |
| 236 | Where the run did a step differently from this plan, the row says so. |
| 237 | |
| 238 | | Published step | Omega equivalent (DRA-187) | Status | |
| 239 | |---|---|---| |
| 240 | | Behavioural contrast on practice problems | CPU `.om` generation probe on round40 over a tuning split; classify failures (loop, wrong answer, malformed tool call) and pick one demonstrated failure | MEASURED: long numeric ID truncation, splits D (diagnosis), S (selection), H (held-out), G (generality) | |
| 241 | | Matched productive vs failing contexts | `.om` teacher-forced probe on matched pairs that share a prefix and diverge; record per-layer residual outputs and per-token log-probs in f64 | DONE DIFFERENTLY: teacher-forced logit-gap decomposition into head and neuron parts on D failure rows (`wprobe probe`), not matched pairs | |
| 242 | | Direction | Unit difference-of-means direction per candidate layer, computed in `.om` | NOT_RUN: the search scaled ranked heads (E1) and neurons (E2) instead (PREREG section 4) | |
| 243 | | Locating MLP writers | Score each of the 1,536 `w2` rows per layer by its write onto the direction; choose rows on the tuning split only | DONE DIFFERENTLY: `w2` rows ranked by their most negative mean part on D failure rows, not by a write onto a direction; how many rows and what scale were then chosen on S, before any H record was scored | |
| 244 | | The edit | `.om` checked patch: OLLMCK02 in, new file out, base sha256, edit parameters and seed, delta and undo artifact | MEASURED: `wpatch` patch `ca6dbf9a`, 12,288 changed weights, Adam state kept (policy 0) | |
| 245 | | Dose-response | Several alpha values, teacher-forced branch log-prob change and paired generation | MEASURED on S by generation only, full grid: 1 to 4 heads at each scale 1.10, 1.25, 1.50, 1.75, 2.00 (20 arms) and 4, 8, 16 or 32 neurons at each scale 0.75, 0.50, 0.25, 0 (16 arms); selected 32 neurons at 0.75 | |
| 246 | | Layer isolation | Each site alone vs together | NOT_RUN | |
| 247 | | Norm-matched random control | Orthogonal random direction with the same per-tensor Frobenius change as the chosen edit (the final one, not an earlier dose) | DONE DIFFERENTLY: random neurons in the same layers, not an orthogonal direction. 3 seeds, size within 0.12%; they fix 1, 0 and 0 held-out IDs (PASS) | |
| 248 | | Paired confirmation | Locked held-out split, never used for selection, paired original vs edited, pre-registered gain threshold | MEASURED, FAIL: +10.9 points against a 25-point bar (21 fixed, 0 broken, exact one-sided McNemar p 4.77e-7) | |
| 249 | | Decoding-adjustment comparator | Same failure attacked without weight changes (for example a repetition or presence penalty at inference), same held-out split | MEASURED: penalty on `.` after a digit, +6.25 points | |
| 250 | | Fine-tune comparator | Ordinary fine-tuning of round40 with the Omega trainer on the same tuning data and a matched compute budget | MEASURED with the existing round41 C2 checkpoints (not matched compute): +40.1 and +43.75 points | |
| 251 | | Retention | Unrelated held-out tasks and general loss on the published evaluation set, original vs edited | NOT_RUN: the outcome was fixed by the gain gate. Short IDs on H: 94 of 96 against 96 (locality FAIL) | |
| 252 | | Deployment check | Edited weights rounded f64 to f32 as the GPU runtime does; count edited entries that round back to the original | MEASURED: 12,288 of 12,288 survive; f32 and f64 outputs byte-identical on H | |
| 253 | | Restore | Byte-identical restore of the base checkpoint from the undo artifact | MEASURED, PASS: `wpatch revert` gives sha256 `7c7b5b52…e346` | |
| 254 | |
| 255 | ### 4.1 Omega result (2026-11-07): REJECT |
| 256 | |
| 257 | - Target chosen: long numeric ID truncation in the first `read_file` path written by the round40 tool model. |
| 258 | - Mechanism, MEASURED on the diagnosis split D (186 records, base model, `wprobe probe`): |
| 259 | 59 failure rows are digit-copy failures, and their mean logit gap is -7.06. Copy heads 6.6, 7.11, 6.11 and 7.0 |
| 260 | find the right digit (largest mean positive head parts), and a number-length prior written by the MLPs |
| 261 | outvotes them. |
| 262 | - Pre-registration: aien-train `evidence/OMEGALLM/wsp-dra187-20261107/PREREG.md` (first committed as `d329de73`, |
| 263 | splits frozen before any search); the edit was frozen in `FREEZE.md` before any held-out record. |
| 264 | - Outcome: REJECT. The selected edit (32 `w2` rows scaled to 0.75) lifts held-out 6-digit IDs from 8 to 29 of |
| 265 | 64 and fixes no 7- or 8-digit ID, below the 25-point gain bar, and breaks 2 of 96 short IDs. |
| 266 | |
| 267 | ## 5. Risks and threats to validity |
| 268 | |
| 269 | 1. **Selection on the practice set.** In the source, every candidate (alpha 1, 2, 3, top-64 at alpha 4 and 6) was |
| 270 | chosen on practice problems from GSM8K and MATH train, and the editor read many outputs. Only the final |
| 271 | 1,152 problems were reserved. For me: the locked held-out split must be written and hashed before the first |
| 272 | probe, and no probe may read it. |
| 273 | 2. **Sampling variance.** Each benchmark checkpoint was scored once (4 or 2 samples per problem); the third-party |
| 274 | re-run differs by 2.9 pp on MATH-500. LOGS notes that separate generation passes have batching-dependent random |
| 275 | numbers, so only within-pass pairs are valid comparisons. For me: pair original and edited on the same prompts |
| 276 | and seeds, report paired SE, and repeat the final check. |
| 277 | 3. **Benchmark contamination.** MATH-500 is drawn from the MATH test split and GSM8K test is public; the base |
| 278 | model may have seen either during pretraining. Loop removal does not depend on this, but the absolute scores |
| 279 | might. For me: deduplicate held-out items against training text by normalized SHA-256, as in |
| 280 | `WEIGHT-EDIT.md`, and say that exact matching misses near duplicates. |
| 281 | 4. **Model size.** round40 has 15,833,472 parameters. Wolfram `N[100*15833472/(8*10^8)]` -> 1.979 (percent of |
| 282 | 0.8 billion) and `N[8*10^8/15833472]` -> 50.53 (times smaller). A small model may not hold a single clean |
| 283 | failure direction; the Gemma 3 270M result shows the method can find nothing to fix. A rejected method is an |
| 284 | acceptable DRA-187 outcome. |
| 285 | 5. **f32 deployment rounding of small edits.** The deployed runtime uploads weights as f32, rounded to nearest |
| 286 | from f64. Whether an edit survives depends on where each weight sits between f32 values, not on a fixed relative |
| 287 | threshold. Wolfram, with `w=3/2; delta=5/2^26`: `N[delta/w]` -> 4.97e-8, below `N[2^-24]` -> 5.96e-8, yet |
| 288 | f32(w + delta) = 12582913/8388608 = w + 2^-23, so that small edit survives; conversely a larger edit can round |
| 289 | back to the original f32 value. For comparison, the source's bf16 cast erased 884 of 131,072 touched entries. |
| 290 | For me: compare f32(edited) with f32(base) entry by entry, score the f32-rounded file, not the f64 one, and |
| 291 | report how many edited entries survive. |
| 292 | 6. **Retention measurement.** The source has no dedicated retention suite; its "other skills" evidence is |
| 293 | benchmark gains that may themselves come from fewer loops. For me: retention gets its own pre-registered tasks |
| 294 | and threshold, and a loss on them rejects the edit even if the target metric improves. |
| 295 | 7. **The failure must exist.** The method fixed a failure that dominated the base model (93.0% of MATH-500 |
| 296 | answers cut). If round40 has no single dominant failure, a large gain is not expected and should not be |
| 297 | reported from a small or post-hoc subset. |
| 298 | 8. **Agent-driven search.** The published edit came from a long, adaptive search by one editor model. My search |
| 299 | is designed in advance and run by my own tools, so it is not the same procedure; differences in outcome may |
| 300 | come from the search, not the weights. |
| 301 | 9. **Optimizer state.** As `WEIGHT-EDIT.md` already says for my checkpoints, an edited copy keeps Adam moments |
| 302 | that do not describe the edited weights; edited checkpoints are for inference until a policy exists. |
| 303 | 10. **New failure modes.** The source edit added one: 51 edited answers ended in whitespace degeneration against |
| 304 | 0 for the original (section 2.1). For me: count new failure types in the edited model, not only fewer old ones. |
| 305 | |
| 306 | ## 6. What this note does not do |
| 307 | |
| 308 | It does not run Qwen3.5-0.8B or any outside weights, it does not reproduce any published number, and it |
| 309 | qualifies nothing. Results for section 4 belong to the DRA-187 experiment and its evidence folder. |