diff --git a/CLAIMS.md b/CLAIMS.md index 75170a76..cf01ba63 100644 --- a/CLAIMS.md +++ b/CLAIMS.md @@ -101,3 +101,4 @@ tracked file, which both scripts resolve (they check that it exists, not what it | `inkling-router-input` | Inkling layer-0 router input: two extra bits miss the membership limit on both frozen sets: FAIL against the registered conjunction on both sets. Top-eight disagreements exceed 1%: 26/2426 (24 allowed) and 2/199 (1 allowed). The reproduced baseline had 90 and 3; the candidate introduced 16 and 1 new differing sets, respectively. Both pass the prompt Frobenius bars (0.01/0.05) but miss within-prompt token-error limits. No range events. The first attempt stopped at its fixture before any candidate ran. The coordinator authorised one continuation outside the registration under a dated amendment correcting one expected fixture value (see RESULTS, Deviation). | negative, unreplicated (frozen candidate; five identical processes) | unreplicated | [experiments/20261202-262-inkling-router-input/RESULTS.md](experiments/20261202-262-inkling-router-input/RESULTS.md), [experiments/20261202-262-inkling-router-input/PREREG.md](experiments/20261202-262-inkling-router-input/PREREG.md), [experiments/20261202-262-inkling-router-input/ENV.json](experiments/20261202-262-inkling-router-input/ENV.json), [experiments/20261202-262-inkling-router-input/runs/inputs.json](experiments/20261202-262-inkling-router-input/runs/inputs.json), [experiments/20261202-262-inkling-router-input/runs/baseline.json](experiments/20261202-262-inkling-router-input/runs/baseline.json), [experiments/20261202-262-inkling-router-input/runs/fixtures.json](experiments/20261202-262-inkling-router-input/runs/fixtures.json), [experiments/20261202-262-inkling-router-input/runs/inputs-b.json](experiments/20261202-262-inkling-router-input/runs/inputs-b.json), [experiments/20261202-262-inkling-router-input/runs/fixtures-b.json](experiments/20261202-262-inkling-router-input/runs/fixtures-b.json), [experiments/20261202-262-inkling-router-input/runs/candidate-1.json](experiments/20261202-262-inkling-router-input/runs/candidate-1.json), [experiments/20261202-262-inkling-router-input/runs/candidate-2.json](experiments/20261202-262-inkling-router-input/runs/candidate-2.json), [experiments/20261202-262-inkling-router-input/runs/candidate-3.json](experiments/20261202-262-inkling-router-input/runs/candidate-3.json), [experiments/20261202-262-inkling-router-input/runs/candidate-4.json](experiments/20261202-262-inkling-router-input/runs/candidate-4.json), [experiments/20261202-262-inkling-router-input/runs/candidate-5.json](experiments/20261202-262-inkling-router-input/runs/candidate-5.json) | #267 | | `prefix-index-support` | In a local translation of pinned DeepSeek-V4.1-Flash and GLM-5.3-Flash source with synthetic scores, prefix length fixes sparse attention addresses up to a boundary (#270): In a local address translation, all completed DeepSeek ratio-2 latents and all GLM raw keys matched a score-free arrival ledger at every prefix tested. DeepSeek ratio 1 matched all completed latents only through 512 tokens. At 513, ascending scores omitted ID 0, descending omitted ID 512. The raw DeepSeek window did not change. Wrongly admitting an incomplete pair added latent 2; dropping the GLM tail lost raw key 4. No model logits, attention values, runtime match, proof or savings. | measured, unreplicated | unreplicated | [experiments/20261202-270-prefix-index-support/RESULTS.md](experiments/20261202-270-prefix-index-support/RESULTS.md), [experiments/20261202-270-prefix-index-support/PREREG.md](experiments/20261202-270-prefix-index-support/PREREG.md), [experiments/20261202-270-prefix-index-support/ENV.json](experiments/20261202-270-prefix-index-support/ENV.json), [experiments/20261202-270-prefix-index-support/runs/summary.json](experiments/20261202-270-prefix-index-support/runs/summary.json), [experiments/20261202-270-prefix-index-support/runs/replay-1.json](experiments/20261202-270-prefix-index-support/runs/replay-1.json) | #271 | | `qwen-rounding-attribution` | Which rounding accounts for the seven Qwen gain-first differences? (#273): FAIL: 5 of 7 historical differences meet the gate-only bar (required 7). At token 314, channel 37, M2 and gate alone give -1435, gain alone and both give -1436; at token 14898, channel 51 either alone gives the wrong output. No joint-only case. Both endpoints reconstructed on all 512 positions. With both factors rounded, the output floor hides 462 coefficient differences. Fixture only; no replacement rule, proof or BF16 fidelity claim. | measured, unreplicated | unreplicated | [experiments/20261202-273-qwen-rounding-attribution/RESULTS.md](experiments/20261202-273-qwen-rounding-attribution/RESULTS.md), [experiments/20261202-273-qwen-rounding-attribution/PREREG.md](experiments/20261202-273-qwen-rounding-attribution/PREREG.md), [experiments/20261202-273-qwen-rounding-attribution/ENV.json](experiments/20261202-273-qwen-rounding-attribution/ENV.json), [experiments/20261202-273-qwen-rounding-attribution/runs/summary.json](experiments/20261202-273-qwen-rounding-attribution/runs/summary.json), [experiments/20261202-273-qwen-rounding-attribution/runs/run-1.json](experiments/20261202-273-qwen-rounding-attribution/runs/run-1.json) | #276 | +| `expert-asymmetric-cap` | Local transcription of pinned DeepSeek and GLM source: one integer table for the asymmetric gate cap on supplied synthetic Q8 inputs (#274): PASS, measured and unreplicated: 0/212,992 cap or error failures per local source transcription on supplied synthetic Q8 inputs. The grid pairs every gate integer in the registered range with only the 13 registered up values. Worst absolute error 0.00019805037805 in real units for each, below 1/4096. Both named wrong-semantics controls failed at their hand anchors. Five identical result digests test determinism, not replication. No weights, native precision, full expert, proof or performance claim. | measured, unreplicated | unreplicated | [experiments/20261202-274-expert-asymmetric-cap/RESULTS.md](experiments/20261202-274-expert-asymmetric-cap/RESULTS.md), [experiments/20261202-274-expert-asymmetric-cap/PREREG.md](experiments/20261202-274-expert-asymmetric-cap/PREREG.md), [experiments/20261202-274-expert-asymmetric-cap/ENV.json](experiments/20261202-274-expert-asymmetric-cap/ENV.json), [experiments/20261202-274-expert-asymmetric-cap/runs/summary.json](experiments/20261202-274-expert-asymmetric-cap/runs/summary.json), [experiments/20261202-274-expert-asymmetric-cap/runs/run-1.json](experiments/20261202-274-expert-asymmetric-cap/runs/run-1.json), [experiments/20261202-274-expert-asymmetric-cap/runs/run-2.json](experiments/20261202-274-expert-asymmetric-cap/runs/run-2.json), [experiments/20261202-274-expert-asymmetric-cap/runs/run-3.json](experiments/20261202-274-expert-asymmetric-cap/runs/run-3.json), [experiments/20261202-274-expert-asymmetric-cap/runs/run-4.json](experiments/20261202-274-expert-asymmetric-cap/runs/run-4.json), [experiments/20261202-274-expert-asymmetric-cap/runs/run-5.json](experiments/20261202-274-expert-asymmetric-cap/runs/run-5.json) | #275 | diff --git a/README.md b/README.md index f3454d02..dbe60824 100644 --- a/README.md +++ b/README.md @@ -99,6 +99,7 @@ Every number below comes from a file on `main` (the one exception, a reviewer fi | Inkling layer-0 router input: two extra bits miss the membership limit on both frozen sets | negative, unreplicated (frozen candidate; five identical processes) | FAIL against the registered conjunction on both sets. Top-eight disagreements exceed 1%: 26/2426 (24 allowed) and 2/199 (1 allowed). The reproduced baseline had 90 and 3; the candidate introduced 16 and 1 new differing sets, respectively. Both pass the prompt Frobenius bars (0.01/0.05) but miss within-prompt token-error limits. No range events. The first attempt stopped at its fixture before any candidate ran. The coordinator authorised one continuation outside the registration under a dated amendment correcting one expected fixture value (see RESULTS, Deviation). | CPU only, six cores, decoded-weight float64 reference. Both sets previously scored. The first attempt stopped at its fixture before any candidate ran. With baseline figures known, the coordinator authorised one continuation outside the registration under a dated amendment correcting one expected fixture value (see RESULTS, Deviation). Five fresh processes with identical set summaries test determinism, not generalization or independent replication. | [experiments/20261202-262-inkling-router-input/RESULTS.md](experiments/20261202-262-inkling-router-input/RESULTS.md) | | In a local translation of pinned DeepSeek-V4.1-Flash and GLM-5.3-Flash source with synthetic scores, prefix length fixes sparse attention addresses up to a boundary (#270) | measured, unreplicated | In a local address translation, all completed DeepSeek ratio-2 latents and all GLM raw keys matched a score-free arrival ledger at every prefix tested. DeepSeek ratio 1 matched all completed latents only through 512 tokens. At 513, ascending scores omitted ID 0, descending omitted ID 512. The raw DeepSeek window did not change. Wrongly admitting an incomplete pair added latent 2; dropping the GLM tail lost raw key 4. No model logits, attention values, runtime match, proof or savings. | One unpadded request starting at zero, prefixes 1 to 1024, long prefill and continuation, five finite synthetic score orders. Five identical deterministic replays, not replication. Address support only; no claim above 1024. | [experiments/20261202-270-prefix-index-support/RESULTS.md](experiments/20261202-270-prefix-index-support/RESULTS.md) | | Which rounding accounts for the seven Qwen gain-first differences? (#273) | measured, unreplicated | FAIL: 5 of 7 historical differences meet the gate-only bar (required 7). At token 314, channel 37, M2 and gate alone give -1435, gain alone and both give -1436; at token 14898, channel 51 either alone gives the wrong output. No joint-only case. Both endpoints reconstructed on all 512 positions. With both factors rounded, the output floor hides 462 coefficient differences. Fixture only; no replacement rule, proof or BF16 fidelity claim. | Measured, unreplicated. Pinned stock layer 0, V/QK head 0, F=12, four tokens from sequence start. Five fresh serial CPU processes; deterministic repeats, not independent samples. One registered attribution table, no amended thresholds. | [experiments/20261202-273-qwen-rounding-attribution/RESULTS.md](experiments/20261202-273-qwen-rounding-attribution/RESULTS.md) | +| Local transcription of pinned DeepSeek and GLM source: one integer table for the asymmetric gate cap on supplied synthetic Q8 inputs (#274) | measured, unreplicated | PASS, measured and unreplicated: 0/212,992 cap or error failures per local source transcription on supplied synthetic Q8 inputs. The grid pairs every gate integer in the registered range with only the 13 registered up values. Worst absolute error 0.00019805037805 in real units for each, below 1/4096. Both named wrong-semantics controls failed at their hand anchors. Five identical result digests test determinism, not replication. No weights, native precision, full expert, proof or performance claim. | CPU only, one fixed Q16 table, supplied Q8 integers, signed ties-to-even Q12 output. All gate integers crossed with 13 specified up integers, not all combinations. Separate 60/100-digit scalar transcriptions of pinned sources, not running frameworks. | [experiments/20261202-274-expert-asymmetric-cap/RESULTS.md](experiments/20261202-274-expert-asymmetric-cap/RESULTS.md) | _Last regenerated from `research/results.yaml` on 2026-12-02 (UTC), against main `2487bc33`._ diff --git a/experiments/20261202-274-expert-asymmetric-cap/ENV.json b/experiments/20261202-274-expert-asymmetric-cap/ENV.json new file mode 100644 index 00000000..10538993 --- /dev/null +++ b/experiments/20261202-274-expert-asymmetric-cap/ENV.json @@ -0,0 +1,73 @@ +{ + "commits": { + "flashprove_base": "b8c087dbea19c15faf0d98090b71e93d658c23c1", + "registration": "d01e97171ad076bbbc0be98b2b7cb2ef0b47d7fe", + "deepseek-ai/DeepSeek-V4.1-Flash": { + "pin": "314113f8a7dadb388215396ba5fbee2c610a04d6", + "current": "314113f8a7dadb388215396ba5fbee2c610a04d6" + }, + "zai-org/GLM-5.3-Flash": { + "pin": "46a050bec13002ad29ee795c16e61cf4fa3c4a9c", + "current": "46a050bec13002ad29ee795c16e61cf4fa3c4a9c" + }, + "huggingface/transformers": { + "pin": "f90e93c4f83974f634860e246cdfd2c68666d605", + "current": "f59525f7826c13db125b7cb3a8dd58a78aaefa4a" + } + }, + "texts": { + "ds-config": { + "path": "inference/config.json", + "bytes": 1982, + "sha256": "2e84f45cf1dac8c7fcbb200e96667d4b913275690668ed496f24c7747207a809", + "lines": "19" + }, + "ds-model": { + "path": "inference/model.py", + "bytes": 61669, + "sha256": "e5decd76fe70fd56ef2f10124d245c6f64fb6a0003cc9068a1d3182a168b8d2d", + "lines": "836-853, 877-881" + }, + "gl-config": { + "path": "config.json", + "bytes": 69416, + "sha256": "bb8f01c42cb92a52ca72e65afb4d5bd8d11aef083cd210e8de25dfb904f23e9f", + "lines": "5, 253" + }, + "gl-model": { + "path": "src/transformers/models/glm5_next/modeling_glm5_next.py", + "bytes": 103858, + "sha256": "9eb13f2de8e481b8edd4d7911d17a47649ce4ce5463f0b67f1e487772a71ca87", + "lines": "107-117, 131-141" + } + }, + "metadata_observed_utc": "2026-12-02", + "toolchain": { + "python": "3.12.3", + "libmpdec": "2.5.1", + "flags": "-B, taskset -c 0-1; Python standard library only", + "cuda": "not used" + }, + "hardware": { + "host": "shared loaded x86_64 KVM", + "cpu": "AMD EPYC-Rome Processor", + "logical_cpus": 16, + "affinity": [ + 0, + 1 + ], + "threads_per_process": 1, + "ram_kib": 32089168, + "gpu": "none used", + "process_address_space_limit_bytes": 1000000000 + }, + "seeds": [], + "weight_bytes": 0, + "source_code_executed": false, + "script_sha256": { + "lowering.py": "327dfb2b322c18260e391bc443ae662f55d8fdc04de9a61df5270caedad72596", + "oracles.py": "758be376dde7a4adab2ff5c3185ecbff4eb483f8141d72e0daa61ad871243011", + "run.py": "69c0064ceaffb99a4516fa960dad0a7c51ffad8c8756f2f6b226c24e1193cfef", + "summarize.py": "191f8521c44480fad0a4b41cb2967f723a230ed8105ce6fe1cef85d44b3c59a5" + } +} diff --git a/experiments/20261202-274-expert-asymmetric-cap/PREREG.md b/experiments/20261202-274-expert-asymmetric-cap/PREREG.md new file mode 100644 index 00000000..78da243e --- /dev/null +++ b/experiments/20261202-274-expert-asymmetric-cap/PREREG.md @@ -0,0 +1,49 @@ +# PREREG: 20261202-274-expert-asymmetric-cap + +Issue: #274. Lane: cap274. Date: 2026-12-02 UTC. Base: `b8c087dbea19c15faf0d98090b71e93d658c23c1`. + +## Hypothesis + +One signed Q16 SiLU table with an upper-only gate cap and an exact symmetric up clamp will match both published routed-expert activation boundaries on supplied synthetic Q8 inputs, within one Q12 unit at every registered pair. It need not match either runtime bit for bit. + +## Prior art + +Pinned texts inspected as data, not executed. Bytes and SHA-256 are for the unmodified source/config file, not just the cited lines: + +- `deepseek-ai/DeepSeek-V4.1-Flash@314113f8a7dadb388215396ba5fbee2c610a04d6`: `inference/config.json` line 19, limit 10.0 (1982 bytes, `2e84f45cf1dac8c7fcbb200e96667d4b913275690668ed496f24c7747207a809`); `inference/model.py` (61669 bytes, `e5decd76fe70fd56ef2f10124d245c6f64fb6a0003cc9068a1d3182a168b8d2d`), lines 836-853, 877-881. The issue's 844-853 covers the body; `Expert.forward` starts at 843. It obtains `w1(x).float()` as gate, `w3(x).float()` as up. With positive limit clamp up both ways FIRST, then gate above only; return boundary here is the intermediate at 850, `F.silu(gate) * up`. Optional weights multiply NEXT, then cast back and w2. A pre-activation float conversion is not the later cast. Neither projections nor conversion is simulated. +- `zai-org/GLM-5.3-Flash@46a050bec13002ad29ee795c16e61cf4fa3c4a9c`: `config.json` (69416 bytes, `bb8f01c42cb92a52ca72e65afb4d5bd8d11aef083cd210e8de25dfb904f23e9f`), `text_config` opens at 5, its limit is 10.0 at 253. `huggingface/transformers@f90e93c4f83974f634860e246cdfd2c68666d605`: `src/transformers/models/glm5_next/modeling_glm5_next.py` (103858 bytes, `9eb13f2de8e481b8edd4d7911d17a47649ce4ce5463f0b67f1e487772a71ca87`), lines 107-117, 131-141. A fused projection is chunked in order `(gate, up)`; `_apply_gate` caps gate FIRST (no minimum), then clips up between minus and plus the limit. The result is `F.silu(gate) * up`. Caller applies down projection, multiplies by route weight and casts for accumulation. No difference from the issue that changes the question. The operations *outside* the boundary are not in the same order as DeepSeek's. +- On main, `experiments/20261129-222-silu-repairs/RESULTS.md` tests high-side clip error and ledger bounds for a different SiLU interface. Here the asymmetry comes from the source; a negative gate below -10 must not alias to -10. No reuse of its table or results. + +## Metric + +Fixtures are the exact Cartesian product, outer `G=-8192,-8191,...,8191` increasing; inner `U=[-8192,-2561,-2560,-2559,-256,-1,0,1,256,2559,2560,2561,8191]` in that order. Both are supplied signed integers denoting value /256. No routing scores, permutations, random draws, calibration or seeds. 212,992 grid pairs per source per process (layout count). The separately specified anchors below need not be members of that grid; score all three separately in listed order, not in the grid denominator. + +**Candidate.** Set `k=min(G,2560)`, `v=max(-2560,min(U,2560))`. At address `k+8192` the sole table entry is `T=RNE(65536*(k/256)/(1+exp(-k/256)))`. Generate at Decimal precision 80, round to nearest with ties to even. Hash SHA-256 over 10,753 consecutive signed int32 little-endian words in increasing k, no header or padding; record digest on first run, require equality thereafter. Do not select or tune a digest in advance. Independently certify EACH word without a second table: bound correctly rounded Decimal `exp(k/256)` at 100 digits by its immediate predecessor/successor; evaluate `65536*x*z/(1+z)` at the two endpoints by exact rational arithmetic (`x=k/256`), order the bounds even when x<0. Both bounds must round to the same integer, and it must equal T. An inconclusive enclosure is STOP, not a licence to change precision. Compute `y=RNE((T*v)/4096)` by exact signed integer division. Layout bounds: |T| <=655360, |v| <=2560, |product| <=1677721600, fits signed 32 bits. Layout arithmetic is not measured proof cost. + +**Observable.** Two local scalar Decimal transcriptions at precisions 60 and 100 each. Each starts from original G,U and keeps its own gate/SiLU cache keyed by raw G, never by candidate index. DeepSeek: scale raw gate/up, clip up first, upper-bound gate, compute gate divided by `1+exp(-gate)` then multiply up. GLM: unpack raw pair as gate then up; scale, upper-bound gate, clamp up, use gate times sigmoid (sigmoid as `exp(gate)/(1+exp(gate))`), then multiply up. No fixed-point or intermediate quantization in either; ordinary Decimal precision only. Share no table, cap code, cached operands, activation or candidate result with either reference. Compare the candidate's two clamped operands in real units exactly against both sources; check 60 vs 100 output drift per source and agreement of the two 100-digit translations (absolute tolerance `1e-50`); score absolute real error of `y/4096` against EACH 100-digit output. Subtract at >=150 digits. For each source and variant record failure counts (pair fails either operand or error; separate counts too), first failure and first maximum in grid order with original inputs, cap intermediates, integer output, full Decimal oracle output and error. No failure means null first failure, not a missing comparison. + +**Hand anchors, no extra scoring inputs.** + +1. `(0,8191)` gives `(k,v)=(0,2560)`, gate 0 regardless of sigmoid, T=0, product=0, y=0. +2. `(-8192,2560)` gives `(-8192,2560)`, real `(-32,10)`. `-2097152/(1+exp(32))` is about `-2.66e-8`, strictly between -0.5 and 0, so T=0, y=0. Wrong symmetric gate floor gives `k=-2560`, `-655360/(1+exp(10))` about -29.75, T=-30; `-30*2560/4096=-18.75`, y=-19. Both the unclipped-gate witness and its output distinguish the error. +3. `(2816,-3072)` gives `(2560,-2560)` or `(10,-10)`. `655360/(1+exp(-10))` about 655330.25 lies strictly between 655330 and 655330.5. T=655330; `-655330*5/8=-409581.25`, y=-409581. Omitting only the lower up clamp leaves `v=-3072`; `-655330*3/4=-491497.5`, ties to even **-491498**. The intended and wrong products use the same gate. + +**Controls.** Use the very same table and output rule with (a) a spurious floor `k=max(-2560,min(G,2560))`, (b) `v=min(U,2560)` with no lower bound. Keep both out of the candidate denominator, score each across the same ordered grid and at its named anchor. Require each to violate both the intermediate and the error bar against BOTH sources at its named anchor. The omitted-up control is not subject to the candidate product bound. No alternative candidate, change of precision or follow-up fit. + +## Acceptance threshold + +PASS iff all table words certified and in range, exact candidate anchors, zero cap disagreements and absolute error <=1/4096 for both sources on all pairs, both controls rejected at the named anchors, reference stability and agreement <=1e-50, and identical canonical result/table hashes in all five processes. The table error contributes at most `10*0.5/65536`, output rounding at most `0.5/4096`; their sum is below `1/4096`. This expectation is arithmetic, not the measured verdict. + +**What could make this fail, and on which observable that does not depend on the code under test?** An indexing, clamp, sign or rounding error can produce operands or a decoded product different from the two scalar equations applied directly to raw Q8, even if a table hash repeats. Exact supplied pairs and hand arithmetic also expose wrong semantics. Repeatability alone cannot establish fidelity. + +## Kill criterion + +A completed valid comparison with any over-bar pair or operand mismatch rejects the candidate (FAIL); report first witnesses and counts, do not fix. An accepted wrong-answer control ends the step immediately as a finding; do not fix it. Source disagreement, missing pin, inconclusive or incorrect table certification, unstable or disagreeing oracle, wrong hand anchor, broken harness, resource stop or inability to complete the five deterministic runs: STOP/no verdict, keep the first receipt, no self-retry. No rule for resuming. No warmup or debug runs. Limit each fresh process to 120 seconds elapsed from launch (if gated, from slot grant), <=1 GB RSS, CPU cores 0-1; no GPU or spend. Stop below 10,000 MB free or at 20:09:41 UTC lane deadline, including waits. + +## Runs + +Five sequential fresh Python processes, numbered 1-5, each generating/certifying the same single table, checking anchors and named controls, then scoring the ordered grid. First detected STOP is final. No exclusions. SHA-256 of deterministic JSON payload (UTF-8, sorted keys, compact separators, no newline); keep UTC start and elapsed time outside this digest. Save one immutable receipt per run. Report n, median/sample SD/min/max of each candidate maximum error across runs; five repeated processes are not independent samples or replication. No timing/speed claim. + +Not in this step: weights, router or sparse addresses, Inkling tanh caps, frameworks or native dtype fidelity, full expert or model execution, proof, verifier, circuit cost, GPU, rentals or performance. These are local equations evaluated at supplied integers, not observed activations. + +## Amendments diff --git a/experiments/20261202-274-expert-asymmetric-cap/README.md b/experiments/20261202-274-expert-asymmetric-cap/README.md new file mode 100644 index 00000000..2e9af1dd --- /dev/null +++ b/experiments/20261202-274-expert-asymmetric-cap/README.md @@ -0,0 +1,17 @@ +# Checking the asymmetric expert activation + +This tests one integer function, not a proof or a verifier. Two local Decimal readers start from the supplied integer projections. They do not execute either model. `lowering.py` builds and checks the Q16 table; only the integer lookup, two caps and signed ties-to-even division produce candidate Q12 outputs. `run.py` scores that candidate and the two named wrong-semantics controls separately. Source pins, sizes, line ranges and hashes are in `ENV.json`; the transcriptions and the complete ordered input set are in `PREREG.md`. + +To reproduce, use the Python version in `ENV.json`, from this directory on Linux. Use a new output directory; no overwrites, model files, packages or network access needed. Stop on any nonzero exit; do not resume a stopped run. These commands produce the lossless witnesses in each receipt and the summary statistics: + +```sh +set -e +taskset -c 0-1 python3 -B run.py reproduction/run-1.json +hash=$(python3 -m json.tool reproduction/run-1.json | awk -F '"' '/"result_sha256"/ {print $4}') +for i in 2 3 4 5; do + taskset -c 0-1 python3 -B run.py "reproduction/run-$i.json" --expect-hash "$hash" +done +taskset -c 0-1 python3 -B summarize.py reproduction +``` + +Compare `result_sha256` rather than the file hash: UTC starts, wall time and peak RSS are intentionally outside the deterministic payload. `scores` counts a pair as failed if its cap operands differ **or** its absolute error exceeds the bar. These are not measurements of proof resources, native precision, or whole-expert fidelity. diff --git a/experiments/20261202-274-expert-asymmetric-cap/RESULTS.md b/experiments/20261202-274-expert-asymmetric-cap/RESULTS.md new file mode 100644 index 00000000..5bb11170 --- /dev/null +++ b/experiments/20261202-274-expert-asymmetric-cap/RESULTS.md @@ -0,0 +1,22 @@ +# PASS: one upper-only gate table meets the Q12 error bar in local transcriptions of pinned DeepSeek and GLM source on the registered grid of supplied synthetic Q8 inputs + +Measured, unreplicated. Neither source transcription had a cap mismatch or an error above one Q12 unit in 212,992 synthetic pairs: every registered gate integer paired with only the 13 registered up values. The largest absolute error for each was about **0.00019805037805** real units, below **0.000244140625**. Five fresh processes scored the same fixture, not five independent samples. Full-precision per-source maxima and repeat statistics: [`runs/summary.json`](runs/summary.json); bar and grid: [`PREREG.md`](PREREG.md). + +| Registered item | Verdict | Evidence | +|---|---|---| +| Source boundary | PASS | Both pinned limits are 10, both gates are capped only above, and both up branches are capped on both sides. The boundary ends at SiLU(gate) times up, not at either down projection. See [source lines, operand order and minor line-range correction](PREREG.md#prior-art) and [pinned file hashes and sizes](ENV.json). | +| Table rounding and range | PASS | All 10,753 generated words matched exact rational rounding at both ends of a separate exponential enclosure. Observed min/max -18,249 / 655,330. Little-endian table SHA-256 `12ba7d14215acc4c174805fef99f827de09430c6a46d07f617d5b57a1682150a`. [`run-1.json`](runs/run-1.json), `payload.certified_rows`, `table_*`. The table size and theoretical signed-product bound in the registration are layout arithmetic, not proof measurements. | +| Oracle stability and agreement | PASS | Largest 60 vs 100 digit output differences: DeepSeek about 5.28e-58; GLM about 1.89e-58. Largest difference between the two 100-digit translations: 5e-98. All below the registered 1e-50. [`run-1.json`](runs/run-1.json), `payload.max_oracle_difference`. | +| Grid caps and error | PASS | 0/212,992 failed pairs for each source, including zero operand and zero over-bar errors. No first failure. Both first reach the maximum at `(G,U)=(-3092,-8192)`: capped real values `(-12.078125,-10)`, T=-4, Q12 integer 2, reference about 0.00068633162805. The two full maxima differ in the last decimal places. [`run-1.json`](runs/run-1.json), `payload.scores.candidate`, stores first nonzero approximation error, first failure (null), exact worst witness and lossless Decimal strings per source. | +| Hand anchors | PASS | For `(0,8191)`, `(-8192,2560)`, `(2816,-3072)`, Q12 outputs were respectively 0, 0, -409581. All expected gate/up/table intermediates matched, independently of grid scoring. [`run-1.json`](runs/run-1.json), `payload.anchors`; [worked values](PREREG.md#metric). | +| False lower gate cap | PASS (control rejected) | At `(-8192,2560)` the wrong floor changes Q12 output from 0 to -19. Across the grid: 73,216 operand failures, 55,898 over-bar errors, 73,216 failed pairs for each reference; max error about 0.004638672. First failure `(-8192,-8192)` gives k=-2560 despite oracle gate -32; y=19. [`run-1.json`](runs/run-1.json), `anchors` and `scores.gate_floor` inside `payload`. | +| Missing lower up cap | PASS (control rejected) | At `(2816,-3072)`, retaining up=-12 changes y from -409581 to -491498. Across the grid: 32,768 operand failures, 21,102 over-bar errors, 32,768 failed pairs for each reference; max error about 219.98989135. First failure `(-8192,-8192)` leaves v=-8192 despite oracle up=-10; y=0, so that first failure is an operand mismatch only. [`run-1.json`](runs/run-1.json), `payload.anchors` and `payload.scores.missing_up_floor`. Neither control contributes to the candidate denominator. | +| Repeatability | PASS | All five payloads and tables hash identically. For each reader the median, min and max of the measured maximum absolute error are equal (about 0.00019805037805), sample SD zero. Full stats and common digest: [`summary.json`](runs/summary.json). Raw receipts: [1](runs/run-1.json), [2](runs/run-2.json), [3](runs/run-3.json), [4](runs/run-4.json), [5](runs/run-5.json). No warmup, exclusions, amendments or resumed run. | + +## NOT established + +Only the gate integer varies exhaustively; the up operand uses the registered list, not its full domain. These are independently coded, same-author readings of the pinned texts, not two running frameworks or independent replications. No weights, native activation conversion, route weights, down projection, full block, token or model fidelity. No proof, verifier, circuit cost, memory saving or speed claim. See [reproduction commands](README.md). + +## Review corrections (2026-12-02 19:20:50 UTC) + +The headline now identifies the local source transcriptions and the supplied inputs. The opening paragraph and ledger summary distinguish the full gate sweep from the limited set of up values. No experiment was rerun and no measurements changed. diff --git a/experiments/20261202-274-expert-asymmetric-cap/lowering.py b/experiments/20261202-274-expert-asymmetric-cap/lowering.py new file mode 100644 index 00000000..534658dc --- /dev/null +++ b/experiments/20261202-274-expert-asymmetric-cap/lowering.py @@ -0,0 +1,42 @@ +"""One fixed table and two named faults. All outputs are signed Q12 integers.""" +from decimal import Decimal, ROUND_HALF_EVEN, localcontext +from fractions import Fraction +from hashlib import sha256 +from struct import pack + + +def certified_table(): + words = [] + digest = sha256() + for k in range(-8192, 2561): + with localcontext(prec=80): + x = Decimal(k) / 256 + value = (65536 * x) / (1 + (-x).exp()) + word = int(value.to_integral_value(rounding=ROUND_HALF_EVEN)) + # Decimal.exp is correctly rounded. Bracket exp(+x), then propagate + # both endpoints exactly through the alternative sigmoid expression. + with localcontext(prec=100): + z = (Decimal(k) / 256).exp() + endpoints = (Fraction(z.next_minus()), Fraction(z.next_plus())) + lo, hi = sorted((256 * k * t) / (1 + t) for t in endpoints) + if round(lo) != word or round(hi) != word or abs(word) > 655360: + raise ValueError(f'uncertified/out-of-range row k={k}, word={word}, interval={lo},{hi}') + words.append(word) + digest.update(pack(' 2560 or abs(product) > 1677721600): + raise ValueError(f'candidate range: inputs={G,U}, v={v}, product={product}') + q, r = divmod(abs(product), 4096) + q += r > 2048 or (r == 2048 and q % 2 == 1) + return k, v, word, -q if product < 0 else q diff --git a/experiments/20261202-274-expert-asymmetric-cap/oracles.py b/experiments/20261202-274-expert-asymmetric-cap/oracles.py new file mode 100644 index 00000000..a4c31f4c --- /dev/null +++ b/experiments/20261202-274-expert-asymmetric-cap/oracles.py @@ -0,0 +1,45 @@ +"""Scalar real-arithmetic readings of the two sources. Inputs are raw integers. + +Each constructor owns a one-entry cache at a single precision. No imports from +candidate or fixture modules; neither reference calls into the other. +""" +from decimal import Decimal, localcontext +from functools import lru_cache + + +def deepseek(precision): + @lru_cache(maxsize=1) + def gate_branch(raw): + g = Decimal(raw) / 256 + if g > 10: + g = Decimal(10) + return g, g / (1 + (-g).exp()) + + def read(G, U): + with localcontext(prec=precision): + up = Decimal(U) / 256 + if up < -10: + up = Decimal(-10) + elif up > 10: + up = Decimal(10) + gate, activated = gate_branch(G) + return gate, up, activated * up + return read + + +def glm(precision): + @lru_cache(maxsize=1) + def first_chunk(raw_gate): + gate = min(Decimal(raw_gate) * Decimal('0.00390625'), Decimal('10')) + z = gate.exp() + sigmoid = z / (1 + z) + return gate, gate * sigmoid + + def apply_gate(*gate_up): + raw_gate, raw_up = gate_up + with localcontext(prec=precision): + gate, silu_gate = first_chunk(raw_gate) + up = Decimal(raw_up) * Decimal('0.00390625') + up = max(Decimal('-10'), min(Decimal('10'), up)) + return gate, up, silu_gate * up + return apply_gate diff --git a/experiments/20261202-274-expert-asymmetric-cap/run.py b/experiments/20261202-274-expert-asymmetric-cap/run.py new file mode 100644 index 00000000..a0d2160d --- /dev/null +++ b/experiments/20261202-274-expert-asymmetric-cap/run.py @@ -0,0 +1,158 @@ +"""Run once per process; refuse to overwrite any evidence file.""" +import argparse +from datetime import datetime, timezone +from decimal import Decimal as D, getcontext +from hashlib import sha256 +import json +from pathlib import Path +import resource +import signal +import time + +from lowering import certified_table, lower +from oracles import deepseek, glm + +UPS = [-8192, -2561, -2560, -2559, -256, -1, 0, 1, 256, 2559, 2560, 2561, 8191] +VARIANTS = ('candidate', 'gate_floor', 'missing_up_floor') +BAR = D('0.000244140625') +TOL = D('1e-50') + + +def require(condition, reason): + if not condition: + raise ValueError(reason) + + +def timeout(*_): + raise TimeoutError('elapsed limit') + + +def observe(G, U, refs, drift): + outputs = {} + for name, (read60, read100) in refs.items(): + low, high = read60(G, U), read100(G, U) + delta = abs(low[2] - high[2]) + require(low[:2] == high[:2] and delta <= TOL, + f'unstable oracle: {name} {G,U} {low} {high}') + drift[name] = max(drift[name], delta) + outputs[name] = high + ds, gl = outputs.values() + diff = abs(ds[2] - gl[2]) + require(ds[:2] == gl[:2] and diff <= TOL, + f'source disagreement: {G,U} {ds} {gl}') + drift['between_sources'] = max(drift['between_sources'], diff) + return outputs + + +def witness(G, U, row, oracle, error): + k, v, word, y = row + g, u, ref = oracle + return dict(G=G, U=U, k=k, v=v, T=word, y_q12=y, gate_ref=str(g), + up_ref=str(u), reference=str(ref), absolute_error=str(error)) + + +def anchors(table, refs, drift): + saved = [] + for G, U, expected, fault in [ + (0, 8191, (0, 2560, 0, 0), None), + (-8192, 2560, (-8192, 2560, 0, 0), ('gate_floor', (-2560, 2560, -30, -19))), + (2816, -3072, (2560, -2560, 655330, -409581), + ('missing_up_floor', (2560, -3072, 655330, -491498))), + ]: + observations = observe(G, U, refs, drift) + for variant, target in [('candidate', expected)] + ([fault] if fault else []): + row = lower(table, G, U, variant) + require(row == target, f'hand mismatch {variant} {G,U}: {row} vs {target}') + for name, oracle in observations.items(): + cap_miss = (D(row[0])/256, D(row[1])/256) != oracle[:2] + err = abs(D(row[3])/4096 - oracle[2]) + w = witness(G, U, row, oracle, err) + if variant == 'candidate': + require(not cap_miss and err <= BAR, f'candidate anchor: {name} {w}') + else: + require(cap_miss and err > BAR, f'control not detected: {name} {w}') + saved.append(dict(variant=variant, source=name, **w)) + return saved + + +def fresh_counts(): + return dict(pairs=0, cap_misses=0, error_misses=0, failed_pairs=0, + first_failure=None, first_nonzero_error=None, max_error=D(-1), worst=None) + + +def score(G, U, row, oracle, counts): + err = abs(D(row[3])/4096 - oracle[2]) + cap_bad = D(row[0])/256 != oracle[0] or D(row[1])/256 != oracle[1] + bad = cap_bad or err > BAR + counts['pairs'] += 1 + counts['cap_misses'] += cap_bad + counts['error_misses'] += err > BAR + counts['failed_pairs'] += bad + if bad and counts['first_failure'] is None: + counts['first_failure'] = witness(G, U, row, oracle, err) + if err and counts['first_nonzero_error'] is None: + counts['first_nonzero_error'] = witness(G, U, row, oracle, err) + if err > counts['max_error']: + counts['max_error'] = err + counts['worst'] = witness(G, U, row, oracle, err) + + +def measure(): + getcontext().prec = 180 # scores/differences, not the oracle contexts + table, digest = certified_table() + require(len(table) == 10753, 'wrong number of certified rows') + refs = dict(deepseek=(deepseek(60), deepseek(100)), glm=(glm(60), glm(100))) + drift = dict.fromkeys([*refs, 'between_sources'], D(0)) + hand = anchors(table, refs, drift) + scores = {v: {name: fresh_counts() for name in refs} for v in VARIANTS} + for G in range(-8192, 8192): + for U in UPS: + observations = observe(G, U, refs, drift) + for v, source_counts in scores.items(): + row = lower(table, G, U, v) + for name, oracle in observations.items(): + score(G, U, row, oracle, source_counts[name]) + for source_counts in scores.values(): + for c in source_counts.values(): + require(c['pairs'] == 212992, f'incomplete grid: {c}') + c['max_error'] = str(c['max_error']) + passed = all(c['failed_pairs'] == 0 for c in scores['candidate'].values()) + return dict(grid_verdict='PASS' if passed else 'FAIL', certified_rows=len(table), + table_sha256=digest, table_min=min(table), table_max=max(table), + anchors=hand, scores=scores, max_oracle_difference={k:str(v) for k,v in drift.items()}) + + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument('receipt', type=Path) + parser.add_argument('--expect-hash', help='require agreement with run 1') + args = parser.parse_args() + args.receipt.parent.mkdir(parents=True, exist_ok=True) + if args.receipt.exists(): + parser.error('receipt already exists') + started = time.monotonic() + receipt = {'utc_start': datetime.now(timezone.utc).isoformat()} + try: + resource.setrlimit(resource.RLIMIT_AS, (1_000_000_000, 1_000_000_000)) + signal.signal(signal.SIGALRM, timeout) + signal.alarm(120) + payload = measure() + digest = sha256(json.dumps(payload, sort_keys=True, separators=(',', ':')).encode()).hexdigest() + receipt.update(payload=payload, result_sha256=digest) + require(not args.expect_hash or digest == args.expect_hash, 'repeat digest differs') + receipt['verdict'] = payload['grid_verdict'] + except Exception as e: + receipt.update(verdict='STOP', reason=f'{type(e).__name__}: {e}') + finally: + signal.alarm(0) + receipt['elapsed_seconds'] = time.monotonic() - started + receipt['peak_rss_kib'] = resource.getrusage(resource.RUSAGE_SELF).ru_maxrss + with args.receipt.open('x') as out: + json.dump(receipt, out, sort_keys=True, indent=2) + out.write('\n') + print(receipt['verdict'], receipt.get('reason') or receipt.get('result_sha256')) + return int(receipt['verdict'] == 'STOP') + + +if __name__ == '__main__': + raise SystemExit(main()) diff --git a/experiments/20261202-274-expert-asymmetric-cap/runs/run-1.json b/experiments/20261202-274-expert-asymmetric-cap/runs/run-1.json new file mode 100644 index 00000000..da387cd6 --- /dev/null +++ b/experiments/20261202-274-expert-asymmetric-cap/runs/run-1.json @@ -0,0 +1,405 @@ +{ + "elapsed_seconds": 13.808105297386646, + "payload": { + "anchors": [ + { + "G": 0, + "T": 0, + "U": 8191, + "absolute_error": "0", + "gate_ref": "0", + "k": 0, + "reference": "0", + "source": "deepseek", + "up_ref": "10", + "v": 2560, + "variant": "candidate", + "y_q12": 0 + }, + { + "G": 0, + "T": 0, + "U": 8191, + "absolute_error": "0E-9", + "gate_ref": "0E-8", + "k": 0, + "reference": "0E-9", + "source": "glm", + "up_ref": "10", + "v": 2560, + "variant": "candidate", + "y_q12": 0 + }, + { + "G": -8192, + "T": 0, + "U": 2560, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "gate_ref": "-32", + "k": -8192, + "reference": "-4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "source": "deepseek", + "up_ref": "10", + "v": 2560, + "variant": "candidate", + "y_q12": 0 + }, + { + "G": -8192, + "T": 0, + "U": 2560, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "gate_ref": "-32.00000000", + "k": -8192, + "reference": "-4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "source": "glm", + "up_ref": "10", + "v": 2560, + "variant": "candidate", + "y_q12": 0 + }, + { + "G": -8192, + "T": -30, + "U": 2560, + "absolute_error": "0.004638671870947467024289915090549808225852514740426494475082175459185923270603784299810287381536910149584372290", + "gate_ref": "-32", + "k": -2560, + "reference": "-4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "source": "deepseek", + "up_ref": "10", + "v": 2560, + "variant": "gate_floor", + "y_q12": -19 + }, + { + "G": -8192, + "T": -30, + "U": 2560, + "absolute_error": "0.004638671870947467024289915090549808225852514740426494475082175459185923270603784299810287381536910149584372291", + "gate_ref": "-32.00000000", + "k": -2560, + "reference": "-4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "source": "glm", + "up_ref": "10", + "v": 2560, + "variant": "gate_floor", + "y_q12": -19 + }, + { + "G": 2816, + "T": 655330, + "U": -3072, + "absolute_error": "0.00009888500475656054952237672365105449063079952739313682144361312805081669605084114933307144321432", + "gate_ref": "10", + "k": 2560, + "reference": "-99.99546021312975656054952237672365105449063079952739313682144361312805081669605084114933307144321432", + "source": "deepseek", + "up_ref": "-10", + "v": -2560, + "variant": "candidate", + "y_q12": -409581 + }, + { + "G": 2816, + "T": 655330, + "U": -3072, + "absolute_error": "0.00009888500475656054952237672365105449063079952739313682144361312805081669605084114933307144321434", + "gate_ref": "10", + "k": 2560, + "reference": "-99.99546021312975656054952237672365105449063079952739313682144361312805081669605084114933307144321434", + "source": "glm", + "up_ref": "-10", + "v": -2560, + "variant": "candidate", + "y_q12": -409581 + }, + { + "G": 2816, + "T": 655330, + "U": -3072, + "absolute_error": "19.99916869312024343945047762327634894550936920047260686317855638687194918330394915885066692855678568", + "gate_ref": "10", + "k": 2560, + "reference": "-99.99546021312975656054952237672365105449063079952739313682144361312805081669605084114933307144321432", + "source": "deepseek", + "up_ref": "-10", + "v": -3072, + "variant": "missing_up_floor", + "y_q12": -491498 + }, + { + "G": 2816, + "T": 655330, + "U": -3072, + "absolute_error": "19.99916869312024343945047762327634894550936920047260686317855638687194918330394915885066692855678566", + "gate_ref": "10", + "k": 2560, + "reference": "-99.99546021312975656054952237672365105449063079952739313682144361312805081669605084114933307144321434", + "source": "glm", + "up_ref": "-10", + "v": -3072, + "variant": "missing_up_floor", + "y_q12": -491498 + } + ], + "certified_rows": 10753, + "grid_verdict": "PASS", + "max_oracle_difference": { + "between_sources": "5E-98", + "deepseek": "5.2794092548815634263424747557595081935048E-58", + "glm": "1.8871702276327123150848605672485352280406E-58" + }, + "scores": { + "candidate": { + "deepseek": { + "cap_misses": 0, + "error_misses": 0, + "failed_pairs": 0, + "first_failure": null, + "first_nonzero_error": { + "G": -8192, + "T": 0, + "U": -8192, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "gate_ref": "-32", + "k": -8192, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "up_ref": "-10", + "v": -2560, + "y_q12": 0 + }, + "max_error": "0.0001980503780545155690279784247563769716021998004023159025397514271890444507355703626707770623238565042", + "pairs": 212992, + "worst": { + "G": -3092, + "T": -4, + "U": -8192, + "absolute_error": "0.0001980503780545155690279784247563769716021998004023159025397514271890444507355703626707770623238565042", + "gate_ref": "-12.078125", + "k": -3092, + "reference": "0.0006863316280545155690279784247563769716021998004023159025397514271890444507355703626707770623238565042", + "up_ref": "-10", + "v": -2560, + "y_q12": 2 + } + }, + "glm": { + "cap_misses": 0, + "error_misses": 0, + "failed_pairs": 0, + "first_failure": null, + "first_nonzero_error": { + "G": -8192, + "T": 0, + "U": -8192, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "gate_ref": "-32.00000000", + "k": -8192, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "up_ref": "-10", + "v": -2560, + "y_q12": 0 + }, + "max_error": "0.0001980503780545155690279784247563769716021998004023159025397514271890444507355703626707770623238565040", + "pairs": 212992, + "worst": { + "G": -3092, + "T": -4, + "U": -8192, + "absolute_error": "0.0001980503780545155690279784247563769716021998004023159025397514271890444507355703626707770623238565040", + "gate_ref": "-12.07812500", + "k": -3092, + "reference": "0.0006863316280545155690279784247563769716021998004023159025397514271890444507355703626707770623238565040", + "up_ref": "-10", + "v": -2560, + "y_q12": 2 + } + } + }, + "gate_floor": { + "deepseek": { + "cap_misses": 73216, + "error_misses": 55898, + "failed_pairs": 73216, + "first_failure": { + "G": -8192, + "T": -30, + "U": -8192, + "absolute_error": "0.004638671870947467024289915090549808225852514740426494475082175459185923270603784299810287381536910149584372290", + "gate_ref": "-32", + "k": -2560, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "up_ref": "-10", + "v": -2560, + "y_q12": 19 + }, + "first_nonzero_error": { + "G": -8192, + "T": -30, + "U": -8192, + "absolute_error": "0.004638671870947467024289915090549808225852514740426494475082175459185923270603784299810287381536910149584372290", + "gate_ref": "-32", + "k": -2560, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "up_ref": "-10", + "v": -2560, + "y_q12": 19 + }, + "max_error": "0.004638671870949050044983551842467562207014291101856015375677846484397178769326204696568173988028497294057190895", + "pairs": 212992, + "worst": { + "G": -8192, + "T": -30, + "U": -2559, + "absolute_error": "0.004638671870949050044983551842467562207014291101856015375677846484397178769326204696568173988028497294057190895", + "gate_ref": "-32", + "k": -2560, + "reference": "4.050949955016448157532437792985708898143984624322153515602821230673795303431826011971502705942809105E-12", + "up_ref": "-9.99609375", + "v": -2559, + "y_q12": 19 + } + }, + "glm": { + "cap_misses": 73216, + "error_misses": 55898, + "failed_pairs": 73216, + "first_failure": { + "G": -8192, + "T": -30, + "U": -8192, + "absolute_error": "0.004638671870947467024289915090549808225852514740426494475082175459185923270603784299810287381536910149584372291", + "gate_ref": "-32.00000000", + "k": -2560, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "up_ref": "-10", + "v": -2560, + "y_q12": 19 + }, + "first_nonzero_error": { + "G": -8192, + "T": -30, + "U": -8192, + "absolute_error": "0.004638671870947467024289915090549808225852514740426494475082175459185923270603784299810287381536910149584372291", + "gate_ref": "-32.00000000", + "k": -2560, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "up_ref": "-10", + "v": -2560, + "y_q12": 19 + }, + "max_error": "0.004638671870949050044983551842467562207014291101856015375677846484397178769326204696568173988028497294057190896", + "pairs": 212992, + "worst": { + "G": -8192, + "T": -30, + "U": -2559, + "absolute_error": "0.004638671870949050044983551842467562207014291101856015375677846484397178769326204696568173988028497294057190896", + "gate_ref": "-32.00000000", + "k": -2560, + "reference": "4.050949955016448157532437792985708898143984624322153515602821230673795303431826011971502705942809104E-12", + "up_ref": "-9.99609375", + "v": -2559, + "y_q12": 19 + } + } + }, + "missing_up_floor": { + "deepseek": { + "cap_misses": 32768, + "error_misses": 21102, + "failed_pairs": 32768, + "first_failure": { + "G": -8192, + "T": 0, + "U": -8192, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "gate_ref": "-32", + "k": -8192, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "up_ref": "-10", + "v": -8192, + "y_q12": 0 + }, + "first_nonzero_error": { + "G": -8192, + "T": 0, + "U": -8192, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "gate_ref": "-32", + "k": -8192, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "up_ref": "-10", + "v": -8192, + "y_q12": 0 + }, + "max_error": "219.98989134937024343945047762327634894550936920047260686317855638687194918330394915885066692855678568", + "pairs": 212992, + "worst": { + "G": 2560, + "T": 655330, + "U": -8192, + "absolute_error": "219.98989134937024343945047762327634894550936920047260686317855638687194918330394915885066692855678568", + "gate_ref": "10", + "k": 2560, + "reference": "-99.99546021312975656054952237672365105449063079952739313682144361312805081669605084114933307144321432", + "up_ref": "-10", + "v": -8192, + "y_q12": -1310660 + } + }, + "glm": { + "cap_misses": 32768, + "error_misses": 21102, + "failed_pairs": 32768, + "first_failure": { + "G": -8192, + "T": 0, + "U": -8192, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "gate_ref": "-32.00000000", + "k": -8192, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "up_ref": "-10", + "v": -8192, + "y_q12": 0 + }, + "first_nonzero_error": { + "G": -8192, + "T": 0, + "U": -8192, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "gate_ref": "-32.00000000", + "k": -8192, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "up_ref": "-10", + "v": -8192, + "y_q12": 0 + }, + "max_error": "219.98989134937024343945047762327634894550936920047260686317855638687194918330394915885066692855678566", + "pairs": 212992, + "worst": { + "G": 2560, + "T": 655330, + "U": -8192, + "absolute_error": "219.98989134937024343945047762327634894550936920047260686317855638687194918330394915885066692855678566", + "gate_ref": "10.00000000", + "k": 2560, + "reference": "-99.99546021312975656054952237672365105449063079952739313682144361312805081669605084114933307144321434", + "up_ref": "-10", + "v": -8192, + "y_q12": -1310660 + } + } + } + }, + "table_max": 655330, + "table_min": -18249, + "table_sha256": "12ba7d14215acc4c174805fef99f827de09430c6a46d07f617d5b57a1682150a" + }, + "peak_rss_kib": 19072, + "result_sha256": "df047f06f6216c19367cf1264447abcdc702c9d62be29a97f88c457cd330467c", + "utc_start": "2026-12-02T18:18:01.662424+00:00", + "verdict": "PASS" +} diff --git a/experiments/20261202-274-expert-asymmetric-cap/runs/run-2.json b/experiments/20261202-274-expert-asymmetric-cap/runs/run-2.json new file mode 100644 index 00000000..40579b18 --- /dev/null +++ b/experiments/20261202-274-expert-asymmetric-cap/runs/run-2.json @@ -0,0 +1,405 @@ +{ + "elapsed_seconds": 13.877413537353277, + "payload": { + "anchors": [ + { + "G": 0, + "T": 0, + "U": 8191, + "absolute_error": "0", + "gate_ref": "0", + "k": 0, + "reference": "0", + "source": "deepseek", + "up_ref": "10", + "v": 2560, + "variant": "candidate", + "y_q12": 0 + }, + { + "G": 0, + "T": 0, + "U": 8191, + "absolute_error": "0E-9", + "gate_ref": "0E-8", + "k": 0, + "reference": "0E-9", + "source": "glm", + "up_ref": "10", + "v": 2560, + "variant": "candidate", + "y_q12": 0 + }, + { + "G": -8192, + "T": 0, + "U": 2560, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "gate_ref": "-32", + "k": -8192, + "reference": "-4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "source": "deepseek", + "up_ref": "10", + "v": 2560, + "variant": "candidate", + "y_q12": 0 + }, + { + "G": -8192, + "T": 0, + "U": 2560, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "gate_ref": "-32.00000000", + "k": -8192, + "reference": "-4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "source": "glm", + "up_ref": "10", + "v": 2560, + "variant": "candidate", + "y_q12": 0 + }, + { + "G": -8192, + "T": -30, + "U": 2560, + "absolute_error": "0.004638671870947467024289915090549808225852514740426494475082175459185923270603784299810287381536910149584372290", + "gate_ref": "-32", + "k": -2560, + "reference": "-4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "source": "deepseek", + "up_ref": "10", + "v": 2560, + "variant": "gate_floor", + "y_q12": -19 + }, + { + "G": -8192, + "T": -30, + "U": 2560, + "absolute_error": "0.004638671870947467024289915090549808225852514740426494475082175459185923270603784299810287381536910149584372291", + "gate_ref": "-32.00000000", + "k": -2560, + "reference": "-4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "source": "glm", + "up_ref": "10", + "v": 2560, + "variant": "gate_floor", + "y_q12": -19 + }, + { + "G": 2816, + "T": 655330, + "U": -3072, + "absolute_error": "0.00009888500475656054952237672365105449063079952739313682144361312805081669605084114933307144321432", + "gate_ref": "10", + "k": 2560, + "reference": "-99.99546021312975656054952237672365105449063079952739313682144361312805081669605084114933307144321432", + "source": "deepseek", + "up_ref": "-10", + "v": -2560, + "variant": "candidate", + "y_q12": -409581 + }, + { + "G": 2816, + "T": 655330, + "U": -3072, + "absolute_error": "0.00009888500475656054952237672365105449063079952739313682144361312805081669605084114933307144321434", + "gate_ref": "10", + "k": 2560, + "reference": "-99.99546021312975656054952237672365105449063079952739313682144361312805081669605084114933307144321434", + "source": "glm", + "up_ref": "-10", + "v": -2560, + "variant": "candidate", + "y_q12": -409581 + }, + { + "G": 2816, + "T": 655330, + "U": -3072, + "absolute_error": "19.99916869312024343945047762327634894550936920047260686317855638687194918330394915885066692855678568", + "gate_ref": "10", + "k": 2560, + "reference": "-99.99546021312975656054952237672365105449063079952739313682144361312805081669605084114933307144321432", + "source": "deepseek", + "up_ref": "-10", + "v": -3072, + "variant": "missing_up_floor", + "y_q12": -491498 + }, + { + "G": 2816, + "T": 655330, + "U": -3072, + "absolute_error": "19.99916869312024343945047762327634894550936920047260686317855638687194918330394915885066692855678566", + "gate_ref": "10", + "k": 2560, + "reference": "-99.99546021312975656054952237672365105449063079952739313682144361312805081669605084114933307144321434", + "source": "glm", + "up_ref": "-10", + "v": -3072, + "variant": "missing_up_floor", + "y_q12": -491498 + } + ], + "certified_rows": 10753, + "grid_verdict": "PASS", + "max_oracle_difference": { + "between_sources": "5E-98", + "deepseek": "5.2794092548815634263424747557595081935048E-58", + "glm": "1.8871702276327123150848605672485352280406E-58" + }, + "scores": { + "candidate": { + "deepseek": { + "cap_misses": 0, + "error_misses": 0, + "failed_pairs": 0, + "first_failure": null, + "first_nonzero_error": { + "G": -8192, + "T": 0, + "U": -8192, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "gate_ref": "-32", + "k": -8192, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "up_ref": "-10", + "v": -2560, + "y_q12": 0 + }, + "max_error": "0.0001980503780545155690279784247563769716021998004023159025397514271890444507355703626707770623238565042", + "pairs": 212992, + "worst": { + "G": -3092, + "T": -4, + "U": -8192, + "absolute_error": "0.0001980503780545155690279784247563769716021998004023159025397514271890444507355703626707770623238565042", + "gate_ref": "-12.078125", + "k": -3092, + "reference": "0.0006863316280545155690279784247563769716021998004023159025397514271890444507355703626707770623238565042", + "up_ref": "-10", + "v": -2560, + "y_q12": 2 + } + }, + "glm": { + "cap_misses": 0, + "error_misses": 0, + "failed_pairs": 0, + "first_failure": null, + "first_nonzero_error": { + "G": -8192, + "T": 0, + "U": -8192, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "gate_ref": "-32.00000000", + "k": -8192, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "up_ref": "-10", + "v": -2560, + "y_q12": 0 + }, + "max_error": "0.0001980503780545155690279784247563769716021998004023159025397514271890444507355703626707770623238565040", + "pairs": 212992, + "worst": { + "G": -3092, + "T": -4, + "U": -8192, + "absolute_error": "0.0001980503780545155690279784247563769716021998004023159025397514271890444507355703626707770623238565040", + "gate_ref": "-12.07812500", + "k": -3092, + "reference": "0.0006863316280545155690279784247563769716021998004023159025397514271890444507355703626707770623238565040", + "up_ref": "-10", + "v": -2560, + "y_q12": 2 + } + } + }, + "gate_floor": { + "deepseek": { + "cap_misses": 73216, + "error_misses": 55898, + "failed_pairs": 73216, + "first_failure": { + "G": -8192, + "T": -30, + "U": -8192, + "absolute_error": "0.004638671870947467024289915090549808225852514740426494475082175459185923270603784299810287381536910149584372290", + "gate_ref": "-32", + "k": -2560, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "up_ref": "-10", + "v": -2560, + "y_q12": 19 + }, + "first_nonzero_error": { + "G": -8192, + "T": -30, + "U": -8192, + "absolute_error": "0.004638671870947467024289915090549808225852514740426494475082175459185923270603784299810287381536910149584372290", + "gate_ref": "-32", + "k": -2560, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "up_ref": "-10", + "v": -2560, + "y_q12": 19 + }, + "max_error": "0.004638671870949050044983551842467562207014291101856015375677846484397178769326204696568173988028497294057190895", + "pairs": 212992, + "worst": { + "G": -8192, + "T": -30, + "U": -2559, + "absolute_error": "0.004638671870949050044983551842467562207014291101856015375677846484397178769326204696568173988028497294057190895", + "gate_ref": "-32", + "k": -2560, + "reference": "4.050949955016448157532437792985708898143984624322153515602821230673795303431826011971502705942809105E-12", + "up_ref": "-9.99609375", + "v": -2559, + "y_q12": 19 + } + }, + "glm": { + "cap_misses": 73216, + "error_misses": 55898, + "failed_pairs": 73216, + "first_failure": { + "G": -8192, + "T": -30, + "U": -8192, + "absolute_error": "0.004638671870947467024289915090549808225852514740426494475082175459185923270603784299810287381536910149584372291", + "gate_ref": "-32.00000000", + "k": -2560, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "up_ref": "-10", + "v": -2560, + "y_q12": 19 + }, + "first_nonzero_error": { + "G": -8192, + "T": -30, + "U": -8192, + "absolute_error": "0.004638671870947467024289915090549808225852514740426494475082175459185923270603784299810287381536910149584372291", + "gate_ref": "-32.00000000", + "k": -2560, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "up_ref": "-10", + "v": -2560, + "y_q12": 19 + }, + "max_error": "0.004638671870949050044983551842467562207014291101856015375677846484397178769326204696568173988028497294057190896", + "pairs": 212992, + "worst": { + "G": -8192, + "T": -30, + "U": -2559, + "absolute_error": "0.004638671870949050044983551842467562207014291101856015375677846484397178769326204696568173988028497294057190896", + "gate_ref": "-32.00000000", + "k": -2560, + "reference": "4.050949955016448157532437792985708898143984624322153515602821230673795303431826011971502705942809104E-12", + "up_ref": "-9.99609375", + "v": -2559, + "y_q12": 19 + } + } + }, + "missing_up_floor": { + "deepseek": { + "cap_misses": 32768, + "error_misses": 21102, + "failed_pairs": 32768, + "first_failure": { + "G": -8192, + "T": 0, + "U": -8192, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "gate_ref": "-32", + "k": -8192, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "up_ref": "-10", + "v": -8192, + "y_q12": 0 + }, + "first_nonzero_error": { + "G": -8192, + "T": 0, + "U": -8192, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "gate_ref": "-32", + "k": -8192, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "up_ref": "-10", + "v": -8192, + "y_q12": 0 + }, + "max_error": "219.98989134937024343945047762327634894550936920047260686317855638687194918330394915885066692855678568", + "pairs": 212992, + "worst": { + "G": 2560, + "T": 655330, + "U": -8192, + "absolute_error": "219.98989134937024343945047762327634894550936920047260686317855638687194918330394915885066692855678568", + "gate_ref": "10", + "k": 2560, + "reference": "-99.99546021312975656054952237672365105449063079952739313682144361312805081669605084114933307144321432", + "up_ref": "-10", + "v": -8192, + "y_q12": -1310660 + } + }, + "glm": { + "cap_misses": 32768, + "error_misses": 21102, + "failed_pairs": 32768, + "first_failure": { + "G": -8192, + "T": 0, + "U": -8192, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "gate_ref": "-32.00000000", + "k": -8192, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "up_ref": "-10", + "v": -8192, + "y_q12": 0 + }, + "first_nonzero_error": { + "G": -8192, + "T": 0, + "U": -8192, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "gate_ref": "-32.00000000", + "k": -8192, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "up_ref": "-10", + "v": -8192, + "y_q12": 0 + }, + "max_error": "219.98989134937024343945047762327634894550936920047260686317855638687194918330394915885066692855678566", + "pairs": 212992, + "worst": { + "G": 2560, + "T": 655330, + "U": -8192, + "absolute_error": "219.98989134937024343945047762327634894550936920047260686317855638687194918330394915885066692855678566", + "gate_ref": "10.00000000", + "k": 2560, + "reference": "-99.99546021312975656054952237672365105449063079952739313682144361312805081669605084114933307144321434", + "up_ref": "-10", + "v": -8192, + "y_q12": -1310660 + } + } + } + }, + "table_max": 655330, + "table_min": -18249, + "table_sha256": "12ba7d14215acc4c174805fef99f827de09430c6a46d07f617d5b57a1682150a" + }, + "peak_rss_kib": 19072, + "result_sha256": "df047f06f6216c19367cf1264447abcdc702c9d62be29a97f88c457cd330467c", + "utc_start": "2026-12-02T18:18:19.634442+00:00", + "verdict": "PASS" +} diff --git a/experiments/20261202-274-expert-asymmetric-cap/runs/run-3.json b/experiments/20261202-274-expert-asymmetric-cap/runs/run-3.json new file mode 100644 index 00000000..8ae216aa --- /dev/null +++ b/experiments/20261202-274-expert-asymmetric-cap/runs/run-3.json @@ -0,0 +1,405 @@ +{ + "elapsed_seconds": 13.84786281362176, + "payload": { + "anchors": [ + { + "G": 0, + "T": 0, + "U": 8191, + "absolute_error": "0", + "gate_ref": "0", + "k": 0, + "reference": "0", + "source": "deepseek", + "up_ref": "10", + "v": 2560, + "variant": "candidate", + "y_q12": 0 + }, + { + "G": 0, + "T": 0, + "U": 8191, + "absolute_error": "0E-9", + "gate_ref": "0E-8", + "k": 0, + "reference": "0E-9", + "source": "glm", + "up_ref": "10", + "v": 2560, + "variant": "candidate", + "y_q12": 0 + }, + { + "G": -8192, + "T": 0, + "U": 2560, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "gate_ref": "-32", + "k": -8192, + "reference": "-4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "source": "deepseek", + "up_ref": "10", + "v": 2560, + "variant": "candidate", + "y_q12": 0 + }, + { + "G": -8192, + "T": 0, + "U": 2560, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "gate_ref": "-32.00000000", + "k": -8192, + "reference": "-4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "source": "glm", + "up_ref": "10", + "v": 2560, + "variant": "candidate", + "y_q12": 0 + }, + { + "G": -8192, + "T": -30, + "U": 2560, + "absolute_error": "0.004638671870947467024289915090549808225852514740426494475082175459185923270603784299810287381536910149584372290", + "gate_ref": "-32", + "k": -2560, + "reference": "-4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "source": "deepseek", + "up_ref": "10", + "v": 2560, + "variant": "gate_floor", + "y_q12": -19 + }, + { + "G": -8192, + "T": -30, + "U": 2560, + "absolute_error": "0.004638671870947467024289915090549808225852514740426494475082175459185923270603784299810287381536910149584372291", + "gate_ref": "-32.00000000", + "k": -2560, + "reference": "-4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "source": "glm", + "up_ref": "10", + "v": 2560, + "variant": "gate_floor", + "y_q12": -19 + }, + { + "G": 2816, + "T": 655330, + "U": -3072, + "absolute_error": "0.00009888500475656054952237672365105449063079952739313682144361312805081669605084114933307144321432", + "gate_ref": "10", + "k": 2560, + "reference": "-99.99546021312975656054952237672365105449063079952739313682144361312805081669605084114933307144321432", + "source": "deepseek", + "up_ref": "-10", + "v": -2560, + "variant": "candidate", + "y_q12": -409581 + }, + { + "G": 2816, + "T": 655330, + "U": -3072, + "absolute_error": "0.00009888500475656054952237672365105449063079952739313682144361312805081669605084114933307144321434", + "gate_ref": "10", + "k": 2560, + "reference": "-99.99546021312975656054952237672365105449063079952739313682144361312805081669605084114933307144321434", + "source": "glm", + "up_ref": "-10", + "v": -2560, + "variant": "candidate", + "y_q12": -409581 + }, + { + "G": 2816, + "T": 655330, + "U": -3072, + "absolute_error": "19.99916869312024343945047762327634894550936920047260686317855638687194918330394915885066692855678568", + "gate_ref": "10", + "k": 2560, + "reference": "-99.99546021312975656054952237672365105449063079952739313682144361312805081669605084114933307144321432", + "source": "deepseek", + "up_ref": "-10", + "v": -3072, + "variant": "missing_up_floor", + "y_q12": -491498 + }, + { + "G": 2816, + "T": 655330, + "U": -3072, + "absolute_error": "19.99916869312024343945047762327634894550936920047260686317855638687194918330394915885066692855678566", + "gate_ref": "10", + "k": 2560, + "reference": "-99.99546021312975656054952237672365105449063079952739313682144361312805081669605084114933307144321434", + "source": "glm", + "up_ref": "-10", + "v": -3072, + "variant": "missing_up_floor", + "y_q12": -491498 + } + ], + "certified_rows": 10753, + "grid_verdict": "PASS", + "max_oracle_difference": { + "between_sources": "5E-98", + "deepseek": "5.2794092548815634263424747557595081935048E-58", + "glm": "1.8871702276327123150848605672485352280406E-58" + }, + "scores": { + "candidate": { + "deepseek": { + "cap_misses": 0, + "error_misses": 0, + "failed_pairs": 0, + "first_failure": null, + "first_nonzero_error": { + "G": -8192, + "T": 0, + "U": -8192, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "gate_ref": "-32", + "k": -8192, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "up_ref": "-10", + "v": -2560, + "y_q12": 0 + }, + "max_error": "0.0001980503780545155690279784247563769716021998004023159025397514271890444507355703626707770623238565042", + "pairs": 212992, + "worst": { + "G": -3092, + "T": -4, + "U": -8192, + "absolute_error": "0.0001980503780545155690279784247563769716021998004023159025397514271890444507355703626707770623238565042", + "gate_ref": "-12.078125", + "k": -3092, + "reference": "0.0006863316280545155690279784247563769716021998004023159025397514271890444507355703626707770623238565042", + "up_ref": "-10", + "v": -2560, + "y_q12": 2 + } + }, + "glm": { + "cap_misses": 0, + "error_misses": 0, + "failed_pairs": 0, + "first_failure": null, + "first_nonzero_error": { + "G": -8192, + "T": 0, + "U": -8192, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "gate_ref": "-32.00000000", + "k": -8192, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "up_ref": "-10", + "v": -2560, + "y_q12": 0 + }, + "max_error": "0.0001980503780545155690279784247563769716021998004023159025397514271890444507355703626707770623238565040", + "pairs": 212992, + "worst": { + "G": -3092, + "T": -4, + "U": -8192, + "absolute_error": "0.0001980503780545155690279784247563769716021998004023159025397514271890444507355703626707770623238565040", + "gate_ref": "-12.07812500", + "k": -3092, + "reference": "0.0006863316280545155690279784247563769716021998004023159025397514271890444507355703626707770623238565040", + "up_ref": "-10", + "v": -2560, + "y_q12": 2 + } + } + }, + "gate_floor": { + "deepseek": { + "cap_misses": 73216, + "error_misses": 55898, + "failed_pairs": 73216, + "first_failure": { + "G": -8192, + "T": -30, + "U": -8192, + "absolute_error": "0.004638671870947467024289915090549808225852514740426494475082175459185923270603784299810287381536910149584372290", + "gate_ref": "-32", + "k": -2560, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "up_ref": "-10", + "v": -2560, + "y_q12": 19 + }, + "first_nonzero_error": { + "G": -8192, + "T": -30, + "U": -8192, + "absolute_error": "0.004638671870947467024289915090549808225852514740426494475082175459185923270603784299810287381536910149584372290", + "gate_ref": "-32", + "k": -2560, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "up_ref": "-10", + "v": -2560, + "y_q12": 19 + }, + "max_error": "0.004638671870949050044983551842467562207014291101856015375677846484397178769326204696568173988028497294057190895", + "pairs": 212992, + "worst": { + "G": -8192, + "T": -30, + "U": -2559, + "absolute_error": "0.004638671870949050044983551842467562207014291101856015375677846484397178769326204696568173988028497294057190895", + "gate_ref": "-32", + "k": -2560, + "reference": "4.050949955016448157532437792985708898143984624322153515602821230673795303431826011971502705942809105E-12", + "up_ref": "-9.99609375", + "v": -2559, + "y_q12": 19 + } + }, + "glm": { + "cap_misses": 73216, + "error_misses": 55898, + "failed_pairs": 73216, + "first_failure": { + "G": -8192, + "T": -30, + "U": -8192, + "absolute_error": "0.004638671870947467024289915090549808225852514740426494475082175459185923270603784299810287381536910149584372291", + "gate_ref": "-32.00000000", + "k": -2560, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "up_ref": "-10", + "v": -2560, + "y_q12": 19 + }, + "first_nonzero_error": { + "G": -8192, + "T": -30, + "U": -8192, + "absolute_error": "0.004638671870947467024289915090549808225852514740426494475082175459185923270603784299810287381536910149584372291", + "gate_ref": "-32.00000000", + "k": -2560, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "up_ref": "-10", + "v": -2560, + "y_q12": 19 + }, + "max_error": "0.004638671870949050044983551842467562207014291101856015375677846484397178769326204696568173988028497294057190896", + "pairs": 212992, + "worst": { + "G": -8192, + "T": -30, + "U": -2559, + "absolute_error": "0.004638671870949050044983551842467562207014291101856015375677846484397178769326204696568173988028497294057190896", + "gate_ref": "-32.00000000", + "k": -2560, + "reference": "4.050949955016448157532437792985708898143984624322153515602821230673795303431826011971502705942809104E-12", + "up_ref": "-9.99609375", + "v": -2559, + "y_q12": 19 + } + } + }, + "missing_up_floor": { + "deepseek": { + "cap_misses": 32768, + "error_misses": 21102, + "failed_pairs": 32768, + "first_failure": { + "G": -8192, + "T": 0, + "U": -8192, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "gate_ref": "-32", + "k": -8192, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "up_ref": "-10", + "v": -8192, + "y_q12": 0 + }, + "first_nonzero_error": { + "G": -8192, + "T": 0, + "U": -8192, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "gate_ref": "-32", + "k": -8192, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "up_ref": "-10", + "v": -8192, + "y_q12": 0 + }, + "max_error": "219.98989134937024343945047762327634894550936920047260686317855638687194918330394915885066692855678568", + "pairs": 212992, + "worst": { + "G": 2560, + "T": 655330, + "U": -8192, + "absolute_error": "219.98989134937024343945047762327634894550936920047260686317855638687194918330394915885066692855678568", + "gate_ref": "10", + "k": 2560, + "reference": "-99.99546021312975656054952237672365105449063079952739313682144361312805081669605084114933307144321432", + "up_ref": "-10", + "v": -8192, + "y_q12": -1310660 + } + }, + "glm": { + "cap_misses": 32768, + "error_misses": 21102, + "failed_pairs": 32768, + "first_failure": { + "G": -8192, + "T": 0, + "U": -8192, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "gate_ref": "-32.00000000", + "k": -8192, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "up_ref": "-10", + "v": -8192, + "y_q12": 0 + }, + "first_nonzero_error": { + "G": -8192, + "T": 0, + "U": -8192, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "gate_ref": "-32.00000000", + "k": -8192, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "up_ref": "-10", + "v": -8192, + "y_q12": 0 + }, + "max_error": "219.98989134937024343945047762327634894550936920047260686317855638687194918330394915885066692855678566", + "pairs": 212992, + "worst": { + "G": 2560, + "T": 655330, + "U": -8192, + "absolute_error": "219.98989134937024343945047762327634894550936920047260686317855638687194918330394915885066692855678566", + "gate_ref": "10.00000000", + "k": 2560, + "reference": "-99.99546021312975656054952237672365105449063079952739313682144361312805081669605084114933307144321434", + "up_ref": "-10", + "v": -8192, + "y_q12": -1310660 + } + } + } + }, + "table_max": 655330, + "table_min": -18249, + "table_sha256": "12ba7d14215acc4c174805fef99f827de09430c6a46d07f617d5b57a1682150a" + }, + "peak_rss_kib": 18944, + "result_sha256": "df047f06f6216c19367cf1264447abcdc702c9d62be29a97f88c457cd330467c", + "utc_start": "2026-12-02T18:18:37.725571+00:00", + "verdict": "PASS" +} diff --git a/experiments/20261202-274-expert-asymmetric-cap/runs/run-4.json b/experiments/20261202-274-expert-asymmetric-cap/runs/run-4.json new file mode 100644 index 00000000..6c231025 --- /dev/null +++ b/experiments/20261202-274-expert-asymmetric-cap/runs/run-4.json @@ -0,0 +1,405 @@ +{ + "elapsed_seconds": 13.97320044413209, + "payload": { + "anchors": [ + { + "G": 0, + "T": 0, + "U": 8191, + "absolute_error": "0", + "gate_ref": "0", + "k": 0, + "reference": "0", + "source": "deepseek", + "up_ref": "10", + "v": 2560, + "variant": "candidate", + "y_q12": 0 + }, + { + "G": 0, + "T": 0, + "U": 8191, + "absolute_error": "0E-9", + "gate_ref": "0E-8", + "k": 0, + "reference": "0E-9", + "source": "glm", + "up_ref": "10", + "v": 2560, + "variant": "candidate", + "y_q12": 0 + }, + { + "G": -8192, + "T": 0, + "U": 2560, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "gate_ref": "-32", + "k": -8192, + "reference": "-4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "source": "deepseek", + "up_ref": "10", + "v": 2560, + "variant": "candidate", + "y_q12": 0 + }, + { + "G": -8192, + "T": 0, + "U": 2560, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "gate_ref": "-32.00000000", + "k": -8192, + "reference": "-4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "source": "glm", + "up_ref": "10", + "v": 2560, + "variant": "candidate", + "y_q12": 0 + }, + { + "G": -8192, + "T": -30, + "U": 2560, + "absolute_error": "0.004638671870947467024289915090549808225852514740426494475082175459185923270603784299810287381536910149584372290", + "gate_ref": "-32", + "k": -2560, + "reference": "-4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "source": "deepseek", + "up_ref": "10", + "v": 2560, + "variant": "gate_floor", + "y_q12": -19 + }, + { + "G": -8192, + "T": -30, + "U": 2560, + "absolute_error": "0.004638671870947467024289915090549808225852514740426494475082175459185923270603784299810287381536910149584372291", + "gate_ref": "-32.00000000", + "k": -2560, + "reference": "-4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "source": "glm", + "up_ref": "10", + "v": 2560, + "variant": "gate_floor", + "y_q12": -19 + }, + { + "G": 2816, + "T": 655330, + "U": -3072, + "absolute_error": "0.00009888500475656054952237672365105449063079952739313682144361312805081669605084114933307144321432", + "gate_ref": "10", + "k": 2560, + "reference": "-99.99546021312975656054952237672365105449063079952739313682144361312805081669605084114933307144321432", + "source": "deepseek", + "up_ref": "-10", + "v": -2560, + "variant": "candidate", + "y_q12": -409581 + }, + { + "G": 2816, + "T": 655330, + "U": -3072, + "absolute_error": "0.00009888500475656054952237672365105449063079952739313682144361312805081669605084114933307144321434", + "gate_ref": "10", + "k": 2560, + "reference": "-99.99546021312975656054952237672365105449063079952739313682144361312805081669605084114933307144321434", + "source": "glm", + "up_ref": "-10", + "v": -2560, + "variant": "candidate", + "y_q12": -409581 + }, + { + "G": 2816, + "T": 655330, + "U": -3072, + "absolute_error": "19.99916869312024343945047762327634894550936920047260686317855638687194918330394915885066692855678568", + "gate_ref": "10", + "k": 2560, + "reference": "-99.99546021312975656054952237672365105449063079952739313682144361312805081669605084114933307144321432", + "source": "deepseek", + "up_ref": "-10", + "v": -3072, + "variant": "missing_up_floor", + "y_q12": -491498 + }, + { + "G": 2816, + "T": 655330, + "U": -3072, + "absolute_error": "19.99916869312024343945047762327634894550936920047260686317855638687194918330394915885066692855678566", + "gate_ref": "10", + "k": 2560, + "reference": "-99.99546021312975656054952237672365105449063079952739313682144361312805081669605084114933307144321434", + "source": "glm", + "up_ref": "-10", + "v": -3072, + "variant": "missing_up_floor", + "y_q12": -491498 + } + ], + "certified_rows": 10753, + "grid_verdict": "PASS", + "max_oracle_difference": { + "between_sources": "5E-98", + "deepseek": "5.2794092548815634263424747557595081935048E-58", + "glm": "1.8871702276327123150848605672485352280406E-58" + }, + "scores": { + "candidate": { + "deepseek": { + "cap_misses": 0, + "error_misses": 0, + "failed_pairs": 0, + "first_failure": null, + "first_nonzero_error": { + "G": -8192, + "T": 0, + "U": -8192, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "gate_ref": "-32", + "k": -8192, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "up_ref": "-10", + "v": -2560, + "y_q12": 0 + }, + "max_error": "0.0001980503780545155690279784247563769716021998004023159025397514271890444507355703626707770623238565042", + "pairs": 212992, + "worst": { + "G": -3092, + "T": -4, + "U": -8192, + "absolute_error": "0.0001980503780545155690279784247563769716021998004023159025397514271890444507355703626707770623238565042", + "gate_ref": "-12.078125", + "k": -3092, + "reference": "0.0006863316280545155690279784247563769716021998004023159025397514271890444507355703626707770623238565042", + "up_ref": "-10", + "v": -2560, + "y_q12": 2 + } + }, + "glm": { + "cap_misses": 0, + "error_misses": 0, + "failed_pairs": 0, + "first_failure": null, + "first_nonzero_error": { + "G": -8192, + "T": 0, + "U": -8192, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "gate_ref": "-32.00000000", + "k": -8192, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "up_ref": "-10", + "v": -2560, + "y_q12": 0 + }, + "max_error": "0.0001980503780545155690279784247563769716021998004023159025397514271890444507355703626707770623238565040", + "pairs": 212992, + "worst": { + "G": -3092, + "T": -4, + "U": -8192, + "absolute_error": "0.0001980503780545155690279784247563769716021998004023159025397514271890444507355703626707770623238565040", + "gate_ref": "-12.07812500", + "k": -3092, + "reference": "0.0006863316280545155690279784247563769716021998004023159025397514271890444507355703626707770623238565040", + "up_ref": "-10", + "v": -2560, + "y_q12": 2 + } + } + }, + "gate_floor": { + "deepseek": { + "cap_misses": 73216, + "error_misses": 55898, + "failed_pairs": 73216, + "first_failure": { + "G": -8192, + "T": -30, + "U": -8192, + "absolute_error": "0.004638671870947467024289915090549808225852514740426494475082175459185923270603784299810287381536910149584372290", + "gate_ref": "-32", + "k": -2560, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "up_ref": "-10", + "v": -2560, + "y_q12": 19 + }, + "first_nonzero_error": { + "G": -8192, + "T": -30, + "U": -8192, + "absolute_error": "0.004638671870947467024289915090549808225852514740426494475082175459185923270603784299810287381536910149584372290", + "gate_ref": "-32", + "k": -2560, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "up_ref": "-10", + "v": -2560, + "y_q12": 19 + }, + "max_error": "0.004638671870949050044983551842467562207014291101856015375677846484397178769326204696568173988028497294057190895", + "pairs": 212992, + "worst": { + "G": -8192, + "T": -30, + "U": -2559, + "absolute_error": "0.004638671870949050044983551842467562207014291101856015375677846484397178769326204696568173988028497294057190895", + "gate_ref": "-32", + "k": -2560, + "reference": "4.050949955016448157532437792985708898143984624322153515602821230673795303431826011971502705942809105E-12", + "up_ref": "-9.99609375", + "v": -2559, + "y_q12": 19 + } + }, + "glm": { + "cap_misses": 73216, + "error_misses": 55898, + "failed_pairs": 73216, + "first_failure": { + "G": -8192, + "T": -30, + "U": -8192, + "absolute_error": "0.004638671870947467024289915090549808225852514740426494475082175459185923270603784299810287381536910149584372291", + "gate_ref": "-32.00000000", + "k": -2560, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "up_ref": "-10", + "v": -2560, + "y_q12": 19 + }, + "first_nonzero_error": { + "G": -8192, + "T": -30, + "U": -8192, + "absolute_error": "0.004638671870947467024289915090549808225852514740426494475082175459185923270603784299810287381536910149584372291", + "gate_ref": "-32.00000000", + "k": -2560, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "up_ref": "-10", + "v": -2560, + "y_q12": 19 + }, + "max_error": "0.004638671870949050044983551842467562207014291101856015375677846484397178769326204696568173988028497294057190896", + "pairs": 212992, + "worst": { + "G": -8192, + "T": -30, + "U": -2559, + "absolute_error": "0.004638671870949050044983551842467562207014291101856015375677846484397178769326204696568173988028497294057190896", + "gate_ref": "-32.00000000", + "k": -2560, + "reference": "4.050949955016448157532437792985708898143984624322153515602821230673795303431826011971502705942809104E-12", + "up_ref": "-9.99609375", + "v": -2559, + "y_q12": 19 + } + } + }, + "missing_up_floor": { + "deepseek": { + "cap_misses": 32768, + "error_misses": 21102, + "failed_pairs": 32768, + "first_failure": { + "G": -8192, + "T": 0, + "U": -8192, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "gate_ref": "-32", + "k": -8192, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "up_ref": "-10", + "v": -8192, + "y_q12": 0 + }, + "first_nonzero_error": { + "G": -8192, + "T": 0, + "U": -8192, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "gate_ref": "-32", + "k": -8192, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "up_ref": "-10", + "v": -8192, + "y_q12": 0 + }, + "max_error": "219.98989134937024343945047762327634894550936920047260686317855638687194918330394915885066692855678568", + "pairs": 212992, + "worst": { + "G": 2560, + "T": 655330, + "U": -8192, + "absolute_error": "219.98989134937024343945047762327634894550936920047260686317855638687194918330394915885066692855678568", + "gate_ref": "10", + "k": 2560, + "reference": "-99.99546021312975656054952237672365105449063079952739313682144361312805081669605084114933307144321432", + "up_ref": "-10", + "v": -8192, + "y_q12": -1310660 + } + }, + "glm": { + "cap_misses": 32768, + "error_misses": 21102, + "failed_pairs": 32768, + "first_failure": { + "G": -8192, + "T": 0, + "U": -8192, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "gate_ref": "-32.00000000", + "k": -8192, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "up_ref": "-10", + "v": -8192, + "y_q12": 0 + }, + "first_nonzero_error": { + "G": -8192, + "T": 0, + "U": -8192, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "gate_ref": "-32.00000000", + "k": -8192, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "up_ref": "-10", + "v": -8192, + "y_q12": 0 + }, + "max_error": "219.98989134937024343945047762327634894550936920047260686317855638687194918330394915885066692855678566", + "pairs": 212992, + "worst": { + "G": 2560, + "T": 655330, + "U": -8192, + "absolute_error": "219.98989134937024343945047762327634894550936920047260686317855638687194918330394915885066692855678566", + "gate_ref": "10.00000000", + "k": 2560, + "reference": "-99.99546021312975656054952237672365105449063079952739313682144361312805081669605084114933307144321434", + "up_ref": "-10", + "v": -8192, + "y_q12": -1310660 + } + } + } + }, + "table_max": 655330, + "table_min": -18249, + "table_sha256": "12ba7d14215acc4c174805fef99f827de09430c6a46d07f617d5b57a1682150a" + }, + "peak_rss_kib": 19072, + "result_sha256": "df047f06f6216c19367cf1264447abcdc702c9d62be29a97f88c457cd330467c", + "utc_start": "2026-12-02T18:19:12.735305+00:00", + "verdict": "PASS" +} diff --git a/experiments/20261202-274-expert-asymmetric-cap/runs/run-5.json b/experiments/20261202-274-expert-asymmetric-cap/runs/run-5.json new file mode 100644 index 00000000..9c6bec90 --- /dev/null +++ b/experiments/20261202-274-expert-asymmetric-cap/runs/run-5.json @@ -0,0 +1,405 @@ +{ + "elapsed_seconds": 13.680728565901518, + "payload": { + "anchors": [ + { + "G": 0, + "T": 0, + "U": 8191, + "absolute_error": "0", + "gate_ref": "0", + "k": 0, + "reference": "0", + "source": "deepseek", + "up_ref": "10", + "v": 2560, + "variant": "candidate", + "y_q12": 0 + }, + { + "G": 0, + "T": 0, + "U": 8191, + "absolute_error": "0E-9", + "gate_ref": "0E-8", + "k": 0, + "reference": "0E-9", + "source": "glm", + "up_ref": "10", + "v": 2560, + "variant": "candidate", + "y_q12": 0 + }, + { + "G": -8192, + "T": 0, + "U": 2560, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "gate_ref": "-32", + "k": -8192, + "reference": "-4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "source": "deepseek", + "up_ref": "10", + "v": 2560, + "variant": "candidate", + "y_q12": 0 + }, + { + "G": -8192, + "T": 0, + "U": 2560, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "gate_ref": "-32.00000000", + "k": -8192, + "reference": "-4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "source": "glm", + "up_ref": "10", + "v": 2560, + "variant": "candidate", + "y_q12": 0 + }, + { + "G": -8192, + "T": -30, + "U": 2560, + "absolute_error": "0.004638671870947467024289915090549808225852514740426494475082175459185923270603784299810287381536910149584372290", + "gate_ref": "-32", + "k": -2560, + "reference": "-4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "source": "deepseek", + "up_ref": "10", + "v": 2560, + "variant": "gate_floor", + "y_q12": -19 + }, + { + "G": -8192, + "T": -30, + "U": 2560, + "absolute_error": "0.004638671870947467024289915090549808225852514740426494475082175459185923270603784299810287381536910149584372291", + "gate_ref": "-32.00000000", + "k": -2560, + "reference": "-4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "source": "glm", + "up_ref": "10", + "v": 2560, + "variant": "gate_floor", + "y_q12": -19 + }, + { + "G": 2816, + "T": 655330, + "U": -3072, + "absolute_error": "0.00009888500475656054952237672365105449063079952739313682144361312805081669605084114933307144321432", + "gate_ref": "10", + "k": 2560, + "reference": "-99.99546021312975656054952237672365105449063079952739313682144361312805081669605084114933307144321432", + "source": "deepseek", + "up_ref": "-10", + "v": -2560, + "variant": "candidate", + "y_q12": -409581 + }, + { + "G": 2816, + "T": 655330, + "U": -3072, + "absolute_error": "0.00009888500475656054952237672365105449063079952739313682144361312805081669605084114933307144321434", + "gate_ref": "10", + "k": 2560, + "reference": "-99.99546021312975656054952237672365105449063079952739313682144361312805081669605084114933307144321434", + "source": "glm", + "up_ref": "-10", + "v": -2560, + "variant": "candidate", + "y_q12": -409581 + }, + { + "G": 2816, + "T": 655330, + "U": -3072, + "absolute_error": "19.99916869312024343945047762327634894550936920047260686317855638687194918330394915885066692855678568", + "gate_ref": "10", + "k": 2560, + "reference": "-99.99546021312975656054952237672365105449063079952739313682144361312805081669605084114933307144321432", + "source": "deepseek", + "up_ref": "-10", + "v": -3072, + "variant": "missing_up_floor", + "y_q12": -491498 + }, + { + "G": 2816, + "T": 655330, + "U": -3072, + "absolute_error": "19.99916869312024343945047762327634894550936920047260686317855638687194918330394915885066692855678566", + "gate_ref": "10", + "k": 2560, + "reference": "-99.99546021312975656054952237672365105449063079952739313682144361312805081669605084114933307144321434", + "source": "glm", + "up_ref": "-10", + "v": -3072, + "variant": "missing_up_floor", + "y_q12": -491498 + } + ], + "certified_rows": 10753, + "grid_verdict": "PASS", + "max_oracle_difference": { + "between_sources": "5E-98", + "deepseek": "5.2794092548815634263424747557595081935048E-58", + "glm": "1.8871702276327123150848605672485352280406E-58" + }, + "scores": { + "candidate": { + "deepseek": { + "cap_misses": 0, + "error_misses": 0, + "failed_pairs": 0, + "first_failure": null, + "first_nonzero_error": { + "G": -8192, + "T": 0, + "U": -8192, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "gate_ref": "-32", + "k": -8192, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "up_ref": "-10", + "v": -2560, + "y_q12": 0 + }, + "max_error": "0.0001980503780545155690279784247563769716021998004023159025397514271890444507355703626707770623238565042", + "pairs": 212992, + "worst": { + "G": -3092, + "T": -4, + "U": -8192, + "absolute_error": "0.0001980503780545155690279784247563769716021998004023159025397514271890444507355703626707770623238565042", + "gate_ref": "-12.078125", + "k": -3092, + "reference": "0.0006863316280545155690279784247563769716021998004023159025397514271890444507355703626707770623238565042", + "up_ref": "-10", + "v": -2560, + "y_q12": 2 + } + }, + "glm": { + "cap_misses": 0, + "error_misses": 0, + "failed_pairs": 0, + "first_failure": null, + "first_nonzero_error": { + "G": -8192, + "T": 0, + "U": -8192, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "gate_ref": "-32.00000000", + "k": -8192, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "up_ref": "-10", + "v": -2560, + "y_q12": 0 + }, + "max_error": "0.0001980503780545155690279784247563769716021998004023159025397514271890444507355703626707770623238565040", + "pairs": 212992, + "worst": { + "G": -3092, + "T": -4, + "U": -8192, + "absolute_error": "0.0001980503780545155690279784247563769716021998004023159025397514271890444507355703626707770623238565040", + "gate_ref": "-12.07812500", + "k": -3092, + "reference": "0.0006863316280545155690279784247563769716021998004023159025397514271890444507355703626707770623238565040", + "up_ref": "-10", + "v": -2560, + "y_q12": 2 + } + } + }, + "gate_floor": { + "deepseek": { + "cap_misses": 73216, + "error_misses": 55898, + "failed_pairs": 73216, + "first_failure": { + "G": -8192, + "T": -30, + "U": -8192, + "absolute_error": "0.004638671870947467024289915090549808225852514740426494475082175459185923270603784299810287381536910149584372290", + "gate_ref": "-32", + "k": -2560, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "up_ref": "-10", + "v": -2560, + "y_q12": 19 + }, + "first_nonzero_error": { + "G": -8192, + "T": -30, + "U": -8192, + "absolute_error": "0.004638671870947467024289915090549808225852514740426494475082175459185923270603784299810287381536910149584372290", + "gate_ref": "-32", + "k": -2560, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "up_ref": "-10", + "v": -2560, + "y_q12": 19 + }, + "max_error": "0.004638671870949050044983551842467562207014291101856015375677846484397178769326204696568173988028497294057190895", + "pairs": 212992, + "worst": { + "G": -8192, + "T": -30, + "U": -2559, + "absolute_error": "0.004638671870949050044983551842467562207014291101856015375677846484397178769326204696568173988028497294057190895", + "gate_ref": "-32", + "k": -2560, + "reference": "4.050949955016448157532437792985708898143984624322153515602821230673795303431826011971502705942809105E-12", + "up_ref": "-9.99609375", + "v": -2559, + "y_q12": 19 + } + }, + "glm": { + "cap_misses": 73216, + "error_misses": 55898, + "failed_pairs": 73216, + "first_failure": { + "G": -8192, + "T": -30, + "U": -8192, + "absolute_error": "0.004638671870947467024289915090549808225852514740426494475082175459185923270603784299810287381536910149584372291", + "gate_ref": "-32.00000000", + "k": -2560, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "up_ref": "-10", + "v": -2560, + "y_q12": 19 + }, + "first_nonzero_error": { + "G": -8192, + "T": -30, + "U": -8192, + "absolute_error": "0.004638671870947467024289915090549808225852514740426494475082175459185923270603784299810287381536910149584372291", + "gate_ref": "-32.00000000", + "k": -2560, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "up_ref": "-10", + "v": -2560, + "y_q12": 19 + }, + "max_error": "0.004638671870949050044983551842467562207014291101856015375677846484397178769326204696568173988028497294057190896", + "pairs": 212992, + "worst": { + "G": -8192, + "T": -30, + "U": -2559, + "absolute_error": "0.004638671870949050044983551842467562207014291101856015375677846484397178769326204696568173988028497294057190896", + "gate_ref": "-32.00000000", + "k": -2560, + "reference": "4.050949955016448157532437792985708898143984624322153515602821230673795303431826011971502705942809104E-12", + "up_ref": "-9.99609375", + "v": -2559, + "y_q12": 19 + } + } + }, + "missing_up_floor": { + "deepseek": { + "cap_misses": 32768, + "error_misses": 21102, + "failed_pairs": 32768, + "first_failure": { + "G": -8192, + "T": 0, + "U": -8192, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "gate_ref": "-32", + "k": -8192, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "up_ref": "-10", + "v": -8192, + "y_q12": 0 + }, + "first_nonzero_error": { + "G": -8192, + "T": 0, + "U": -8192, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "gate_ref": "-32", + "k": -8192, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627710E-12", + "up_ref": "-10", + "v": -8192, + "y_q12": 0 + }, + "max_error": "219.98989134937024343945047762327634894550936920047260686317855638687194918330394915885066692855678568", + "pairs": 212992, + "worst": { + "G": 2560, + "T": 655330, + "U": -8192, + "absolute_error": "219.98989134937024343945047762327634894550936920047260686317855638687194918330394915885066692855678568", + "gate_ref": "10", + "k": 2560, + "reference": "-99.99546021312975656054952237672365105449063079952739313682144361312805081669605084114933307144321432", + "up_ref": "-10", + "v": -8192, + "y_q12": -1310660 + } + }, + "glm": { + "cap_misses": 32768, + "error_misses": 21102, + "failed_pairs": 32768, + "first_failure": { + "G": -8192, + "T": 0, + "U": -8192, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "gate_ref": "-32.00000000", + "k": -8192, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "up_ref": "-10", + "v": -8192, + "y_q12": 0 + }, + "first_nonzero_error": { + "G": -8192, + "T": 0, + "U": -8192, + "absolute_error": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "gate_ref": "-32.00000000", + "k": -8192, + "reference": "4.052532975710084909450191774147485259573505524917824540814076729396215700189712618463089850415627709E-12", + "up_ref": "-10", + "v": -8192, + "y_q12": 0 + }, + "max_error": "219.98989134937024343945047762327634894550936920047260686317855638687194918330394915885066692855678566", + "pairs": 212992, + "worst": { + "G": 2560, + "T": 655330, + "U": -8192, + "absolute_error": "219.98989134937024343945047762327634894550936920047260686317855638687194918330394915885066692855678566", + "gate_ref": "10.00000000", + "k": 2560, + "reference": "-99.99546021312975656054952237672365105449063079952739313682144361312805081669605084114933307144321434", + "up_ref": "-10", + "v": -8192, + "y_q12": -1310660 + } + } + } + }, + "table_max": 655330, + "table_min": -18249, + "table_sha256": "12ba7d14215acc4c174805fef99f827de09430c6a46d07f617d5b57a1682150a" + }, + "peak_rss_kib": 19072, + "result_sha256": "df047f06f6216c19367cf1264447abcdc702c9d62be29a97f88c457cd330467c", + "utc_start": "2026-12-02T18:19:32.915472+00:00", + "verdict": "PASS" +} diff --git a/experiments/20261202-274-expert-asymmetric-cap/runs/summary.json b/experiments/20261202-274-expert-asymmetric-cap/runs/summary.json new file mode 100644 index 00000000..a5a2ca11 --- /dev/null +++ b/experiments/20261202-274-expert-asymmetric-cap/runs/summary.json @@ -0,0 +1,24 @@ +{ + "n": 5, + "result_sha256": "df047f06f6216c19367cf1264447abcdc702c9d62be29a97f88c457cd330467c", + "sources": { + "deepseek": { + "failed_pairs_per_run": 0, + "max": "0.0001980503780545155690279784247563769716021998004023159025397514271890444507355703626707770623238565042", + "median": "0.0001980503780545155690279784247563769716021998004023159025397514271890444507355703626707770623238565042", + "min": "0.0001980503780545155690279784247563769716021998004023159025397514271890444507355703626707770623238565042", + "pairs_per_run": 212992, + "sd": "0.0" + }, + "glm": { + "failed_pairs_per_run": 0, + "max": "0.0001980503780545155690279784247563769716021998004023159025397514271890444507355703626707770623238565040", + "median": "0.0001980503780545155690279784247563769716021998004023159025397514271890444507355703626707770623238565040", + "min": "0.0001980503780545155690279784247563769716021998004023159025397514271890444507355703626707770623238565040", + "pairs_per_run": 212992, + "sd": "0.0" + } + }, + "utc_start": "2026-12-02T18:20:24.560748+00:00", + "verdict": "PASS" +} diff --git a/experiments/20261202-274-expert-asymmetric-cap/summarize.py b/experiments/20261202-274-expert-asymmetric-cap/summarize.py new file mode 100644 index 00000000..c65d96c8 --- /dev/null +++ b/experiments/20261202-274-expert-asymmetric-cap/summarize.py @@ -0,0 +1,39 @@ +"""Summarize exactly five already written receipts. Write to a new file.""" +from datetime import datetime, timezone +from decimal import Decimal as D, getcontext +from hashlib import sha256 +import json +from pathlib import Path +from statistics import median, stdev +import sys + + +def summarize(directory): + getcontext().prec = 180 + runs = [json.loads((directory / f'run-{i}.json').read_text()) for i in range(1, 6)] + digests = [] + for r in runs: + raw = json.dumps(r['payload'], sort_keys=True, separators=(',', ':')).encode() + calculated = sha256(raw).hexdigest() + if r['result_sha256'] != calculated: + raise ValueError('receipt digest mismatch') + digests.append(calculated) + if len(set(digests)) != 1 or any(r['verdict'] != runs[0]['payload']['grid_verdict'] for r in runs): + raise ValueError('unstable or incomplete runs') + out = {'utc_start': datetime.now(timezone.utc).isoformat(), 'verdict': runs[0]['verdict'], + 'result_sha256': digests[0], 'n': len(runs), 'sources': {}} + for source in ('deepseek', 'glm'): + scores = [r['payload']['scores']['candidate'][source] for r in runs] + errs = [D(s['max_error']) for s in scores] + out['sources'][source] = dict(median=str(median(errs)), sd=str(stdev(errs)), + min=str(min(errs)), max=str(max(errs)), + pairs_per_run=scores[0]['pairs'], failed_pairs_per_run=scores[0]['failed_pairs']) + return out + + +if __name__ == '__main__': + directory = Path(sys.argv[1]) + summary = summarize(directory) + with (directory / 'summary.json').open('x') as out: + json.dump(summary, out, sort_keys=True, indent=2) + out.write('\n') diff --git a/research/results.yaml b/research/results.yaml index 53860230..679a9027 100644 --- a/research/results.yaml +++ b/research/results.yaml @@ -2337,3 +2337,19 @@ results: metrics: - {"name": "qwen_attribution_sites_meeting_gate_only_bar", "stat": "median", "value": 5, "total": 7, "unit": "count", "n": 5, "spread": {"sd": 0.0, "min": 5, "max": 5}, "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-12-02", "commit": "5f12e5bacc1d11a91a06e8822da7d5272cb73006", "source": "experiments/20261202-273-qwen-rounding-attribution/runs/summary.json", "note": "Measured, unreplicated. Among the seven historical differences, gate alone equals the decoded gain-first output and gain alone equals M2. Required: all seven."} - {"name": "qwen_attribution_hidden_coefficient_differences", "stat": "median", "value": 462, "total": 512, "unit": "count", "n": 5, "spread": {"sd": 0.0, "min": 462, "max": 462}, "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-12-02", "commit": "5f12e5bacc1d11a91a06e8822da7d5272cb73006", "source": "experiments/20261202-273-qwen-rounding-attribution/runs/summary.json", "note": "Measured, unreplicated. Both factors rounded vs M2: different integer coefficients and identical integer outputs on this fixture."} + + - id: expert-asymmetric-cap + title: "Local transcription of pinned DeepSeek and GLM source: one integer table for the asymmetric gate cap on supplied synthetic Q8 inputs (#274)" + status: "measured" + replication: "unreplicated" + pr: 275 + summary: "PASS, measured and unreplicated: 0/212,992 cap or error failures per local source transcription on supplied synthetic Q8 inputs. The grid pairs every gate integer in the registered range with only the 13 registered up values. Worst absolute error 0.00019805037805 in real units for each, below 1/4096. Both named wrong-semantics controls failed at their hand anchors. Five identical result digests test determinism, not replication. No weights, native precision, full expert, proof or performance claim." + conditions: "CPU only, one fixed Q16 table, supplied Q8 integers, signed ties-to-even Q12 output. All gate integers crossed with 13 specified up integers, not all combinations. Separate 60/100-digit scalar transcriptions of pinned sources, not running frameworks." + evidence: ["experiments/20261202-274-expert-asymmetric-cap/RESULTS.md", "experiments/20261202-274-expert-asymmetric-cap/PREREG.md", "experiments/20261202-274-expert-asymmetric-cap/ENV.json", "experiments/20261202-274-expert-asymmetric-cap/runs/summary.json", "experiments/20261202-274-expert-asymmetric-cap/runs/run-1.json", "experiments/20261202-274-expert-asymmetric-cap/runs/run-2.json", "experiments/20261202-274-expert-asymmetric-cap/runs/run-3.json", "experiments/20261202-274-expert-asymmetric-cap/runs/run-4.json", "experiments/20261202-274-expert-asymmetric-cap/runs/run-5.json"] + metrics: + - {"name": "cap274_deepseek_max_error", "stat": "median", "value": 0.00019805037805451558, "unit": "abs_diff", "n": 5, "spread": {"sd": 0, "min": 0.00019805037805451558, "max": 0.00019805037805451558}, "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-12-02", "commit": "070e068e1d04c728888bb6b29955690253fbd5d1", "source": "experiments/20261202-274-expert-asymmetric-cap/runs/summary.json", "note": "Maximum absolute real error per process; rounded here, lossless string in summary. Five identical runs of one fixture; spread is not an uncertainty estimate."} + - {"name": "cap274_deepseek_failed_pairs", "stat": "median", "value": 0, "unit": "count", "n": 5, "spread": {"sd": 0, "min": 0, "max": 0}, "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-12-02", "commit": "070e068e1d04c728888bb6b29955690253fbd5d1", "source": "experiments/20261202-274-expert-asymmetric-cap/runs/summary.json", "note": "Failed on an operand mismatch or absolute real error above 1/4096. Controls outside denominator.", "total": 212992} + - {"name": "cap274_glm_max_error", "stat": "median", "value": 0.00019805037805451558, "unit": "abs_diff", "n": 5, "spread": {"sd": 0, "min": 0.00019805037805451558, "max": 0.00019805037805451558}, "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-12-02", "commit": "070e068e1d04c728888bb6b29955690253fbd5d1", "source": "experiments/20261202-274-expert-asymmetric-cap/runs/summary.json", "note": "Maximum absolute real error per process; rounded here, lossless string in summary. Five identical runs of one fixture; spread is not an uncertainty estimate."} + - {"name": "cap274_glm_failed_pairs", "stat": "median", "value": 0, "unit": "count", "n": 5, "spread": {"sd": 0, "min": 0, "max": 0}, "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-12-02", "commit": "070e068e1d04c728888bb6b29955690253fbd5d1", "source": "experiments/20261202-274-expert-asymmetric-cap/runs/summary.json", "note": "Failed on an operand mismatch or absolute real error above 1/4096. Controls outside denominator.", "total": 212992} + - {"name": "cap274_gate_floor_failed_pairs", "stat": "median", "value": 73216, "unit": "count", "n": 5, "spread": {"sd": 0, "min": 73216, "max": 73216}, "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-12-02", "commit": "070e068e1d04c728888bb6b29955690253fbd5d1", "source": "experiments/20261202-274-expert-asymmetric-cap/runs/run-1.json", "note": "Wrong semantics: pair with at least one cap or error failure against the DeepSeek transcription; same count against GLM. Identical across five processes.", "total": 212992} + - {"name": "cap274_missing_up_floor_failed_pairs", "stat": "median", "value": 32768, "unit": "count", "n": 5, "spread": {"sd": 0, "min": 32768, "max": 32768}, "hardware": "cpu-epyc-rome-kvm-16", "date": "2026-12-02", "commit": "070e068e1d04c728888bb6b29955690253fbd5d1", "source": "experiments/20261202-274-expert-asymmetric-cap/runs/run-1.json", "note": "Wrong semantics: pair with at least one cap or error failure against the DeepSeek transcription; same count against GLM. Identical across five processes.", "total": 212992}