Skip to content

research: WF range proof on the Qwen head-0 weight table (#237) - #245

Draft
wakesync wants to merge 9 commits into
mainfrom
research/1129-qwen-wf-head-table-237
Draft

wakesync wants to merge 9 commits into
mainfrom
research/1129-qwen-wf-head-table-237

Conversation

@wakesync

@wakesync wakesync commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

Part of #237

Research harness, CPU only. Draft. Measured, unreplicated, one shared host. Hand-made, unpriced plans: no security level.

What this step asked

PR #231 committed the 3,288,706 integer weights of Qwen3.8-27B layer 0, V head 0 in one table and bounded the 1,666 weights the trace reads. The other 3,287,040 (in_proj and out_proj) were committed but bounded by nothing. Can main's WF range proof (blocks/iop/wf.h, blocks/frame/wf_units.h) be run on this head's table, with no change to any existing file, so that every matrix weight is proved in [-4,096, 4,095]?

Result

PASS on the four registered conditions (experiments/20261129-237-qwen-wf-head-table/RESULTS.md, numbers in runs/summary.json):

  1. Instantiation. The same integers are stored as signed-byte digits in a 1,192 x 8,192 matrix: rows 0..3 a four-digit unit (the old row 0), rows 4..1,191 a two-digit unit (the 594 matrix-weight rows). wf_units_fault, wf_fault, lin_fault return null. No file under blocks/, prover/, verifier/ or an existing research/operators/ directory is changed. No interface is missing.
  2. Honest. 5 of 5 proofs on the real head-0 table accepted (seeds 1..5).
  3. Hostile, 5 tables, the two registered forms. (a) the honest prover code served none of them, 5 of 5. (b) a complete proof that speaks of the honest matrix while the hostile table is committed was rejected by the verifier, 5 of 5, at "second part: a proximity test" (blocks/iop/tests/wf_world.h line 296).
  4. Completeness. 4 of 4 accepted: both ends of the class (4,095 and -4,096), dt_bias 78,848 and -23,424, and the registered control that a four-digit number of 2,139,062,143 is accepted.

Honest runs, n = 5, descriptive only: commit median 7.40 s, prove median 33.37 s, verify median 0.097 s, peak RSS 1.86 GiB, proof 2.36 MB.

NOT established

  • That the verifier rejects a proof whose range lookup is false. No run gives it one. Form (a) is the honest prover declining. Form (b) runs a true lookup on the honest matrix and tests that WF's claims are checked against the committed table, not the lookup. A third form, added by amendment A1 before any registered run (keys from the hostile table, multiplicities from the honest matrix), ended in the prover program's own check in 5 of 5 (blocks/iop/psc.h line 246, no proof exists): that is not a verifier rejection and is not counted as one. A complete proof with a false lookup needs a prover that forges sumcheck messages; it was not written.
  • Any soundness level. Plans are hand-made, every round unpriced; each hostile case is one proof by one fixed prover.
  • Any range on the 1,666 trace-read weights beyond four bytes each (the control above). Their class is PR research: Qwen M3a-1 weight side, committed head-0 weight table and cell tie (#229) #231's, in the trace.
  • The tie of PR research: Qwen M3a-1 weight side, committed head-0 weight table and cell tie (#229) #231 on this layout, and the composition with the in_proj lane's claims. The rule is written in the PREREG (same point, same target, row weights doubled as digit 0 + 256 digit 1) and not run.
  • Any product (in_proj, out_proj, conv, gates). Any other head, layer or checkpoint. Hiding. That the table is the advertised checkpoint. Accuracy. Performance (n = 5).
  • Independent replication.

The interruption

The registered batch of completeness runs (C1..C4) was cut from outside after C1 by a restart of the host service that runs the lane. C1's file was complete and is kept as it was. A continuation instance registered what it would do (PREREG amendment A2, pushed first), then ran C2, C3, C4 with the same binary, input, seed, order and cores. No run file was rerun or changed. run_registered.py stops at the first existing run file, so it could not finish the batch; it was not changed, and a new file run_continuation.py calls its one() unchanged for the missing cases. continuation-complete.json records the kept file and the new ones with their SHA-256 values. The binary's hash was not recorded by the first instance; the committed source was compiled again and gave a byte-identical file.

Deviations

  • The interruption and the continuation runner (above).
  • Hostile form (c) is not in the original registration (amendment A1, before any registered run; reported separately, outside the PASS condition).
  • The reason string of form (a) is the harness's own and names a cause the run does not observe directly; RESULTS gives the arithmetic that rules out the other cause.
  • No sanitizer build was run.

Notes

  • Adds one research/results.yaml row (13 metrics): must be merged with a merge commit.
  • One coverage inventory row, OP-R21; check_inventory.py ok.
  • The branch was not brought up to a later main in this step. It now conflicts with main in README.md, CLAIMS.md and research/results.yaml (a ledger row was added on both sides). No CI check has run on the two commits made after the conflict appeared (3905aa7, b8b99dc); the last CI runs, at ead4085, were green for claims and guard. On the lane's host, at the head: host-path guard, update-results.py --check, check-claims.py and check_inventory.py all ok.
  • No proposed public claim. No headline.

…er C1; continuation runner, before any further run (#237)

The registered batch complete (C1..C4) was cut from outside after C1 by a
restart of the host service that runs the lane. C1's file is complete and is
kept; C2, C3, C4 have no file and are run after this commit is pushed, same
source commit, same binary (SHA-256 recorded, reproduced from the committed
source), same input, same order.

run_registered.py is not changed: it refuses at the first existing run file,
so it cannot finish a batch. run_continuation.py runs only the cases without
a file by calling run_registered.one() unchanged.

No run file is in this commit and none was made after the interruption.
…itten once (#237)

shape, honest seeds 1..5, hostile H1..H5 in forms a, b, c, and complete C1
were written by the first instance between 02:57 and 03:08 UTC, before the
interruption recorded in PREREG amendment A2; they are committed as they were
left. complete C2, C3, C4 were run after amendment A2 was pushed, by
run_continuation.py, same binary, same input, registered order.
continuation-complete.json records which file was kept and which were run,
with their SHA-256 values.

No summary and no verdict in this commit.
…the Qwen head-0 table (#237)

PASS on the four registered conditions: instantiation with no existing file
changed, 5 of 5 honest proofs accepted, hostile forms (a) and (b) refused for
all five tables, 4 of 4 completeness cases accepted (C4 is the control for the
four-digit unit's missing range).

Not established, stated in RESULTS: no run gives the verifier a complete proof
whose range lookup is false; no soundness level; no range on row 0's numbers;
the PR 231 tie and the in_proj composition are restated, not run.

RESULTS also states the interruption of the completeness batch and how it was
finished (PREREG amendment A2, continuation-complete.json).
…245), README block and CLAIMS.md regenerated (#237)

One research/results.yaml row, id qwen-m3a1w-wf-head-table, 13 metrics read
from runs/summary.json at ead4085. The three hostile outcomes (not served,
rejected by the verifier, prover stopped) are separate metrics and are not
added together. The row says what is not established, first of all that no
run gives the verifier a complete proof with a false range lookup.

README stamp line set to main's with the stamp helper. No public headline.
…ged)

Units: the peak RSS figures are KiB (ru_maxrss), given also in GiB; the
earlier text called them kB and converted as if decimal. Times of the first
batches are quoted as the start times the run files hold. The cause of the
interruption is attributed to the coordinator's report. Wall time per run
kind is stated for the runs that end early as well.
Conflicts: research/results.yaml, README.md, CLAIMS.md. results.yaml is main's file plus this PR's own entry (qwen-m3a1w-wf-head-table), unchanged and appended at the end. README/CLAIMS take main's side here and are regenerated in the following commit after the merge makes the metric commits available in branch history; README stamp is main's verbatim.
…9d2b

scripts/update-results.py after the merge commit (77 results); stamp line kept as main's verbatim. Adds this PR's row for qwen-m3a1w-wf-head-table to the README block and CLAIMS.md on top of main's; no other change.
@wakesync

Copy link
Copy Markdown
Owner Author

Main sync: merged main fef9d2b800b49a2d3eefb45dda82c58474cc25d4 into this branch with a merge commit. New head eb450c11efe8a73f1b54e63fe68109b5c679cf46 (fast-forward of b8b99dc7: merge commit 2dba3c5e + regeneration commit eb450c11). Conflicted files: research/results.yaml, README.md, CLAIMS.md only; research/coverage/inventory.yaml merged without conflict.

Proofs: research/results.yaml minus this PR's entry qwen-m3a1w-wf-head-table equals main's file byte for byte (sha256 05338b46...1fa0 both); that entry is byte-identical to b8b99dc7; 77 ids, all unique, this PR's last. README/CLAIMS regenerated with scripts/update-results.py (stamp line = main's): each is main's plus this PR's one row. All 30 files under experiments/20261129-237-qwen-wf-head-table/ and the 6 other non-generated paths this PR changes (research/coverage/inventory.yaml, research/operators/qwen_m3a1w/*) are byte-identical to b8b99dc7; the other 3824 experiments/ paths are byte-identical to main. update-results.py --check, check-claims.py, check_inventory.py and the host-path guard pass on the merged tree.

@wakesync

Copy link
Copy Markdown
Owner Author

REQUEST CHANGES at eb450c1

class A, Opus review, same vendor family as the author, second family not available; this verdict does not by itself allow a merge

The author lane ran on claude-fable-5-2 and I am claude-opus-5-5: the same vendor family. I reviewed as if no one else will look.

Summary

The code, the runs and the interruption hold up. I rebuilt the driver from the PR head and reran all 25 registered cases. Every verdict, reason string, size and proof byte count matches the committed run files. The registered evidence was not damaged by the interruption. The changes I ask for are about wording and the ledger: what a reader will take from "PASS", which table was committed, one metric whose denominator counts runs the verifier never saw, an inventory id that collides with two open PRs, and a PR body that no longer matches the head.

What I checked myself (counts)

  • History (check 1). There are 9 commits. The first (6670b7a) holds PREREG.md alone. The activity API shows 8 fast-forward pushes and no force-push. A1 was pushed at 02:56:47Z and the first registered run (shape) started at 02:57:08Z. A2 was committed at 03:32:51Z and pushed at 03:33:06Z; C2 started at 03:33:30Z. The 25 run files were committed once (528097b) and are byte-identical at the head (git diff 528097bb b8b99dc7 touches only the new summary.json). The 22 files from the first instance have internal start times from 02:57:08Z to 03:08:00Z, all before the 03:09Z cut. No threshold moved between the first PREREG and the head: A1 and A2 only add text.
  • The statement in the code (check 2). qm3a1w.cpp includes iop/tests/wf_world.h and frame/wf_units.h unchanged. It calls wf_units_fault, wf_shape_of_units, wf_lines, wf_session and wf_verify_view as they are. What is new: the layout, relay(), world() (LinCase, codes, plan) and MixedHeavy, which is used only by form (c). The diff from c6a708d to the head touches nothing under blocks/ and does not change qm3a1w.cpp.
  • Build (worry e). Through fp-heavy.sh, cores 6-7, g++ 13.3.0, with the README command run from the repository root, my binary's SHA-256 is 72701131f204de14433a9af84269948a62d1d0028e388b5d0054fb75ccb89142, the same as the lane's. The same flags with absolute -I and source paths give different bytes (4a9b98c7...), probably because source paths end up in the binary as strings. So the build reproduces to the byte only when run from the repository root with relative paths.
  • Reproduction (check 3). I read M.i32 in place; its SHA-256 ac11d7b7... equals both lane data copies and M_i32_sha256 in the merged weights-head0.json. I reran all 25 registered cases with my own binary (shape, honest seeds 1-5, H1-H5 in forms a, b and c, C1-C4). Apart from timings and RSS, all 25 agree with the committed files field for field, including the per-part proof byte counts. Form (c) stops at blocks/iop/psc.h:246 in all 5 cases (my exit is -6 because I ran without /usr/bin/time; the lane's 134 comes from that wrapper). The runs are deterministic given the seed. That is strong evidence that the 22 runs of the first instance came from the committed source, which goes further than the mtime argument in RESULTS.
  • Continuation (check 4). run_continuation.py imports run_registered and calls one() unchanged, with the BATCHES arguments and the default cores 6-7. Its only extra guards stop it before any run. The recorded driver_sha256 4c07368e... equals run_registered.py at the head, and the SHA-256 of C1-C4 equals continuation-complete.json. It cannot give a different result from the driver for the same case: same argv, same binary, deterministic output (my reruns of C2-C4 match).
  • Own arithmetic (check 6, my own numpy script, not the lane's code). Balanced digits with the low digit first, so the high digit carries the sign. The matrix weights run from -2,688 to 3,584 and row 0 from -14,208 to 2,693. Bytes run from -128 to 127, and the high digit of the two-digit numbers from -10 to 14. In row 0, digits 2 and 3 are zero everywhere. The in_proj padding columns 5,120 to 8,191 are all zero. No two-digit number is outside 13 bits. There are 6,580,744 weight-digit cells. Everything recomposes. All of this matches runs/shape.json.
  • Hygiene (checks 8 to 10, 12). update-results.py --check, check-claims.py, check_inventory.py and check-no-host-paths.sh (working tree) all exit 0. The scrub gives total_matches=0 on 16 changed text files, the 9 commit messages, the PR body and issue comment 7250327640. Commits are by wakesync with the noreply address. The experiment directory, the operator directory and inventory.yaml at the head are byte-identical to b8b99dc. Against main fef9d2b, only this PR's paths and the 4 ledger files differ, each by this PR's own row only. pr: 245. Main has not moved past fef9d2b. The 13 metrics I checked against runs/summary.json (counts, the medians of commit, prove and verify time, RSS and proof bytes) agree.
  • My own negative (check 5). No input to the unchanged driver puts a false range lookup in front of the verifier. Forms (a), honest and complete give true lookups or no proof. Form (b) runs a true lookup on the honest matrix. Form (c) aborts inside the prover. relay() itself aborts on any number that does not fit its digits. Main has no such test either: blocks/iop/tests/wf_test.cpp lines 20-22 and blocks/iop/tests/lkp_test.cpp lines 18 and 65 say that no malicious prover runs in the repository and that the expected rejections are honest proofs with one bit flipped. That is main's evidence, not this PR's.

The coordinator's worries, settled

  • a. Form (a): wf_prove() returns false (blocks/iop/wf.h line 522, key not in the table). That is the prover declining, not a check by anyone else. Form (b): the verifier rejects at wf_world.h line 296, lin_second_tests_verify. That is LIN's proximity test finding that WF's pending claims, computed from the honest matrix, do not hold on the committed table. Two different commitments get the same kind of refusal, and the range lookup is not what refuses. Form (c): the prover aborts at psc.h line 246. So no registered run shows the range lookup refusing anything. The PREREG as first committed already defined form (b) this way, so its PASS rule could be met without any false lookup. Its hypothesis sentence, "every registered hostile table is refused", reads as more than that. The lane saw this itself and said so in A1, but the first sentence of the verdict on several surfaces still says only "PASS" (must-fix 1).
  • b. The digit table N (1,192 x 8,192, a new committed table of 128 rows) is a different object from PR research: Qwen M3a-1 weight side, committed head-0 weight table and cell tie (#229) #231's table (595 rows). Its root also changes with the commit seed (TestCoins(77 + seed)), so it does not have even one fixed root. What ties N to PR research: Qwen M3a-1 weight side, committed head-0 weight table and cell tie (#229) #231's integers: relay() checks the identity cell by cell when N is built, outside any proof, and the restatement rule is written in the PREREG. No proof contains the tie. Nothing lets a reader combine this PR with research: Qwen M3a-1 weight side, committed head-0 weight table and cell tie (#229) #231 or research: Qwen M3a-1 in_proj of one head as a linear claim on the committed weight table (#229 sub-step c) #242 (must-fix 2).
  • c. In the code, the matrix weights (unit 1) get the 13-bit class of DESIGN 6.2 directly: lookup weights has digit weights 1 and 256, offset 4,096 and d = 13, so [-4,096, 4,095], which is more than "each digit is a byte". Row 0 (unit 0, four digits) gets only a byte range per digit. That gives [-2,155,905,152, 2,139,062,143], about 32 bits, and C4 shows it. Within this PR nothing restricts the high digits of row 0. The surfaces say this correctly for row 0, and they correctly give the 13-bit bound for the matrix weights, conditional on WF's soundness, which no run here tests.
  • d. Yes to all parts (see check 4 above). complete-C1.json is complete (exit 0, one full output line, accepted), and keeping it is defensible: my rerun of C1 matches it field for field. A2 came before C2-C4. The new runner touches no evidence.
  • e. The build reproduces to the byte only with the README command run from the repository root. That is enough, with the deterministic reruns, to say that all 25 runs used the committed source. The README should name this condition (nonblocking 1).
  • f. Form (c) is kept out of the PASS everywhere I looked, and no surface counts it as a rejection, except the metric qm3a1w_hostile_accepted ("of 15") and RESULTS line 51 (must-fix 3).
  • g. No surface claims a security level. The plans are hand-made and every round is priced NOTHING. This is stated in RESULTS, README, the results row, the inventory note and the PR body.
  • h. No surface claims that a proof enforces the classes of the 1,666 trace-read weights. They all say "four bytes each". PR research: Qwen weight-cell classes on all 48 DeltaNet layers, both checkpoints (#239) #243 is not cited as proof.
  • i. This PR uses OP-R21 (inventory.yaml line 381). PR research: Qwen M3a-1 in_proj of one head as a linear claim on the committed weight table (#229 sub-step c) #242 (276303f) and PR research: M3a-1 weight side on layer 17, stock vs abliterated (#238) #244 (1d6b2ca) each add an OP-R21 too. check_inventory.py line 78 rejects duplicate ids, so whichever PR merges second turns main's inventory check red (must-fix 4).

Must-fix

  1. The first sentence of the verdict must carry the limit on every surface that states the verdict: experiments/20261129-237-qwen-wf-head-table/RESULTS.md line 5, research/operators/qwen_m3a1w/README.md line 7, research/results.yaml line 2099 (summary), the PR body's "Result" heading, and a follow-up on issue lane: a Qwen layout of the WF range proof on the committed head table: every in_proj and out_proj weight of layer 0, V head 0 proved in [-4,096, 4,095] (M3a-1, CPU) #237. The sentence should say what PASS rests on. Suggested wording: "PASS on the four registered conditions, none of which presents the verifier with a false range lookup: the hostile refusals are the honest prover declining (a) and LIN's table test (b), not the lookup." Settled when each of those sentences says this before anything else.
  2. Commitment identity. In research/results.yaml line 2099, "(PR 231's table, SHA-256 checked) are stored as signed-byte digits" reads as if PR research: Qwen M3a-1 weight side, committed head-0 weight table and cell tie (#229) #231's commitment were reused. The same goes for README line 11 ("N is one committed table") and the inventory element (line 384). Say on each surface that N is a different committed table, with a root that changes per seed and is not PR research: Qwen M3a-1 weight side, committed head-0 weight table and cell tie (#229) #231's, and that no proof ties it to PR research: Qwen M3a-1 weight side, committed head-0 weight table and cell tie (#229) #231's table or to PR research: Qwen M3a-1 in_proj of one head as a linear claim on the committed weight table (#229 sub-step c) #242's claims (the tie is only written down and is checked outside the proof by relay()). Settled when the results row and the README say this in words a reader cannot miss.
  3. research/results.yaml line 2107, metric qm3a1w_hostile_accepted, value 0, total 15. Ten of those 15 runs produced no proof, so the verifier never saw them. Use total 5 (form b only) or rename the metric to "hostile runs that ended in acceptance" with the note saying that 10 ended with no proof. Also qualify RESULTS line 51 ("No hostile run was accepted") the same way. Settled when the denominator counts only proofs the verifier checked, or the text says plainly that it does not.
  4. research/coverage/inventory.yaml line 381: OP-R21 collides with PR research: Qwen M3a-1 in_proj of one head as a linear claim on the committed weight table (#229 sub-step c) #242 and PR research: M3a-1 weight side on layer 17, stock vs abliterated (#238) #244. Pick an id agreed with the coordinator (for example the next one free after the merge order is fixed) before merge. Settled when no two open PRs add the same id, or the merge plan names the renumbering.
  5. The PR body is stale at this head. It says the branch "now conflicts with main" and that "No CI check has run". The sync lane merged main, and the check-runs API shows claims and guard success at eb450c1. Update the body (REST PATCH of the body only, as before). Settled when the body matches the head.

Nonblocking

  1. README "Reproduce": say that byte identity with 72701131... needs the command run from the repository root with relative paths. Absolute paths give a different binary (my build: 4a9b98c7...).
  2. RESULTS "The interruption": the deterministic reruns (same proof byte counts per seed) are better support than the mtime argument for the binary behind the 22 runs. A reviewer's number may be cited with a link to this comment, under the evidence rule.
  3. The PREREG hypothesis says "every registered hostile table is refused". A later step that writes a forging prover should register a verifier-side rejection of a false lookup as its own condition.
  4. The form (a) reason string asserts the cause (line 522 rather than 526). RESULTS already gives the arithmetic. Fine as it is.

Main sync needed: no (main is fef9d2b, the PR's base; nothing newer).

CI state at eb450c1 (check-runs API): claims completed success, guard completed success.

Skipped checks: none skipped outright. Check 8's "metrics equal their source files at their commits": I compared the 13 metrics with runs/summary.json at the head, not at ead4085; the file is unchanged since then. I did not read the first instance's transcript. Lean was not checked out (sparse clone).

A second reviewer should look first at worry a: whether a WF result whose hostile forms never present a false lookup should be recorded with enforcement: proof_constraint and a "PASS" verdict at all, or only as an instantiation result.

For the person deciding on a waiver

A merge would put on main: a research harness that instantiates main's unchanged WF range proof for one Qwen3.8-27B head (layer 0, V head 0) on a new 1,192 x 8,192 digit table; 25 deterministic, reproducible runs; one results row with 13 metrics; one inventory row. It shows that no interface is missing in blocks/ and that the honest path verifies at this size (about 33 s to prove, 2.4 MB proof, single thread, shared host, unreplicated).

It would NOT establish that the verifier rejects an out-of-range matrix weight. No run gives the verifier a false lookup, and main has no malicious-prover test of WF or LKP either. It would not establish any soundness level, any bound on the 1,666 trace-read weights beyond four bytes each, any tie to PR #231's commitment or to PR #242's claims, any product, or anything about another head, layer or the abliterated checkpoint. "The matrix weights are range-proved" would be a reading of the upstream design, not of evidence in this PR.

What I am least sure of: whether lin_second_tests_verify in form (b) could also be reached by a case where the lookup is false, which would make form (b) partly about the lookup. From reading wf_world.h and the run construction, the lookup in form (b) is computed on the honest matrix's in-range keys and is true, so I believe it is not. I did not instrument the verifier to confirm which of LIN's sub-checks fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant