Skip to content

research: attribute the seven Qwen gain-first output differences - #276

Merged
wakesync merged 5 commits into
mainfrom
research/1202-qwen-rounding-attribution-273
Dec 2, 2026
Merged

wakesync merged 5 commits into
mainfrom
research/1202-qwen-rounding-attribution-273

Conversation

@wakesync

@wakesync wakesync commented Dec 2, 2026 •

Copy link
Copy Markdown
Owner

Part of #273

FAIL, measured and unreplicated. Five of seven historical differences fit the registered explanation; all seven were required. The first counterexample is token 314, channel 37: M2 and gate rounding alone return −1435, while gain rounding alone and both factors rounded return −1436. At token 14898, channel 51, either factor rounded alone gives the actual wrong output. Among the seven: gate only 5, gain only 1, either alone 1, joint only 0.

The original M2 and #266 gain-first coefficient/output pairs reconstructed at all 512 coordinates. The legacy and gain-first historical hashes, counts, maxima and first witness reproduced. With both factors rounded, 462 coordinates had different coefficients but identical outputs. The signed controls and precision enclosures passed. Five fresh processes returned identical substantive hashes (satisfying sites: median 5/7, sample SD 0, min/max 5/5). See full results and per-site output table, first receipt, summary.

Scope and deviations: no registration amendment, self-retry, exclusion, or new candidate. Shared upstream projection/recurrence, not independent weight projections. Actual M2 groups binary64 operations differently than the mathematical A×B; agreement is an observed endpoint check on this fixture, not a general identity. No model-fidelity claim, proof, commitment, new lookup rule or result for another head. No headline proposed.

Local checks: update-results: ok (87 results, 1292 metrics, README and CLAIMS.md in sync); check-claims: ok (87 claims); check-no-host-paths: ok. One results row, pointing to evidence commit 5f12e5b. Must merge with a merge commit to preserve metric references. Stays draft for independent review.

@wakesync

wakesync commented Dec 2, 2026

Copy link
Copy Markdown
Owner Author

APPROVE at 484cd19

class B, one reviewer (Opus); the author ran on a different model family; reviewed before the main sync

What I checked myself

  • History: 3 commits, all wakesync noreply. d6dabcd (18:15:06Z) holds PREREG.md alone and is the only commit that touches it; Amendments is empty. 5f12e5b (18:24:32Z) adds the code, ENV.json, inputs.json, five runs and summary in one commit; every utc_start (18:18:30Z to 18:23:11Z) is after the PREREG commit. 484cd19 adds only the three ledger files. The PR timeline shows no force-push. Every hand value the code checks is written in the PREREG.
  • Code (measure.py, cells.py, prepare.py, summary.py) against the PREREG, real_head.py gated_norm and research: test gain-first rounding on the Qwen head fixture #266 compare.py, all unchanged at the pinned hashes. The committed source hashes equal the source_sha256 in run-1.
  • Rerun, once: I fetched the inputs with the PR's own prepare.py from an export of the head into a private temp directory. Result PASS: 13 HTTP 206 ranges, 168,888,768 bytes, every digest matched. Then I ran one measure.py through the heavy-job gate on cores 10-12. It printed FAIL 51aa740e..., the committed substantive hash, and its run-1.json is byte-identical to the committed one except utc_start. The temp directory was deleted afterwards. I exported one extra directory up front, research/operators/qwen_m3, because packed_ref.py loads count_m3 from there. That was not a fix after a failed import.
  • My own arithmetic (not cells.py): exact rationals with my own RNE and signed floor. All 8 hand fixtures give the registered K, y, remainders and categories: (3,2,3,2); 256 x4; (513,513,512,512); w=-1 gives K=1, y=-1, r=4095; ties at A=1,3,-1,-3 give 0,2,0,-2. Truncation to (0,-1) is rejected. Then, on operands from the PR's replay of the unchanged code, held in memory only, I recomputed all four cells at all 512 coordinates. I used 60-digit Decimal exp and sqrt with an explicit 1e-50 relative slack, interval products, and the exact binary64 gain. Every decision was certified. Mismatches at 512 coordinates: 0 against M2 cg, 0 against M2 y, 0 against the research: test gain-first rounding on the Qwen head fixture #266 candidate coefficient, 0 against the research: test gain-first rounding on the Qwen head fixture #266 decoded y, 0 against s_gate, 0 against gain_int. The seven sites I derived from M2 y against decoded y are (760,113), (760,118), (6511,113), (314,37), (314,113), (14898,51), (14898,113), the research: test gain-first rounding on the Qwen head fixture #266 review list, and they equal measure.py's targets. Each site's four outputs match RESULTS.md. My table.all and table.seven dicts and all eight array_sha256 values equal the committed ones. In particular: outputs gate only 5, gain only 3, either 1, neither 503; with both rounded, 43 coefficients and 505 outputs equal M2; 462 hidden coefficient differences.
  • Inputs: runs/inputs.json has the same pinned revision and the same 13 ranges and digests as research: test gain-first rounding on the Qwen head fixture #266's runs/inputs.json on main, 168,888,768 bytes in total.
  • Repository content: no file in the experiment directory holds a real gate, gain, coefficient, w, s, G or normalized value. The only decimal fractions are timestamps. Run files hold hashes, counts, indices, synthetic control values and the integer outputs at the seven sites.
  • Hygiene at the head: update-results.py --check ok (87 results, 1292 metrics), check-claims.py ok, check_inventory.py ok, check-no-host-paths.sh ok. The private scrub found total_matches=0 on all 18 changed files, the three commit messages, the PR body and the issue comment. Against base b8c087d, only the research: attribute the seven Qwen gain-first output differences #276 row differs in the three ledger files, pr: 276, and the stamp is unchanged.
  • Wording: the RESULTS lead, results row, README and CLAIMS rows, PR title and body, and issue comment each state a plain FAIL of the registered all-seven gate-only explanation on this fixture. None calls gain rounding "the" cause, proposes a rule, or says anything about M3, another head or token, or BF16. The 43/512 figure is labelled as this lane's measurement, and the research: test gain-first rounding on the Qwen head fixture #266 reviewer's comment is linked as an earlier observation. The 462 is given as a count of coefficient differences hidden by equal outputs, not as an error rate.

Must-fix
None.

Nonblocking

  • runs/inputs.json line 71 has a leftover "stage": "embed_row_14898.bin" key on a PASS receipt. It is harmless, and run files are not to be edited.
  • The issue comment says the check-runs API returned zero runs. That was true when it was posted. CI later ran green at this head (below).
  • The README reproduction example pins cores 4-6. That fits the author's host only.

Worry a, in plain words
The endpoints are reconstructed, not assumed. measure.py runs the unchanged run_int and the unchanged #266 candidate(). It captures gated_norm's real inputs and returns (zi, gain, o, y, w, cg) through a profiler hook that only observes, and stores read-only copies before any cell is computed. It checks those against #266's committed historical hashes and counts. Only then does it compare the diagnostic's (A,B) cell with the captured M2 cg and y, and the (a,b) cell with the captured #266 coefficient and decoded y, at every coordinate, stopping on the first mismatch. My independent recomputation agrees at all 512. Agreement between the arbitrary-precision A*B and M2's binary64 grouping is a fact about this fixture: RESULTS.md says "This reconciles the two groupings on this fixture, not as a binary64 identity", and the PR body says the same.

Main sync needed: yes. Main is 1ed590a, and the PR conflicts with it in the ledger files.

CI (check-runs API at the head): claims success (completed 18:34:01Z), guard success (completed 18:33:55Z).

Skipped checks: none. The rerun was one measurement, not five, as the review brief asked.

Resolve conflicts in research/results.yaml, README.md and CLAIMS.md. Keep main's complete ledger and append the unchanged qwen-rounding-attribution row from this branch. README and CLAIMS are regenerated in the following commit.
Keep the README stamp unchanged from main.
@wakesync

wakesync commented Dec 2, 2026

Copy link
Copy Markdown
Owner Author

Merged main 2487bc33b749d05e2f600cb0d129b209bee7864b into this draft; new head 7d47a0d662d0afa78dce92a5145564af576e7d19. Only research/results.yaml, README.md and CLAIMS.md conflicted.

  • Removing this PR’s last row gives main’s ledger byte for byte (SHA-256 f9bba5d14f2fa00bb7e65881872a2ebc19b60e7c7cc41d3fe7d6dbcbbb2d8ff3).
  • The 2,319-byte qwen-rounding-attribution row matches the old head (SHA-256 36bcf3a9c5aa8325850355df64dbb83fb55fc95bbec64e62adba22e814a9acfe). No existing row changed or was removed; all 90 IDs are distinct.
  • All 15 experiment files match the old head. README and CLAIMS were regenerated with main’s stamp retained; all four local checks passed.

@wakesync

wakesync commented Dec 2, 2026

Copy link
Copy Markdown
Owner Author

APPROVE at 7d47a0d
class B, Opus, check of the main sync only; the full review was at 484cd19 (7356360425); the sync was done by gpt-6.2-astra

The approval at 484cd19 carries to 7d47a0d. I did not review the experiment again. All proofs below are my own, read from the blobs in a read-only clone.

  1. b1dd3569 has parents 484cd197 and 2487bc33. 7d47a0d6 has one parent, b1dd3569, and changes only README.md and CLAIMS.md. Both commits have the wakesync noreply identity as author and committer. The timeline shows no force-push.
  2. research/results.yaml has 90 rows and 90 distinct ids (89 from main plus this PR's row). The qwen-rounding-attribution row (pr: 276) comes last and matches the row at 484cd197 byte for byte (SHA-256 36bcf3a9...acfe). The head file is exactly main's file, one blank line, then this row. With those removed it is main's file byte for byte (SHA-256 f9bba5d1...8ff3 for both).
  3. Compared with main 2487bc33, README.md and CLAIMS.md each gain one line: this PR's row. The stamp line is main's. No line of this PR's row changed since 484cd197.
  4. All 15 files under experiments/20261202-273-qwen-rounding-attribution/ are byte-identical to 484cd197. The other 4,770 guarded paths are identical to main 2487bc33. These are the other experiments/ dirs (4,083 files), the inventory, weight_sums, research/operators/, prover/ and scripts/. Overall, head and main differ in 18 paths: the 15 experiment files plus the three ledger files.

Must-fix: none (TEXT: none; NOT TEXT: none).

Check results at the head, all exit 0:

  • update-results.py --check: 90 results, 1,320 metrics.
  • check-claims.py: 90 claims, 82 unreplicated.
  • check_inventory.py: 104 rows, 11 open gaps.
  • check-no-host-paths.sh: ok.

The scrub found total_matches=0 in both sync commit messages and in sync comment 7357595483. The sync lane's STATE, RESULT and comment agree with my numbers. I found nothing it did outside its brief. It recorded one shell quoting typo on its CI read, which the shell rejected before gh ran.

Main sync needed: no. Main has moved since the sync. It is now 92fd880205bcfe92e4f342b2e28ee2d3d0521e0d by both ls-remote and the API. The compare 2487bc33...92fd8802 shows two commits (the automatic stamp regeneration 9f0be635 and the merge of PR #283). They change one file, README.md, one line: the stamp line, 82d0cf81 to 2487bc33. That is the only change. The API reports PR #276 as mergeable and clean against the current main.

CI at 7d47a0d6: claims success (20:21:23Z), guard success (20:21:24Z). The PR is draft, mergeable and clean.

Skipped checks: none.

This APPROVE means only that the experiment and wording the review approved are unchanged byte for byte, and that the ledger files are main's plus this PR's row. It does not replace CI.

@wakesync
wakesync marked this pull request as ready for review December 2, 2026 20:34
@wakesync
wakesync merged commit 7b53af9 into main Dec 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant