Skip to content

Real-head replay, H2 on MTP-4B: transport, drift ratio and self-evidence - #47

Merged
SamMausberg merged 3 commits into
mainfrom
geometry/mtp4b
Sep 30, 2026
Merged

SamMausberg merged 3 commits into
mainfrom
geometry/mtp4b

Conversation

@SamMausberg

@SamMausberg SamMausberg commented Sep 30, 2026 •

Copy link
Copy Markdown
Owner

The MTP-4B half of the H2 replay (#35 decided H2 on DFlash-4B). Native MTP (NEXTN, 4 draft steps, topk 1) was captured on the 320-prompt set with the head-capture patch. The PR adds the transport analysis on the held-out capture now. Alignment, rho, statistics and self-evidence follow when their CPU job gets its shared-lock slot, per the new rule for CPU-heavy work.

Transport on MTP-4B (committed)

evidence/head_geometry/transport_mtp4b.{json,csv}, 16,016 held-out pairs from 160 prompts, analysed on GPU. The pairs split into 9,969 accepted, 2,298 rejected and 3,749 unreached. The families and tilings are the same as for DFlash-4B.

  • Greedy. Every certified family and tiling skips at most 0.65% of the vocabulary on average (p90 0.78%; the row-level variant on k-means 64-row tiles). That matches the static screen with the same geometry.

  • Sampled acceptance. The partition interval spans a median of 146-268 nats, depending on the tiling, so the test stays undecided with probability of at least 0.997 on average.

  • Batch unions. Over the capture's real verify batches (up to 8 requests x 4 draft slots), the union of unresolved tiles needs 99.4-100% of the head.

  • Oracle radii (realized per-tile deviations, a ceiling, not a certificate) would skip 96% of the vocabulary for one pair on k-means 64-row tiles (median 99.9%). Over random groups of 16 pairs, the union needs 62% of the vocabulary with 256-row k-means tiles, and 92% for groups of 64.

  • Drift scaling (a model extrapolation, h_d(s) = h_t - s*Delta), best certified family on k-means 256-row tiles:

    s mean share skipped median share skipped mean E_q P_? at T = 1
    0.1 80% 96% 1.00
    0.03 96% 99.8% 0.97
    0.01 98% 99.9% 0.70
  • Drift ratio from the same pairs. The transport JSON headline gives ||Delta||_2 / ||h_t||_2 a median of 0.95 (p10 0.77). The full rho analysis with its per-row thresholds follows.

The evidence README now has the file row, a per-tiling MTP-4B table and the H2 decision extended to MTP-4B.

Still to come

alignment_mtp4b.json, rho_mtp4b.*, stats_mtp4b.json and selfevidence_mtp4b.*. Their CPU job is queued under gpu_lock.sh -s.

Native MTP (NEXTN, 4 steps): every certified family and tiling skips at most
0.64% of the vocabulary on average (p90 0.76%), the same as the static screen;
the partition interval spans about 146 nats, so sampled acceptance stays
undecided with probability of at least 0.997; real verify-batch unions need
99.4-100% of the head.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-30T21:48:52.116133Z 54c4b63 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: REQUEST CHANGES

Reviewed head 7a59f0d (7 behind main). The MTP-4B transport data are held-out, and most of the PR body's numbers match them. Two things block merge: the committed evidence is undocumented, and two summary numbers are wrong.

Blocking

B1. transport_mtp4b.{json,csv} are committed without a README entry, and the H2 decision still reads "MTP-4B is pending".

  • What is missing. evidence/head_geometry/README.md lists every evidence file with its command and commit, but it has no row for the two new files. The experiments README's command block now shows only the DFlash-4B commands. Nothing committed records how these files were produced (analyze_transport.py --arm mtp4b ... on GPU, commit 54c4b63). The results appear only in the PR body.
  • Fix.
    1. Add the file row: files, what they hold, the exact command, and the commit.
    2. Add a short MTP-4B transport paragraph, or extend the transport table, and update the "Decision so far" bullet with the corrected numbers from B2.
    3. Keep drift scaling labelled a model extrapolation, as the body already does.

B2. Two numbers in the summary do not match the files.

  • "skips at most 0.64% of the vocabulary on average (p90 0.76%)".

    • The largest certified skip is kmeans64|best|transport|rowlevel_rows_skipped: mean 0.651%, p90 0.776%. The tile-level rows_skipped maximum is 0.642% (static screen, p90 0.773%).
    • Fix: "at most 0.65% on average (p90 0.78%)".
  • "The partition interval spans a median of 146-152 nats". Across the tested tilings, the median log(Z+/Z-) at T = 1 for the best family ranges from 146 (contiguous 64) to 268 (contiguous 1,024):

    Tiling contiguous 64 contiguous 256 contiguous 1,024 random 256 k-means 64 k-means 256 k-means 1,024
    Median log(Z+/Z-), nats 146 233 268 255 146 152 162

    Fix: "146-268 nats (146-162 on 64-row and k-means tiles)".

Checked and correct

  • Held-out pairs. transport_mtp4b.json: 16,016 pairs from 160 prompts, with 9,969 accepted, 2,298 rejected and 3,749 unreached. analyze_transport.py (on main) evaluates held-out pairs only and fits its Delta-PCA bases on the analysis split.
  • The other numbers match.
    • The smallest mean P_? is 0.99715 ("at least 0.997").
    • Real verify-batch unions need 99.42-100% of rows.
    • Oracle radii on k-means 64 skip 96.0% (median 99.92%).
    • Random groups of 16 and 64 with k-means 256 oracle radii need 62.0% and 91.9%.
    • Drift scaling at s = 0.1, 0.03 and 0.01 skips means of 80.1%, 96.2% and 97.9% (medians 96.2%, 99.8% and 99.85%), with E_q P_? of 1.00, 0.97 and 0.70.
    • ||Delta||/||h_t|| has median 0.954 and p10 0.767.
  • Codex. It finished with no findings.

When the rest of the MTP-4B files land (alignment, rho, stats, self-evidence), the same scoping as #35 applies: "refuted" limited to the tested families and tilings, this drafter and the held-out prompts, and means and medians reported separately.

Adds the transport_mtp4b file row, a per-tiling MTP-4B table, the largest
certified skip (0.65%, p90 0.78%, row-level on k-means 64-row tiles), the
partition-interval range across tilings (146-268 nats), and extends the H2
decision to MTP-4B.
@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE

This re-review covers head ddc2584, the MTP-4B transport half. B1 and B2 are fixed, and I checked the new README text against transport_mtp4b.{json,csv}.

  • B1.
    • The file table has a transport_mtp4b row with its command. --max-rows 16000 stops at the first capture step past 16,000, hence 16,016 pairs. It names code commit 99b2d3f, an ancestor of this head.
    • A new "Transport certification rates (MTP-4B)" section is added.
    • The H2 decision covers MTP-4B, scoped to the tested families and tilings, the model's own MTP layer and the 160 held-out prompts.
  • B2. "0.65% on average (p90 0.78%)" for the row-level variant on k-means 64-row tiles, and "146-268 nats depending on the tiling", both match.
  • The new table. All 7 rows match: transport and static skip, oracle mean and median, median log(Z+/Z-), and E_q P_? mean and median.
  • The paragraph. It matches the data:
    • accepted and rejected skips of 0.12% and 0.10% on k-means 256;
    • unions needing 99.4-100%;
    • random-group oracle needs of 62% and 92%;
    • rho median 0.95 and p10 0.77;
    • median norms 176 (draft) and 160 (target);
    • drift scaling means of 80% and 96% (medians 96% and 99.8%), labelled a model extrapolation.
  • Hooks. Pre-commit passes.

This approval covers the transport files at ddc2584. The MTP-4B alignment, rho, stats and self-evidence files need their own review when they land.

@SamMausberg
SamMausberg merged commit 9dc3745 into main Sep 30, 2026
SamMausberg added a commit that referenced this pull request Sep 30, 2026
…nel contract

The paper now argues in dependency order: setting and what the stock engine
computes, the five contracts and the R-stock gap and interval theorems, the
certified low-precision head with its measured candidate sets and fallback
shares, sampled decisions, transport and its measured failure, exactness under
speculation, the stack, drafting and repair hypotheses, the serving protocol,
related work, and a discussion that merges the hypothesis and failure tables.
Secondary derivations, untested mechanisms, engine notes, CPU evidence,
reproduction and attribution move to appendices. Evidence paths, pull request
numbers and pending work move to an evidence register and a development record
(Appendix A); the text cites [En] for committed evidence and [pending Dn] for
designed work, with the scientific status in the prose.

Integrates merged evidence: H2 on DFlash-4B (#35) and MTP-4B (#47), the
overlapped roofline (#44), the frontend diagnosis (#46), the fifth contract
witness (#41) and the precision counts after #43. Folds in the Codex items on
#21 (quantiles over all rows), #32 (pooled tau, GSM8K series) and #36.

Typography: Charter text, a plain title block with the repository URL,
greyscale-safe figures, a new mechanism figure (Figure 1) replacing three
overlapping flowcharts, a drift figure and transport table, two-panel
candidate and acceptance figures, and tables reorganized instead of shrunk.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant