Skip to content

lane: Inkling layer 0: what carries the output error when all eight expert choices agree? #280

Done

Description

@wakesync

Question. On the four frozen prompts where every top-eight set agrees but the token median misses 0.01, does the expert input cell account for at least half the signed output error by the attribution rule below? If not, report which stages do, or that there is no common stage. One diagnostic, not another router candidate.

Why it is on the shortest path. In PR #267 (experiments/20261202-262-inkling-router-input/RESULTS.md at b06013c49d70e4842a6c56cc101422f4623b1a7b), wider router input left the expert input at six fractional bits. The four misses are p02-ordinary-paragraph (109 tokens), h02 (17), h07 (16) and h08 (9). The historical pooled error with float routing does not answer what happened on these prompts. This tests Inkling rows I5 (soft-capped expert activation) and E (weight after down projection); I7, the native activation quantizer, is not our reference. The method follows #201 in using diagnostic substitutions, not in assuming its Qwen result transfers.

Milestone steps (one PR).

  1. Commit only experiments/<date>-<issue>-inkling-agreeing-expert-error/PREREG.md before experiment code, opening weight bytes or measuring. Register both complete frozen sets in original order, all token IDs or lossless references to immutable ID manifests, both old trees and the exact research: test two extra fractional bits at the Inkling router input #267 head above. State every fixture operand, score order (corrected score descending, lowest ID for ties, sorted IDs for membership, unbiased score for weighting), seed (none), expected value and comparison order; work through each hand example before committing it. Pin every derived real operand by its source, range, digest and deterministic rule, never by publishing real weights.
  2. Reproduce the unchanged research: test two extra fractional bits at the Inkling router input #267 candidate and decoded-weight float64 reference on both complete sets, original then held-out. Require its recorded output, reference, choice and weight hashes and 26/2426 and 2/199 differing sets; check the four named prompts have zero flips and miss their median bar. Keep research: test two extra fractional bits at the Inkling router input #267's corrections and outside-registration continuation visible when citing its result. No reselection after inspection. Freeze matching expert IDs by token and always join weights by ID, never by rank. Keep float reference and integer baseline read-only; baseline mismatch means STOP, not a result on attribution.
  3. On every position of the four named prompts construct this one ordered decomposition. All vectors are in real output units, before convolution or residual. Each step retains earlier substitutions:
    • Y0: original research: test two extra fractional bits at the Inkling router input #267 rounded output. Y1: weight the same dequantized integer expert outputs by the reference's float weights and sum in expert-ID order, with no final integer rounding (weighting stage).
    • Y2: keep the integer activation product, dequantized by 2^(9+7), but use the decoded float down matrix and no down-output rounding (down arithmetic).
    • Y3: use the continuous 4*tanh(g/4)*sigmoid(g) and 25*tanh(u/25) evaluated at the same pre-key rounded projections gw/256, uw/256, with no new rounding (activation tables and key handling).
    • Y4: recompute both projections with the decoded gate/up matrices and original float gain, on the same dequantized expert input m/64 (projection, gain folding, weight and shift rounding). Y5: change only m/64 to original float input U, keeping reference parenthesization (U*gain) @ W.T. Y5 is checked against the untouched historical float output. Y4 to Y5 isolates the expert input cell, not the router input or the table.
  4. For a token let r=Y0-Yref; for step j use a_j = dot(Y[j-1]-Y[j],r)/dot(r,r). This is a signed projection, not a partition of squared norms: shares may be negative or exceed one. For nonzero r check Y5 against Yref (relative L2 ≤1e-12 using scale max(1,||Yref||)) and |sum(a)-1|≤1e-8; define all five shares as zero for exact zero error, retain the token and report the count. Test the arithmetic on the ordered scalar path [4,3,5,3,2,0], reference 0: contributions [1,-2,2,1,2]/4, including cancellation. A sign reversal of the second contribution must fail closure. Use Y0 and Yref to reproduce the original per-token ratios (0/0 = 0, nonzero/0 = infinity), and retain per-prompt median and maximum. Publish all five median shares per prompt, and the sum of steps 2 and 4 per token before its median as a combined expert-matrix diagnostic. Do not pool the prompts or imply medians sum to one.
  5. The independent observable is the frozen pre-convolution reference and the registered research: test two extra fractional bits at the Inkling router input #267 measurements, not reconstruction alone. Hypothesis HOLDS only if the median Y4-to-Y5 share is ≥0.5 in each of the four prompts on five fresh deterministic runs. Otherwise report DOES NOT HOLD and first missing prompt; label any other stage meeting the same bar on all four, or report mixed/no common attribution. Report exact denominators, hashes and median/SD/min/max over runs, not five independent samples. This is path-dependent attribution, not an order-free causal fraction or a passing repair.

Inputs and estimate. Class B, 2.5 hours, hard stop 3 hours including waits; ≤6 cores, ≤6 GB total RAM (stream one expert at a time), ≤50 MB new disk outside the repo. Use existing read-only slices of model-00001-of-00001.safetensors from thinkingmachines/Inkling-2-Mini@ed40e7da625f594fc9c4990f5f66be24873c22d7. Validate headers, 28 tensors, original embedding rows and tokenizer against experiments/20261121-228-inkling-layer0-fidelity/runs/{manifest-tensors.json,embed_rows.json,requests.jsonl}, its ENV and experiments/20261202-254-inkling-router-repair/runs/{original-inputs-b.json,heldout-inputs-b.json}. The logical input is 656,021,822 bytes, not a new allocation: stream/hash in place, reference originals, never duplicate the 655,588,670-byte base. If the base is absent, STOP. Only the 94 supplemental BF16 embedding rows may be fetched if missing: at most 433,152 bytes via exact pinned HTTP 206 ranges and committed digests. Delete new bytes and private views at exit, never delete shared cache; log counts and hashes, not weights. Stop at 10 GB free disk. No external model code, GPU or spend.

Negative result and stop. A valid median below 0.5 is a publishable negative; do not move the bar. On missing input, baseline mismatch, nonfinite value, closure, resource or harness fault: stop, preserve and report the first receipt, no verdict and no self-retry. Any continuation requires a separate coordinator decision outside the registration, with fault, authorization, chronology and affected evidence disclosed on every results surface including PR, ledger and renderings.

Out of scope. No new selection or weighting relation, alternate precision, model repair, other layer, native-runtime fidelity, proof or wider port. Touch only the new experiment directory (ENV.json, immutable runs, RESULTS.md) and one results row in the format on main when the PR opens (today research/results.yaml plus normal renderings). No inventory or operator changes.

Activity

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

    @wakesync
    OwnerAuthor

    Draft PR #282, head d4d843f48a85e4423ff15af35155c66858164baa. HOLDS on the four frozen Inkling layer-0 prompts only: the expert-input step's median signed shares were 0.7291 (p02, 109 positions), 0.7391 (h02, 17), 0.7454 (h07, 16), and 0.7501 (h08, 9); bar 0.5 on each, five identical runs. No other individual step met that bar on all four. Baseline hashes reproduced; #267's coordinator authorised its continuation after its fixture stop outside its registration, which had no resumption rule. No stop, retry or amendment here. A fixed-order signed projection can be negative or exceed one: not a causal fraction, a repair, or independent replication. Local checks passed; the single final-head CI read showed no check runs yet.

  3. wakesync commented on Dec 3, 2026

    @wakesync
    OwnerAuthor

    Delivered by PR #282, merged as 635638d459e9072f70bc0dfbd524a6cb83f529a1.

    Outcome: the registered hypothesis HOLDS, on four frozen prompts at Inkling layer 0, along one fixed order of substitutions.

    • The four prompts (p02-ordinary-paragraph, h02, h07, h08; 109, 17, 16 and 9 positions) are the ones in research: test two extra fractional bits at the Inkling router input #267's record that miss the 0.01 token-error median while every top-eight expert set already agrees with the float reference. They follow from that committed record; none was dropped or added.
    • Walking five steps from the integer output to the float reference (weighting, down matrix, activation table, projection, expert input), the last step, replacing the six-fractional-bit expert input by its float precursor, has a median signed share of 0.7291, 0.7391, 0.7454 and 0.7501. The bar was 0.5 on each prompt.
    • The other steps: activation table about 0.12 to 0.14, projection about 0.11 to 0.12, weighting and the down matrix about 0.01 or less.
    • The baseline of research: test two extra fractional bits at the Inkling router input #267 was reproduced first (every recorded hash, 26 of 2,426 and 2 of 199 differing sets). Five runs agreed.

    What this does not show, as the PR says: the share is a signed projection of one step onto the error along one chosen order. It can be negative or exceed one, and it is not an order-free fraction of the error. Nothing was repaired, and no size of improvement from widening the input is established. One layer, four prompts, no native-runtime reference, unreplicated.

    It builds on #267, whose run continued after its own fixture stop on the coordinator's authority, outside that registration, which had no rule for resuming. This experiment had no stop, amendment or retry.

    Review: one model family (class B), a different family from the author's: one full review with no must-fix, which reran the input check, the baseline, the fixture and one path run and found them equal to the committed receipts, disabled the last step on purpose and saw the endpoint check stop the run, and reproduced the four medians with its own script. Its own note, a reviewer figure in PR comment 7358483583 and not a committed one: on these prompts the share is a length times an alignment (median length ratio 0.85 to 0.87, median cosine about 0.86). Then 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 3, 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