From 1b5ab4e170b677a9eebd68b436e2a662541ea89d Mon Sep 17 00:00:00 2001 From: wakesync <60821182+wakesync@users.noreply.github.com> Date: Sun, 29 Nov 2026 02:22:05 +0000 Subject: [PATCH 1/7] research: PREREG for #238, M3a-1 weight side on layer 17, stock vs abliterated --- .../20261129-238-qwen-m3a1-layer17/PREREG.md | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/PREREG.md diff --git a/experiments/20261129-238-qwen-m3a1-layer17/PREREG.md b/experiments/20261129-238-qwen-m3a1-layer17/PREREG.md new file mode 100644 index 00000000..f8fd4907 --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/PREREG.md @@ -0,0 +1,66 @@ +# PREREG: 20261129-238-qwen-m3a1-layer17 + +Issue: #238. Lane: l17w. Date (UTC): 2026-11-29 02:25. Base commit: 02d62eb63760fcaf68f47099c70f42aba04a7707. + +Research harness only, CPU only. The statement is the one of PR #231 (`experiments/20261121-229-qwen-m3a1-weight-side`, code `research/operators/qwen_m3a1/qm3a1.cpp`), unchanged in kind, moved from layer 0 to layer 17, V head 0, for both pinned checkpoints. + +## Checked against main before registration (where the issue was right or wrong) + +Read from the merged files at the base commit, before any code: +- Pinned revisions (`experiments/20261109-8-qwen-real-weights/fetch.py`): stock `Qwen/Qwen3.8-27B` at 37561816e66b5b9153b1b64c10968c18c1e6f4a0, abliterated `huihui-ai/Huihui-Qwen3.8-27B-abliterated` at 739e3c5b89849f6c238ce1e5b70008612ae42cdd. As the issue says. +- Merged stream hashes (`runs/stream-stock.json`, `runs/stream-abl.json`) for the 9 layer-17 `linear_attn` tensors: 8 have equal SHA-256 in both checkpoints (A_log, conv1d, dt_bias, in_proj_a, in_proj_b, in_proj_qkv, in_proj_z, norm) and `out_proj.weight` differs. Their byte sizes sum to 231,752,128 (the issue's "about 232 MB"). As the issue says. +- Layout (`research/operators/qwen_m3a1/prepare.py`): rows 515 to 594 of M hold the head's 128 out_proj columns. As the issue says. +- `qm3a1.cpp` does not hard-code layer 0: it reads any M.i32 of the 595 x 8,192 layout. `prepare.py` does (prefix `layers.0.`, stock revision only), so a new prepare script is needed; it imports `prepare.py`'s `build()` and `write()` unchanged. +- **Where the issue's framing needs a correction.** The statement of PR #231 checks the class of the 1,666 row-0 cells and their tie to row 0 of the table. Row 0 is built only from conv1d, norm, A_log and dt_bias, whose layer-17 bytes are equal in both checkpoints. So the content that the proof checks about the weights (row 0) is expected to be identical for stock and abliterated; the difference lives only in rows 515 to 594, which the statement constrains only through the table's root (Merkle openings of the table's columns) and LIN's proximity test, not through any relation on their values. The issue's question "rejected by the weight checks, not only by the transcript" can therefore only be answered by the table openings inside LIN (its shared part), not by the tie. Also, in X2 "v computed honestly from the abliterated table" equals v computed from the trace (row 0 is the same), so X2 differs from X1 only in that its trace transcript is bound to the stock table's name (the regrinding prover of the PR #231 review). The cases below are defined with that in mind. + +## What this step builds + +1. `research/operators/qwen_m3a1l17/prepare_layer.py`: for a chosen layer and checkpoint, fetch only that layer's 9 `linear_attn` tensors by HTTP range with the merged `fetch.py` `get()`, check each tensor's SHA-256 and byte count against the merged `runs/stream-.json` (mismatch stops the lane), convert with the unchanged `build()` of `qwen_m3a1/prepare.py` (DESIGN 5.0, `wb_int.py` `exponent_of`) and write M.i32 with the unchanged `write()`. A `synthetic` mode writes the debug pair (below). +2. `research/operators/qwen_m3a1l17/compare.py`: per-tensor SHA-256 of the head's slices in both checkpoints, the number of differing M entries per row band, the out_proj head-slice floats that differ and how many of those map to the same integer, and the class of every row-0 cell. +3. `research/operators/qwen_m3a1l17/ql17.cpp`: includes `../qwen_m3a1/qm3a1.cpp` unchanged (its `main` renamed by a macro before the include) and adds three modes: `keys` (commit two tables under the same committer coins and print both roots), `cross` (an honest proof over table A checked under table B's key, X1 and X3), and `regrind` (X2). +4. `qm3a1.cpp` itself is built unchanged from its path for the honest, H and C runs. + +## Hypothesis + +At layer 17, V head 0, the two pinned checkpoints give different integer tables (M.i32) and, under the same committer randomness, different table roots; every honest proof of the PR #231 statement verifies under its own checkpoint's key; and a proof made over either checkpoint's table is rejected under the other's key in each of X1, X2, X3. + +## Metric + +Per case: verifier verdict and the refusing check (trace chain reason, LIN reason, with the line in the source). Per checkpoint: SHA-256 of M.i32, conversion exponents. Between checkpoints: equality of the head-slice SHA-256 per tensor; count of differing entries of M in row 0, rows 1 to 514, rows 515 to 594; count of head out_proj floats that differ and of those whose integer is unchanged. Per row-0 cell: in or out of its DESIGN 6.2 class. Timing, proof bytes and peak RSS as in PR #231, measured, unreplicated, one shared host. + +## Acceptance threshold + +PASS iff all of: +1. M.i32 SHA-256 differs between the checkpoints, and K1 (both tables committed with the same committer coin 4242) prints two different roots while K0 (the stock table committed twice with coin 4242) prints the same root twice. +2. Honest proofs accepted 5 of 5 (seeds 1..5) for each checkpoint. +3. For each checkpoint, PR #231's registered cases run unchanged on that checkpoint's table: H1, H1b, H2a, H2b, H3, H4, H5, H6 rejected; C1, C2, C3 accepted. +4. X1 (honest abliterated proof checked under the stock key), X2 (proof with abliterated cells, v from the abliterated table and local targets, every chain bound to the stock key's name, LIN run on the abliterated table) and X3 (honest stock proof checked under the abliterated key) all rejected. + +Reported, not part of PASS (expected values stated now): head-slice SHA-256 equal for conv1d, norm, A_log, dt_bias, in_proj_qkv, in_proj_z, in_proj_a, in_proj_b and different for out_proj; differing M entries 0 in row 0 and rows 1 to 514 and more than 0 in rows 515 to 594; every row-0 cell in class. Expected refusing checks: X1 and X3 at the trace transcript (as H1 of PR #231); X2 trace accepted (its row-0 statement is true) and LIN refused at its shared part (the table openings against the stock root). + +## Negative results (registered) + +- M.i32 equal for both checkpoints: the conversion erased the change at the chosen exponents; then report how many head out_proj floats differ and how many of those moved by less than one integer step. FAIL. +- Any of X1, X2, X3, H1-H6 accepted: soundness finding. Stop, report, fix nothing in this step. +- A row-0 cell of layer 17 out of its DESIGN 6.2 class: a completeness bug of the design at layer 17, reported as such (C-type honest proof then expected to fail). +- X2 refused only by a transcript check and not by a table opening: reported as "the weight checks were not reached". + +## Kill criterion + +Hard stop 2026-11-29T05:00Z (170 minutes after the lane's first STATE line at 02:10Z). Stop and report if: the work needs a change to any existing file under `blocks/`, `prover/`, `verifier/` or `research/operators/`; a fetched tensor's SHA-256 differs from the merged stream hash; a run passes 10 GB RSS; a hostile case is accepted. No widening or weakening of the statement after a failure. + +## Runs + +Honest: 5 per checkpoint, prover seeds 1..5. H1-H6, C1-C3: one run each per checkpoint, prover seed 1, exactly as `qm3a1.cpp` defines them. X1, X2, X3: one run each, prover seed 1, verifier key committed with coin 991 (as H1). K0, K1: one run each, coin 4242. What varies between honest runs: the prover's randomness only. Each run's output goes to its own file under `runs/`, written once, with its UTC start time. Debug: only on a synthetic pair (numpy seed 9101 table as "head 1", and a copy whose rows 515 to 594 are redrawn with seed 9102), never on the real tables, never kept as evidence. No registered case runs before this registration. Cores 0-1; the suite runs through the host's heavy-job gate. + +## Prior art + +PR #231 built this statement on layer 0 (byte-identical in both checkpoints, PR #68 A3). PR #68 found the 70 changed tensors (2 per layer, 17 to 51) and the near rank-1 change on 3 sampled tensors. DESIGN.md of `experiments/20261109-32-qwen-m3-design` sections 6.2 and 10 state that only a block in 17 to 51 can tell the checkpoints apart. Weight commitments in zkML (zkLLM, EZKL, Jolt-based systems) identify a model by a commitment root; what is new here is only measuring, on one real changed head, whether this fork's committed-table statement and its conversion keep the abliteration edit visible. + +## Not in this step + +No head computation (no in_proj, conv, gates, norms, recurrence, out_proj product). No range on the matrix weights (rows 1 to 594 bounded by nothing; the WF draft is out of scope). No other layer or head. No manifest that says which root is the advertised checkpoint (#59): a verifier here simply holds one key. No soundness level: the trace runs at the research setting (target 10 bits) and LIN on the unpriced hand-made plan of `blocks/iop/tests/lin_world.h`, as in PR #231. The hostile cases are one complete proof each, not an adversary search. + +## Amendments + +(empty at registration) From 1c558e6030db6a755232a52c08c0145c1d8c2a89 Mon Sep 17 00:00:00 2001 From: wakesync <60821182+wakesync@users.noreply.github.com> Date: Sun, 29 Nov 2026 02:28:37 +0000 Subject: [PATCH 2/7] research: #238 code (prepare_layer, ql17 including qm3a1.cpp unchanged, compare, runner), inventory row OP-R21, PREREG amendment A1 before any registered run --- .../20261129-238-qwen-m3a1-layer17/PREREG.md | 8 +- research/coverage/inventory.yaml | 10 ++ research/operators/qwen_m3a1l17/compare.py | 102 +++++++++++++++ .../operators/qwen_m3a1l17/prepare_layer.py | 86 +++++++++++++ research/operators/qwen_m3a1l17/ql17.cpp | 119 ++++++++++++++++++ .../operators/qwen_m3a1l17/run_registered.py | 57 +++++++++ 6 files changed, 381 insertions(+), 1 deletion(-) create mode 100644 research/operators/qwen_m3a1l17/compare.py create mode 100644 research/operators/qwen_m3a1l17/prepare_layer.py create mode 100644 research/operators/qwen_m3a1l17/ql17.cpp create mode 100644 research/operators/qwen_m3a1l17/run_registered.py diff --git a/experiments/20261129-238-qwen-m3a1-layer17/PREREG.md b/experiments/20261129-238-qwen-m3a1-layer17/PREREG.md index f8fd4907..c5652919 100644 --- a/experiments/20261129-238-qwen-m3a1-layer17/PREREG.md +++ b/experiments/20261129-238-qwen-m3a1-layer17/PREREG.md @@ -63,4 +63,10 @@ No head computation (no in_proj, conv, gates, norms, recurrence, out_proj produc ## Amendments -(empty at registration) +### A1 (2026-11-29 02:29 UTC, after code, synthetic debug and the two fetches, BEFORE any registered run) +Concrete choices the code makes that the registration did not fix. None changes the statement, a threshold or a case. +- Fetches done (02:21 to 02:25 UTC): all 9 tensors of each checkpoint matched the merged stream SHA-256 and byte count. The two M.i32 files were written by `prepare_layer.py real`; only their SHA-256 and the summary (exponents, ranges) were looked at before this amendment. No proof, key or comparison has been run on them. +- `ql17.cpp` modes: `keys A B coin` commits A then B with the same `TestCoins(coin)` seed each and prints both roots. `cross A B name` is `qm3a1.cpp`'s `run_case` with cells and table from A, verifier key from B committed with coin 991 (exactly how H1 is built). `regrind A B name` (X2): table A committed with coin 78 (as `run_case` at seed 1), table B with coin 991; the trace is sized and proved with B's name (root and record) in its first query, cells from A's row 0, v from A's row 0 (`VFrom::TABLE`) and local targets; LIN is proved on A's index with B's name in all three chains, calling `lin_shared_prove_on_shape` directly (the wrapper `lin_shared_prove` refuses a keeper whose root differs from the named one; that is a prover-side guard). The verifier is `qm3a1.cpp`'s, holding B's key. +- Synthetic debug (seed 9101 pair, never registered, outputs not kept): keys with equal tables gave equal roots and with different rows 515 to 594 different roots; cross was refused by the trace transcript; regrind was accepted by the trace and refused by "LIN shared part"; an honest proof verified. +- Runner `research/operators/qwen_m3a1l17/run_registered.py`, two groups through the heavy-job gate on cores 0-1: group stock (K0, K1, stock honest 1..5, stock H1 to C3), then group abl (abl honest 1..5, abl H1 to C3, X1, X2, X3). `compare.py` runs once after them. +- qm3a1.bin is built from `research/operators/qwen_m3a1/qm3a1.cpp` with the flags of its README; ql17.bin from `ql17.cpp` with the same flags. diff --git a/research/coverage/inventory.yaml b/research/coverage/inventory.yaml index a82546ef..55777617 100644 --- a/research/coverage/inventory.yaml +++ b/research/coverage/inventory.yaml @@ -378,6 +378,16 @@ rows: - {file: research/operators/qwen_m3a1/qm3a1.cpp, symbol: 'static std::vector relations('} - {file: research/operators/qwen_m3a1/qm3a1.cpp, symbol: 'static bool lin_check('} note: "does not bound the 3,287,040 matrix weights (rows 1 to 594 of the table); research harness, no security level" + - id: OP-R21 + category: operator + scope: research + element: "Qwen M3a-1 weight side on layer 17, stock vs abliterated (research/operators/qwen_m3a1l17, issue #238): OP-R20's statement on a layer the abliteration changes, and a proof made over one checkpoint's table checked under the other's key" + relation: "experiments/20261129-238-qwen-m3a1-layer17; ql17.cpp includes qm3a1.cpp unchanged, so the class relations and the tie are OP-R20's; its own enforcing part is the cross-key and regrind cases, checked by qm3a1.cpp's verifier under the other table's key" + enforcement: proof_constraint + sites: + - {file: research/operators/qwen_m3a1l17/ql17.cpp, symbol: 'static void regrind(const World &W'} + - {file: research/operators/qwen_m3a1/qm3a1.cpp, symbol: 'static bool lin_check('} + note: "the abliteration edit is in out_proj (table rows 515 to 594), which only the table root and LIN's proximity test constrain; no relation on those values, no range on any matrix weight; research harness, no security level" # ---------------------------------------------------------------- range and rounding rules - id: RR-01 category: range_rounding diff --git a/research/operators/qwen_m3a1l17/compare.py b/research/operators/qwen_m3a1l17/compare.py new file mode 100644 index 00000000..51933e9d --- /dev/null +++ b/research/operators/qwen_m3a1l17/compare.py @@ -0,0 +1,102 @@ +#!/usr/bin/env python3 +"""Compare the stock and abliterated M3a-1 tables of one layer (V head 0), from the data directories of prepare_layer.py. + +Research only (issue #238). Reads the fetched tensors (already SHA-256 checked by prepare_layer.py) +and the two M.i32 files, and writes one JSON with counts only (no weight values except the class +ranges of row 0 and the conversion exponents): + - per tensor: SHA-256 of the whole tensor and of the head-0 slice that enters M, equal or not; + - per band of M (row 0, rows 1..514, rows 515..594): number of entries that differ; + - out_proj head slice: floats that differ, and how many of those keep the same integer after + conversion (moved by less than one integer step at the chosen exponent); + - row 0: every cell's DESIGN 6.2 class ([-4096, 4095] for taps, gains, cA; [-2^17, 2^17) for dt). +Usage: compare.py (refuses to overwrite out.json) +""" +import hashlib, json, sys +from pathlib import Path + +import numpy as np + +ROOT = Path(__file__).resolve().parents[3] +sys.path.insert(0, str(ROOT / "research" / "operators" / "qwen_m3a1")) +import prepare as m3a1 # noqa: E402 + +D, H = 128, 0 + + +def floats(p): + u = np.frombuffer(p.read_bytes(), dtype="= -4096) & (narrow <= 4095))), + dt_in_class=bool(-(1 << 17) <= dt < (1 << 17)), + taps_min_max=[int(c[:1536].min()), int(c[:1536].max())], gains_min_max=[int(c[1536:1664].min()), int(c[1536:1664].max())], + cA=int(c[1664]), dt=dt) + res = dict(layer=layer, v_head=H, qk_head=H // 3, tensors=tens, M_entries_differing=bands, out_proj_head=op, + row0_class_stock=classes(cells_s), row0_class_abl=classes(cells_a), + row0_identical=bool(np.array_equal(cells_s, cells_a)), + M_sha256_stock=hashlib.sha256(Ms.tobytes()).hexdigest(), M_sha256_abl=hashlib.sha256(Ma.tobytes()).hexdigest()) + out.write_text(json.dumps(res, indent=1) + "\n") + print(json.dumps(dict(bands=bands, out_proj_head=op, row0_identical=res["row0_identical"], + slices_equal={k: v["head_slice_sha256_equal"] for k, v in tens.items()}))) + + +if __name__ == "__main__": + main() diff --git a/research/operators/qwen_m3a1l17/prepare_layer.py b/research/operators/qwen_m3a1l17/prepare_layer.py new file mode 100644 index 00000000..3e2adc9c --- /dev/null +++ b/research/operators/qwen_m3a1l17/prepare_layer.py @@ -0,0 +1,86 @@ +#!/usr/bin/env python3 +"""M3a-1 weight table (595 x 8192, int32) of V head 0 of one DeltaNet layer, for either pinned checkpoint. + +Research only (issue #238). Fetches the chosen layer's 9 linear_attn tensors of the pinned STOCK or +ABLITERATED revision by HTTP range with the merged experiments/20261109-8-qwen-real-weights/fetch.py +get(), checks each tensor's SHA-256 and byte count against the merged runs/stream-.json (a +mismatch stops), and converts with build() and write() of research/operators/qwen_m3a1/prepare.py, +imported unchanged (DESIGN 5.0 of experiments/20261109-32-qwen-m3-design, wb_int.py exponent_of). +Raw tensors and M.i32 go to a data directory OUTSIDE the repository; the summary holds shapes, +exponents, SHA-256 values and ranges only. + +Usage: + prepare_layer.py real + prepare_layer.py synthetic + debug pair, no real weights: numpy seed 9101 as "head 1" (prepare.py's fixture); the "abl" + member redraws rows 515..594 with seed 9102. Never a registered input. +""" +import hashlib, json, sys, time +from pathlib import Path + +import numpy as np + +ROOT = Path(__file__).resolve().parents[3] +sys.path.insert(0, str(ROOT / "research" / "operators" / "qwen_m3a1")) +import prepare as m3a1 # noqa: E402 (merged build(), write(), rw_fetch) + +rw_fetch = m3a1.rw_fetch +STREAM = {"stock": "stream-stock.json", "abl": "stream-abl.json"} + + +def stream_entry(ckpt, name): + s = json.load(open(ROOT / "experiments/20261109-8-qwen-real-weights/runs" / STREAM[ckpt])) + for shard, v in s["shards"].items(): + if name in v["tensors"]: + return s, shard, v["header_len"], v["tensors"][name] + raise KeyError(name) + + +def fetch_tensor(ckpt, name, data_dir): + repo, rev = rw_fetch.REPOS[ckpt] + s, shard, hl, t = stream_entry(ckpt, name) + assert s["repo"] == repo and s["rev"] == rev, (s["repo"], s["rev"], repo, rev) + path = data_dir / (name + ".bin") + if not path.exists(): + lo, hi = 8 + hl + t["begin"], 8 + hl + t["end"] - 1 + data = rw_fetch.get(f"https://huggingface.co/{repo}/resolve/{rev}/{shard}", f"bytes={lo}-{hi}") + path.write_bytes(data) + data = path.read_bytes() + h = hashlib.sha256(data).hexdigest() + if h != t["sha256"] or len(data) != t["nbytes"]: + raise SystemExit(f"STOP: {name} sha256 {h} differs from the merged stream hash {t['sha256']}") + u = np.frombuffer(data, dtype=" commit both tables with the same committer coin; print both roots +// cross honest proof over table A (prover seed 1), checked by a verifier +// that holds table B's key (committed with coin 991, as H1) +// regrind X2: a prover that holds table A and the cells of A's row 0, but +// binds every chain to table B's name (root and record): trace +// with v from A's row 0 and local targets, LIN on A's index under +// B's name. Checked by a verifier that holds B's key. +// The regrind prover calls lin_shared_prove_on_shape directly, because lin_shared_prove refuses +// (BLK_REQUIRE) a keeper whose commitment differs from the chain's name; that refusal is a prover-side +// guard, not a verifier check. No verifier code is changed or added: run_verifier, trace_decide and +// lin_check are qm3a1.cpp's. +#define main qm3a1_main +#include "../qwen_m3a1/qm3a1.cpp" +#undef main + +static std::vector load_M(const char *path) { + std::ifstream f(path, std::ios::binary); need(bool(f), "open M.i32"); + std::vector raw(ROWS * COLS); f.read((char *)raw.data(), raw.size() * 4); + need(f.gcount() == (std::streamsize)(raw.size() * 4), "M.i32 size"); + std::vector M(raw.begin(), raw.end()); + for (u64 j = NCELLS; j < COLS; j++) need(M[j] == 0, "row 0 is zero past the cells"); + return M; +} +static std::string hex(const std::vector &b) { + static const char *d = "0123456789abcdef"; std::string s; + for (u8 x : b) s += d[x >> 4], s += d[x & 15]; + return s; +} + +// As qm3a1.cpp lin_prove, but the chains name `table` (another table's root and record) while the +// keeper is `index`. +static LinView lin_prove_named(const LinWorld &w, IndexCpu &index, const IndexName &table, const std::vector &row0, const TieOut &tie, u64 seed) { + const LinShape &S = w.S; TestCoins coins(5000 + seed); EngineCpu engine; LinView view; + LinBinding binding(w.binding, w.configuration, coins); + std::unique_ptr begun; need(lin_begin(index, S, begun), "LIN: the table's tails cover a batch"); + Writer first_w, second_w, shared_w, path_w; + Binder b(1, w.first); const FirstBound x = bind_first(b, w, table, tie.psi, tie.v); + ProverRounds ch(b, toy_random_bytes(seed + 100), first_w); + ProverContext P(x.lin.codes, ch, engine, coins); + std::vector drafts; drafts.push_back(lin_draft(P, ch.get(x.input).shape, false, ch.get(x.input).leaf_class, {})); + const OracleId input = send_prove(P, std::move(drafts))[0]; + LinClaim claim; claim.g.push_back(row0_weight(S)); claim.psi = ch.get(x.psi); + std::vector wc(COLS); for (u64 j = 0; j < COLS; j++) wc[j] = E::from(row0[j]); + claim.target = ch.get(x.v); + claim.add_mask(P.st.masks(input).take(), E::zero()); + ch.send(claim.target); + LinFirst lf = lin_first_prove(P, x.lin, std::move(claim), wc); + Sealed seal; need(ch.seal(R_SEAL, seal), "seal"); ch.finish(); + binding.put(0, seal.digest()); + Binder sb(LIN_LABEL_SHARED, w.shared); sb.configuration(w.configuration); + const LinPublic sx = lin_bind_shared(sb, w.codes, w.S, table, binding.root()); + ProverRounds sch(sb, Digest{}, shared_w); ProverContext SP(sx.codes, sch, engine, coins); + LinShared shared; shared.bound = sx; + lin_shared_prove_on_shape(SP, SP.ch.get(sx.shape), sx.places, w.test, index, table.record, std::move(begun), shared); + lin_shared_tests_prove(SP, sx, shared); + Sealed shared_seal; need(sch.seal(R_SEAL, shared_seal), "shared seal"); sch.finish(); SP.st.require_all_tested(); + Binder b2(LIN_LABEL_SECOND, w.second); b2.configuration(w.configuration); lin_bind_second(b2, seal, shared_seal); + ProverRounds ch2(b2, toy_random_bytes(seed + 200), second_w); + ProverContext P2 = lin_go_on(std::move(P), ch2); + const LinSecond second = lin_second_prove(P2, x.lin, lf, SP, shared); + lin_second_tests_prove(P2, x.lin, lf, second); ch2.finish(); P2.st.require_all_tested(); + binding.write_path(path_w, 0); lin_release(SP, shared); + view.target = tie.v; view.first = first_w.bytes(), view.path = path_w.bytes(), view.shared = shared_w.bytes(), view.second = second_w.bytes(); + return view; +} + +static void regrind(const World &W, const std::string &name_of_case, const std::vector &A, const std::vector &B, u64 seed) { + auto t0 = std::chrono::steady_clock::now(); + Committed ca = commit(W, A, 77 + seed); + Committed cb = commit(W, B, 991); + const double commit_s = secs(t0); + const IndexName bname{cb.key.commitment(), cb.key.rec}; + std::vector row0(COLS); for (u64 j = 0; j < COLS; j++) row0[j] = fi(A[j]); + std::vector cells(A.begin(), A.begin() + NCELLS); + const Table tab = trace_table(W.L, cells); + auto tp = std::chrono::steady_clock::now(); + TraceRun run = trace_size(W.set, W.L.log_len, W.rel, bname); + need(run.product.plan->holds(), "trace plan holds"); + TieOut tie; Writer tp_bytes = trace_prove(run, tab, row0, VFrom::TABLE, true, seed, tie); + LinView view = lin_prove_named(W.lw, *ca.index, bname, row0, tie, seed); + const double prove_s = secs(tp); + auto tv = std::chrono::steady_clock::now(); + TraceRun vrun = trace_size(W.set, W.L.log_len, W.rel, bname); + TieOut vt; const char *twhy = nullptr; + const bool tok = run_verifier(TIE_LABEL, vrun.product.plan, vrun, trace_bind, trace_decide, tp_bytes.data(), tp_bytes.size(), vt, &twhy); + const char *lwhy = "not run: the trace chain was refused"; bool lok = false; + if (tok) lok = lin_check(W.lw, cb.key, vt, view, lwhy); + const double verify_s = secs(tv); + const size_t lin_bytes = view.first.size() + view.path.size() + view.shared.size() + view.second.size(); + emit("hostile", name_of_case, tok, twhy, lok, lwhy, W, tp_bytes.size(), lin_bytes, commit_s, prove_s, verify_s); +} + +int main(int argc, char **argv) { + if (argc >= 2 && (std::string(argv[1]) == "keys" || std::string(argv[1]) == "cross" || std::string(argv[1]) == "regrind")) { + need(argc == 5, "usage: ql17.bin keys|cross|regrind "); + const std::string mode = argv[1]; + const std::vector A = load_M(argv[2]), B = load_M(argv[3]); + World W; + if (mode == "keys") { + const u64 coin = std::strtoull(argv[4], nullptr, 10); + Committed ca = commit(W, A, coin), cb = commit(W, B, coin); + const std::string ra = hex(ca.key.commitment()), rb = hex(cb.key.commitment()); + std::printf("{\"mode\":\"keys\",\"coin\":%llu,\"root_A\":\"%s\",\"root_B\":\"%s\",\"roots_equal\":%s,\"peak_rss_kb\":%ld}\n", + (unsigned long long)coin, ra.c_str(), rb.c_str(), ra == rb ? "true" : "false", rss_kb()); + return 0; + } + std::vector cells(A.begin(), A.begin() + NCELLS); + if (mode == "cross") run_case(W, "hostile", argv[4], cells, A, VFrom::TRACE, false, 1, &B, 991); + else regrind(W, argv[4], A, B, 1); + return 0; + } + return qm3a1_main(argc, argv); +} diff --git a/research/operators/qwen_m3a1l17/run_registered.py b/research/operators/qwen_m3a1l17/run_registered.py new file mode 100644 index 00000000..5618bbc7 --- /dev/null +++ b/research/operators/qwen_m3a1l17/run_registered.py @@ -0,0 +1,57 @@ +#!/usr/bin/env python3 +"""Registered runs of experiments/20261129-238-qwen-m3a1-layer17 (PREREG.md, amendment A1). + +Each run's output goes to its own file under , written once (refuses to overwrite), with its +UTC start time. Run on cores 0-1. +Usage: run_registered.py + group stock: K0, K1, honest seeds 1..5 and PR #231's H1-H6, C1-C3 on the stock table + group abl: honest seeds 1..5 and H1-H6, C1-C3 on the abliterated table, then X1, X2, X3 +""" +import datetime, json, subprocess, sys, time +from pathlib import Path + +CASES = ["H1-other-root-one-tap", "H1b-other-root-same-weights", "H2a-tap-changed-v-from-trace", "H2b-tap-changed-v-from-table", + "H3-gain-2^50-trace-and-table", "H4-gain-in-class-not-the-tables", "H5-dt-2^17", "H6-table-row0-pad-nonzero", + "C1-dt-78848", "C2-dt-minus-23424", "C3-dt-2^17-minus-1"] + + +def one(cmd, out): + if out.exists(): + raise SystemExit(f"refusing to overwrite {out.name}") + start = datetime.datetime.now(datetime.timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ") + t0 = time.time() + r = subprocess.run(["taskset", "-c", "0-1", "/usr/bin/time", "-v"] + cmd, capture_output=True, text=True, timeout=1800) + rss = [l for l in r.stderr.splitlines() if "Maximum resident set size" in l] + rec = dict(start_utc=start, args=[Path(cmd[0]).name] + [Path(c).name if "/" in c else c for c in cmd[1:]], exit=r.returncode, + wall_s=round(time.time() - t0, 3), stdout=r.stdout.strip().splitlines(), + max_rss_kb_time=int(rss[0].split()[-1]) if rss else None, + stderr_tail=[l for l in r.stderr.splitlines() if "FAIL" in l or "REQUIRE" in l][-5:]) + out.write_text(json.dumps(rec, indent=1) + "\n") + last = json.loads(rec["stdout"][-1]) if rec["stdout"] else {} + print(out.name, "exit", r.returncode, "accepted", last.get("accepted", last.get("roots_equal")), last.get("trace_why"), "|", last.get("lin_why"), flush=True) + + +def main(): + group, qm, ql, Ms, Ma, runs = sys.argv[1], sys.argv[2], sys.argv[3], sys.argv[4], sys.argv[5], Path(sys.argv[6]) + runs.mkdir(parents=True, exist_ok=True) + if group == "stock": + one([ql, "keys", Ms, Ms, "4242"], runs / "K0-stock-twice-coin4242.json") + one([ql, "keys", Ms, Ma, "4242"], runs / "K1-stock-vs-abl-coin4242.json") + tables = [("stock", Ms)] + elif group == "abl": + tables = [("abl", Ma)] + else: + raise SystemExit("group: stock | abl") + for tag, M in tables: + for s in range(1, 6): + one([qm, M, "honest", str(s)], runs / f"{tag}-honest-seed{s}.json") + for c in CASES: + one([qm, M, "case", c], runs / f"{tag}-case-{c.replace('^', '')}.json") + if group == "abl": + one([ql, "cross", Ma, Ms, "X1-abl-proof-stock-key"], runs / "X1-abl-proof-stock-key.json") + one([ql, "regrind", Ma, Ms, "X2-abl-cells-bound-to-stock-name"], runs / "X2-abl-cells-bound-to-stock-name.json") + one([ql, "cross", Ms, Ma, "X3-stock-proof-abl-key"], runs / "X3-stock-proof-abl-key.json") + + +if __name__ == "__main__": + main() From 69222963a66aa1d5d1e7583beb6d3e05e9fac8f2 Mon Sep 17 00:00:00 2001 From: wakesync <60821182+wakesync@users.noreply.github.com> Date: Sun, 29 Nov 2026 02:33:52 +0000 Subject: [PATCH 3/7] research: #238 registered runs (K0, K1, honest and H/C per checkpoint, X1-X3), compare-layer17.json, weight summaries, summary.json --- .../runs/K0-stock-twice-coin4242.json | 17 + .../runs/K1-stock-vs-abl-coin4242.json | 17 + .../runs/X1-abl-proof-stock-key.json | 17 + .../X2-abl-cells-bound-to-stock-name.json | 17 + .../runs/X3-stock-proof-abl-key.json | 17 + .../runs/abl-case-C1-dt-78848.json | 16 + .../runs/abl-case-C2-dt-minus-23424.json | 16 + .../runs/abl-case-C3-dt-217-minus-1.json | 16 + .../runs/abl-case-H1-other-root-one-tap.json | 16 + .../abl-case-H1b-other-root-same-weights.json | 16 + ...abl-case-H2a-tap-changed-v-from-trace.json | 16 + ...abl-case-H2b-tap-changed-v-from-table.json | 16 + .../abl-case-H3-gain-250-trace-and-table.json | 16 + ...-case-H4-gain-in-class-not-the-tables.json | 16 + .../runs/abl-case-H5-dt-217.json | 16 + .../abl-case-H6-table-row0-pad-nonzero.json | 16 + .../runs/abl-honest-seed1.json | 16 + .../runs/abl-honest-seed2.json | 16 + .../runs/abl-honest-seed3.json | 16 + .../runs/abl-honest-seed4.json | 16 + .../runs/abl-honest-seed5.json | 16 + .../runs/compare-layer17.json | 198 +++++++++++ .../runs/stock-case-C1-dt-78848.json | 16 + .../runs/stock-case-C2-dt-minus-23424.json | 16 + .../runs/stock-case-C3-dt-217-minus-1.json | 16 + .../stock-case-H1-other-root-one-tap.json | 16 + ...tock-case-H1b-other-root-same-weights.json | 16 + ...ock-case-H2a-tap-changed-v-from-trace.json | 16 + ...ock-case-H2b-tap-changed-v-from-table.json | 16 + ...tock-case-H3-gain-250-trace-and-table.json | 16 + ...-case-H4-gain-in-class-not-the-tables.json | 16 + .../runs/stock-case-H5-dt-217.json | 16 + .../stock-case-H6-table-row0-pad-nonzero.json | 16 + .../runs/stock-honest-seed1.json | 16 + .../runs/stock-honest-seed2.json | 16 + .../runs/stock-honest-seed3.json | 16 + .../runs/stock-honest-seed4.json | 16 + .../runs/stock-honest-seed5.json | 16 + .../runs/summary.json | 319 ++++++++++++++++++ .../runs/weights-layer17-abl.json | 125 +++++++ .../runs/weights-layer17-stock.json | 125 +++++++ research/operators/qwen_m3a1l17/summarise.py | 55 +++ 42 files changed, 1419 insertions(+) create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/K0-stock-twice-coin4242.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/K1-stock-vs-abl-coin4242.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/X1-abl-proof-stock-key.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/X2-abl-cells-bound-to-stock-name.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/X3-stock-proof-abl-key.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-C1-dt-78848.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-C2-dt-minus-23424.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-C3-dt-217-minus-1.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-H1-other-root-one-tap.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-H1b-other-root-same-weights.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-H2a-tap-changed-v-from-trace.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-H2b-tap-changed-v-from-table.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-H3-gain-250-trace-and-table.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-H4-gain-in-class-not-the-tables.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-H5-dt-217.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-H6-table-row0-pad-nonzero.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/abl-honest-seed1.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/abl-honest-seed2.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/abl-honest-seed3.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/abl-honest-seed4.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/abl-honest-seed5.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/compare-layer17.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-C1-dt-78848.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-C2-dt-minus-23424.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-C3-dt-217-minus-1.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-H1-other-root-one-tap.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-H1b-other-root-same-weights.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-H2a-tap-changed-v-from-trace.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-H2b-tap-changed-v-from-table.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-H3-gain-250-trace-and-table.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-H4-gain-in-class-not-the-tables.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-H5-dt-217.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-H6-table-row0-pad-nonzero.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/stock-honest-seed1.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/stock-honest-seed2.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/stock-honest-seed3.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/stock-honest-seed4.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/stock-honest-seed5.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/summary.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/weights-layer17-abl.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/weights-layer17-stock.json create mode 100644 research/operators/qwen_m3a1l17/summarise.py diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/K0-stock-twice-coin4242.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/K0-stock-twice-coin4242.json new file mode 100644 index 00000000..3fb24877 --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/K0-stock-twice-coin4242.json @@ -0,0 +1,17 @@ +{ + "start_utc": "2026-11-29T02:28:54Z", + "args": [ + "ql17.bin", + "keys", + "M.i32", + "M.i32", + "4242" + ], + "exit": 0, + "wall_s": 7.401, + "stdout": [ + "{\"mode\":\"keys\",\"coin\":4242,\"root_A\":\"4c47e27cc447ad50b30c4ea5b2425582559b838219c2c301a1e65eb3850f05d9\",\"root_B\":\"4c47e27cc447ad50b30c4ea5b2425582559b838219c2c301a1e65eb3850f05d9\",\"roots_equal\":true,\"peak_rss_kb\":779500}" + ], + "max_rss_kb_time": 779500, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/K1-stock-vs-abl-coin4242.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/K1-stock-vs-abl-coin4242.json new file mode 100644 index 00000000..54d1e086 --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/K1-stock-vs-abl-coin4242.json @@ -0,0 +1,17 @@ +{ + "start_utc": "2026-11-29T02:29:01Z", + "args": [ + "ql17.bin", + "keys", + "M.i32", + "M.i32", + "4242" + ], + "exit": 0, + "wall_s": 7.271, + "stdout": [ + "{\"mode\":\"keys\",\"coin\":4242,\"root_A\":\"4c47e27cc447ad50b30c4ea5b2425582559b838219c2c301a1e65eb3850f05d9\",\"root_B\":\"baec7eea66bf9e05492996bf16757a44176218208a2f2238b7ddd75b0e9e0210\",\"roots_equal\":false,\"peak_rss_kb\":779500}" + ], + "max_rss_kb_time": 779500, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/X1-abl-proof-stock-key.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/X1-abl-proof-stock-key.json new file mode 100644 index 00000000..39f470c9 --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/X1-abl-proof-stock-key.json @@ -0,0 +1,17 @@ +{ + "start_utc": "2026-11-29T02:32:02Z", + "args": [ + "ql17.bin", + "cross", + "M.i32", + "M.i32", + "X1-abl-proof-stock-key" + ], + "exit": 0, + "wall_s": 8.387, + "stdout": [ + "{\"mode\":\"hostile\",\"case\":\"X1-abl-proof-stock-key\",\"accepted\":false,\"trace_accepted\":false,\"trace_why\":\"a nonce does not give the proof of work that its round asks for\",\"lin_accepted\":false,\"lin_why\":\"not run: the trace chain was refused\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":420952,\"lin_proof_bytes\":224216,\"commit_s\":7.239,\"prove_s\":0.928,\"verify_s\":0.080,\"peak_rss_kb\":808308}" + ], + "max_rss_kb_time": 808436, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/X2-abl-cells-bound-to-stock-name.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/X2-abl-cells-bound-to-stock-name.json new file mode 100644 index 00000000..2a3d9b2e --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/X2-abl-cells-bound-to-stock-name.json @@ -0,0 +1,17 @@ +{ + "start_utc": "2026-11-29T02:32:11Z", + "args": [ + "ql17.bin", + "regrind", + "M.i32", + "M.i32", + "X2-abl-cells-bound-to-stock-name" + ], + "exit": 0, + "wall_s": 8.096, + "stdout": [ + "{\"mode\":\"hostile\",\"case\":\"X2-abl-cells-bound-to-stock-name\",\"accepted\":false,\"trace_accepted\":true,\"trace_why\":\"accepted\",\"lin_accepted\":false,\"lin_why\":\"LIN shared part\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":421144,\"lin_proof_bytes\":224312,\"commit_s\":7.108,\"prove_s\":0.763,\"verify_s\":0.091,\"peak_rss_kb\":808308}" + ], + "max_rss_kb_time": 808436, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/X3-stock-proof-abl-key.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/X3-stock-proof-abl-key.json new file mode 100644 index 00000000..dd5470a0 --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/X3-stock-proof-abl-key.json @@ -0,0 +1,17 @@ +{ + "start_utc": "2026-11-29T02:32:19Z", + "args": [ + "ql17.bin", + "cross", + "M.i32", + "M.i32", + "X3-stock-proof-abl-key" + ], + "exit": 0, + "wall_s": 8.382, + "stdout": [ + "{\"mode\":\"hostile\",\"case\":\"X3-stock-proof-abl-key\",\"accepted\":false,\"trace_accepted\":false,\"trace_why\":\"a nonce does not give the proof of work that its round asks for\",\"lin_accepted\":false,\"lin_why\":\"not run: the trace chain was refused\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":421144,\"lin_proof_bytes\":225240,\"commit_s\":7.197,\"prove_s\":0.966,\"verify_s\":0.081,\"peak_rss_kb\":808312}" + ], + "max_rss_kb_time": 808440, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-C1-dt-78848.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-C1-dt-78848.json new file mode 100644 index 00000000..87aa5ea0 --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-C1-dt-78848.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:31:48Z", + "args": [ + "qm3a1.bin", + "M.i32", + "case", + "C1-dt-78848" + ], + "exit": 0, + "wall_s": 4.795, + "stdout": [ + "{\"mode\":\"completeness\",\"case\":\"C1-dt-78848\",\"accepted\":true,\"trace_accepted\":true,\"trace_why\":\"accepted\",\"lin_accepted\":true,\"lin_why\":\"accepted\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":420600,\"lin_proof_bytes\":224984,\"commit_s\":3.591,\"prove_s\":0.986,\"verify_s\":0.113,\"peak_rss_kb\":490732}" + ], + "max_rss_kb_time": 490732, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-C2-dt-minus-23424.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-C2-dt-minus-23424.json new file mode 100644 index 00000000..74adaa79 --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-C2-dt-minus-23424.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:31:53Z", + "args": [ + "qm3a1.bin", + "M.i32", + "case", + "C2-dt-minus-23424" + ], + "exit": 0, + "wall_s": 4.784, + "stdout": [ + "{\"mode\":\"completeness\",\"case\":\"C2-dt-minus-23424\",\"accepted\":true,\"trace_accepted\":true,\"trace_why\":\"accepted\",\"lin_accepted\":true,\"lin_why\":\"accepted\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":421176,\"lin_proof_bytes\":224328,\"commit_s\":3.600,\"prove_s\":0.969,\"verify_s\":0.112,\"peak_rss_kb\":491300}" + ], + "max_rss_kb_time": 491300, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-C3-dt-217-minus-1.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-C3-dt-217-minus-1.json new file mode 100644 index 00000000..6b742bb4 --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-C3-dt-217-minus-1.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:31:58Z", + "args": [ + "qm3a1.bin", + "M.i32", + "case", + "C3-dt-2^17-minus-1" + ], + "exit": 0, + "wall_s": 4.857, + "stdout": [ + "{\"mode\":\"completeness\",\"case\":\"C3-dt-2^17-minus-1\",\"accepted\":true,\"trace_accepted\":true,\"trace_why\":\"accepted\",\"lin_accepted\":true,\"lin_why\":\"accepted\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":421176,\"lin_proof_bytes\":225656,\"commit_s\":3.625,\"prove_s\":0.995,\"verify_s\":0.123,\"peak_rss_kb\":493348}" + ], + "max_rss_kb_time": 493348, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-H1-other-root-one-tap.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-H1-other-root-one-tap.json new file mode 100644 index 00000000..269c108c --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-H1-other-root-one-tap.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:31:03Z", + "args": [ + "qm3a1.bin", + "M.i32", + "case", + "H1-other-root-one-tap" + ], + "exit": 0, + "wall_s": 8.425, + "stdout": [ + "{\"mode\":\"hostile\",\"case\":\"H1-other-root-one-tap\",\"accepted\":false,\"trace_accepted\":false,\"trace_why\":\"a nonce does not give the proof of work that its round asks for\",\"lin_accepted\":false,\"lin_why\":\"not run: the trace chain was refused\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":420952,\"lin_proof_bytes\":224216,\"commit_s\":7.255,\"prove_s\":0.966,\"verify_s\":0.081,\"peak_rss_kb\":818236}" + ], + "max_rss_kb_time": 818236, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-H1b-other-root-same-weights.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-H1b-other-root-same-weights.json new file mode 100644 index 00000000..759546c2 --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-H1b-other-root-same-weights.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:31:11Z", + "args": [ + "qm3a1.bin", + "M.i32", + "case", + "H1b-other-root-same-weights" + ], + "exit": 0, + "wall_s": 8.277, + "stdout": [ + "{\"mode\":\"hostile\",\"case\":\"H1b-other-root-same-weights\",\"accepted\":false,\"trace_accepted\":false,\"trace_why\":\"a nonce does not give the proof of work that its round asks for\",\"lin_accepted\":false,\"lin_why\":\"not run: the trace chain was refused\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":420952,\"lin_proof_bytes\":224216,\"commit_s\":7.109,\"prove_s\":0.977,\"verify_s\":0.088,\"peak_rss_kb\":780132}" + ], + "max_rss_kb_time": 780132, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-H2a-tap-changed-v-from-trace.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-H2a-tap-changed-v-from-trace.json new file mode 100644 index 00000000..223357ee --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-H2a-tap-changed-v-from-trace.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:31:19Z", + "args": [ + "qm3a1.bin", + "M.i32", + "case", + "H2a-tap-changed-v-from-trace" + ], + "exit": 0, + "wall_s": 4.803, + "stdout": [ + "{\"mode\":\"hostile\",\"case\":\"H2a-tap-changed-v-from-trace\",\"accepted\":false,\"trace_accepted\":true,\"trace_why\":\"accepted\",\"lin_accepted\":false,\"lin_why\":\"LIN second part: a proximity test\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":421272,\"lin_proof_bytes\":223960,\"commit_s\":3.616,\"prove_s\":0.972,\"verify_s\":0.117,\"peak_rss_kb\":491300}" + ], + "max_rss_kb_time": 491300, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-H2b-tap-changed-v-from-table.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-H2b-tap-changed-v-from-table.json new file mode 100644 index 00000000..8e2dd2f6 --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-H2b-tap-changed-v-from-table.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:31:24Z", + "args": [ + "qm3a1.bin", + "M.i32", + "case", + "H2b-tap-changed-v-from-table" + ], + "exit": 0, + "wall_s": 4.764, + "stdout": [ + "{\"mode\":\"hostile\",\"case\":\"H2b-tap-changed-v-from-table\",\"accepted\":false,\"trace_accepted\":false,\"trace_why\":\"BASE: the masked message in the proof does not satisfy the linear claim\",\"lin_accepted\":false,\"lin_why\":\"not run: the trace chain was refused\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":420952,\"lin_proof_bytes\":224632,\"commit_s\":3.605,\"prove_s\":0.963,\"verify_s\":0.099,\"peak_rss_kb\":490736}" + ], + "max_rss_kb_time": 490736, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-H3-gain-250-trace-and-table.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-H3-gain-250-trace-and-table.json new file mode 100644 index 00000000..bc5eadfe --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-H3-gain-250-trace-and-table.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:31:29Z", + "args": [ + "qm3a1.bin", + "M.i32", + "case", + "H3-gain-2^50-trace-and-table" + ], + "exit": 0, + "wall_s": 4.926, + "stdout": [ + "{\"mode\":\"hostile\",\"case\":\"H3-gain-2^50-trace-and-table\",\"accepted\":false,\"trace_accepted\":false,\"trace_why\":\"BASE: the masked message in the proof does not satisfy the linear claim\",\"lin_accepted\":false,\"lin_why\":\"not run: the trace chain was refused\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":420792,\"lin_proof_bytes\":223192,\"commit_s\":3.698,\"prove_s\":1.034,\"verify_s\":0.101,\"peak_rss_kb\":491300}" + ], + "max_rss_kb_time": 491300, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-H4-gain-in-class-not-the-tables.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-H4-gain-in-class-not-the-tables.json new file mode 100644 index 00000000..a1c9877e --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-H4-gain-in-class-not-the-tables.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:31:34Z", + "args": [ + "qm3a1.bin", + "M.i32", + "case", + "H4-gain-in-class-not-the-tables" + ], + "exit": 0, + "wall_s": 4.73, + "stdout": [ + "{\"mode\":\"hostile\",\"case\":\"H4-gain-in-class-not-the-tables\",\"accepted\":false,\"trace_accepted\":true,\"trace_why\":\"accepted\",\"lin_accepted\":false,\"lin_why\":\"LIN second part: a proximity test\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":420792,\"lin_proof_bytes\":224536,\"commit_s\":3.557,\"prove_s\":0.958,\"verify_s\":0.118,\"peak_rss_kb\":491304}" + ], + "max_rss_kb_time": 491304, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-H5-dt-217.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-H5-dt-217.json new file mode 100644 index 00000000..794c142f --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-H5-dt-217.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:31:38Z", + "args": [ + "qm3a1.bin", + "M.i32", + "case", + "H5-dt-2^17" + ], + "exit": 0, + "wall_s": 4.721, + "stdout": [ + "{\"mode\":\"hostile\",\"case\":\"H5-dt-2^17\",\"accepted\":false,\"trace_accepted\":false,\"trace_why\":\"BASE: the masked message in the proof does not satisfy the linear claim\",\"lin_accepted\":false,\"lin_why\":\"not run: the trace chain was refused\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":420696,\"lin_proof_bytes\":224504,\"commit_s\":3.562,\"prove_s\":0.964,\"verify_s\":0.098,\"peak_rss_kb\":491300}" + ], + "max_rss_kb_time": 491300, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-H6-table-row0-pad-nonzero.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-H6-table-row0-pad-nonzero.json new file mode 100644 index 00000000..1f9c5920 --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-case-H6-table-row0-pad-nonzero.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:31:43Z", + "args": [ + "qm3a1.bin", + "M.i32", + "case", + "H6-table-row0-pad-nonzero" + ], + "exit": 0, + "wall_s": 4.75, + "stdout": [ + "{\"mode\":\"hostile\",\"case\":\"H6-table-row0-pad-nonzero\",\"accepted\":false,\"trace_accepted\":true,\"trace_why\":\"accepted\",\"lin_accepted\":false,\"lin_why\":\"LIN second part: a proximity test\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":421176,\"lin_proof_bytes\":223064,\"commit_s\":3.564,\"prove_s\":0.972,\"verify_s\":0.111,\"peak_rss_kb\":491288}" + ], + "max_rss_kb_time": 491288, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-honest-seed1.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-honest-seed1.json new file mode 100644 index 00000000..1362f01e --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-honest-seed1.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:30:39Z", + "args": [ + "qm3a1.bin", + "M.i32", + "honest", + "1" + ], + "exit": 0, + "wall_s": 4.747, + "stdout": [ + "{\"mode\":\"honest\",\"case\":\"honest\",\"accepted\":true,\"trace_accepted\":true,\"trace_why\":\"accepted\",\"lin_accepted\":true,\"lin_why\":\"accepted\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":420952,\"lin_proof_bytes\":224216,\"commit_s\":3.610,\"prove_s\":0.956,\"verify_s\":0.108,\"peak_rss_kb\":453332}" + ], + "max_rss_kb_time": 453332, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-honest-seed2.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-honest-seed2.json new file mode 100644 index 00000000..29afcb1e --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-honest-seed2.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:30:44Z", + "args": [ + "qm3a1.bin", + "M.i32", + "honest", + "2" + ], + "exit": 0, + "wall_s": 4.686, + "stdout": [ + "{\"mode\":\"honest\",\"case\":\"honest\",\"accepted\":true,\"trace_accepted\":true,\"trace_why\":\"accepted\",\"lin_accepted\":true,\"lin_why\":\"accepted\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":420856,\"lin_proof_bytes\":224120,\"commit_s\":3.551,\"prove_s\":0.957,\"verify_s\":0.109,\"peak_rss_kb\":455384}" + ], + "max_rss_kb_time": 455384, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-honest-seed3.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-honest-seed3.json new file mode 100644 index 00000000..4c6606c6 --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-honest-seed3.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:30:48Z", + "args": [ + "qm3a1.bin", + "M.i32", + "honest", + "3" + ], + "exit": 0, + "wall_s": 4.776, + "stdout": [ + "{\"mode\":\"honest\",\"case\":\"honest\",\"accepted\":true,\"trace_accepted\":true,\"trace_why\":\"accepted\",\"lin_accepted\":true,\"lin_why\":\"accepted\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":420952,\"lin_proof_bytes\":224248,\"commit_s\":3.608,\"prove_s\":0.980,\"verify_s\":0.114,\"peak_rss_kb\":452640}" + ], + "max_rss_kb_time": 452640, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-honest-seed4.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-honest-seed4.json new file mode 100644 index 00000000..27980196 --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-honest-seed4.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:30:53Z", + "args": [ + "qm3a1.bin", + "M.i32", + "honest", + "4" + ], + "exit": 0, + "wall_s": 4.755, + "stdout": [ + "{\"mode\":\"honest\",\"case\":\"honest\",\"accepted\":true,\"trace_accepted\":true,\"trace_why\":\"accepted\",\"lin_accepted\":true,\"lin_why\":\"accepted\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":420600,\"lin_proof_bytes\":222744,\"commit_s\":3.604,\"prove_s\":0.969,\"verify_s\":0.108,\"peak_rss_kb\":453204}" + ], + "max_rss_kb_time": 453204, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-honest-seed5.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-honest-seed5.json new file mode 100644 index 00000000..379aa99c --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/abl-honest-seed5.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:30:58Z", + "args": [ + "qm3a1.bin", + "M.i32", + "honest", + "5" + ], + "exit": 0, + "wall_s": 4.776, + "stdout": [ + "{\"mode\":\"honest\",\"case\":\"honest\",\"accepted\":true,\"trace_accepted\":true,\"trace_why\":\"accepted\",\"lin_accepted\":true,\"lin_why\":\"accepted\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":420664,\"lin_proof_bytes\":225048,\"commit_s\":3.576,\"prove_s\":1.014,\"verify_s\":0.115,\"peak_rss_kb\":453204}" + ], + "max_rss_kb_time": 453204, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/compare-layer17.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/compare-layer17.json new file mode 100644 index 00000000..dee22f15 --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/compare-layer17.json @@ -0,0 +1,198 @@ +{ + "layer": 17, + "v_head": 0, + "qk_head": 0, + "tensors": { + "A_log": { + "tensor_sha256_equal": true, + "head_slice_shape": [ + 1 + ], + "head_slice_sha256_stock": "e10a09f1e8fb3d5867e321c3aeee8c7fb800d45edb7747509582c11a86f01fc3", + "head_slice_sha256_abl": "e10a09f1e8fb3d5867e321c3aeee8c7fb800d45edb7747509582c11a86f01fc3", + "head_slice_sha256_equal": true, + "tensor_floats_differing": 0, + "head_slice_floats_differing": 0 + }, + "conv1d.weight": { + "tensor_sha256_equal": true, + "head_slice_shape": [ + 384, + 4 + ], + "head_slice_sha256_stock": "2570f4d7bddfc44cf9967f2e5553cf6578b8ea357528ef202ba1f5864b1eb1e0", + "head_slice_sha256_abl": "2570f4d7bddfc44cf9967f2e5553cf6578b8ea357528ef202ba1f5864b1eb1e0", + "head_slice_sha256_equal": true, + "tensor_floats_differing": 0, + "head_slice_floats_differing": 0 + }, + "dt_bias": { + "tensor_sha256_equal": true, + "head_slice_shape": [ + 1 + ], + "head_slice_sha256_stock": "ffec4bec38dd3323109521b8364ecd43f91d62e406c896b676fd11ba2e2b7c58", + "head_slice_sha256_abl": "ffec4bec38dd3323109521b8364ecd43f91d62e406c896b676fd11ba2e2b7c58", + "head_slice_sha256_equal": true, + "tensor_floats_differing": 0, + "head_slice_floats_differing": 0 + }, + "in_proj_a.weight": { + "tensor_sha256_equal": true, + "head_slice_shape": [ + 1, + 5120 + ], + "head_slice_sha256_stock": "5d83949bdb18165cca2a7b8e3a6db6ebe3b43805ac5fea1252baa1873dcd2b7a", + "head_slice_sha256_abl": "5d83949bdb18165cca2a7b8e3a6db6ebe3b43805ac5fea1252baa1873dcd2b7a", + "head_slice_sha256_equal": true, + "tensor_floats_differing": 0, + "head_slice_floats_differing": 0 + }, + "in_proj_b.weight": { + "tensor_sha256_equal": true, + "head_slice_shape": [ + 1, + 5120 + ], + "head_slice_sha256_stock": "64959d38565e4a7707a395f5a4cd1057d69df52ea503a1f41bbf0d6f3ca87a56", + "head_slice_sha256_abl": "64959d38565e4a7707a395f5a4cd1057d69df52ea503a1f41bbf0d6f3ca87a56", + "head_slice_sha256_equal": true, + "tensor_floats_differing": 0, + "head_slice_floats_differing": 0 + }, + "in_proj_qkv.weight": { + "tensor_sha256_equal": true, + "head_slice_shape": [ + 384, + 5120 + ], + "head_slice_sha256_stock": "ba43418e0fff672a1084312076ef45b5cc7371f84469b4ce80a7c120a957a968", + "head_slice_sha256_abl": "ba43418e0fff672a1084312076ef45b5cc7371f84469b4ce80a7c120a957a968", + "head_slice_sha256_equal": true, + "tensor_floats_differing": 0, + "head_slice_floats_differing": 0 + }, + "in_proj_z.weight": { + "tensor_sha256_equal": true, + "head_slice_shape": [ + 128, + 5120 + ], + "head_slice_sha256_stock": "6d84af29ae38036aa0e7da1070241af95c3500a4dad691fa5b59123a3874b557", + "head_slice_sha256_abl": "6d84af29ae38036aa0e7da1070241af95c3500a4dad691fa5b59123a3874b557", + "head_slice_sha256_equal": true, + "tensor_floats_differing": 0, + "head_slice_floats_differing": 0 + }, + "norm.weight": { + "tensor_sha256_equal": true, + "head_slice_shape": [ + 128 + ], + "head_slice_sha256_stock": "7fdb4bc7b06b6ced929a0e0995b583f133fe60080467984defdc722ca633eb20", + "head_slice_sha256_abl": "7fdb4bc7b06b6ced929a0e0995b583f133fe60080467984defdc722ca633eb20", + "head_slice_sha256_equal": true, + "tensor_floats_differing": 0, + "head_slice_floats_differing": 0 + }, + "out_proj.weight": { + "tensor_sha256_equal": false, + "head_slice_shape": [ + 5120, + 128 + ], + "head_slice_sha256_stock": "b86a42e3831506b0173fd8432395e104c942ac802ef488e39cbd03c39e6e27b5", + "head_slice_sha256_abl": "7f3c63d560f32d9552d0364426b74f385c4869a09b7b05fe5adcc80cc16cadd8", + "head_slice_sha256_equal": false, + "tensor_floats_differing": 24510291, + "head_slice_floats_differing": 521695 + } + }, + "M_entries_differing": { + "row0": 0, + "rows_1_514": 0, + "rows_515_594": 358034, + "total": 358034 + }, + "out_proj_head": { + "exponent_stock": 12, + "exponent_abl": 12, + "head_floats": 655360, + "head_floats_differing": 521695, + "differing_floats_with_same_integer": 163661, + "differing_floats_with_changed_integer": 358034, + "integer_change_abs_max": 40, + "integer_change_hist": { + "0": 163661, + "1": 191861, + "2": 86584, + "3": 33225, + "4": 20718, + "5": 9520, + "6": 6527, + "7": 3204, + "8": 2388, + "9": 1290, + "10": 865, + "11": 492, + "12": 422, + "13": 244, + "14": 207, + "15": 126, + "16": 96, + "17": 54, + "18": 54, + "19": 41, + "20": 28, + "21": 24, + "22": 15, + "23": 11, + "24": 10, + "25": 6, + "26": 5, + "29": 3, + "30": 4, + "32": 3, + "33": 2, + "35": 1, + "37": 1, + "38": 1, + "39": 1, + "40": 1 + } + }, + "row0_class_stock": { + "narrow_cells": 1665, + "narrow_in_class": 1665, + "dt_in_class": true, + "taps_min_max": [ + -1368, + 1424 + ], + "gains_min_max": [ + 1720, + 2874 + ], + "cA": 19, + "dt": -22528 + }, + "row0_class_abl": { + "narrow_cells": 1665, + "narrow_in_class": 1665, + "dt_in_class": true, + "taps_min_max": [ + -1368, + 1424 + ], + "gains_min_max": [ + 1720, + 2874 + ], + "cA": 19, + "dt": -22528 + }, + "row0_identical": true, + "M_sha256_stock": "9f9161beb0395b44661408af2ff3d8254aaea8bb78a3e9d11eced837954abc55", + "M_sha256_abl": "79eabea7866104fdab5fe35254a71123776c077b47c299274428efe2b6033106" +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-C1-dt-78848.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-C1-dt-78848.json new file mode 100644 index 00000000..3021bb7a --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-C1-dt-78848.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:30:18Z", + "args": [ + "qm3a1.bin", + "M.i32", + "case", + "C1-dt-78848" + ], + "exit": 0, + "wall_s": 4.803, + "stdout": [ + "{\"mode\":\"completeness\",\"case\":\"C1-dt-78848\",\"accepted\":true,\"trace_accepted\":true,\"trace_why\":\"accepted\",\"lin_accepted\":true,\"lin_why\":\"accepted\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":421144,\"lin_proof_bytes\":224952,\"commit_s\":3.621,\"prove_s\":0.977,\"verify_s\":0.110,\"peak_rss_kb\":493348}" + ], + "max_rss_kb_time": 493348, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-C2-dt-minus-23424.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-C2-dt-minus-23424.json new file mode 100644 index 00000000..a45fdd5e --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-C2-dt-minus-23424.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:30:23Z", + "args": [ + "qm3a1.bin", + "M.i32", + "case", + "C2-dt-minus-23424" + ], + "exit": 0, + "wall_s": 4.92, + "stdout": [ + "{\"mode\":\"completeness\",\"case\":\"C2-dt-minus-23424\",\"accepted\":true,\"trace_accepted\":true,\"trace_why\":\"accepted\",\"lin_accepted\":true,\"lin_why\":\"accepted\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":420600,\"lin_proof_bytes\":225176,\"commit_s\":3.730,\"prove_s\":0.987,\"verify_s\":0.110,\"peak_rss_kb\":491300}" + ], + "max_rss_kb_time": 491300, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-C3-dt-217-minus-1.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-C3-dt-217-minus-1.json new file mode 100644 index 00000000..b74b7b8d --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-C3-dt-217-minus-1.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:30:28Z", + "args": [ + "qm3a1.bin", + "M.i32", + "case", + "C3-dt-2^17-minus-1" + ], + "exit": 0, + "wall_s": 4.891, + "stdout": [ + "{\"mode\":\"completeness\",\"case\":\"C3-dt-2^17-minus-1\",\"accepted\":true,\"trace_accepted\":true,\"trace_why\":\"accepted\",\"lin_accepted\":true,\"lin_why\":\"accepted\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":420920,\"lin_proof_bytes\":223608,\"commit_s\":3.650,\"prove_s\":1.037,\"verify_s\":0.110,\"peak_rss_kb\":491304}" + ], + "max_rss_kb_time": 491304, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-H1-other-root-one-tap.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-H1-other-root-one-tap.json new file mode 100644 index 00000000..637de504 --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-H1-other-root-one-tap.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:29:32Z", + "args": [ + "qm3a1.bin", + "M.i32", + "case", + "H1-other-root-one-tap" + ], + "exit": 0, + "wall_s": 8.362, + "stdout": [ + "{\"mode\":\"hostile\",\"case\":\"H1-other-root-one-tap\",\"accepted\":false,\"trace_accepted\":false,\"trace_why\":\"a nonce does not give the proof of work that its round asks for\",\"lin_accepted\":false,\"lin_why\":\"not run: the trace chain was refused\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":421144,\"lin_proof_bytes\":225240,\"commit_s\":7.223,\"prove_s\":0.944,\"verify_s\":0.079,\"peak_rss_kb\":818232}" + ], + "max_rss_kb_time": 818232, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-H1b-other-root-same-weights.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-H1b-other-root-same-weights.json new file mode 100644 index 00000000..288e5708 --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-H1b-other-root-same-weights.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:29:41Z", + "args": [ + "qm3a1.bin", + "M.i32", + "case", + "H1b-other-root-same-weights" + ], + "exit": 0, + "wall_s": 8.464, + "stdout": [ + "{\"mode\":\"hostile\",\"case\":\"H1b-other-root-same-weights\",\"accepted\":false,\"trace_accepted\":false,\"trace_why\":\"a nonce does not give the proof of work that its round asks for\",\"lin_accepted\":false,\"lin_why\":\"not run: the trace chain was refused\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":421144,\"lin_proof_bytes\":225240,\"commit_s\":7.311,\"prove_s\":0.980,\"verify_s\":0.083,\"peak_rss_kb\":780136}" + ], + "max_rss_kb_time": 780136, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-H2a-tap-changed-v-from-trace.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-H2a-tap-changed-v-from-trace.json new file mode 100644 index 00000000..56fffe87 --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-H2a-tap-changed-v-from-trace.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:29:49Z", + "args": [ + "qm3a1.bin", + "M.i32", + "case", + "H2a-tap-changed-v-from-trace" + ], + "exit": 0, + "wall_s": 4.834, + "stdout": [ + "{\"mode\":\"hostile\",\"case\":\"H2a-tap-changed-v-from-trace\",\"accepted\":false,\"trace_accepted\":true,\"trace_why\":\"accepted\",\"lin_accepted\":false,\"lin_why\":\"LIN second part: a proximity test\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":420888,\"lin_proof_bytes\":223704,\"commit_s\":3.633,\"prove_s\":0.998,\"verify_s\":0.110,\"peak_rss_kb\":491304}" + ], + "max_rss_kb_time": 491304, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-H2b-tap-changed-v-from-table.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-H2b-tap-changed-v-from-table.json new file mode 100644 index 00000000..01d37331 --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-H2b-tap-changed-v-from-table.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:29:54Z", + "args": [ + "qm3a1.bin", + "M.i32", + "case", + "H2b-tap-changed-v-from-table" + ], + "exit": 0, + "wall_s": 4.779, + "stdout": [ + "{\"mode\":\"hostile\",\"case\":\"H2b-tap-changed-v-from-table\",\"accepted\":false,\"trace_accepted\":false,\"trace_why\":\"BASE: the masked message in the proof does not satisfy the linear claim\",\"lin_accepted\":false,\"lin_why\":\"not run: the trace chain was refused\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":421144,\"lin_proof_bytes\":225720,\"commit_s\":3.595,\"prove_s\":0.966,\"verify_s\":0.114,\"peak_rss_kb\":492712}" + ], + "max_rss_kb_time": 492712, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-H3-gain-250-trace-and-table.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-H3-gain-250-trace-and-table.json new file mode 100644 index 00000000..3b67738e --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-H3-gain-250-trace-and-table.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:29:59Z", + "args": [ + "qm3a1.bin", + "M.i32", + "case", + "H3-gain-2^50-trace-and-table" + ], + "exit": 0, + "wall_s": 4.876, + "stdout": [ + "{\"mode\":\"hostile\",\"case\":\"H3-gain-2^50-trace-and-table\",\"accepted\":false,\"trace_accepted\":false,\"trace_why\":\"BASE: the masked message in the proof does not satisfy the linear claim\",\"lin_accepted\":false,\"lin_why\":\"not run: the trace chain was refused\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":421016,\"lin_proof_bytes\":224216,\"commit_s\":3.680,\"prove_s\":0.997,\"verify_s\":0.098,\"peak_rss_kb\":491300}" + ], + "max_rss_kb_time": 491300, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-H4-gain-in-class-not-the-tables.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-H4-gain-in-class-not-the-tables.json new file mode 100644 index 00000000..8787c403 --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-H4-gain-in-class-not-the-tables.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:30:04Z", + "args": [ + "qm3a1.bin", + "M.i32", + "case", + "H4-gain-in-class-not-the-tables" + ], + "exit": 0, + "wall_s": 4.8, + "stdout": [ + "{\"mode\":\"hostile\",\"case\":\"H4-gain-in-class-not-the-tables\",\"accepted\":false,\"trace_accepted\":true,\"trace_why\":\"accepted\",\"lin_accepted\":false,\"lin_why\":\"LIN second part: a proximity test\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":421080,\"lin_proof_bytes\":223544,\"commit_s\":3.617,\"prove_s\":0.968,\"verify_s\":0.117,\"peak_rss_kb\":492708}" + ], + "max_rss_kb_time": 492708, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-H5-dt-217.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-H5-dt-217.json new file mode 100644 index 00000000..d1a1cb4b --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-H5-dt-217.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:30:09Z", + "args": [ + "qm3a1.bin", + "M.i32", + "case", + "H5-dt-2^17" + ], + "exit": 0, + "wall_s": 4.816, + "stdout": [ + "{\"mode\":\"hostile\",\"case\":\"H5-dt-2^17\",\"accepted\":false,\"trace_accepted\":false,\"trace_why\":\"BASE: the masked message in the proof does not satisfy the linear claim\",\"lin_accepted\":false,\"lin_why\":\"not run: the trace chain was refused\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":421208,\"lin_proof_bytes\":224376,\"commit_s\":3.630,\"prove_s\":0.987,\"verify_s\":0.096,\"peak_rss_kb\":491304}" + ], + "max_rss_kb_time": 491304, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-H6-table-row0-pad-nonzero.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-H6-table-row0-pad-nonzero.json new file mode 100644 index 00000000..a8b6370d --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-case-H6-table-row0-pad-nonzero.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:30:13Z", + "args": [ + "qm3a1.bin", + "M.i32", + "case", + "H6-table-row0-pad-nonzero" + ], + "exit": 0, + "wall_s": 4.807, + "stdout": [ + "{\"mode\":\"hostile\",\"case\":\"H6-table-row0-pad-nonzero\",\"accepted\":false,\"trace_accepted\":true,\"trace_why\":\"accepted\",\"lin_accepted\":false,\"lin_why\":\"LIN second part: a proximity test\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":421048,\"lin_proof_bytes\":225080,\"commit_s\":3.592,\"prove_s\":1.003,\"verify_s\":0.117,\"peak_rss_kb\":491292}" + ], + "max_rss_kb_time": 491292, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-honest-seed1.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-honest-seed1.json new file mode 100644 index 00000000..9cd81166 --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-honest-seed1.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:29:09Z", + "args": [ + "qm3a1.bin", + "M.i32", + "honest", + "1" + ], + "exit": 0, + "wall_s": 4.687, + "stdout": [ + "{\"mode\":\"honest\",\"case\":\"honest\",\"accepted\":true,\"trace_accepted\":true,\"trace_why\":\"accepted\",\"lin_accepted\":true,\"lin_why\":\"accepted\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":421144,\"lin_proof_bytes\":225240,\"commit_s\":3.548,\"prove_s\":0.957,\"verify_s\":0.109,\"peak_rss_kb\":453204}" + ], + "max_rss_kb_time": 453204, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-honest-seed2.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-honest-seed2.json new file mode 100644 index 00000000..8f475a10 --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-honest-seed2.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:29:13Z", + "args": [ + "qm3a1.bin", + "M.i32", + "honest", + "2" + ], + "exit": 0, + "wall_s": 4.76, + "stdout": [ + "{\"mode\":\"honest\",\"case\":\"honest\",\"accepted\":true,\"trace_accepted\":true,\"trace_why\":\"accepted\",\"lin_accepted\":true,\"lin_why\":\"accepted\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":420888,\"lin_proof_bytes\":224024,\"commit_s\":3.559,\"prove_s\":1.004,\"verify_s\":0.128,\"peak_rss_kb\":453208}" + ], + "max_rss_kb_time": 453208, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-honest-seed3.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-honest-seed3.json new file mode 100644 index 00000000..0055bd2e --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-honest-seed3.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:29:18Z", + "args": [ + "qm3a1.bin", + "M.i32", + "honest", + "3" + ], + "exit": 0, + "wall_s": 4.745, + "stdout": [ + "{\"mode\":\"honest\",\"case\":\"honest\",\"accepted\":true,\"trace_accepted\":true,\"trace_why\":\"accepted\",\"lin_accepted\":true,\"lin_why\":\"accepted\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":421016,\"lin_proof_bytes\":224760,\"commit_s\":3.609,\"prove_s\":0.959,\"verify_s\":0.106,\"peak_rss_kb\":453204}" + ], + "max_rss_kb_time": 453204, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-honest-seed4.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-honest-seed4.json new file mode 100644 index 00000000..3b00fe13 --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-honest-seed4.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:29:23Z", + "args": [ + "qm3a1.bin", + "M.i32", + "honest", + "4" + ], + "exit": 0, + "wall_s": 4.758, + "stdout": [ + "{\"mode\":\"honest\",\"case\":\"honest\",\"accepted\":true,\"trace_accepted\":true,\"trace_why\":\"accepted\",\"lin_accepted\":true,\"lin_why\":\"accepted\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":420888,\"lin_proof_bytes\":224632,\"commit_s\":3.579,\"prove_s\":0.992,\"verify_s\":0.111,\"peak_rss_kb\":455256}" + ], + "max_rss_kb_time": 455256, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-honest-seed5.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-honest-seed5.json new file mode 100644 index 00000000..8fc5030c --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/stock-honest-seed5.json @@ -0,0 +1,16 @@ +{ + "start_utc": "2026-11-29T02:29:28Z", + "args": [ + "qm3a1.bin", + "M.i32", + "honest", + "5" + ], + "exit": 0, + "wall_s": 4.72, + "stdout": [ + "{\"mode\":\"honest\",\"case\":\"honest\",\"accepted\":true,\"trace_accepted\":true,\"trace_why\":\"accepted\",\"lin_accepted\":true,\"lin_why\":\"accepted\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":420952,\"lin_proof_bytes\":224696,\"commit_s\":3.586,\"prove_s\":0.960,\"verify_s\":0.106,\"peak_rss_kb\":453204}" + ], + "max_rss_kb_time": 453204, + "stderr_tail": [] +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/summary.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/summary.json new file mode 100644 index 00000000..1c9242c2 --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/summary.json @@ -0,0 +1,319 @@ +{ + "label": "measured, unreplicated, one shared host, cores 0-1, single-threaded runs", + "stock": { + "honest_accepted": 5, + "honest_n": 5, + "commit_s": { + "n": 5, + "median": 3.579, + "sd": 0.0238, + "min": 3.548, + "max": 3.609 + }, + "prove_s": { + "n": 5, + "median": 0.96, + "sd": 0.022, + "min": 0.957, + "max": 1.004 + }, + "verify_s": { + "n": 5, + "median": 0.109, + "sd": 0.0092, + "min": 0.106, + "max": 0.128 + }, + "peak_rss_kb": { + "n": 5, + "median": 453204, + "sd": 917.2367, + "min": 453204, + "max": 455256 + }, + "trace_proof_bytes": { + "n": 5, + "median": 420952, + "sd": 107.0925, + "min": 420888, + "max": 421144 + }, + "lin_proof_bytes": { + "n": 5, + "median": 224696, + "sd": 433.7151, + "min": 224024, + "max": 225240 + }, + "cases": { + "C1-dt-78848": { + "accepted": true, + "expected_accepted": true, + "trace_why": "accepted", + "lin_why": "accepted", + "exit": 0, + "peak_rss_kb": 493348 + }, + "C2-dt-minus-23424": { + "accepted": true, + "expected_accepted": true, + "trace_why": "accepted", + "lin_why": "accepted", + "exit": 0, + "peak_rss_kb": 491300 + }, + "C3-dt-2^17-minus-1": { + "accepted": true, + "expected_accepted": true, + "trace_why": "accepted", + "lin_why": "accepted", + "exit": 0, + "peak_rss_kb": 491304 + }, + "H1-other-root-one-tap": { + "accepted": false, + "expected_accepted": false, + "trace_why": "a nonce does not give the proof of work that its round asks for", + "lin_why": "not run: the trace chain was refused", + "exit": 0, + "peak_rss_kb": 818232 + }, + "H1b-other-root-same-weights": { + "accepted": false, + "expected_accepted": false, + "trace_why": "a nonce does not give the proof of work that its round asks for", + "lin_why": "not run: the trace chain was refused", + "exit": 0, + "peak_rss_kb": 780136 + }, + "H2a-tap-changed-v-from-trace": { + "accepted": false, + "expected_accepted": false, + "trace_why": "accepted", + "lin_why": "LIN second part: a proximity test", + "exit": 0, + "peak_rss_kb": 491304 + }, + "H2b-tap-changed-v-from-table": { + "accepted": false, + "expected_accepted": false, + "trace_why": "BASE: the masked message in the proof does not satisfy the linear claim", + "lin_why": "not run: the trace chain was refused", + "exit": 0, + "peak_rss_kb": 492712 + }, + "H3-gain-2^50-trace-and-table": { + "accepted": false, + "expected_accepted": false, + "trace_why": "BASE: the masked message in the proof does not satisfy the linear claim", + "lin_why": "not run: the trace chain was refused", + "exit": 0, + "peak_rss_kb": 491300 + }, + "H4-gain-in-class-not-the-tables": { + "accepted": false, + "expected_accepted": false, + "trace_why": "accepted", + "lin_why": "LIN second part: a proximity test", + "exit": 0, + "peak_rss_kb": 492708 + }, + "H5-dt-2^17": { + "accepted": false, + "expected_accepted": false, + "trace_why": "BASE: the masked message in the proof does not satisfy the linear claim", + "lin_why": "not run: the trace chain was refused", + "exit": 0, + "peak_rss_kb": 491304 + }, + "H6-table-row0-pad-nonzero": { + "accepted": false, + "expected_accepted": false, + "trace_why": "accepted", + "lin_why": "LIN second part: a proximity test", + "exit": 0, + "peak_rss_kb": 491292 + } + }, + "cases_as_expected": 11, + "cases_n": 11 + }, + "abl": { + "honest_accepted": 5, + "honest_n": 5, + "commit_s": { + "n": 5, + "median": 3.604, + "sd": 0.0257, + "min": 3.551, + "max": 3.61 + }, + "prove_s": { + "n": 5, + "median": 0.969, + "sd": 0.0238, + "min": 0.956, + "max": 1.014 + }, + "verify_s": { + "n": 5, + "median": 0.109, + "sd": 0.0034, + "min": 0.108, + "max": 0.115 + }, + "peak_rss_kb": { + "n": 5, + "median": 453204, + "sd": 1058.1319, + "min": 452640, + "max": 455384 + }, + "trace_proof_bytes": { + "n": 5, + "median": 420856, + "sd": 164.1073, + "min": 420600, + "max": 420952 + }, + "lin_proof_bytes": { + "n": 5, + "median": 224216, + "sd": 832.1846, + "min": 222744, + "max": 225048 + }, + "cases": { + "C1-dt-78848": { + "accepted": true, + "expected_accepted": true, + "trace_why": "accepted", + "lin_why": "accepted", + "exit": 0, + "peak_rss_kb": 490732 + }, + "C2-dt-minus-23424": { + "accepted": true, + "expected_accepted": true, + "trace_why": "accepted", + "lin_why": "accepted", + "exit": 0, + "peak_rss_kb": 491300 + }, + "C3-dt-2^17-minus-1": { + "accepted": true, + "expected_accepted": true, + "trace_why": "accepted", + "lin_why": "accepted", + "exit": 0, + "peak_rss_kb": 493348 + }, + "H1-other-root-one-tap": { + "accepted": false, + "expected_accepted": false, + "trace_why": "a nonce does not give the proof of work that its round asks for", + "lin_why": "not run: the trace chain was refused", + "exit": 0, + "peak_rss_kb": 818236 + }, + "H1b-other-root-same-weights": { + "accepted": false, + "expected_accepted": false, + "trace_why": "a nonce does not give the proof of work that its round asks for", + "lin_why": "not run: the trace chain was refused", + "exit": 0, + "peak_rss_kb": 780132 + }, + "H2a-tap-changed-v-from-trace": { + "accepted": false, + "expected_accepted": false, + "trace_why": "accepted", + "lin_why": "LIN second part: a proximity test", + "exit": 0, + "peak_rss_kb": 491300 + }, + "H2b-tap-changed-v-from-table": { + "accepted": false, + "expected_accepted": false, + "trace_why": "BASE: the masked message in the proof does not satisfy the linear claim", + "lin_why": "not run: the trace chain was refused", + "exit": 0, + "peak_rss_kb": 490736 + }, + "H3-gain-2^50-trace-and-table": { + "accepted": false, + "expected_accepted": false, + "trace_why": "BASE: the masked message in the proof does not satisfy the linear claim", + "lin_why": "not run: the trace chain was refused", + "exit": 0, + "peak_rss_kb": 491300 + }, + "H4-gain-in-class-not-the-tables": { + "accepted": false, + "expected_accepted": false, + "trace_why": "accepted", + "lin_why": "LIN second part: a proximity test", + "exit": 0, + "peak_rss_kb": 491304 + }, + "H5-dt-2^17": { + "accepted": false, + "expected_accepted": false, + "trace_why": "BASE: the masked message in the proof does not satisfy the linear claim", + "lin_why": "not run: the trace chain was refused", + "exit": 0, + "peak_rss_kb": 491300 + }, + "H6-table-row0-pad-nonzero": { + "accepted": false, + "expected_accepted": false, + "trace_why": "accepted", + "lin_why": "LIN second part: a proximity test", + "exit": 0, + "peak_rss_kb": 491288 + } + }, + "cases_as_expected": 11, + "cases_n": 11 + }, + "cross": { + "X1-abl-proof-stock-key": { + "accepted": false, + "trace_accepted": false, + "trace_why": "a nonce does not give the proof of work that its round asks for", + "lin_accepted": false, + "lin_why": "not run: the trace chain was refused", + "exit": 0, + "peak_rss_kb": 808308 + }, + "X2-abl-cells-bound-to-stock-name": { + "accepted": false, + "trace_accepted": true, + "trace_why": "accepted", + "lin_accepted": false, + "lin_why": "LIN shared part", + "exit": 0, + "peak_rss_kb": 808308 + }, + "X3-stock-proof-abl-key": { + "accepted": false, + "trace_accepted": false, + "trace_why": "a nonce does not give the proof of work that its round asks for", + "lin_accepted": false, + "lin_why": "not run: the trace chain was refused", + "exit": 0, + "peak_rss_kb": 808312 + } + }, + "keys": { + "K0-stock-twice-coin4242": { + "roots_equal": true, + "exit": 0 + }, + "K1-stock-vs-abl-coin4242": { + "roots_equal": false, + "exit": 0 + } + }, + "all_as_expected": true +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/weights-layer17-abl.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/weights-layer17-abl.json new file mode 100644 index 00000000..b8b45187 --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/weights-layer17-abl.json @@ -0,0 +1,125 @@ +{ + "head": 0, + "qk_head": 0, + "matrix": { + "rows": 595, + "columns": 8192 + }, + "weights_in_table": 3288706, + "trace_cells": 1666, + "exponents": { + "conv_taps": 12, + "gain_sqrt128": 8, + "cA": 7, + "dt_bias": 12, + "in_proj_qkv": 14, + "in_proj_z": 14, + "in_proj_a": 14, + "in_proj_b": 14, + "out_proj": 12 + }, + "M_i32_sha256": "79eabea7866104fdab5fe35254a71123776c077b47c299274428efe2b6033106", + "row0_cells_sha256": "50847f572e54209f5d8daca7be3c658a16659dfc3f4480b9137fd2d0e5fe60a5", + "ranges": { + "conv_taps": [ + -1368, + 1424 + ], + "gains": [ + 1720, + 2874 + ], + "cA": 19, + "dt": -22528, + "matrix_abs_max": 3488 + }, + "nonzero_entries": 3280507, + "layer": 17, + "checkpoint": "abl", + "source": { + "repo": "huihui-ai/Huihui-Qwen3.8-27B-abliterated", + "rev": "739e3c5b89849f6c238ce1e5b70008612ae42cdd", + "tensors": { + "model.language_model.layers.17.linear_attn.A_log": { + "shape": [ + 48 + ], + "dtype": "BF16", + "sha256": "0e25e120488a4a66d8708d9aa825b625279013054b9d21ebeda25e746e85df87", + "stream_sha256_match": true + }, + "model.language_model.layers.17.linear_attn.conv1d.weight": { + "shape": [ + 10240, + 1, + 4 + ], + "dtype": "BF16", + "sha256": "8f0fd4221d185690fbd5e4e98e078f0c392d6412685d384b0a2e188311dbaacb", + "stream_sha256_match": true + }, + "model.language_model.layers.17.linear_attn.dt_bias": { + "shape": [ + 48 + ], + "dtype": "BF16", + "sha256": "12234f2932fcbb34c803b902b2f26a599e57e895b7587a2029578625b5f7b8bd", + "stream_sha256_match": true + }, + "model.language_model.layers.17.linear_attn.in_proj_a.weight": { + "shape": [ + 48, + 5120 + ], + "dtype": "BF16", + "sha256": "c91a5a84dfb1688fc9cdba1f214dc5c7de892622019274b6c620cbb19c62d72e", + "stream_sha256_match": true + }, + "model.language_model.layers.17.linear_attn.in_proj_b.weight": { + "shape": [ + 48, + 5120 + ], + "dtype": "BF16", + "sha256": "9e2860e988b8f01f6dc6ab19ec048b0ed70640a23899c5151c86b07540fa0343", + "stream_sha256_match": true + }, + "model.language_model.layers.17.linear_attn.in_proj_qkv.weight": { + "shape": [ + 10240, + 5120 + ], + "dtype": "BF16", + "sha256": "5c290366a2ae4d537e49e1a229dadf1b9c04aca9123ec542b5d4e9994650755c", + "stream_sha256_match": true + }, + "model.language_model.layers.17.linear_attn.in_proj_z.weight": { + "shape": [ + 6144, + 5120 + ], + "dtype": "BF16", + "sha256": "6cf8961f1d51b6c743bdf6bbcd58ff02fdfb7a19898125e2ad0e4d9b9f84d0de", + "stream_sha256_match": true + }, + "model.language_model.layers.17.linear_attn.norm.weight": { + "shape": [ + 128 + ], + "dtype": "BF16", + "sha256": "13269c24f4905ac6cc41f2e25a700f951fd8182fcb0d0f1f8fe9d945cf48aedd", + "stream_sha256_match": true + }, + "model.language_model.layers.17.linear_attn.out_proj.weight": { + "shape": [ + 5120, + 6144 + ], + "dtype": "BF16", + "sha256": "0ae7702fd40b413d46373247a2197485f3a5317ec79816d91525063b874d0771", + "stream_sha256_match": true + } + } + }, + "seconds": 24.6 +} \ No newline at end of file diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/weights-layer17-stock.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/weights-layer17-stock.json new file mode 100644 index 00000000..f3a10189 --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/weights-layer17-stock.json @@ -0,0 +1,125 @@ +{ + "head": 0, + "qk_head": 0, + "matrix": { + "rows": 595, + "columns": 8192 + }, + "weights_in_table": 3288706, + "trace_cells": 1666, + "exponents": { + "conv_taps": 12, + "gain_sqrt128": 8, + "cA": 7, + "dt_bias": 12, + "in_proj_qkv": 14, + "in_proj_z": 14, + "in_proj_a": 14, + "in_proj_b": 14, + "out_proj": 12 + }, + "M_i32_sha256": "9f9161beb0395b44661408af2ff3d8254aaea8bb78a3e9d11eced837954abc55", + "row0_cells_sha256": "50847f572e54209f5d8daca7be3c658a16659dfc3f4480b9137fd2d0e5fe60a5", + "ranges": { + "conv_taps": [ + -1368, + 1424 + ], + "gains": [ + 1720, + 2874 + ], + "cA": 19, + "dt": -22528, + "matrix_abs_max": 3488 + }, + "nonzero_entries": 3280481, + "layer": 17, + "checkpoint": "stock", + "source": { + "repo": "Qwen/Qwen3.8-27B", + "rev": "37561816e66b5b9153b1b64c10968c18c1e6f4a0", + "tensors": { + "model.language_model.layers.17.linear_attn.A_log": { + "shape": [ + 48 + ], + "dtype": "BF16", + "sha256": "0e25e120488a4a66d8708d9aa825b625279013054b9d21ebeda25e746e85df87", + "stream_sha256_match": true + }, + "model.language_model.layers.17.linear_attn.conv1d.weight": { + "shape": [ + 10240, + 1, + 4 + ], + "dtype": "BF16", + "sha256": "8f0fd4221d185690fbd5e4e98e078f0c392d6412685d384b0a2e188311dbaacb", + "stream_sha256_match": true + }, + "model.language_model.layers.17.linear_attn.dt_bias": { + "shape": [ + 48 + ], + "dtype": "BF16", + "sha256": "12234f2932fcbb34c803b902b2f26a599e57e895b7587a2029578625b5f7b8bd", + "stream_sha256_match": true + }, + "model.language_model.layers.17.linear_attn.in_proj_a.weight": { + "shape": [ + 48, + 5120 + ], + "dtype": "BF16", + "sha256": "c91a5a84dfb1688fc9cdba1f214dc5c7de892622019274b6c620cbb19c62d72e", + "stream_sha256_match": true + }, + "model.language_model.layers.17.linear_attn.in_proj_b.weight": { + "shape": [ + 48, + 5120 + ], + "dtype": "BF16", + "sha256": "9e2860e988b8f01f6dc6ab19ec048b0ed70640a23899c5151c86b07540fa0343", + "stream_sha256_match": true + }, + "model.language_model.layers.17.linear_attn.in_proj_qkv.weight": { + "shape": [ + 10240, + 5120 + ], + "dtype": "BF16", + "sha256": "5c290366a2ae4d537e49e1a229dadf1b9c04aca9123ec542b5d4e9994650755c", + "stream_sha256_match": true + }, + "model.language_model.layers.17.linear_attn.in_proj_z.weight": { + "shape": [ + 6144, + 5120 + ], + "dtype": "BF16", + "sha256": "6cf8961f1d51b6c743bdf6bbcd58ff02fdfb7a19898125e2ad0e4d9b9f84d0de", + "stream_sha256_match": true + }, + "model.language_model.layers.17.linear_attn.norm.weight": { + "shape": [ + 128 + ], + "dtype": "BF16", + "sha256": "13269c24f4905ac6cc41f2e25a700f951fd8182fcb0d0f1f8fe9d945cf48aedd", + "stream_sha256_match": true + }, + "model.language_model.layers.17.linear_attn.out_proj.weight": { + "shape": [ + 5120, + 6144 + ], + "dtype": "BF16", + "sha256": "470ab458edca58a45520575f877fd3c842185ce1339c448b84391d1220b1f661", + "stream_sha256_match": true + } + } + }, + "seconds": 20.8 +} \ No newline at end of file diff --git a/research/operators/qwen_m3a1l17/summarise.py b/research/operators/qwen_m3a1l17/summarise.py new file mode 100644 index 00000000..59d6df07 --- /dev/null +++ b/research/operators/qwen_m3a1l17/summarise.py @@ -0,0 +1,55 @@ +#!/usr/bin/env python3 +"""Summary of the registered runs of experiments/20261129-238-qwen-m3a1-layer17 into /summary.json (refuses to overwrite). +Usage: summarise.py """ +import json, statistics, sys +from pathlib import Path + + +def last(p): + rec = json.loads(p.read_text()) + return rec, json.loads(rec["stdout"][-1]) + + +def stat(v): + return dict(n=len(v), median=statistics.median(v), sd=round(statistics.stdev(v), 4) if len(v) > 1 else 0, min=min(v), max=max(v)) + + +def main(): + runs = Path(sys.argv[1]); out_p = runs / "summary.json" + if out_p.exists(): + raise SystemExit("refusing to overwrite summary.json") + out = dict(label="measured, unreplicated, one shared host, cores 0-1, single-threaded runs") + for tag in ("stock", "abl"): + honest = [last(runs / f"{tag}-honest-seed{s}.json") for s in range(1, 6)] + h = [dict(o, wall_s=r["wall_s"]) for r, o in honest] + cases = {} + for p in sorted(runs.glob(f"{tag}-case-*.json")): + r, o = last(p) + exp = o["case"][0] == "C" + cases[o["case"]] = dict(accepted=o["accepted"], expected_accepted=exp, trace_why=o["trace_why"], lin_why=o["lin_why"], exit=r["exit"], peak_rss_kb=o["peak_rss_kb"]) + out[tag] = dict(honest_accepted=sum(x["accepted"] for x in h), honest_n=len(h), + commit_s=stat([x["commit_s"] for x in h]), prove_s=stat([x["prove_s"] for x in h]), verify_s=stat([x["verify_s"] for x in h]), + peak_rss_kb=stat([x["peak_rss_kb"] for x in h]), trace_proof_bytes=stat([x["trace_proof_bytes"] for x in h]), + lin_proof_bytes=stat([x["lin_proof_bytes"] for x in h]), cases=cases, + cases_as_expected=sum(c["accepted"] == c["expected_accepted"] and c["exit"] == 0 for c in cases.values()), cases_n=len(cases)) + x = {} + for n in ("X1-abl-proof-stock-key", "X2-abl-cells-bound-to-stock-name", "X3-stock-proof-abl-key"): + r, o = last(runs / f"{n}.json") + x[n] = dict(accepted=o["accepted"], trace_accepted=o["trace_accepted"], trace_why=o["trace_why"], lin_accepted=o["lin_accepted"], lin_why=o["lin_why"], exit=r["exit"], peak_rss_kb=o["peak_rss_kb"]) + out["cross"] = x + k = {} + for n in ("K0-stock-twice-coin4242", "K1-stock-vs-abl-coin4242"): + r, o = last(runs / f"{n}.json") + k[n] = dict(roots_equal=o["roots_equal"], exit=r["exit"]) + out["keys"] = k + out["all_as_expected"] = bool(out["stock"]["honest_accepted"] == 5 and out["abl"]["honest_accepted"] == 5 + and out["stock"]["cases_as_expected"] == out["stock"]["cases_n"] == 11 + and out["abl"]["cases_as_expected"] == out["abl"]["cases_n"] == 11 + and not any(v["accepted"] for v in x.values()) and k["K0-stock-twice-coin4242"]["roots_equal"] + and not k["K1-stock-vs-abl-coin4242"]["roots_equal"]) + out_p.write_text(json.dumps(out, indent=1) + "\n") + print(json.dumps(dict(all_as_expected=out["all_as_expected"], stock_prove=out["stock"]["prove_s"], abl_prove=out["abl"]["prove_s"]))) + + +if __name__ == "__main__": + main() From 854f632e1dbb9ecb1177f0a11c9cd4c91831d72d Mon Sep 17 00:00:00 2001 From: wakesync <60821182+wakesync@users.noreply.github.com> Date: Sun, 29 Nov 2026 02:35:48 +0000 Subject: [PATCH 4/7] research: #238 PREREG amendment A2 (diagnostic D1 for X2's refusing check) and the regrind-why mode, before D1 runs --- .../20261129-238-qwen-m3a1-layer17/PREREG.md | 3 ++ research/operators/qwen_m3a1l17/ql17.cpp | 36 +++++++++++++++++-- 2 files changed, 36 insertions(+), 3 deletions(-) diff --git a/experiments/20261129-238-qwen-m3a1-layer17/PREREG.md b/experiments/20261129-238-qwen-m3a1-layer17/PREREG.md index c5652919..f4626aa2 100644 --- a/experiments/20261129-238-qwen-m3a1-layer17/PREREG.md +++ b/experiments/20261129-238-qwen-m3a1-layer17/PREREG.md @@ -70,3 +70,6 @@ Concrete choices the code makes that the registration did not fix. None changes - Synthetic debug (seed 9101 pair, never registered, outputs not kept): keys with equal tables gave equal roots and with different rows 515 to 594 different roots; cross was refused by the trace transcript; regrind was accepted by the trace and refused by "LIN shared part"; an honest proof verified. - Runner `research/operators/qwen_m3a1l17/run_registered.py`, two groups through the heavy-job gate on cores 0-1: group stock (K0, K1, stock honest 1..5, stock H1 to C3), then group abl (abl honest 1..5, abl H1 to C3, X1, X2, X3). `compare.py` runs once after them. - qm3a1.bin is built from `research/operators/qwen_m3a1/qm3a1.cpp` with the flags of its README; ql17.bin from `ql17.cpp` with the same flags. + +### A2 (2026-11-29 02:40 UTC, after all registered runs, before the run it covers) +X2 was rejected with lin_check's coarse reason "LIN shared part" (`runs/X2-abl-cells-bound-to-stock-name.json`). That string does not say whether the refusing check was the table openings against the stock root (a weight check) or an earlier transcript or message check, which is what the registration asked to report. One added diagnostic run, D1: `ql17.bin regrind-why` repeats X2 exactly (same tables, coins, seed; the verdict line must equal X2's) and then replays lin_check's steps up to the end of LIN's shared part with a copy that returns the shared chain's own first reason (`VerifierRounds::why()`). It is a diagnostic, not a registered case and not part of PASS; it changes no threshold, no case and no run file. Output `runs/D1-X2-shared-part-reason.json`, written once. diff --git a/research/operators/qwen_m3a1l17/ql17.cpp b/research/operators/qwen_m3a1l17/ql17.cpp index 9d4b235b..585ad994 100644 --- a/research/operators/qwen_m3a1l17/ql17.cpp +++ b/research/operators/qwen_m3a1l17/ql17.cpp @@ -70,7 +70,36 @@ static LinView lin_prove_named(const LinWorld &w, IndexCpu &index, const IndexNa return view; } -static void regrind(const World &W, const std::string &name_of_case, const std::vector &A, const std::vector &B, u64 seed) { +// Diagnostic only (amendment A2): qm3a1.cpp's lin_check up to the end of LIN's shared part, the same +// steps in the same order, but it returns the shared chain's own first reason (VerifierRounds::why()) +// instead of the coarse "LIN shared part". It decides nothing that lin_check does not. +static std::string lin_shared_why(const LinWorld &w, const IndexKey &key, const TieOut &tie, const LinView &view) { + const IndexName table{key.commitment(), key.rec}; + const TableRead read(key); + Reader fb(view.first.data(), view.first.size()); + Binder b(1, w.first); const FirstBound x = bind_first(b, w, table, tie.psi, tie.v); + VerifierSession session; VerifierRounds ch(b, fb, session); VerifierContext V(x.lin.codes, ch); + std::vector ids; + if (!send_verify(V, std::vector{ch.get(x.input)}, ids)) return "first part: the input message"; + LinClaim claim; claim.g.push_back(row0_weight(w.S)); claim.psi = ch.get(x.psi); + if (!ch.recv(claim.target)) return "first part: the target"; + if (claim.target != ch.get(x.v)) return "first part: target"; + claim.add_mask(V.st.masks(ids[0]).take(), E::zero()); + LinFirst first; + if (!lin_first_verify(V, x.lin, std::move(claim), first)) return std::string("first part: ") + (ch.why() ? ch.why() : "?"); + Sealed seal; if (!ch.seal(R_SEAL, seal) || !ch.finish()) return "first part: its end"; + Reader path(view.path.data(), view.path.size()); LinBindingRoot root; + if (!lin_binding_root(path, ch.get(x.binding), ch.configuration(), seal.digest(), root) || !path.at_end()) return "path"; + Reader sbytes(view.shared.data(), view.shared.size()); + Binder sb(LIN_LABEL_SHARED, w.shared); sb.configuration(w.configuration); + const LinPublic sx = lin_bind_shared(sb, w.codes, w.S, table, root); + VerifierRounds sch(sb, sbytes, session); VerifierContext SV(sx.codes, sch); LinShared shared; + if (!lin_shared_verify(SV, sx, w.test, read, shared)) return std::string("shared part: ") + (sch.why() ? sch.why() : "(no reason recorded)"); + if (!lin_shared_tests_verify(SV, sx, shared)) return std::string("shared part, proximity test: ") + (sch.why() ? sch.why() : "(no reason recorded)"); + return "shared part passed"; +} + +static void regrind(const World &W, const std::string &name_of_case, const std::vector &A, const std::vector &B, u64 seed, bool diagnose = false) { auto t0 = std::chrono::steady_clock::now(); Committed ca = commit(W, A, 77 + seed); Committed cb = commit(W, B, 991); @@ -94,10 +123,11 @@ static void regrind(const World &W, const std::string &name_of_case, const std:: const double verify_s = secs(tv); const size_t lin_bytes = view.first.size() + view.path.size() + view.shared.size() + view.second.size(); emit("hostile", name_of_case, tok, twhy, lok, lwhy, W, tp_bytes.size(), lin_bytes, commit_s, prove_s, verify_s); + if (diagnose && tok) std::printf("{\"mode\":\"diagnostic\",\"case\":\"%s\",\"lin_shared_why\":\"%s\"}\n", name_of_case.c_str(), lin_shared_why(W.lw, cb.key, vt, view).c_str()); } int main(int argc, char **argv) { - if (argc >= 2 && (std::string(argv[1]) == "keys" || std::string(argv[1]) == "cross" || std::string(argv[1]) == "regrind")) { + if (argc >= 2 && (std::string(argv[1]) == "keys" || std::string(argv[1]) == "cross" || std::string(argv[1]) == "regrind" || std::string(argv[1]) == "regrind-why")) { need(argc == 5, "usage: ql17.bin keys|cross|regrind "); const std::string mode = argv[1]; const std::vector A = load_M(argv[2]), B = load_M(argv[3]); @@ -112,7 +142,7 @@ int main(int argc, char **argv) { } std::vector cells(A.begin(), A.begin() + NCELLS); if (mode == "cross") run_case(W, "hostile", argv[4], cells, A, VFrom::TRACE, false, 1, &B, 991); - else regrind(W, argv[4], A, B, 1); + else regrind(W, argv[4], A, B, 1, mode == "regrind-why"); return 0; } return qm3a1_main(argc, argv); From f836d01dc31ca982b1a89ad3d11c5b7cdcd44b01 Mon Sep 17 00:00:00 2001 From: wakesync <60821182+wakesync@users.noreply.github.com> Date: Sun, 29 Nov 2026 02:39:48 +0000 Subject: [PATCH 5/7] research: #238 diagnostic D1 run, RESULTS (PASS on all four registered conditions), ENV, directory README, results.yaml row pr 244 --- CLAIMS.md | 1 + README.md | 3 +- .../20261129-238-qwen-m3a1-layer17/ENV.json | 40 +++++++++ .../20261129-238-qwen-m3a1-layer17/RESULTS.md | 89 +++++++++++++++++++ .../runs/D1-X2-shared-part-reason.json | 17 ++++ research/operators/qwen_m3a1l17/README.md | 48 ++++++++++ .../operators/qwen_m3a1l17/run_diagnostic.py | 23 +++++ research/results.yaml | 16 ++++ 8 files changed, 236 insertions(+), 1 deletion(-) create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/ENV.json create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/RESULTS.md create mode 100644 experiments/20261129-238-qwen-m3a1-layer17/runs/D1-X2-shared-part-reason.json create mode 100644 research/operators/qwen_m3a1l17/README.md create mode 100644 research/operators/qwen_m3a1l17/run_diagnostic.py diff --git a/CLAIMS.md b/CLAIMS.md index 7a67b020..da70e561 100644 --- a/CLAIMS.md +++ b/CLAIMS.md @@ -84,5 +84,6 @@ tracked file, which both scripts resolve (they check that it exists, not what it | `moe-at-layer-ne-212` | Is moe_at_layer's missing NE test reachable on main: dense (NE 0) odd layers and the expert path: Measured, unreplicated, host only. Outcome as registered: not reachable on main. moe_at_layer(prof, l) in prover/prover/layout.h has no NE term and, given prof 3 or 20 directly, disagrees with prof >= 3 && (l & 1) && NE > 0 in 8 of 96 enumerated cases (all NE 0, odd l). But both callers pass LayerShape::prof, which main sets to mo ? 3 : 2 with mo = NE > 0 (prover/prover/layer_setup.cuh line 70, prover/prover/inputs.cuh lines 237 and 293), so a dense file runs with prof 2 and no layer takes the expert path: 0 of 32 NE 0 cases disagree. No prover, verifier or committer code changed. Risk note: the public fork change that passes s.NE at forward.cuh line 108 would read a LayerShape whose NE is never set (inputs.cuh line 292) and would skip the router-shift check on all 16 MoE odd-layer cases of the enumeration. NOT established: no GPU build or run, no dense proof; other dense-path faults untested; the fork's reported UNFIT stop is not reproduced or explained | negative, unreplicated | unreplicated | [experiments/20261117-212-moe-at-layer-ne/RESULTS.md](experiments/20261117-212-moe-at-layer-ne/RESULTS.md), [experiments/20261117-212-moe-at-layer-ne/PREREG.md](experiments/20261117-212-moe-at-layer-ne/PREREG.md), [experiments/20261117-212-moe-at-layer-ne/ENV.json](experiments/20261117-212-moe-at-layer-ne/ENV.json), [experiments/20261117-212-moe-at-layer-ne/enumerate.cpp](experiments/20261117-212-moe-at-layer-ne/enumerate.cpp), [experiments/20261117-212-moe-at-layer-ne/runs/enumerate-run1.txt](experiments/20261117-212-moe-at-layer-ne/runs/enumerate-run1.txt) | #216 | | `sampling-worksheet-211` | Unit-safe sampling feasibility and guarantee worksheet: typed eligibility checker for three policy classes (issue #211): Measured, unreplicated, deterministic. An offline standard-library checker with exact rationals returns CONDITIONAL, INELIGIBLE or MISSING INPUTS for a sampling policy worksheet (fleet monitoring after release; vendor-independent proof for an irreversible decision; hardware-trusting immediate service with later review). Three results, kept separate. At the reviewed code: 45 of 45 registered fixtures matched in each of 5 runs, identical report digest (formula endpoints, 7 #84 TABLES.md cells to their published rounding, unit/provenance/unknown-cost blocks, and the three negative tests). Reviewers' descriptive finding in round 1 (https://github.com/wakesync/flashprove/pull/220#issuecomment-6961891535 and https://github.com/wakesync/flashprove/pull/220#issuecomment-6962089424): outside those fixtures the reviewed checker returned CONDITIONAL on incomplete or out-of-domain worksheets. At the fixed code (PREREG Amendments 1 to 3, registered before the code): 90 of 90 new adversarial fixtures F46 to F135 matched in each of 5 runs, identical digest; F01 to F36 still match their original registration; F37 to F45 are changed registrations (incomplete worksheets, now MISSING INPUTS as registered in Amendment 2), so 36 of the original 45 match at the fixed code. Fixture numbers are synthetic except F35, which quotes a conditional calculation from main. Round 2 review of that code was split, one approval and one change request (https://github.com/wakesync/flashprove/pull/220#issuecomment-6964830279 and https://github.com/wakesync/flashprove/pull/220#issuecomment-6964807245); reviewer's descriptive finding in the second: a proof rejection counted as a wrong answer returned CONDITIONAL. At the round 2 code (PREREG Amendment 4, registered before the code) that classification is refused as MISSING INPUTS: 6 of 6 new fixtures F136 to F141 matched in each of 5 runs, identical digest, with F46 to F135 90 of 90, F01 to F36 matching their original registration and F37 to F45 the outcome of Amendment 2. All fixtures after F45 were written by the fix lanes, not by an independent party, and the round 2 code is not yet reviewed. NOT established: feasibility of any real policy (the three blank templates are MISSING INPUTS: Qwen proof cost and receipt cost unknown on main, policy values are Shadow decisions), any cost, overhead, dollar figure or sampling rate, any detection guarantee for a deployment | measured, unreplicated | unreplicated | [experiments/20261117-211-sampling-worksheet/RESULTS.md](experiments/20261117-211-sampling-worksheet/RESULTS.md), [experiments/20261117-211-sampling-worksheet/PREREG.md](experiments/20261117-211-sampling-worksheet/PREREG.md), [experiments/20261117-211-sampling-worksheet/ENV.json](experiments/20261117-211-sampling-worksheet/ENV.json), [experiments/20261117-211-sampling-worksheet/runs/run-1.json](experiments/20261117-211-sampling-worksheet/runs/run-1.json), [experiments/20261117-211-sampling-worksheet/runs/templates.json](experiments/20261117-211-sampling-worksheet/runs/templates.json), [experiments/20261117-211-sampling-worksheet/runs-r1/run-1.json](experiments/20261117-211-sampling-worksheet/runs-r1/run-1.json), [experiments/20261117-211-sampling-worksheet/runs-r1/templates.json](experiments/20261117-211-sampling-worksheet/runs-r1/templates.json), [experiments/20261117-211-sampling-worksheet/runs-r2/run-1.json](experiments/20261117-211-sampling-worksheet/runs-r2/run-1.json), [experiments/20261117-211-sampling-worksheet/runs-r2/templates.json](experiments/20261117-211-sampling-worksheet/runs-r2/templates.json), [experiments/20261117-211-sampling-worksheet/DECISION-SHEET.md](experiments/20261117-211-sampling-worksheet/DECISION-SHEET.md) | #220 | | `qwen-m3a1-weight-side` | Qwen M3a-1 weight side: one DeltaNet head's real weights in a committed table, the trace's 1,666 weight cells in class and tied to it (issue #229): Measured, unreplicated, CPU research harness, research setting (no security level). The 3,288,706 integer weights of V head 0, layer 0 of the pinned stock Qwen3.8-27B (each fetched tensor SHA-256 equal to the merged stream hash) are a committed table; the 1,666 weights the head trace reads (conv taps, gains, cA, dt_bias) are product-oracle cells in their design classes by exact bits and are tied to the table by one point drawn after both commitments and one LIN claim on the table (one-time test). 5 of 5 honest proofs verified; all 8 registered hostile proofs rejected (other root twice, a tap changed two ways, gain 2^50, gain in class but not the table one, dt_bias 2^17, table row 0 non-zero past the cells); 3 of 3 completeness cases accepted (dt_int 78,848, -23,424, 2^17 - 1). NOT established: any bound on the 3,287,040 matrix weights (no Qwen layout of the WF range proof); any head computation (in_proj as a claim, sub-step c, not started); any soundness level (LIN runs on a hand-made test plan, rounds unpriced); hiding; that the table is the advertised checkpoint; accuracy | measured, unreplicated | unreplicated | [experiments/20261121-229-qwen-m3a1-weight-side/RESULTS.md](experiments/20261121-229-qwen-m3a1-weight-side/RESULTS.md), [experiments/20261121-229-qwen-m3a1-weight-side/PREREG.md](experiments/20261121-229-qwen-m3a1-weight-side/PREREG.md), [experiments/20261121-229-qwen-m3a1-weight-side/ENV.json](experiments/20261121-229-qwen-m3a1-weight-side/ENV.json), [experiments/20261121-229-qwen-m3a1-weight-side/runs/summary.json](experiments/20261121-229-qwen-m3a1-weight-side/runs/summary.json), [experiments/20261121-229-qwen-m3a1-weight-side/runs/weights-head0.json](experiments/20261121-229-qwen-m3a1-weight-side/runs/weights-head0.json), [research/operators/qwen_m3a1/README.md](research/operators/qwen_m3a1/README.md) | #231 | +| `qwen-m3a1-layer17-238` | Qwen M3a-1 weight side on layer 17, stock vs abliterated: different tables and roots, cross-key proofs refused (issue #238): Measured, unreplicated, CPU research harness, research setting (no security level). The statement of PR #231, unchanged, on V head 0 of layer 17 of the pinned stock and abliterated Qwen3.8-27B (every fetched tensor SHA-256 equal to the merged stream hash). The two integer tables differ in 358,034 of 4,874,240 entries, all in rows 515 to 594 (the head's out_proj columns); row 0, which the class and tie check, is identical. Same committer coins give different roots. Honest proofs 5 of 5 per checkpoint; PR #231's 8 hostile cases rejected and 3 completeness cases accepted on each table. A proof over one checkpoint's table under the other's key is rejected in all 3 registered ways: X1 and X3 by the trace transcript, X2 (every chain bound to the stock name) by LIN's table opening against the stock root. Of the head's 521,695 out_proj floats that differ, 163,661 keep their integer at exponent 12. NOT established: that weights are checked (what tells the checkpoints apart is the root; the edited weights have no relation on their values and no range); which root is the advertised checkpoint (#59); any head computation; any soundness level; other heads or layers | measured, unreplicated | unreplicated | [experiments/20261129-238-qwen-m3a1-layer17/RESULTS.md](experiments/20261129-238-qwen-m3a1-layer17/RESULTS.md), [experiments/20261129-238-qwen-m3a1-layer17/PREREG.md](experiments/20261129-238-qwen-m3a1-layer17/PREREG.md), [experiments/20261129-238-qwen-m3a1-layer17/ENV.json](experiments/20261129-238-qwen-m3a1-layer17/ENV.json), [experiments/20261129-238-qwen-m3a1-layer17/runs/summary.json](experiments/20261129-238-qwen-m3a1-layer17/runs/summary.json), [experiments/20261129-238-qwen-m3a1-layer17/runs/compare-layer17.json](experiments/20261129-238-qwen-m3a1-layer17/runs/compare-layer17.json), [research/operators/qwen_m3a1l17/README.md](research/operators/qwen_m3a1l17/README.md) | #244 | | `inkling-layer0-mlp-fidelity-228` | Inkling 2 Mini layer-0 routed MLP under main's integer rules, real NVFP4 weights, open loop vs float64: FAIL vs prereg on both bars. Layer 0's top-8 sigmoid-routed MoE block of thinkingmachines/Inkling-2-Mini (ed40e7da) computed with main's integer rules (12-bit cells, 13-bit per-tensor weights, docs/model.md router and sigmoid table, two new 2^-8-step tables for the soft-capped SwiGLU, a rounded-division routing weight at 2^13) against our own numpy float64 version of the same block, on the 10 frozen prompt texts of 20261109-8 (2,426 tokens), exact float64 input, open loop. B1 (Qwen A2 shape, per prompt): rel_y median 0.0218, max 0.0304 vs median <= 0.01, max <= 0.05: FAIL. B2: the top-8 expert set differs on 91 of 2,426 tokens (3.75%) vs <= 1%: FAIL; each flip changes exactly one expert. B3 range: IN-BOUND, 0 events at every site. With the float set and float weights the integer expert arithmetic alone gives pooled rel_y 0.0079 (descriptive). Deterministic, two processes bit-identical. Measured, unreplicated. Float reference is our reading of open transformers PR 51050 (6173a2f6), not checked against the publisher's runtime. One block, no logits, no proof | negative, unreplicated | unreplicated | [experiments/20261121-228-inkling-layer0-fidelity/RESULTS.md](experiments/20261121-228-inkling-layer0-fidelity/RESULTS.md) | #230 | | `qwen-silu-step-vs-clip-221` | Qwen3.8-27B abliterated layers 31 to 63: SiLU table step vs domain clip, one change at a time (M31-C clip removed, M31-T step removed), issue #221: Registered diagnostic, valid (G1 REF top-1 = PR 173: True; G2 M31-C#2 bit-equal: True; G3 no guard error: True). From PR 167's layer-30 REF residual, abliterated layers 31 to 63, 1461 positions of 10 frozen prompts, float64 heads/attention/norms/lm_head; one change at a time to PR 138's SiLU lookup. M31-C: top-1 1459 of 1461 (99.86%), KL median 2.06e-06, max 0.00215 nats; M31-T: top-1 1424 of 1461 (97.47%), KL median 0.00146, max 1.93 nats. H-C (removing only the clip halves PR 202's M31 KL median 1.466e-3): ratio 0.001408, HOLDS. H-T (removing only the step halves it): ratio 0.9948, DOES NOT HOLD. Registered outcome: H-C only: the clip carries the token error; the step alone does not halve it. Diagnostic arms, not operators; chooses no repair. No proof | measured, unreplicated | unreplicated | [experiments/20261118-221-silu-step-clip/RESULTS.md](experiments/20261118-221-silu-step-clip/RESULTS.md), [experiments/20261118-221-silu-step-clip/runs/summary.json](experiments/20261118-221-silu-step-clip/runs/summary.json), [experiments/20261118-221-silu-step-clip/runs/e2e-abl.json](experiments/20261118-221-silu-step-clip/runs/e2e-abl.json), [experiments/20261118-221-silu-step-clip/ENV.json](experiments/20261118-221-silu-step-clip/ENV.json), [experiments/20261118-221-silu-step-clip/PREREG.md](experiments/20261118-221-silu-step-clip/PREREG.md) | #224 | diff --git a/README.md b/README.md index 7903f313..94c649a1 100644 --- a/README.md +++ b/README.md @@ -82,10 +82,11 @@ Every number below comes from a file on `main` (the one exception, a reviewer fi | Is moe_at_layer's missing NE test reachable on main: dense (NE 0) odd layers and the expert path | negative, unreplicated | Measured, unreplicated, host only. Outcome as registered: not reachable on main. moe_at_layer(prof, l) in prover/prover/layout.h has no NE term and, given prof 3 or 20 directly, disagrees with prof >= 3 && (l & 1) && NE > 0 in 8 of 96 enumerated cases (all NE 0, odd l). But both callers pass LayerShape::prof, which main sets to mo ? 3 : 2 with mo = NE > 0 (prover/prover/layer_setup.cuh line 70, prover/prover/inputs.cuh lines 237 and 293), so a dense file runs with prof 2 and no layer takes the expert path: 0 of 32 NE 0 cases disagree. No prover, verifier or committer code changed. Risk note: the public fork change that passes s.NE at forward.cuh line 108 would read a LayerShape whose NE is never set (inputs.cuh line 292) and would skip the router-shift check on all 16 MoE odd-layer cases of the enumeration. NOT established: no GPU build or run, no dense proof; other dense-path faults untested; the fork's reported UNFIT stop is not reproduced or explained | CPU only, cores 2-3 of a shared loaded host, g++ 13.3.0 -O2 -std=c++17 -Wall -Wextra, host-only program that includes main's unmodified prover/prover/layout.h; the two LayerShape::prof assignments are modelled by their expression, not by calling the CUDA setup code; two deterministic runs, byte-identical output; PREREG first and alone, two amendments and one time correction before any run; no weights, no GPU, no proof | [experiments/20261117-212-moe-at-layer-ne/RESULTS.md](experiments/20261117-212-moe-at-layer-ne/RESULTS.md) | | Unit-safe sampling feasibility and guarantee worksheet: typed eligibility checker for three policy classes (issue #211) | measured, unreplicated | Measured, unreplicated, deterministic. An offline standard-library checker with exact rationals returns CONDITIONAL, INELIGIBLE or MISSING INPUTS for a sampling policy worksheet (fleet monitoring after release; vendor-independent proof for an irreversible decision; hardware-trusting immediate service with later review). Three results, kept separate. At the reviewed code: 45 of 45 registered fixtures matched in each of 5 runs, identical report digest (formula endpoints, 7 #84 TABLES.md cells to their published rounding, unit/provenance/unknown-cost blocks, and the three negative tests). Reviewers' descriptive finding in round 1 (https://github.com/wakesync/flashprove/pull/220#issuecomment-6961891535 and https://github.com/wakesync/flashprove/pull/220#issuecomment-6962089424): outside those fixtures the reviewed checker returned CONDITIONAL on incomplete or out-of-domain worksheets. At the fixed code (PREREG Amendments 1 to 3, registered before the code): 90 of 90 new adversarial fixtures F46 to F135 matched in each of 5 runs, identical digest; F01 to F36 still match their original registration; F37 to F45 are changed registrations (incomplete worksheets, now MISSING INPUTS as registered in Amendment 2), so 36 of the original 45 match at the fixed code. Fixture numbers are synthetic except F35, which quotes a conditional calculation from main. Round 2 review of that code was split, one approval and one change request (https://github.com/wakesync/flashprove/pull/220#issuecomment-6964830279 and https://github.com/wakesync/flashprove/pull/220#issuecomment-6964807245); reviewer's descriptive finding in the second: a proof rejection counted as a wrong answer returned CONDITIONAL. At the round 2 code (PREREG Amendment 4, registered before the code) that classification is refused as MISSING INPUTS: 6 of 6 new fixtures F136 to F141 matched in each of 5 runs, identical digest, with F46 to F135 90 of 90, F01 to F36 matching their original registration and F37 to F45 the outcome of Amendment 2. All fixtures after F45 were written by the fix lanes, not by an independent party, and the round 2 code is not yet reviewed. NOT established: feasibility of any real policy (the three blank templates are MISSING INPUTS: Qwen proof cost and receipt cost unknown on main, policy values are Shadow decisions), any cost, overhead, dollar figure or sampling rate, any detection guarantee for a deployment | CPU only, cores 4-5 of a shared loaded host, 512 MiB address-space cap, Python 3.12.3 standard library; PREREG first and alone, code committed before the runs; three dated amendments after round 1 review and a fourth after round 2 review, each committed before the code it governs, original fixtures and all earlier run files unchanged; no model, no weights, no GPU, no randomness | [experiments/20261117-211-sampling-worksheet/RESULTS.md](experiments/20261117-211-sampling-worksheet/RESULTS.md) | | Qwen M3a-1 weight side: one DeltaNet head's real weights in a committed table, the trace's 1,666 weight cells in class and tied to it (issue #229) | measured, unreplicated | Measured, unreplicated, CPU research harness, research setting (no security level). The 3,288,706 integer weights of V head 0, layer 0 of the pinned stock Qwen3.8-27B (each fetched tensor SHA-256 equal to the merged stream hash) are a committed table; the 1,666 weights the head trace reads (conv taps, gains, cA, dt_bias) are product-oracle cells in their design classes by exact bits and are tied to the table by one point drawn after both commitments and one LIN claim on the table (one-time test). 5 of 5 honest proofs verified; all 8 registered hostile proofs rejected (other root twice, a tap changed two ways, gain 2^50, gain in class but not the table one, dt_bias 2^17, table row 0 non-zero past the cells); 3 of 3 completeness cases accepted (dt_int 78,848, -23,424, 2^17 - 1). NOT established: any bound on the 3,287,040 matrix weights (no Qwen layout of the WF range proof); any head computation (in_proj as a claim, sub-step c, not started); any soundness level (LIN runs on a hand-made test plan, rounds unpriced); hiding; that the table is the advertised checkpoint; accuracy | CPU only, cores 2-7 of a shared loaded host, single-threaded runs through the heavy-job gate, g++ 13.3.0 -O2; PREREG first and alone, one amendment (implementation choices) committed before the runs; debug only on a synthetic fixture (numpy seed 9101, head 1); research setting target 10 bits, query work 6; LIN plan hand-made (lin_world.h) | [experiments/20261121-229-qwen-m3a1-weight-side/RESULTS.md](experiments/20261121-229-qwen-m3a1-weight-side/RESULTS.md) | +| Qwen M3a-1 weight side on layer 17, stock vs abliterated: different tables and roots, cross-key proofs refused (issue #238) | measured, unreplicated | Measured, unreplicated, CPU research harness, research setting (no security level). The statement of PR #231, unchanged, on V head 0 of layer 17 of the pinned stock and abliterated Qwen3.8-27B (every fetched tensor SHA-256 equal to the merged stream hash). The two integer tables differ in 358,034 of 4,874,240 entries, all in rows 515 to 594 (the head's out_proj columns); row 0, which the class and tie check, is identical. Same committer coins give different roots. Honest proofs 5 of 5 per checkpoint; PR #231's 8 hostile cases rejected and 3 completeness cases accepted on each table. A proof over one checkpoint's table under the other's key is rejected in all 3 registered ways: X1 and X3 by the trace transcript, X2 (every chain bound to the stock name) by LIN's table opening against the stock root. Of the head's 521,695 out_proj floats that differ, 163,661 keep their integer at exponent 12. NOT established: that weights are checked (what tells the checkpoints apart is the root; the edited weights have no relation on their values and no range); which root is the advertised checkpoint (#59); any head computation; any soundness level; other heads or layers | CPU only, cores 0-1 of a shared loaded host, single-threaded runs, registered groups through the heavy-job gate, g++ 13.3.0 -O2; PREREG first and alone, amendment A1 committed before the runs, A2 (one diagnostic) after them and before that diagnostic; debug only on a synthetic pair (numpy seeds 9101, 9102); research setting target 10 bits, query work 6; LIN plan hand-made (lin_world.h) | [experiments/20261129-238-qwen-m3a1-layer17/RESULTS.md](experiments/20261129-238-qwen-m3a1-layer17/RESULTS.md) | | Inkling 2 Mini layer-0 routed MLP under main's integer rules, real NVFP4 weights, open loop vs float64 | negative, unreplicated | FAIL vs prereg on both bars. Layer 0's top-8 sigmoid-routed MoE block of thinkingmachines/Inkling-2-Mini (ed40e7da) computed with main's integer rules (12-bit cells, 13-bit per-tensor weights, docs/model.md router and sigmoid table, two new 2^-8-step tables for the soft-capped SwiGLU, a rounded-division routing weight at 2^13) against our own numpy float64 version of the same block, on the 10 frozen prompt texts of 20261109-8 (2,426 tokens), exact float64 input, open loop. B1 (Qwen A2 shape, per prompt): rel_y median 0.0218, max 0.0304 vs median <= 0.01, max <= 0.05: FAIL. B2: the top-8 expert set differs on 91 of 2,426 tokens (3.75%) vs <= 1%: FAIL; each flip changes exactly one expert. B3 range: IN-BOUND, 0 events at every site. With the float set and float weights the integer expert arithmetic alone gives pooled rel_y 0.0079 (descriptive). Deterministic, two processes bit-identical. Measured, unreplicated. Float reference is our reading of open transformers PR 51050 (6173a2f6), not checked against the publisher's runtime. One block, no logits, no proof | CPU only, numpy and tokenizers only (no torch, no transformers); weights by HTTP range reads of layer 0 and 317 embedding rows (630 MB of 19.5 GB); NVFP4 decode per the PR's dequantise op, checked D1-D4 (max \|w\| / amax = 1.000 every expert); gate/up order from the PR's Interleave + chunk; input exponent fitted in-sample (Em = 6); attention sub-block float64 only; one layer, open loop; shared loaded host | [experiments/20261121-228-inkling-layer0-fidelity/RESULTS.md](experiments/20261121-228-inkling-layer0-fidelity/RESULTS.md) | | Qwen3.8-27B abliterated layers 31 to 63: SiLU table step vs domain clip, one change at a time (M31-C clip removed, M31-T step removed), issue #221 | measured, unreplicated | Registered diagnostic, valid (G1 REF top-1 = PR 173: True; G2 M31-C#2 bit-equal: True; G3 no guard error: True). From PR 167's layer-30 REF residual, abliterated layers 31 to 63, 1461 positions of 10 frozen prompts, float64 heads/attention/norms/lm_head; one change at a time to PR 138's SiLU lookup. M31-C: top-1 1459 of 1461 (99.86%), KL median 2.06e-06, max 0.00215 nats; M31-T: top-1 1424 of 1461 (97.47%), KL median 0.00146, max 1.93 nats. H-C (removing only the clip halves PR 202's M31 KL median 1.466e-3): ratio 0.001408, HOLDS. H-T (removing only the step halves it): ratio 0.9948, DOES NOT HOLD. Registered outcome: H-C only: the clip carries the token error; the step alone does not halve it. Diagnostic arms, not operators; chooses no repair. No proof | Preregistered (experiments/20261118-221-silu-step-clip/PREREG.md); start state PR 167's ckpt.npz sha256 22dff8b92107511838e50e4b26d6e91a2b55d09064711c638042c4c18fb80009, next_layer 31, checked before registration and re-hashed in the job, REF entries only, layers 0 to 30 not regenerated; abliterated layers 31 to 63, final norm, lm_head; PR 124's frozen prompts teacher-forced; PR 202 harness, PR 138 mlp_int stages, PR 124 logits_metrics, PR 88 forward reused; M31 and M31-S not rerun (PR 202 values cited); CPU, taskset 8 to 13, one deterministic run with an in-run duplicate path; shared loaded host; no GPU, no serving route, no proof | [experiments/20261118-221-silu-step-clip/RESULTS.md](experiments/20261118-221-silu-step-clip/RESULTS.md) | -_Last regenerated from `research/results.yaml` on 2026-11-21 (UTC), against main `0ffc7985`._ +_Last regenerated from `research/results.yaml` on 2026-11-29 (UTC), against main `02d62eb6`._ What this table does not show: no full-size run on real (Maverick) weights, no real model weights on GPU, no serving, no TEE, no production use, and no comparison with other verifiable-inference systems. The GPU rows are upstream's small example on made-up weights, plus one incomplete, unreplicated full-size study on made-up (synthetic) weights (PR #44: one session per arm, below its registered n). diff --git a/experiments/20261129-238-qwen-m3a1-layer17/ENV.json b/experiments/20261129-238-qwen-m3a1-layer17/ENV.json new file mode 100644 index 00000000..da357071 --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/ENV.json @@ -0,0 +1,40 @@ +{ + "experiment": "20261129-238-qwen-m3a1-layer17", + "commits": { + "base_main": "02d62eb63760fcaf68f47099c70f42aba04a7707", + "prereg": "1b5ab4e170b677a9eebd68b436e2a662541ea89d", + "code_and_amendment_A1_before_runs": "1c558e6030db6a755232a52c08c0145c1d8c2a89", + "registered_runs": "69222963a66aa1d5d1e7583beb6d3e05e9fac8f2", + "amendment_A2_before_diagnostic": "854f6323" + }, + "weights": { + "stock": {"repo": "Qwen/Qwen3.8-27B", "rev": "37561816e66b5b9153b1b64c10968c18c1e6f4a0"}, + "abliterated": {"repo": "huihui-ai/Huihui-Qwen3.8-27B-abliterated", "rev": "739e3c5b89849f6c238ce1e5b70008612ae42cdd"}, + "tensors": "layer 17 linear_attn: A_log, conv1d, dt_bias, in_proj_a, in_proj_b, in_proj_qkv, in_proj_z, norm, out_proj (231,752,128 bytes per checkpoint)", + "sha256_checked_against": "experiments/20261109-8-qwen-real-weights/runs/stream-stock.json and stream-abl.json", + "details": "runs/weights-layer17-stock.json, runs/weights-layer17-abl.json" + }, + "toolchain": { + "cxx": "g++ 13.3.0 (Ubuntu 13.3.0-6ubuntu2~24.04.1)", + "flags": "-std=c++17 -O2 -Wall -Wextra -fno-ipa-modref -DBLK_FIELD=2 -DBLK_HASH=1 -I blocks", + "binaries": "qm3a1.bin from research/operators/qwen_m3a1/qm3a1.cpp (unchanged); ql17.bin from research/operators/qwen_m3a1l17/ql17.cpp at 1c558e60 (registered runs); ql17d.bin from ql17.cpp at 854f6323 (diagnostic D1 only)", + "python": "3.12.3", + "numpy": "2.4.3" + }, + "hardware": { + "kind": "cpu-epyc-rome-kvm-16", + "cores_used": "0-1 (taskset); each run is single-threaded", + "shared": "shared, loaded host; other lanes ran beside this one; compiles and the two registered groups went through the host's heavy-job gate" + }, + "seeds": { + "honest_prover_seeds": [1, 2, 3, 4, 5], + "case_prover_seed": 1, + "committer_coins": {"run_case table": "77 + seed", "other key (H1, X1, X2, X3)": 991, "H1b other key": 992, "K0 and K1": 4242}, + "debug_fixture_numpy_seeds": [9101, 9102], + "note": "toy and test coin generators (ToyCoins, TestCoins), deterministic per seed; not for secrets" + }, + "setting": { + "trace": "setting_goldilocks, target 10 bits, query work 6 (harness research setting)", + "lin": "hand-made plan of blocks/iop/tests/lin_world.h, rounds priced NOTHING; LinCase as qm3a1.cpp (PR #231)" + } +} diff --git a/experiments/20261129-238-qwen-m3a1-layer17/RESULTS.md b/experiments/20261129-238-qwen-m3a1-layer17/RESULTS.md new file mode 100644 index 00000000..f9f11981 --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/RESULTS.md @@ -0,0 +1,89 @@ +# RESULTS: 20261129-238-qwen-m3a1-layer17 + +Issue #238. PREREG: [PREREG.md](PREREG.md) (first commit 1b5ab4e1, alone; amendment A1 committed in 1c558e60 before any registered run; amendment A2, one diagnostic run, committed in 854f6323 after the registered runs and before that diagnostic). Code: [`research/operators/qwen_m3a1l17/`](../../research/operators/qwen_m3a1l17/README.md), which includes `research/operators/qwen_m3a1/qm3a1.cpp` unchanged. Environment: [ENV.json](ENV.json). + +**Verdict: PASS on all four registered conditions.** Every number below is measured, unreplicated, on one shared CPU host, at the harness's research setting. None of it is a security level. + +## In plain words + +At layer 17 (one of the layers the abliteration changes), the integer weight table of V head 0 is different for the stock and the abliterated checkpoint: 358,034 of its 4,874,240 entries differ, all in the rows that hold the head's out_proj columns. Committed with the same randomness, the two tables have different roots. A proof made over one checkpoint's table is refused by a verifier that holds the other checkpoint's key, in all three registered ways. Honest proofs and PR #231's whole hostile and completeness suite behave on both layer-17 tables exactly as they did on layer 0. + +What the proof itself checks about the weights, though, is only row 0 (the 1,666 conv taps, gains, cA and dt_bias the trace reads), and row 0 is the same in both checkpoints. The abliteration edit lives in rows 515 to 594, which the statement binds only through the table's root (the Merkle openings that LIN reads) and LIN's proximity test, with no relation on their values. So "stock or abliterated" is decided here by which root the verifier holds, not by any check on the edited weights themselves. Which root is "the advertised checkpoint" is not this step's job (#59). + +## Registered items + +| item | registered | result | file | verdict | +|---|---|---|---|---| +| 1a M.i32 differs | SHA-256 differ | stock 9f9161be...abc55, abl 79eabea7...3106 | `runs/weights-layer17-stock.json`, `runs/weights-layer17-abl.json` | PASS | +| 1b K0: stock table committed twice, coin 4242 | same root | same root (4c47e27c...05d9 twice) | `runs/K0-stock-twice-coin4242.json` | PASS | +| 1c K1: stock and abl tables, same coin 4242 | different roots | 4c47e27c...05d9 vs baec7eea...0210 | `runs/K1-stock-vs-abl-coin4242.json` | PASS | +| 2 honest, stock | 5 of 5 | 5 of 5 accepted | `runs/stock-honest-seed{1..5}.json` | PASS | +| 2 honest, abl | 5 of 5 | 5 of 5 accepted | `runs/abl-honest-seed{1..5}.json` | PASS | +| 3 H1-H6 and C1-C3, stock | H rejected, C accepted | 8 of 8 H rejected, 3 of 3 C accepted | `runs/stock-case-*.json` | PASS | +| 3 H1-H6 and C1-C3, abl | H rejected, C accepted | 8 of 8 H rejected, 3 of 3 C accepted | `runs/abl-case-*.json` | PASS | +| 4 X1 abl proof under the stock key | rejected | rejected at the trace chain: "a nonce does not give the proof of work that its round asks for" (`blocks/chain/rounds.h` line 516); LIN not reached | `runs/X1-abl-proof-stock-key.json` | PASS | +| 4 X2 abl cells and table, every chain bound to the stock key's name | rejected | trace accepted; rejected by LIN, "LIN shared part" (`qm3a1.cpp` line 241); the shared chain's own reason (diagnostic D1): "the opened columns of the table do not lead to its root" (`blocks/iop/foldeq.h` line 778) | `runs/X2-abl-cells-bound-to-stock-name.json`, `runs/D1-X2-shared-part-reason.json` | PASS | +| 4 X3 stock proof under the abl key | rejected | rejected at the trace chain, same reason and line as X1; LIN not reached | `runs/X3-stock-proof-abl-key.json` | PASS | + +The refusing checks for H1-H6 are the same lines as in PR #231 on both checkpoints: H1 and H1b at the trace transcript (proof-of-work nonce), H2a, H4 and H6 by "LIN second part: a proximity test" (`qm3a1.cpp` line 249), H2b, H3 and H5 by "BASE: the masked message in the proof does not satisfy the linear claim" (`blocks/iop/base_case.h` line 225). Summary of all of it: `runs/summary.json` (`all_as_expected: true`). + +**Which check refuses each cross case, and what that means.** X1 and X3 are refused by the transcript, as registered: the trace chain binds the table's name in its first query, so another key changes the transcript and the recorded nonce no longer fits. That is binding to a root, not a check of weights. X2 is the regrinding prover of the PR #231 review: it binds every chain to the stock name, so the transcript is consistent. Its trace is accepted, because its row-0 statement is true (row 0 is identical in both checkpoints, so the abliterated cells are also the stock table's cells). It is refused when LIN's shared part opens the drawn columns of the table: the columns the prover holds (abliterated) do not hash to the stock root. That is the only weight check in this statement that sees rows 515 to 594, and it is a Merkle opening against a root, not a relation on the weight values. + +## Reported (not part of PASS) + +From `runs/compare-layer17.json` and the two weight summaries: + +| quantity | expected | measured | +|---|---|---| +| head-slice SHA-256 equal: A_log, conv1d, dt_bias, in_proj_a, in_proj_b, in_proj_qkv, in_proj_z, norm | equal | equal (8 of 8; also 0 differing floats in each whole tensor) | +| head-slice SHA-256 equal: out_proj | different | different | +| differing M entries: row 0 / rows 1 to 514 / rows 515 to 594 | 0 / 0 / > 0 | 0 / 0 / 358,034 (of 655,360) | +| out_proj floats that differ, head 0's 128 columns | | 521,695 of 655,360 (whole tensor: 24,510,291 of 31,457,280) | +| of those, same integer after conversion (moved by less than one integer step) | | 163,661 | +| of those, integer changed | | 358,034; absolute change 1 to 40, 191,861 of them by exactly 1 (histogram in the file) | +| conversion exponents, both checkpoints | | conv taps 12, gain x sqrt(128) 8, cA 7, dt_bias 12 (F), in_proj_qkv 14, in_proj_z 14, in_proj_a 14, in_proj_b 14, out_proj 12 (out_proj 12 in both: the edit did not move the exponent) | +| row-0 class (DESIGN 6.2), both checkpoints | all in class | 1,665 of 1,665 narrow cells in [-4,096, 4,095]; dt cell in [-2^17, 2^17) | +| row 0 identical across checkpoints | | yes | + +Layer 17's row 0 for head 0: taps -1,368..1,424, gains 1,720..2,874, cA 19, dt_int -22,528. cA = 19 at exponent 7 keeps only 5 bits, the same precision note DESIGN 6.2 makes for layer 0's smallest cA values; it is in class, and its precision is not a question this step answers. Only head 0 of layer 17 was checked: the class completeness of the other 47 heads of layer 17 and of the other DeltaNet layers stays unmeasured. + +## Measured (unreplicated, shared host, single-threaded runs on cores 0-1) + +| quantity | stock (n = 5) | abliterated (n = 5) | +|---|---|---| +| commit of the table, s | median 3.579, sd 0.024, min 3.548, max 3.609 | median 3.604, sd 0.026, min 3.551, max 3.610 | +| prove (trace + LIN), s | median 0.960, sd 0.022, min 0.957, max 1.004 | median 0.969, sd 0.024, min 0.956, max 1.014 | +| verify (trace + LIN), s | median 0.109, sd 0.009, min 0.106, max 0.128 | median 0.109, sd 0.003, min 0.108, max 0.115 | +| peak RSS, KiB | median 453,204, min 453,204, max 455,256 | median 453,204, min 452,640, max 455,384 | +| trace proof bytes | median 420,952, min 420,888, max 421,144 | median 420,856, min 420,600, max 420,952 | +| LIN proof bytes | median 224,696, min 224,024, max 225,240 | median 224,216, min 222,744, max 225,048 | + +Cells, product columns, log length, relations and table shape are PR #231's: 1,666 / 23,329 / 15 / 44,992, 595 x 8,192. Cross and two-table runs peaked at 808,312 KiB; H1 at 818,236 KiB. Source: `runs/summary.json`. + +## Where the issue was right and where it needed care + +Checked against main before registration (PREREG, first section): revisions, the stream hashes (8 equal, out_proj different), the 232 MB size and the out_proj rows 515 to 594 are as the issue says. The issue's question "is a proof made over one rejected under the other's key by the weight checks, not only by the transcript" needed one qualification, which the runs confirm: the weight checks of this statement (class and tie) only look at row 0, which is identical in both checkpoints, so they cannot refuse a cross proof. The only check that sees the edit is the table opening inside LIN, and it is what refuses X2. And "X2: v computed honestly from the abliterated table" gives the same v as from the trace, for the same reason. + +## Deviations + +- PREREG says "Commit only hashes, shapes, exponents, counts and the integer ranges"; the weight summaries (`runs/weights-layer17-*.json`, written by the unchanged `write()` of `qwen_m3a1/prepare.py`) and this file hold row-0 ranges, cA, dt_int and the matrix absolute maximum (3,488) of this public checkpoint, as PR #231's do. They are ranges and single cell values, not tensors. +- X2's coarse reason ("LIN shared part") did not name the refusing check; amendment A2 added one diagnostic run (D1) after the registered runs and before D1. D1 repeated X2's verdict line field for field except timings and RSS. +- `ql17.cpp` was changed once after the registered runs (the `regrind-why` mode, amendment A2); the registered runs used the binary built from commit 1c558e60. The `regrind`, `cross` and `keys` paths were not changed. +- The heavy-job gate was used for the compiles and the two registered groups; the two fetches, the synthetic debug runs, `compare.py` and D1 ran outside it on cores 0-1 (each under 2 minutes of CPU and under 1 GB). + +## NOT established + +- That a verifier can tell stock from abliterated by checking weights. What it checks is a root. The edited weights (out_proj, rows 515 to 594) are bound by Merkle openings and a proximity test, with no relation on their values; nothing here computes with them. +- Which root is the advertised checkpoint (#59). Each verifier here simply holds one key. +- Any head computation (in_proj, conv, gates, norms, recurrence, out_proj product); the M3a-1 evidence gate of `experiments/20261109-32-qwen-m3-design/DESIGN.md` section 9 is not met. +- Any range on the matrix weights (rows 1 to 594); no Qwen WF layout. +- Any soundness level: trace at target 10 bits, LIN on the unpriced hand-made plan of `blocks/iop/tests/lin_world.h`. The hostile and cross cases are one complete proof each, not an adversary search. +- Class completeness of other heads of layer 17 and of any other layer. +- Hiding (v is sent unmasked); accuracy of any kind. +- Independent replication. + +## Open risks + +1. X1 and X3 test transcript binding only; X2 is the only case that reaches a weight-side check, and that check is a hash opening. A reviewer should confirm that `lin_prove_named` in `ql17.cpp` is a faithful copy of `qm3a1.cpp`'s `lin_prove` apart from the name, and that bypassing `lin_shared_prove`'s prover-side `BLK_REQUIRE` does not weaken anything the verifier relies on. +2. The cell-to-address map is PR #231's (`build()` unchanged, reviewed there for layer 0); it was not re-derived independently for layer 17. +3. Exponents are per tensor; out_proj kept exponent 12 in both checkpoints. A conversion that picked a different exponent for the two would give tables that differ everywhere in rows 515 to 594, which is not what was measured here. diff --git a/experiments/20261129-238-qwen-m3a1-layer17/runs/D1-X2-shared-part-reason.json b/experiments/20261129-238-qwen-m3a1-layer17/runs/D1-X2-shared-part-reason.json new file mode 100644 index 00000000..a8e23080 --- /dev/null +++ b/experiments/20261129-238-qwen-m3a1-layer17/runs/D1-X2-shared-part-reason.json @@ -0,0 +1,17 @@ +{ + "start_utc": "2026-11-29T02:36:39Z", + "args": [ + "ql17.bin", + "regrind-why", + "M.i32 (abl)", + "M.i32 (stock)", + "X2-abl-cells-bound-to-stock-name" + ], + "exit": 0, + "wall_s": 8.239, + "stdout": [ + "{\"mode\":\"hostile\",\"case\":\"X2-abl-cells-bound-to-stock-name\",\"accepted\":false,\"trace_accepted\":true,\"trace_why\":\"accepted\",\"lin_accepted\":false,\"lin_why\":\"LIN shared part\",\"cells\":1666,\"product_columns_used\":23329,\"log_length\":15,\"relations\":44992,\"table_matrix\":[595,8192],\"table_rows\":128,\"table_ell\":38083,\"table_log_n\":18,\"trace_proof_bytes\":421144,\"lin_proof_bytes\":224312,\"commit_s\":7.243,\"prove_s\":0.779,\"verify_s\":0.087,\"peak_rss_kb\":808308}", + "{\"mode\":\"diagnostic\",\"case\":\"X2-abl-cells-bound-to-stock-name\",\"lin_shared_why\":\"shared part: the opened columns of the table do not lead to its root\"}" + ], + "stderr_tail": [] +} diff --git a/research/operators/qwen_m3a1l17/README.md b/research/operators/qwen_m3a1l17/README.md new file mode 100644 index 00000000..ee5d9e26 --- /dev/null +++ b/research/operators/qwen_m3a1l17/README.md @@ -0,0 +1,48 @@ +# Qwen M3a-1 weight side on layer 17, stock vs abliterated (issue #238, research only) + +Registration and results: [`experiments/20261129-238-qwen-m3a1-layer17`](../../../experiments/20261129-238-qwen-m3a1-layer17/). CPU research harness, not a serving protocol. No existing file is changed: `ql17.cpp` includes `../qwen_m3a1/qm3a1.cpp` as it is on main (its `main` renamed by a macro), and `prepare_layer.py` imports `build()` and `write()` of `../qwen_m3a1/prepare.py` unchanged. + +## What is proved + +The statement of PR #231 ([`../qwen_m3a1/README.md`](../qwen_m3a1/README.md)), unchanged, for V head 0 of layer 17 of each pinned checkpoint: the head's 3,288,706 integer weights in one committed table (595 x 8,192); the 1,666 weights the head's trace reads (row 0) as product-oracle cells in their DESIGN 6.2 classes; and their tie to row 0 of the table by one point and one LIN claim. Added here, with qm3a1.cpp's verifier unchanged: + +- **keys**: the two checkpoints' tables committed with the same committer coins give different roots (and one table twice gives the same root). +- **cross** (X1, X3): an honest proof over one checkpoint's table, checked by a verifier holding the other's key. +- **regrind** (X2): a prover that holds the abliterated table and binds every chain to the stock key's name; checked under the stock key. + +## What the verifier recomputes + +As in PR #231: the relations, psi, and the LIN claim, from public data and the key it holds. It reads no weight. The verifier code is qm3a1.cpp's `run_verifier` + `trace_decide` + `lin_check`. + +## What is not covered + +- Row 0 (what the class and tie check) is identical in both checkpoints at layer 17. The abliteration edit is in out_proj (rows 515 to 594), which the proof binds only through the table's root (Merkle openings read by LIN) and LIN's proximity test. No relation on those values; no range on any matrix weight (no Qwen WF layout). +- Which root is the advertised checkpoint (#59). +- Any head computation; the M3a-1 evidence gate (DESIGN section 9). +- Any soundness level (trace at target 10 bits, LIN on the unpriced hand-made plan of `blocks/iop/tests/lin_world.h`); hiding; accuracy. +- The `regrind` prover calls `lin_shared_prove_on_shape` directly, because `lin_shared_prove` refuses (prover-side `BLK_REQUIRE`) a keeper whose root differs from the named one. This is a test prover, not a protocol path. + +## Files + +- `prepare_layer.py`: fetch one layer's 9 `linear_attn` tensors of the stock or abliterated pinned revision by HTTP range (merged `fetch.py` `get()`), check SHA-256 and size against the merged `runs/stream-.json`, convert and write M.i32 outside the repository. `synthetic` mode: the debug pair (seeds 9101, 9102). +- `compare.py`: per-tensor and head-slice SHA-256 equality, differing M entries per row band, out_proj floats that moved by less than one integer step, row-0 class. +- `ql17.cpp`: the `keys`, `cross`, `regrind` modes (and `regrind-why`, diagnostic D1 of amendment A2); any other arguments go to qm3a1.cpp's `main`. +- `run_registered.py`, `run_diagnostic.py`, `summarise.py`: the registered runs (each to its own file, written once, with its UTC start time), the diagnostic, `runs/summary.json`. + +## Reproduce + +From the repository root (Python 3 with NumPy, g++ 13; pin cores on a shared host; `` is a data directory outside the repository): + +```sh +python3 research/operators/qwen_m3a1l17/prepare_layer.py real stock 17 /stock /stock/summary.json +python3 research/operators/qwen_m3a1l17/prepare_layer.py real abl 17 /abl /abl/summary.json +g++ -std=c++17 -O2 -Wall -Wextra -fno-ipa-modref -DBLK_FIELD=2 -DBLK_HASH=1 -I blocks research/operators/qwen_m3a1/qm3a1.cpp -o /qm3a1.bin +g++ -std=c++17 -O2 -Wall -Wextra -fno-ipa-modref -DBLK_FIELD=2 -DBLK_HASH=1 -I blocks research/operators/qwen_m3a1l17/ql17.cpp -o /ql17.bin +python3 research/operators/qwen_m3a1l17/run_registered.py stock /qm3a1.bin /ql17.bin /stock/M.i32 /abl/M.i32 +python3 research/operators/qwen_m3a1l17/run_registered.py abl /qm3a1.bin /ql17.bin /stock/M.i32 /abl/M.i32 +python3 research/operators/qwen_m3a1l17/run_diagnostic.py /ql17.bin /stock/M.i32 /abl/M.i32 +python3 research/operators/qwen_m3a1l17/compare.py 17 /stock /abl /compare-layer17.json +python3 research/operators/qwen_m3a1l17/summarise.py +``` + +Each fetch is 231,752,128 bytes. Each compile took a few minutes of one core here; each run about 4 to 11 s and at most 0.82 GB. diff --git a/research/operators/qwen_m3a1l17/run_diagnostic.py b/research/operators/qwen_m3a1l17/run_diagnostic.py new file mode 100644 index 00000000..af7ad487 --- /dev/null +++ b/research/operators/qwen_m3a1l17/run_diagnostic.py @@ -0,0 +1,23 @@ +#!/usr/bin/env python3 +"""Diagnostic D1 of experiments/20261129-238-qwen-m3a1-layer17 (PREREG amendment A2): X2 repeated with the shared chain's own reason. +Written once, with its UTC start time. Usage: run_diagnostic.py """ +import datetime, json, subprocess, sys, time +from pathlib import Path + + +def main(): + ql, Ms, Ma, runs = sys.argv[1], sys.argv[2], sys.argv[3], Path(sys.argv[4]) + out = runs / "D1-X2-shared-part-reason.json" + if out.exists(): + raise SystemExit("refusing to overwrite " + out.name) + start = datetime.datetime.now(datetime.timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ") + t0 = time.time() + r = subprocess.run(["taskset", "-c", "0-1", ql, "regrind-why", Ma, Ms, "X2-abl-cells-bound-to-stock-name"], capture_output=True, text=True, timeout=1800) + rec = dict(start_utc=start, args=["ql17.bin", "regrind-why", "M.i32 (abl)", "M.i32 (stock)", "X2-abl-cells-bound-to-stock-name"], exit=r.returncode, + wall_s=round(time.time() - t0, 3), stdout=r.stdout.strip().splitlines(), stderr_tail=r.stderr.strip().splitlines()[-5:]) + out.write_text(json.dumps(rec, indent=1) + "\n") + print("\n".join(rec["stdout"])) + + +if __name__ == "__main__": + main() diff --git a/research/results.yaml b/research/results.yaml index 23fee63c..84d64ca8 100644 --- a/research/results.yaml +++ b/research/results.yaml @@ -2035,6 +2035,22 @@ results: - {"name": "qm3a1_peak_rss_kib_median", "stat": "median", "value": 453204, "unit": "KiB", "n": 5, "spread": {"sd": 338.43, "min": 452636, "max": 453336}, "source": "experiments/20261121-229-qwen-m3a1-weight-side/runs/summary.json", "note": "Measured, unreplicated; getrusage max RSS of the whole process (commit, prove, verify), ru_maxrss in KiB", "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-21", "commit": "d00ceb11ada9f04f8d72bb83f6832b7c406da249"} - {"name": "qm3a1_product_columns", "stat": "single", "value": 23329, "unit": "count", "n": 5, "spread": null, "source": "experiments/20261121-229-qwen-m3a1-weight-side/runs/summary.json", "note": "Measured; product-oracle columns used for the 1,666 cells and their class bits; log length 15; 44,992 relations; deterministic", "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-21", "commit": "d00ceb11ada9f04f8d72bb83f6832b7c406da249"} + - id: qwen-m3a1-layer17-238 + title: "Qwen M3a-1 weight side on layer 17, stock vs abliterated: different tables and roots, cross-key proofs refused (issue #238)" + status: "measured" + replication: "unreplicated" + pr: 244 + summary: "Measured, unreplicated, CPU research harness, research setting (no security level). The statement of PR #231, unchanged, on V head 0 of layer 17 of the pinned stock and abliterated Qwen3.8-27B (every fetched tensor SHA-256 equal to the merged stream hash). The two integer tables differ in 358,034 of 4,874,240 entries, all in rows 515 to 594 (the head's out_proj columns); row 0, which the class and tie check, is identical. Same committer coins give different roots. Honest proofs 5 of 5 per checkpoint; PR #231's 8 hostile cases rejected and 3 completeness cases accepted on each table. A proof over one checkpoint's table under the other's key is rejected in all 3 registered ways: X1 and X3 by the trace transcript, X2 (every chain bound to the stock name) by LIN's table opening against the stock root. Of the head's 521,695 out_proj floats that differ, 163,661 keep their integer at exponent 12. NOT established: that weights are checked (what tells the checkpoints apart is the root; the edited weights have no relation on their values and no range); which root is the advertised checkpoint (#59); any head computation; any soundness level; other heads or layers" + conditions: "CPU only, cores 0-1 of a shared loaded host, single-threaded runs, registered groups through the heavy-job gate, g++ 13.3.0 -O2; PREREG first and alone, amendment A1 committed before the runs, A2 (one diagnostic) after them and before that diagnostic; debug only on a synthetic pair (numpy seeds 9101, 9102); research setting target 10 bits, query work 6; LIN plan hand-made (lin_world.h)" + evidence: ["experiments/20261129-238-qwen-m3a1-layer17/RESULTS.md", "experiments/20261129-238-qwen-m3a1-layer17/PREREG.md", "experiments/20261129-238-qwen-m3a1-layer17/ENV.json", "experiments/20261129-238-qwen-m3a1-layer17/runs/summary.json", "experiments/20261129-238-qwen-m3a1-layer17/runs/compare-layer17.json", "research/operators/qwen_m3a1l17/README.md"] + metrics: + - {"name": "ql17_m_entries_differing", "stat": "count", "value": 358034, "total": 4874240, "unit": "count", "n": 1, "spread": null, "source": "experiments/20261129-238-qwen-m3a1-layer17/runs/compare-layer17.json", "note": "Measured; entries of the 595 x 8,192 table that differ between stock and abliterated at layer 17, head 0; all in rows 515 to 594 (out of 655,360 there), 0 in row 0 and rows 1 to 514; deterministic", "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "69222963a66aa1d5d1e7583beb6d3e05e9fac8f2"} + - {"name": "ql17_outproj_moved_below_one_step", "stat": "count", "value": 163661, "total": 521695, "unit": "count", "n": 1, "spread": null, "source": "experiments/20261129-238-qwen-m3a1-layer17/runs/compare-layer17.json", "note": "Measured; head 0 out_proj floats that differ between the checkpoints but keep the same integer at exponent 12 (both checkpoints); deterministic", "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "69222963a66aa1d5d1e7583beb6d3e05e9fac8f2"} + - {"name": "ql17_honest_accepted", "stat": "count", "value": 10, "total": 10, "unit": "count", "n": 10, "spread": null, "source": "experiments/20261129-238-qwen-m3a1-layer17/runs/summary.json", "note": "Measured, unreplicated; honest proofs accepted, prover seeds 1..5 on each of the stock and abliterated layer-17 tables", "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "69222963a66aa1d5d1e7583beb6d3e05e9fac8f2"} + - {"name": "ql17_cases_as_registered", "stat": "count", "value": 22, "total": 22, "unit": "count", "n": 1, "spread": null, "source": "experiments/20261129-238-qwen-m3a1-layer17/runs/summary.json", "note": "Measured, unreplicated; PR #231's H1-H6 (8 rejected) and C1-C3 (3 accepted) on each checkpoint's table, one complete proof each, seed 1", "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "69222963a66aa1d5d1e7583beb6d3e05e9fac8f2"} + - {"name": "ql17_cross_key_rejected", "stat": "count", "value": 3, "total": 3, "unit": "count", "n": 1, "spread": null, "source": "experiments/20261129-238-qwen-m3a1-layer17/runs/summary.json", "note": "Measured, unreplicated; X1 (abl proof, stock key) and X3 (stock proof, abl key) refused by the trace transcript; X2 (abl table, chains bound to the stock name) refused by LIN's table opening against the stock root; one complete proof each, no soundness level", "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "69222963a66aa1d5d1e7583beb6d3e05e9fac8f2"} + - {"name": "ql17_prove_s_median_stock", "stat": "median", "value": 0.96, "unit": "s", "n": 5, "spread": {"sd": 0.022, "min": 0.957, "max": 1.004}, "source": "experiments/20261129-238-qwen-m3a1-layer17/runs/summary.json", "note": "Measured, unreplicated; trace + LIN prove wall time on the stock layer-17 table, commit not included (abliterated: median 0.969, min 0.956, max 1.014)", "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "69222963a66aa1d5d1e7583beb6d3e05e9fac8f2"} + - id: inkling-layer0-mlp-fidelity-228 title: "Inkling 2 Mini layer-0 routed MLP under main's integer rules, real NVFP4 weights, open loop vs float64" status: negative From 7242567350856f24698edd155f6347f33c943791 Mon Sep 17 00:00:00 2001 From: wakesync <60821182+wakesync@users.noreply.github.com> Date: Sun, 29 Nov 2026 03:36:43 +0000 Subject: [PATCH 6/7] PREREG amendment A3: text-only correction after the round 1 review (#238) A review of the write-up at f836d01d found two statements that say more than the runs show. This amendment registers a text-only correction and one metric rename before any other change. No run is added, repeated or changed; no threshold, class, case or count changes; the verdict is unchanged. --- experiments/20261129-238-qwen-m3a1-layer17/PREREG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/experiments/20261129-238-qwen-m3a1-layer17/PREREG.md b/experiments/20261129-238-qwen-m3a1-layer17/PREREG.md index f4626aa2..83404373 100644 --- a/experiments/20261129-238-qwen-m3a1-layer17/PREREG.md +++ b/experiments/20261129-238-qwen-m3a1-layer17/PREREG.md @@ -73,3 +73,9 @@ Concrete choices the code makes that the registration did not fix. None changes ### A2 (2026-11-29 02:40 UTC, after all registered runs, before the run it covers) X2 was rejected with lin_check's coarse reason "LIN shared part" (`runs/X2-abl-cells-bound-to-stock-name.json`). That string does not say whether the refusing check was the table openings against the stock root (a weight check) or an earlier transcript or message check, which is what the registration asked to report. One added diagnostic run, D1: `ql17.bin regrind-why` repeats X2 exactly (same tables, coins, seed; the verdict line must equal X2's) and then replays lin_check's steps up to the end of LIN's shared part with a copy that returns the shared chain's own first reason (`VerifierRounds::why()`). It is a diagnostic, not a registered case and not part of PASS; it changes no threshold, no case and no run file. Output `runs/D1-X2-shared-part-reason.json`, written once. + +### A3 (2026-11-29 03:36 UTC, after the review of the write-up at f836d01d; text only) +A review of this PR (https://github.com/wakesync/flashprove/pull/244#issuecomment-7250070696) found two statements in the write-up that say more than the runs show. This step corrects text and one metric name. No run is added, repeated or changed, and no run file is touched. No code line changes (one docstring in `compare.py` is reworded). No threshold, class, case or count changes. The verdict is unchanged: PASS on the four registered conditions. +- The count label. The 163,661 in `runs/compare-layer17.json` (`out_proj_head.differing_floats_with_same_integer`) is the number of differing head out_proj floats that keep the same integer at exponent 12. The write-up also called it the floats that "moved by less than one integer step". That is a different set, and this experiment did not count it. The label is corrected in RESULTS.md, in the operator README, in the `compare.py` docstring, and in the metric name in `research/results.yaml` (`ql17_outproj_moved_below_one_step` becomes `ql17_outproj_differing_same_integer`; value, total, source file and commit stay the same). The registered negative-result line above ("how many of those moved by less than one integer step") stays as registered: that branch did not occur, and the quantity the script counts is the one named in "What this step builds" item 2 and in "Metric" (differing floats that map to the same integer). +- What the cross cases show. RESULTS.md credited X2's refusal to the abliterated columns and called the table opening the only check that sees the edit. The committed runs support less. X1 and X3 are refused exactly as H1b (same weights, other coin) is. A proof is bound to one commitment, and any other commitment refuses it. No check in this step is shown to react to the abliteration edit. The sentences are rewritten to say that. The reviewer's control (the same table under another coin, refused at the table opening with X2's reason) is not committed here: it is cited as a reviewer result, and a committed control of that kind is listed under NOT established. It is not run in this step. +- One note is added to RESULTS.md on the denominator 4,874,240 (table entries including padding; the table holds 3,288,706 weights, as in PR #231). From dbd4f432299a3acf0473fe21882d176f4d58d0a7 Mon Sep 17 00:00:00 2001 From: wakesync <60821182+wakesync@users.noreply.github.com> Date: Sun, 29 Nov 2026 03:41:51 +0000 Subject: [PATCH 7/7] Round 1 review fixes for #238: what the 163,661 counts, what the cross cases show Text only, under PREREG amendment A3. No run file, no code line. Must-fix 1: the 163,661 is the number of differing head out_proj floats that keep the same integer at exponent 12, not the number that moved by less than one integer step. Corrected in RESULTS.md, the operator README and the compare.py docstring; the results.yaml metric is renamed ql17_outproj_differing_same_integer (same value, total, source, commit). RESULTS.md now states the share, 163,661 of 521,695 (31.37%), from compare-layer17.json, and that on those entries the integer table equals the stock table's. No statement about model behaviour. Must-fix 2: RESULTS.md no longer credits X2's refusal to the edited weights. X1 and X3 are refused exactly as H1b is (same weights, other coin), from this PR's run files. A proof is bound to one commitment and any other commitment refuses it. No check in this step is shown to react to the abliteration edit. The same-table, other-coin control for the table opening is a reviewer result (linked), not committed here, and is listed under NOT established. Nonblocking 1: the denominator note (4,874,240 table entries including padding; 3,288,706 weights, as in PR #231). --- .../20261129-238-qwen-m3a1-layer17/RESULTS.md | 24 +++++++++++++------ research/operators/qwen_m3a1l17/README.md | 2 +- research/operators/qwen_m3a1l17/compare.py | 3 ++- research/results.yaml | 2 +- 4 files changed, 21 insertions(+), 10 deletions(-) diff --git a/experiments/20261129-238-qwen-m3a1-layer17/RESULTS.md b/experiments/20261129-238-qwen-m3a1-layer17/RESULTS.md index f9f11981..eee33798 100644 --- a/experiments/20261129-238-qwen-m3a1-layer17/RESULTS.md +++ b/experiments/20261129-238-qwen-m3a1-layer17/RESULTS.md @@ -1,12 +1,12 @@ # RESULTS: 20261129-238-qwen-m3a1-layer17 -Issue #238. PREREG: [PREREG.md](PREREG.md) (first commit 1b5ab4e1, alone; amendment A1 committed in 1c558e60 before any registered run; amendment A2, one diagnostic run, committed in 854f6323 after the registered runs and before that diagnostic). Code: [`research/operators/qwen_m3a1l17/`](../../research/operators/qwen_m3a1l17/README.md), which includes `research/operators/qwen_m3a1/qm3a1.cpp` unchanged. Environment: [ENV.json](ENV.json). +Issue #238. PREREG: [PREREG.md](PREREG.md) (first commit 1b5ab4e1, alone; amendment A1 committed in 1c558e60 before any registered run; amendment A2, one diagnostic run, committed in 854f6323 after the registered runs and before that diagnostic; amendment A3, text only, after the round 1 review, no run). Code: [`research/operators/qwen_m3a1l17/`](../../research/operators/qwen_m3a1l17/README.md), which includes `research/operators/qwen_m3a1/qm3a1.cpp` unchanged. Environment: [ENV.json](ENV.json). **Verdict: PASS on all four registered conditions.** Every number below is measured, unreplicated, on one shared CPU host, at the harness's research setting. None of it is a security level. ## In plain words -At layer 17 (one of the layers the abliteration changes), the integer weight table of V head 0 is different for the stock and the abliterated checkpoint: 358,034 of its 4,874,240 entries differ, all in the rows that hold the head's out_proj columns. Committed with the same randomness, the two tables have different roots. A proof made over one checkpoint's table is refused by a verifier that holds the other checkpoint's key, in all three registered ways. Honest proofs and PR #231's whole hostile and completeness suite behave on both layer-17 tables exactly as they did on layer 0. +At layer 17 (one of the layers the abliteration changes), the integer weight table of V head 0 is different for the stock and the abliterated checkpoint: 358,034 of its 4,874,240 entries differ (table entries including padding; the table holds 3,288,706 weights, as in PR #231), all in the rows that hold the head's out_proj columns. Committed with the same randomness, the two tables have different roots. A proof made over one checkpoint's table is refused by a verifier that holds the other checkpoint's key, in all three registered ways. Honest proofs and PR #231's whole hostile and completeness suite behave on both layer-17 tables exactly as they did on layer 0. What the proof itself checks about the weights, though, is only row 0 (the 1,666 conv taps, gains, cA and dt_bias the trace reads), and row 0 is the same in both checkpoints. The abliteration edit lives in rows 515 to 594, which the statement binds only through the table's root (the Merkle openings that LIN reads) and LIN's proximity test, with no relation on their values. So "stock or abliterated" is decided here by which root the verifier holds, not by any check on the edited weights themselves. Which root is "the advertised checkpoint" is not this step's job (#59). @@ -27,7 +27,11 @@ What the proof itself checks about the weights, though, is only row 0 (the 1,666 The refusing checks for H1-H6 are the same lines as in PR #231 on both checkpoints: H1 and H1b at the trace transcript (proof-of-work nonce), H2a, H4 and H6 by "LIN second part: a proximity test" (`qm3a1.cpp` line 249), H2b, H3 and H5 by "BASE: the masked message in the proof does not satisfy the linear claim" (`blocks/iop/base_case.h` line 225). Summary of all of it: `runs/summary.json` (`all_as_expected: true`). -**Which check refuses each cross case, and what that means.** X1 and X3 are refused by the transcript, as registered: the trace chain binds the table's name in its first query, so another key changes the transcript and the recorded nonce no longer fits. That is binding to a root, not a check of weights. X2 is the regrinding prover of the PR #231 review: it binds every chain to the stock name, so the transcript is consistent. Its trace is accepted, because its row-0 statement is true (row 0 is identical in both checkpoints, so the abliterated cells are also the stock table's cells). It is refused when LIN's shared part opens the drawn columns of the table: the columns the prover holds (abliterated) do not hash to the stock root. That is the only weight check in this statement that sees rows 515 to 594, and it is a Merkle opening against a root, not a relation on the weight values. +**Which check refuses each cross case, and what that means.** X1 and X3 are refused by the transcript, as registered: the trace chain binds the table's name in its first query, so another key changes the transcript and the recorded nonce no longer fits. That is binding to a root, not a check of weights. X1 and X3 are refused exactly as H1b is on each checkpoint. H1b checks an honest proof under a key made from the same weights committed with another coin, and it gives the same verdict fields (`accepted`, `trace_accepted`, `trace_why`, `lin_accepted`, `lin_why`) and the same reason: trace refused, "a nonce does not give the proof of work that its round asks for", LIN not run (`runs/X1-abl-proof-stock-key.json`, `runs/X3-stock-proof-abl-key.json`, `runs/stock-case-H1b-other-root-same-weights.json`, `runs/abl-case-H1b-other-root-same-weights.json`). So X1 and X3 do not react to the edit: the same refusal occurs with no edit at all. + +X2 is the regrinding prover of the PR #231 review: it binds every chain to the stock name, so the transcript is consistent. Its trace is accepted, because its row-0 statement is true (row 0 is identical in both checkpoints, so the abliterated cells are also the stock table's cells). It is refused when LIN's shared part opens the drawn columns of the table: the columns the prover opens come from the table it committed itself, and they do not lead to the root the verifier holds (`runs/X2-abl-cells-bound-to-stock-name.json`, `runs/D1-X2-shared-part-reason.json`). In X2 the prover's commitment and the verifier's differ in two things at once, the table (abliterated, stock) and the committer coin (78, 991; PREREG amendment A1). No committed run of this PR separates the two. The reviewer of this PR reports a control that does (a reviewer result, not in this PR's committed files: https://github.com/wakesync/flashprove/pull/244#issuecomment-7250070696): the stock table, bound to the name of the stock table committed with coin 991, is refused by the same check with the same reason, and likewise abliterated against abliterated. + +What the three cross cases show is therefore this: a proof is bound to ONE commitment, and any other commitment refuses it, including a commitment to the same weights (H1b). No check in this step is shown to react to the abliteration edit. Rows 515 to 594 enter the statement only through the table's root (Merkle openings) and LIN's proximity test, and neither is a relation on the weight values. ## Reported (not part of PASS) @@ -38,13 +42,16 @@ From `runs/compare-layer17.json` and the two weight summaries: | head-slice SHA-256 equal: A_log, conv1d, dt_bias, in_proj_a, in_proj_b, in_proj_qkv, in_proj_z, norm | equal | equal (8 of 8; also 0 differing floats in each whole tensor) | | head-slice SHA-256 equal: out_proj | different | different | | differing M entries: row 0 / rows 1 to 514 / rows 515 to 594 | 0 / 0 / > 0 | 0 / 0 / 358,034 (of 655,360) | +| table entries and weights in the table | | 4,874,240 = 595 x 8,192 entries, zero padding included; 3,288,706 weights (`weights_in_table` in both weight summaries, equal to `weights_in_table` in PR #231's `experiments/20261121-229-qwen-m3a1-weight-side/runs/weights-head0.json`). Same layout; the two figures count different things | | out_proj floats that differ, head 0's 128 columns | | 521,695 of 655,360 (whole tensor: 24,510,291 of 31,457,280) | -| of those, same integer after conversion (moved by less than one integer step) | | 163,661 | -| of those, integer changed | | 358,034; absolute change 1 to 40, 191,861 of them by exactly 1 (histogram in the file) | +| of those, keep the same integer at exponent 12 | | 163,661 (31.37% of 521,695) | +| of those, integer changed | | 358,034 (68.63% of 521,695); absolute change 1 to 40, 191,861 of them by exactly 1 (histogram in the file) | | conversion exponents, both checkpoints | | conv taps 12, gain x sqrt(128) 8, cA 7, dt_bias 12 (F), in_proj_qkv 14, in_proj_z 14, in_proj_a 14, in_proj_b 14, out_proj 12 (out_proj 12 in both: the edit did not move the exponent) | | row-0 class (DESIGN 6.2), both checkpoints | all in class | 1,665 of 1,665 narrow cells in [-4,096, 4,095]; dt cell in [-2^17, 2^17) | | row 0 identical across checkpoints | | yes | +**What the 163,661 counts.** In `runs/compare-layer17.json`, under `out_proj_head`: `differing_floats_with_same_integer` is 163,661, `head_floats_differing` is 521,695, and `differing_floats_with_changed_integer` is 358,034. So of the head's out_proj floats that the abliteration changes, 163,661 of 521,695 (31.37%) keep their integer at exponent 12. On those entries the abliterated checkpoint's integer table equals the stock table's, so that part of the float edit is not in the table. The count is of floats that differ and convert to the same integer. It is not the count of floats that "moved by less than one integer step", as an earlier version of this file and of the metric name said: a float can move by less than one step and still cross a rounding boundary, so the two sets are not the same. This PR's committed files do not count the floats that moved by less than one step (the reviewer's own counts are in https://github.com/wakesync/flashprove/pull/244#issuecomment-7250070696, reviewer figures, not results of this PR). Nothing here says what this does to the model's behaviour: none was measured. + Layer 17's row 0 for head 0: taps -1,368..1,424, gains 1,720..2,874, cA 19, dt_int -22,528. cA = 19 at exponent 7 keeps only 5 bits, the same precision note DESIGN 6.2 makes for layer 0's smallest cA values; it is in class, and its precision is not a question this step answers. Only head 0 of layer 17 was checked: the class completeness of the other 47 heads of layer 17 and of the other DeltaNet layers stays unmeasured. ## Measured (unreplicated, shared host, single-threaded runs on cores 0-1) @@ -62,18 +69,21 @@ Cells, product columns, log length, relations and table shape are PR #231's: 1,6 ## Where the issue was right and where it needed care -Checked against main before registration (PREREG, first section): revisions, the stream hashes (8 equal, out_proj different), the 232 MB size and the out_proj rows 515 to 594 are as the issue says. The issue's question "is a proof made over one rejected under the other's key by the weight checks, not only by the transcript" needed one qualification, which the runs confirm: the weight checks of this statement (class and tie) only look at row 0, which is identical in both checkpoints, so they cannot refuse a cross proof. The only check that sees the edit is the table opening inside LIN, and it is what refuses X2. And "X2: v computed honestly from the abliterated table" gives the same v as from the trace, for the same reason. +Checked against main before registration (PREREG, first section): revisions, the stream hashes (8 equal, out_proj different), the 232 MB size and the out_proj rows 515 to 594 are as the issue says. The issue's question "is a proof made over one rejected under the other's key by the weight checks, not only by the transcript" needed one qualification, which the runs confirm: the weight checks of this statement (class and tie) only look at row 0, which is identical in both checkpoints, so they cannot refuse a cross proof. No check in this step is shown to react to the edit. X1 and X3 are refused exactly as H1b (same weights, other coin) is. X2 is refused at the table opening inside LIN, and the reviewer's control (not committed here: https://github.com/wakesync/flashprove/pull/244#issuecomment-7250070696) reports that opening refusing the same table under another coin with the same reason. What each cross case shows is that a proof is bound to one commitment and any other commitment refuses it. And "X2: v computed honestly from the abliterated table" gives the same v as from the trace, for the same reason. ## Deviations - PREREG says "Commit only hashes, shapes, exponents, counts and the integer ranges"; the weight summaries (`runs/weights-layer17-*.json`, written by the unchanged `write()` of `qwen_m3a1/prepare.py`) and this file hold row-0 ranges, cA, dt_int and the matrix absolute maximum (3,488) of this public checkpoint, as PR #231's do. They are ranges and single cell values, not tensors. - X2's coarse reason ("LIN shared part") did not name the refusing check; amendment A2 added one diagnostic run (D1) after the registered runs and before D1. D1 repeated X2's verdict line field for field except timings and RSS. - `ql17.cpp` was changed once after the registered runs (the `regrind-why` mode, amendment A2); the registered runs used the binary built from commit 1c558e60. The `regrind`, `cross` and `keys` paths were not changed. +- After the round 1 review (PREREG amendment A3): the text of this file, of the operator README and of one docstring in `compare.py` was corrected, and the metric `ql17_outproj_moved_below_one_step` in `research/results.yaml` was renamed `ql17_outproj_differing_same_integer` (same value, total, source file and commit). No run was added, repeated or changed, and no code line changed. - The heavy-job gate was used for the compiles and the two registered groups; the two fetches, the synthetic debug runs, `compare.py` and D1 ran outside it on cores 0-1 (each under 2 minutes of CPU and under 1 GB). ## NOT established - That a verifier can tell stock from abliterated by checking weights. What it checks is a root. The edited weights (out_proj, rows 515 to 594) are bound by Merkle openings and a proximity test, with no relation on their values; nothing here computes with them. +- That any check reacts to the abliteration edit. Every refusal of a cross case here is also what a commitment to the same weights under another coin gets (H1b for X1 and X3 in this PR's run files; for X2, the reviewer's uncommitted control). +- A committed same-table, other-coin control for the table opening: the stock table against the stock table committed with another coin, bound to that name as in X2. Without it, this PR's files do not separate "another table" from "another commitment" in X2's refusal. The reviewer ran such a control and reports the same refusal reason (https://github.com/wakesync/flashprove/pull/244#issuecomment-7250070696); that run is not committed here and was not added in the text-only step of amendment A3. - Which root is the advertised checkpoint (#59). Each verifier here simply holds one key. - Any head computation (in_proj, conv, gates, norms, recurrence, out_proj product); the M3a-1 evidence gate of `experiments/20261109-32-qwen-m3-design/DESIGN.md` section 9 is not met. - Any range on the matrix weights (rows 1 to 594); no Qwen WF layout. @@ -84,6 +94,6 @@ Checked against main before registration (PREREG, first section): revisions, the ## Open risks -1. X1 and X3 test transcript binding only; X2 is the only case that reaches a weight-side check, and that check is a hash opening. A reviewer should confirm that `lin_prove_named` in `ql17.cpp` is a faithful copy of `qm3a1.cpp`'s `lin_prove` apart from the name, and that bypassing `lin_shared_prove`'s prover-side `BLK_REQUIRE` does not weaken anything the verifier relies on. +1. X1 and X3 test transcript binding only, and are refused exactly as H1b is. X2 is the only case that reaches the table opening, and that check is a hash opening against a root. This PR has no committed same-table, other-coin control for it, so X2 does not show that the opening reacts to the edit; the reviewer's uncommitted control reports the same refusal for the same table under another coin (https://github.com/wakesync/flashprove/pull/244#issuecomment-7250070696). Read "X2 is refused" as "another commitment is refused", not as "the edit is detected". A reviewer should confirm that `lin_prove_named` in `ql17.cpp` is a faithful copy of `qm3a1.cpp`'s `lin_prove` apart from the name, and that bypassing `lin_shared_prove`'s prover-side `BLK_REQUIRE` does not weaken anything the verifier relies on. 2. The cell-to-address map is PR #231's (`build()` unchanged, reviewed there for layer 0); it was not re-derived independently for layer 17. 3. Exponents are per tensor; out_proj kept exponent 12 in both checkpoints. A conversion that picked a different exponent for the two would give tables that differ everywhere in rows 515 to 594, which is not what was measured here. diff --git a/research/operators/qwen_m3a1l17/README.md b/research/operators/qwen_m3a1l17/README.md index ee5d9e26..cace15e5 100644 --- a/research/operators/qwen_m3a1l17/README.md +++ b/research/operators/qwen_m3a1l17/README.md @@ -25,7 +25,7 @@ As in PR #231: the relations, psi, and the LIN claim, from public data and the k ## Files - `prepare_layer.py`: fetch one layer's 9 `linear_attn` tensors of the stock or abliterated pinned revision by HTTP range (merged `fetch.py` `get()`), check SHA-256 and size against the merged `runs/stream-.json`, convert and write M.i32 outside the repository. `synthetic` mode: the debug pair (seeds 9101, 9102). -- `compare.py`: per-tensor and head-slice SHA-256 equality, differing M entries per row band, out_proj floats that moved by less than one integer step, row-0 class. +- `compare.py`: per-tensor and head-slice SHA-256 equality, differing M entries per row band, out_proj floats that differ and keep the same integer after conversion (at exponent 12 here; this is not the count of floats that moved by less than one integer step), row-0 class. - `ql17.cpp`: the `keys`, `cross`, `regrind` modes (and `regrind-why`, diagnostic D1 of amendment A2); any other arguments go to qm3a1.cpp's `main`. - `run_registered.py`, `run_diagnostic.py`, `summarise.py`: the registered runs (each to its own file, written once, with its UTC start time), the diagnostic, `runs/summary.json`. diff --git a/research/operators/qwen_m3a1l17/compare.py b/research/operators/qwen_m3a1l17/compare.py index 51933e9d..28d2da41 100644 --- a/research/operators/qwen_m3a1l17/compare.py +++ b/research/operators/qwen_m3a1l17/compare.py @@ -7,7 +7,8 @@ - per tensor: SHA-256 of the whole tensor and of the head-0 slice that enters M, equal or not; - per band of M (row 0, rows 1..514, rows 515..594): number of entries that differ; - out_proj head slice: floats that differ, and how many of those keep the same integer after - conversion (moved by less than one integer step at the chosen exponent); + conversion at the chosen exponent (this is not the count of floats that moved by less than + one integer step: a float can move by less and still cross a rounding boundary); - row 0: every cell's DESIGN 6.2 class ([-4096, 4095] for taps, gains, cA; [-2^17, 2^17) for dt). Usage: compare.py (refuses to overwrite out.json) """ diff --git a/research/results.yaml b/research/results.yaml index 84d64ca8..96175e5d 100644 --- a/research/results.yaml +++ b/research/results.yaml @@ -2045,7 +2045,7 @@ results: evidence: ["experiments/20261129-238-qwen-m3a1-layer17/RESULTS.md", "experiments/20261129-238-qwen-m3a1-layer17/PREREG.md", "experiments/20261129-238-qwen-m3a1-layer17/ENV.json", "experiments/20261129-238-qwen-m3a1-layer17/runs/summary.json", "experiments/20261129-238-qwen-m3a1-layer17/runs/compare-layer17.json", "research/operators/qwen_m3a1l17/README.md"] metrics: - {"name": "ql17_m_entries_differing", "stat": "count", "value": 358034, "total": 4874240, "unit": "count", "n": 1, "spread": null, "source": "experiments/20261129-238-qwen-m3a1-layer17/runs/compare-layer17.json", "note": "Measured; entries of the 595 x 8,192 table that differ between stock and abliterated at layer 17, head 0; all in rows 515 to 594 (out of 655,360 there), 0 in row 0 and rows 1 to 514; deterministic", "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "69222963a66aa1d5d1e7583beb6d3e05e9fac8f2"} - - {"name": "ql17_outproj_moved_below_one_step", "stat": "count", "value": 163661, "total": 521695, "unit": "count", "n": 1, "spread": null, "source": "experiments/20261129-238-qwen-m3a1-layer17/runs/compare-layer17.json", "note": "Measured; head 0 out_proj floats that differ between the checkpoints but keep the same integer at exponent 12 (both checkpoints); deterministic", "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "69222963a66aa1d5d1e7583beb6d3e05e9fac8f2"} + - {"name": "ql17_outproj_differing_same_integer", "stat": "count", "value": 163661, "total": 521695, "unit": "count", "n": 1, "spread": null, "source": "experiments/20261129-238-qwen-m3a1-layer17/runs/compare-layer17.json", "note": "Measured; head 0 out_proj floats that differ between the checkpoints but keep the same integer at exponent 12 (both checkpoints); deterministic", "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "69222963a66aa1d5d1e7583beb6d3e05e9fac8f2"} - {"name": "ql17_honest_accepted", "stat": "count", "value": 10, "total": 10, "unit": "count", "n": 10, "spread": null, "source": "experiments/20261129-238-qwen-m3a1-layer17/runs/summary.json", "note": "Measured, unreplicated; honest proofs accepted, prover seeds 1..5 on each of the stock and abliterated layer-17 tables", "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "69222963a66aa1d5d1e7583beb6d3e05e9fac8f2"} - {"name": "ql17_cases_as_registered", "stat": "count", "value": 22, "total": 22, "unit": "count", "n": 1, "spread": null, "source": "experiments/20261129-238-qwen-m3a1-layer17/runs/summary.json", "note": "Measured, unreplicated; PR #231's H1-H6 (8 rejected) and C1-C3 (3 accepted) on each checkpoint's table, one complete proof each, seed 1", "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "69222963a66aa1d5d1e7583beb6d3e05e9fac8f2"} - {"name": "ql17_cross_key_rejected", "stat": "count", "value": 3, "total": 3, "unit": "count", "n": 1, "spread": null, "source": "experiments/20261129-238-qwen-m3a1-layer17/runs/summary.json", "note": "Measured, unreplicated; X1 (abl proof, stock key) and X3 (stock proof, abl key) refused by the trace transcript; X2 (abl table, chains bound to the stock name) refused by LIN's table opening against the stock root; one complete proof each, no soundness level", "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-11-29", "commit": "69222963a66aa1d5d1e7583beb6d3e05e9fac8f2"}