Skip to content

lane: Does a 21-fractional-bit exponential table recover the missing sink-attention mass? #278

Done

Description

@wakesync

Question. Change only the scale of the exp table in #263, from 2^16 to 2^21. Does the integer attention output meet the same absolute-error limit, 1/1024 in real value units, at every one of the same 234 synthetic coordinates?

Why it is on the shortest path. Row S serves DeepSeek's constant head sink and Inkling's per-query sink; neither sink has a numerator value. PR #268 missed on both the equal-distance and spread rows of BANK-1024, in both profiles. At distance 3017, all 1,024 rounded weights vanished. This is a reason to widen the entries, not to add keys, change the maximum or increase the logit resolution.

Milestone steps (one PR).

  1. Commit only experiments/<date>-<issue>-sink-exp21/PREREG.md before experiment code or measurement. Pin experiments/20261202-263-sink-denominator/ at 3fd3eb5759e89f0edd30e1d9172918a163e4f894. Register the inputs as run: copy every fixture operand into the registration from runs/post-review-oracle-precision.json (exact arrays or lossless expansion notation), including both F3 row-1 exceptions, masks, order of keys, scores, rows, profiles and coordinates. Register MIX draw order and seeds 26301..26305 and 26311..26315; no new random inputs. Whole-set hash ed62e92322ea5107b70324327531bc7aa072bfb50d47265962d0d39d30c9e58f. Work each hand example before committing its operands and expected values: A1 is 4096/2 = 2048; A2 is (4096+4096-4096)/4 = 1024; A3 ignores the masked key and rounds (3072-1024)/3 to 683. Register prior art, independent observable, stop rules, controls and run count. Do not repair F3.
  2. Use the same Q8 logits, Q12 signed values, valid-key mask and maximum over sink and legal keys. Make T[d]=floor(2^21 exp(-d/256)+1/2), d=0..4096. Keep research: one integer sink denominator rule on synthetic DeepSeek-style and Inkling-style sink profiles (#263) #268's 60/100-digit table agreement and half-distance guard. With sink value zero, accumulate the signed numerator N and positive denominator D, then round N/D once, ties to even. Compare first to the frozen research: one integer sink denominator rule on synthetic DeepSeek-style and Inkling-style sink profiles (#263) #268 baseline (same operands, reproduce its four Q16 misses); keep it separate from the sole candidate.
  3. Why 21: write the bound, not a precision sweep. In units of one table entry each weight error has magnitude at most 1/2; at least one of at most 1,025 terms is the exact maximum. If μ is the real weighted mean, each real value differs from μ by at most 2, and D is at least 2^21. The ratio perturbation is at most 1024/2^21 before the final ≤1/8192 rounding. This sufficient bound clears 1/1024; it does not identify the minimum precision that passes the fixtures. Proof-layout price, not measured proof cost: still 4,097 entries and 13 address bits, but 22 unsigned value bits instead of 17. D ≤ 1025·2^21 needs 32 unsigned bits; |N| ≤ 2^43 needs 45 signed bits to include the positive endpoint. Bound partial sums, remainder, twice-remainder and rounded-quotient products before using them. No claim that these checks already exist in a prover.
  4. Independent observable: the pinned direct, no-table Decimal mean with an additional zero-valued slot, lossless at 50 and 100 digits; match the stored supplement, including its precision-stability check ≤1e-45. Any row mapping, signed rounding or table-construction error can be exposed independently of the bound. Score both profiles, all 86 rows, no exclusions. Require all six profile anchors exact, all errors ≤1/1024, drop-sink and valued-sink controls detected in each profile, stale-sink detected for Inkling (not counted for a constant sink). Preserve row/coordinate order, first miss, max per bank/profile, exact decimals and table/operand hashes. Five fresh processes; equal record hashes test determinism, not replication. Report median, sample SD and min/max across repeats.

Negative result. A valid comparison over the bar, wrong anchor or undetected required control is FAIL; publish the first witness, no second precision. A baseline, hash, width, oracle or harness fault is STOP/no verdict: stop, preserve and report the first receipt. No self-authorized rerun. Any continuation is a separate coordinator decision outside the registration; disclose the fault, authorization, chronology and affected evidence on every results surface, including the ledger, generated summaries and PR.

Out of scope. No weights, GPU, rentals, native kernels, source masking, logit producer, table proof or softmax speed claim. Class B: the new experiment directory, ENV.json, immutable runs and RESULTS.md, plus one row in the results-ledger format on main when the PR opens (today research/results.yaml and its normal renderings). No shared operator or inventory changes.

Estimate. 1.5 hours, hard stop 2 hours including waits; 2 CPU cores, ≤1 GB RAM, ≤25 MB new disk outside the repository. Stop at the 10 GB free-space floor. Zero weight bytes or spend.

Activity

  1. added
    loop:active
    P1
    gate:0
    on Dec 2, 2026
  2. wakesync commented on Dec 2, 2026

    @wakesync
    OwnerAuthor

    Draft PR #279 at e53a20a: PASS on the frozen synthetic set. Q16 reproduced its four BANK-1024 misses first. Q21 had 0/234 misses; maximum absolute error 0.000121884318 vs 0.0009765625, 6/6 exact anchors and 5/5 required controls detected. Five fresh processes agreed. This does not establish minimum precision, native model fidelity or proof cost. The final-head check-runs API showed guard and claims queued; local checks passed.

  3. wakesync commented on Dec 2, 2026

    @wakesync
    OwnerAuthor

    Delivered by PR #279, merged as 034592dbc935bfd4a1dee93bfc3de1406f31c226.

    Outcome: PASS, on the frozen synthetic fixtures of #268. No model was run and no weights were used. The profiles labelled DS and INK are synthetic profiles, not DeepSeek or Inkling attention.

    Not established, as the PR says: that 21 bits is the smallest precision that passes (one scale was tested, with no sweep); a match with either model's logits, masking or attention output; a proof, a lookup argument, or a measured proof cost. The bit widths in the write-up (22 unsigned entry bits instead of 17, 32 for the denominator, 45 signed for the numerator) are layout arithmetic.

    Review: one model family (class B), a different family from the author's: one full review, which reran a process, put the 2^16 table into the 2^21 arm on purpose and saw the four misses come back, and rebuilt both tables and all 234 coordinates with its own arithmetic; it asked for two wording changes so that the title and the ledger summary say synthetic and carry the limits. Then a check of that wording fix and a check after the sync with main. No run file or code file changed after review.

    Closing as a single-deliverable issue.

  4. removed
    loop:active
    on Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1gate:0

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions