Skip to content

Editorial revision: organize the paper around the certified head and the stock-kernel contract - #49

Merged
SamMausberg merged 6 commits into
mainfrom
paper/editorial
Sep 30, 2026
Merged

SamMausberg merged 6 commits into
mainfrom
paper/editorial

Conversation

@SamMausberg

@SamMausberg SamMausberg commented Sep 30, 2026 •

Copy link
Copy Markdown
Owner

This is an editorial revision of paper/, done at Sam's request.

The manuscript is reorganized around the contribution the evidence supports, and it reads as one argument instead of a research log. The abstract is tighter, and research-log narration is replaced by the argument. Every technical claim, assumption, citation, limitation and evidence status is kept; the fidelity checks are listed below. Typography, equations, tables, captions and page breaks are reworked. Figures are redrawn, and new ones are added only where they explain a mechanism or a comparison.

The same PR integrates the evidence that merged while the revision was in progress:

The Codex paper items from #21, #32 and #36 are folded in.

Title

The main title stays The Work a Verifier Needs. The subtitle changes from "Transported summaries, certified low-precision heads and the serving stack of a hybrid model" to "Certified low-precision output heads under a stock-kernel contract, and the serving stack of a hybrid model".

The reason: transport is now measured and fails on both drafters tested, so it should not lead the subtitle. The defensible contribution is the certified head under the R-stock contract. CITATION.cff's title is unchanged, because the main title is unchanged.

The argument

  1. Introduction.
    • The difficulty.
    • What public certified heads leave open, namely exact against what, given a stock kernel that rounds its FP32 accumulation to BF16 and breaks ties by index.
    • Transport's measured failure.
    • Seven contributions, each stated at its evidenced strength.
    • The hypotheses with their kill tests (P2, P3, P4, P6).
    • Figure 1, the mechanism.
  2. Setting. Model, engine and machine; what the stock head, sampler and verifier compute; how the head inputs were captured and aligned. The alignment moves here because both the head and transport sections rely on it.
  3. What "exact" means.
    • The five contracts, as a table that maps each to the results claiming it and their status.
    • The commit rule.
    • R-real, R-bf16, R-stock and S-race, the BF16 separation lemma, the gap theorem, and the enclosure-gap exclusion rule.
    • The assumption behind G_i: Khattak–Mikaitis or conservative, split-K caveat, "tested, not proved".
    • Why R-bf16 is not the contract.
    • The interval (BF16-bucket) form, and the whole-batch and row-wise fallbacks.
    • Why comparisons are made at the same batch shape.
    • What each consumer needs.
  4. The certified low-precision head.
    • Accumulation trees, the envelope and the integer pass.
    • The ladder and candidate bounds.
    • Candidate sets on plain-decode and DFlash-4B states.
    • The share left to the stock kernel, with the batch-growth caveat (36–84% at B = 128 for a whole-batch fallback).
    • The kernel design, with its runtime pending.
    • The certified tail (P1), rejected.
  5. Sampled decisions.
    • The keyed race and the RNG contract.
    • Fixed-noise verification and the adopted contract, with its four properties stated as a list.
    • Why the standard acceptance rule is not certified on the engine path.
    • Adaptive depth.
    • The KL and TV bounds.
  6. Transport, and why it fails on real draft states.
    • The theorems and the crossover.
    • The measured drift: DFlash-4B has median ρ 0.917 and MTP-4B 0.95, against a per-row int8 threshold with median 0.0085.
    • Why the drift is large.
    • The certification table for both drafters.
    • The drift-scaling extrapolation, labelled as a model.
    • A verdict scoped to the drafters, bound families and tilings tested.
  7. Exactness under speculation.
    • The divergence method: a bit-exact tap of module outputs, with the cache check pending, and State safety: differential harness and tensor-level divergence mechanisms #37's three-way classification.
    • The State safety: differential harness and tensor-level divergence mechanisms #37 results, led by the model-independent findings: the tie rule and the head GEMM cause none of the divergences, and the first differing module output is layer 0's GDN recurrence for plain versus MTP, and a gated RMSNorm, FlashInfer decode attention or a batched-prefill GEMM for batch 1 versus 32.
    • New Table 8: the rounding, order and ambiguous split under the conservative and Hopper models.
    • New Figure 4: the first differing outputs by layer.
    • The noise floor (3.42 divergences per 1,000 tokens), the H5 tests (pending), and the GDN replay proposition.
  8. Where the time goes, and the rest of the stack.
    • The rate equation and bytes per step.
    • Ceilings under both execution models.
    • Measured attribution (pending).
    • Speculation and the recurrent state, now explaining why the per-draft-position FP32 snapshots cost more per output token as the batch grows, while the weight saving shrinks as 1/B. The bench measurement of MTP against plain decoding across concurrency is pending (D35), since it is not yet in a PR.
    • The minimal-state proposition, with P4 and P5.
    • The levers, what did not work, interactions, and the two stacks.
  9. Drafting and long-window repair. DFlash-4B acceptance, with τ pooled over cycles and the model card's per-request mean named τ̄_req; P6; P2 and P3.
  10. Serving protocol and frontiers. The frontiers are a clearly marked pending figure.
  11. Related work and the novelty boundary. Moved after the technical body. The introduction still states the prior art where the distinction first matters.
  12. Discussion.
    • What the evidence supports.
    • What did not work.
    • One falsification table, which merges the hypothesis table with the failure-criteria table.
    • Scope and conclusion.

The appendices are:

  • A. Evidence register (E1–E31), development record (D1–D37, with the open PRs), claim ledger, and corrections to the earlier revision.
  • B. Secondary derivations: directional margin, computed norms and outward rounding, top-k plus tail summary, common mass and bounded range, guards and residual races, demand frontier, synthetic experiment.
  • C, D. Untested mechanisms, and small mathematical extensions.
  • E–H. Engine notes, CPU evidence and formal status, reproduction (now with the repository URL), and attribution.

Evidence discipline

  • Committed evidence. The main text cites committed evidence as [En]. Every path in the register exists on main (checked by script).
  • Pending work. It is marked [pending Dn]. The development record names the evidence file each item will produce and any open PR. PR numbers appear only there.
  • What the text does not use. There is no \underreview, no ~/vp-coord path and no % CITE.
  • Citations and labels. All 129 citation keys of the previous text are still cited. The only labels removed are those of the four figures that were merged or dropped.
  • Numbers. A script compared every number in the old and new sources. The only differences are layout values and the corrections listed below.

Figures

  • Figure 1 (new, TikZ, schematic). The certified head as a mechanism: level-0 intervals, the max lo − δmax threshold, BF16 buckets of the re-scored rows, and the certified-versus-stock-kernel decision as a conditional graph node. It replaces three overlapping flowcharts (the old Figure 1, Figure 2 and the kernel-path figure).
  • Figure 2 (redrawn, two panels). The analytic race bound next to the measured CCDF of candidate rows, adding the race T = 1 series. Series are distinguished by line style as well as colour.
  • Figure 4 (new, TikZ, counts from evidence/state_safety/mechanism_*.json). Where equivalent stock configurations first produce different module outputs, by decoder layer.
  • Figure 3 (new, PGFPlots, rho_dflash4b_quantiles.csv). The drift ratio against the per-row thresholds on a log axis. This is the "why transport fails" figure.
  • Figure 4 (restyled). Derived bytes per step, with fills that stay distinct in greyscale.
  • Figure 5 (improved).
    • It filters stacks by the stack column instead of row indices.
    • It adds the overlapped roofline for two stacks.
    • The legend sits below the plot.
  • Figure 6 (redrawn, two panels, acceptance_by_position.csv).
  • Figure 7 (pending). The latency–throughput frontiers, a clearly marked placeholder.
  • Figure 8. The synthetic drift figure, moved with the guards to Appendix B, with a larger legend.
  • Dropped. The union-model figure plotted one formula; the formula and its number stay in the text.
  • Not drawn yet. The layer-by-layer divergence figure waits for State safety: differential harness and tensor-level divergence mechanisms #37. The profile breakdown, head-path time and Jacobi figures wait for their evidence; their data files are listed in the development record.

Contradictions and errors found

Changes after the first review

Unresolved, and left visible in the paper

Validation

  • latexmk -pdf from a clean build: 94 pages, no LaTeX or BibTeX warnings, and no overfull or underfull boxes.
  • I looked at every page as a two-page spread at 70 dpi, and at the figures at 130–150 dpi.
  • The README passes pre-commit; the hooks exclude paper/.

@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-30T22:52:14.492931Z 5f1f2d8 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.

…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.
The README pointed at Appendix F and Section 2.8 of the old structure and said
the measured drift was pending. It now names Appendix A (register, development
record, ledger) and Section 11.8, reports the H2 result on both drafters, and
counts 21 precision test methods.
…he frontier as an envelope

The weight saving of a verify pass is shared by the batch and falls per output
token as 1/B; the per-draft-position FP32 snapshots are per request and do not,
so speculation's advantage can turn into a loss at high concurrency on this
hybrid model. The served measurement is a new pending item (D35).
@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: REQUEST CHANGES

Reviewed head 5f1f2d8 (20 behind main; a trial merge into main is clean). The reorganization keeps the substance:

  • all 129 citation keys are kept;
  • the only labels removed are the four merged or dropped figures, and there are no dangling references;
  • every path in the evidence register exists on main, and every \ev{} key resolves;
  • the clean build gives 90 pages with no LaTeX or BibTeX warnings.

The three Codex paper items are closed. Two passages, however, describe work under review more strongly than its evidence allows.

Blocking

B1. The divergence method overstates what the tap shows and omits the ambiguous class (paper/sections/speculation.tex, "Locating the first difference").

  • "before that point every tensor, and therefore every cached attention and recurrent state, agrees". The tap hashes module outputs, not cache buffers. Equal module outputs do not imply equal caches: a rolled-back verify state, a radix repoint or a batch-dependent cache write can differ without changing any output until a later read. This was Codex's P1 on State safety: differential harness and tensor-level divergence mechanisms #37. State safety: differential harness and tensor-level divergence mechanisms #37 now scopes its results to the first differing module output and adds cache hashing, whose rerun is pending.
  • The classification is described as a two-way test, rounding flip or order flip by the FP64 order. State safety: differential harness and tensor-level divergence mechanisms #37's approved method decides the accumulator order from the BF16 logits where they differ, or from an FP64 gap larger than gamma (A_a + A_b) under a named model. Otherwise the case is accumulator ambiguous. Under the conservative model that is most divergences.
  • Fix.
    1. Say "the first position and module whose output bits differ; before it every hashed module output agrees", and say that cache state is checked separately and is pending.
    2. Describe the three-way classification with its two named models.

B2. The implementation description states unevidenced facts about the kernel under review (paper/sections/head.tex, "The approximate pass" and "Arithmetic by batch size"). The section says "the design below is what it implements", so it has to match #45 or be marked pending.

Checked and correct

Codex. I could not read Codex comments on this PR while GitHub auth is down. I will check them when it returns, and any good unaddressed advice will be added as blocking.

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: REQUEST CHANGES

Addendum: GitHub access is back. Codex's review of this PR finished with no findings (👍, no inline comments), so B1 and B2 above are the only blocking items.

B1: the divergence method no longer says that cached state agrees before the
first differing module output; the tap hashes module outputs, and the cache
check is pending (D14). The classification is #37's three-way one: tie rule,
head GEMM, then rounding flip, order flip or accumulator-ambiguous under the
conservative and the Hopper error models. Section 7.1 now reports #37's
findings, led by the model-independent ones (the tie rule and the head GEMM
cause none of the divergences; the first differing module outputs per pair),
with a new Table 8 giving the split per named model and a new Figure 4 placing
the first differing outputs by layer. The sampling and discussion text, the
contribution list, the register (E20-E22) and the ledger follow.

B2: the kernel section describes the design and says that no performance
statement rests on the implementation under review; the code conversion and
the bandwidth- versus issue-bound claims are removed or marked pending (D11).
The integer-pass theorem now holds for any activation scale with gamma_3
(gamma_2 for a power of two), and says that an implementation must bound the
residual of the codes it produced.
@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE

This re-review covers head 3d20d19. The rebase onto main after #37 kept the first five commits unchanged (git range-diff shows them as =). The new commit fixes B1 and B2 and folds in #37's merged evidence. I checked every new number against the committed files.

  • B1.
    • The method now says "Before that point every hashed module output agrees", says that caches are not module outputs, and marks the cache check pending.
    • The classification is State safety: differential harness and tensor-level divergence mechanisms #37's: tie rule, then head GEMM, then rounding flip, order flip or ambiguous, from the accumulator order under two named models, with the gamma(A_a + A_b) bound defined.
  • The State safety: differential harness and tensor-level divergence mechanisms #37 results.
    • Table 8 (29/7/93 and 89/16/24; 3/15/22 and 14/17/9), zero tie-rule and head-GEMM divergences, and 129/167 and 40/40 diverged all match mechanism_*.json.
    • Figure 4's per-layer counts match summary.first_difference_module: 13 gated-norm layers summing to 29, attention at layer 3 (6), and prefill down_proj at layer 0 (5).
    • The noise-floor sentences match noise_floor.{csv,json}: 167/320, 3.42 per 1,000, 0.375 nats, 151 ties and 14 one-step, 11.3 and 22.2 per 1,000, 2/8, and 28/96 at 1.55.
    • The controls (4/4 each) match.
    • The claim ledger splits the committed findings from the pending cache check and H5.
  • B2.
    • The byte-permutation claim is gone.
    • The bandwidth and issue-bound remark is hedged and marked \pend{kernel-micro}.
    • The section says no performance statement rests on the implementation under review.
    • Theorem 4.3 now holds for any s_h > 0, with e_h defined as the exact residual: gamma_3 in general, gamma_2 when s_h is a power of two. The proof is correct: three roundings of the product chain, then Cauchy-Schwarz on I_i and <q_i, e_h>. The added note that an implementation must bound ||e_h|| for the codes it actually produced is right.
  • Build and references.
    • A clean build gives 94 pages with 0 warnings and no overfull or underfull boxes.
    • All 62 register paths exist on main, and every \ev{} and \pend{} key resolves.
    • The rebased branch is 0 behind main.
  • Codex. It has no inline comments on this PR.

One suggestion, not blocking: Figure 4's counts are typed into the TikZ source from the JSON. They are correct now, but reading them from a committed CSV, as the other data figures do, would keep them tied to the evidence if the analysis is rerun.

@SamMausberg
SamMausberg merged commit 251bf42 into main Sep 30, 2026
SamMausberg added a commit that referenced this pull request Oct 1, 2026
…eded-rank items

Bounded-range sampling is the paper's Proposition "Bounded logit error"
(app_sampling.tex), so the theory item is done (PR #21, #49, #53; Codex and
the integrator's review). New active items from the integrator: round the
Hopper accumulation constant up to cover its derived value and rerun what used
it, and state that seeded top-k/top-p at the pin keys noise by sorted rank. M1
and P4 record #123's explanation of the 127-request plateau as the status of
an open PR.
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