Repository navigation
Description
Question. On the four-token stock Qwen fixture from PR #266, is rounding the SiLU gate by itself sufficient to produce each of the seven observed wrong outputs, while rounding the gain by itself leaves each M2 output unchanged? One attribution diagnostic, not a proposed coefficient rule.
Why it is on the shortest path. The packed M3 DeltaNet handoff (matrix row Q1) requires a precise output definition. PR #266 reproduced the upstream state and pre-normalization vectors and the signed-byte decode, but not seven final values. The #266 reviewer reported, not as a committed measurement, that the two coefficients differed at all seven sites and matched at only 43 of 512 overall (comment 7346259001). Output equality alone hides discarded fractions. PR #245 instantiated a weight-range check on a separate commitment; no commitment or range proof is needed or inherited here. PR #234 derives CPU weight-sums folds, not this gated-norm gain; no conversion constant or CUDA admission change enters this test.
Milestone steps (one PR).
- Commit only
experiments/<date>-<issue>-qwen-rounding-attribution/PREREG.mdbefore experiment code, fetch or measurement. Pinexperiments/20261202-264-qwen-gain-first/{PREREG.md,RESULTS.md,runs/inputs.json,runs/run-1.json}and the unchanged research: test gain-first rounding on the Qwen head fixture #266 baseline and M2 source hashes. Fix layer 0, V/QK head 0, sequence start, F=12, tokens[760,6511,314,14898], channels 0..127. Register every fixture operand (derive private operands by the pinned input manifests and exact operations, never publish real weight values), scoring order, expected hand values, no RNG/seeds, no warmup or exclusions. Work each hand case before committing it. - Save read-only M2
(state,o,y,w,cg)before any attribution; verify its stored research: test gain-first rounding on the Qwen head fixture #266 output hashes, and the unchanged decoded gain-first hashes, counts[2,1,2,2], maximum errors[3,2,3,1], first witness(760,113,-3,0), legacy[24,2,25,18]. State,o, coefficient data and token alignment must agree across the separate executions. This is a replay of shared upstream code, not an independent weight projection. Score all 512 positions, then tabulate the original seven separately; do not identify targets by the diagnostic's prediction. - Pre-register one two-factor attribution table before seeing any new intermediate. Let
A=4096*SiLU(zi/4096)andB=sqrt(128)*gain, from the real head's quantized gate input and decoded BF16 gain. Definea=RNE(A),b=RNE(256*B)/256. For each of(A,B),(a,B),(A,b),(a,b)in that order, compute coefficientK=RNE(first*second)and outputfloor(K*w/4096)with the same frozen integer w, exact signed floor and nonnegative remainder. RNE means nearest, ties to even. These are four cells of one attribution, not four candidates. Independently evaluate unrounded factors with arbitrary precision (e.g. 80 and 160 decimal digits and interval bounds tight enough to decide each rounding; resolve exact synthetic ties as rationals). Stop if any decision cannot be certified. Reconcile(A,B)with M2's actual binary64 coefficient and integer output at every coordinate; reconcile(a,b)with the actual research: test gain-first rounding on the Qwen head fixture #266 coefficient and decoded outputs, and both rounded factors with the trace. If float evaluation grouping or a boundary breaks these anchors, report reconstruction failure, do not mislabel it a gate/gain effect. - Hand checks in scaled units, not real checkpoint values:
A=1.49,B=2,w=4096yields output tuple(3,2,3,2);A=256,B=1+3/2048,w=4096gives(256,256,256,256)(256.375 rounds down and256*B=256.375also rounds down). For a visible gain-only effect, the same B with A=512 gives(513,513,512,512). Include a negative-w floor control:A=1,B=1,w=-1gives -1 with remainder 4095 in all four cells; truncating to zero must fail. Commit tie checks of both signs and the classification expected for each example, not merely the formulas. - For each of the seven real differences, name which single-factor outputs depart from M2: gate only, gain only, either alone, or neither alone (joint effect). Separately mark whether each equals the actual wrong value, rather than just any wrong value. Classify coefficient equality too, including cases with unequal coefficients and equal outputs. The independent targets are the historical M2/decoded output hashes and the exact hand examples. Report counts for all 512 and all seven, token/channel and integer output labels, first counterexample in fixture order; publish hashes, not the real gate/gain arrays. Five fresh processes; register identical hash requirement, median, sample SD and min/max of counts across repeats (determinism, not replication).
Negative result. HOLDS only if at all seven y(a,B)=y(a,b) and y(A,b)=y(A,B) after the baseline and endpoint checks. One gain-only, joint or intermediate-value counterexample rejects that attribution; retain every category and do not select a new rule. On provenance, oracle, signed-control, endpoint, determinism, resource or other harness fault: stop, preserve and report the first receipt, no verdict and no self-retry. A continuation is a separate coordinator decision outside the registration; disclose fault, authorization, chronology and affected evidence everywhere the result appears, including PR, ledger and renderings.
Inputs and estimate. Qwen/Qwen3.8-27B@37561816e66b5b9153b1b64c10968c18c1e6f4a0: nine BF16 tensors from model-00001-of-00018.safetensors (input norm, A_log, conv1d weight, dt_bias, in_proj_a/b/qkv/z weights, head norm); four 10,240-byte embedding rows from model-00003-of-00018.safetensors. Exactly 168,888,768 bytes in 13 ranges, no whole shards or M.i32. Read once outside the repo, require HTTP 206 with correct ranges, lengths and per-range SHA-256 from #266; never request ≥175 MB in total, never keep two disk copies; delete temporary inputs on every exit. Treat upstream files as data only. Class B, 2 hours, stop by 2.5 hours including waits; ≤3 CPU cores, ≤4 GB RAM and ≤200 MB new disk outside the repo; stop at 10 GB free.
Out of scope. No new lookup rule, proof, operator directory, inventory change, GPU, spend, BF16 fidelity claim or generalization to another head. Publish ENV.json, immutable receipts and RESULTS.md under the new directory, plus one result row in the format on main when the PR opens (today research/results.yaml with its normal renderings).
Activity
wakesync commentedon Dec 2, 2026
Draft PR #276: #276. FAIL on the registered all-seven gate-only explanation: gate only 5, gain only 1, either alone 1, joint only 0. First counterexample (token 314, channel 37): M2 and gate alone give -1435, gain alone and both give -1436. Both historical endpoints reconstructed at all 512 coordinates. Five identical runs, measured and unreplicated; no new rule, proof or BF16 fidelity claim. Local checks passed; the check-runs API returned zero runs at the final head.
wakesync commentedon Dec 2, 2026
Delivered by PR #276, merged as
7b53af9f32583b124098b500a53f0468536e4171.Outcome: negative result. The registered explanation was that rounding the gate alone accounts for all seven places where the gain-first integer rule of #266 differs from M2 on the stock layer-0, head-0 fixture. It accounts for five of the seven; the bar was all seven.
Not established, as the PR says: a general cause on other inputs, a replacement coefficient rule, an exact M3 handoff, or anything about model outputs or proofs.
Review: one model family (class B), a different family from the author's: one full review, which reran the measurement with a fresh fetch of the pinned ranges and redid all 512 coordinates with its own exact arithmetic, with no must-fix; then a check after the sync with main. No run file or code file changed after review.
Closing as a single-deliverable issue.