Skip to content

Paper: editorial pass for clarity, concision and figures - #161

Merged
SamMausberg merged 92 commits into
mainfrom
paper/editorial-pass
Oct 2, 2026
Merged

SamMausberg merged 92 commits into
mainfrom
paper/editorial-pass

Conversation

@SamMausberg

@SamMausberg SamMausberg commented Oct 1, 2026 •

Copy link
Copy Markdown
Owner

Draft. This is the integration branch for the editorial pass Sam asked for: organize the main text around its argument, explain the method before its formal machinery, cut repetition and secondary detail, move peripheral investigations into separate research notes, and redraw the figures. Three branches feed it, each merged with --no-ff at a milestone: the main text (this branch), the appendices and research notes (paper/editorial-appendix), and the figures (paper/editorial-figures).

The base is origin/main 4c1ff96 with #160 (2f7c528) and #158 (30a762c); both have since landed on main unchanged, and main is merged in.

What changes in the main text

Structure. The old Section 4 mixed the method's theory with its measurements, and the setup sat before the method. Now:

  1. Introduction: what a verifier uses from the head; the method as four plain operations (approximate the scores from an int8 copy, bound their errors, recompute the few entries that could still win, fall back to the stock head); why the reference must be the engine's own kernel, with a marked hypothetical BF16 tie; transport in one paragraph; shorter contributions.
  2. What the Engine Computes and What a Certificate Must Match: the stock head, the four references, the gap condition and the interval form. This section is now the one place that explains the error models and the fallback.
  3. The Certified Head (method): the error bound, the refinement as five numbered steps, sampled decisions, the kernel and its checks.
  4. Measurements on the Engine's States: setup, candidates, fallback and agreement, and the head-only runtime with its committed cause (kernel-micro).
  5. Transport and Why It Fails.
  6. Related Work. 7. Limitations. 8. Conclusion.

Terms. A row of W is a vocabulary entry; one head input with its decision is a position; M is positions per head call. "Self-evidence" and "Level 0" are gone from the main text, and "row-wise fallback" is now the per-position fallback. terminology.tex defines each term once.

Moved out of the main text (each to an appendix that already held it or now hosts it; cuts.md lists them all):

  • Table 1, the numerical assumptions, becomes a one-column summary. The full table is in Appendix A (tab:assumptions-full).
  • Table 2, transport by tiling, becomes a two-drafter summary. The full table is in Appendix C (tab:transport-full).
  • Lemma lem:tree and the tensor-core adder model go to Appendix A.3.
  • The TMA fault's version pattern (RAW hazard with pipelined wgmma and LHS in register triton-lang/triton#9433) goes to Appendix A.9.
  • Section 2.5's pinned-pool repeats and cache checks go to Appendix D.4.
  • The tightening experiments go to Appendix A.8, and the dataset list to Appendix C.5.
  • Figure 5 (the stock serving frontier) and its detail go to Appendix E. Section 7 keeps two sentences.

Added. Section 2.5 gets one scoped clause from #162: on the onset-conditioned measure, no excess of speculation over the stock floors is detected (state-perturb). Section 2.3 now states the per-position fallback's condition from the kernel README: a near tie among a complete candidate list. The preprint notice prints the build date.

Appendices and research notes

Peripheral investigations and the research-programme material move verbatim to a companion document, paper/notes/research_notes.tex, built to research_notes.pdf. That covers the certified decoder tail (P1), the serving stack and its ceilings, the drafting and repair hypotheses, and the status table, with their register entries. The paper keeps the 52 register entries it cites. scripts/check_paper_references.py checks both documents.

Figures

There is one palette, and each colour has one meaning: ink is the stock engine, blue the certified head, vermilion the fallback, purple the drafters, grey context. Measured values carry markers and derived curves are plain lines. Figures 2 and 3 are redrawn: Figure 2 shows the five operations and both fallbacks, and Figure 3 uses M throughout and shades the batches above the capture's 16. Values that were typed from JSON now come from a committed CSV.

Checks

  • Build at the head: paper 48 pages, research notes 52 pages, 0 LaTeX warnings and 0 overfull boxes in each. The main text ends on page 10. check_paper_references.py is clean for both documents, and codespell is clean on the main-text files.

  • Main text, measured the same way before (the base, before any edit) and now:

    Measure Before Now
    Words, pdftotext -layout from the title to the line before the References line (PROCESS's method, fresh builds) 9,340 9,037 (-3.2%)
    Words in the main-text .tex files, comments stripped 7,645 7,589 (-0.7%)
    Numbers in the main-text .tex files 561 340 (-39%)

    At the head the References heading starts in p10's right column, so PROCESS's method also drops the words of p10's left column below that line (43 at ea33050). Counting column by column, the reviewer gets 9,410 -> 9,123 (-3.0%) at ea33050. The base figure 9,340 is the same in both of our measurements; the 9,270 given earlier was a reading-order count (pdftotext without -layout), a different method.

    A numbers audit first brought the main text to 7,038 words (-7.9%). It moved secondary percentiles, second populations, per-variant values and restatements to the appendix entries that hold them. The first cold read and Certified LM head in SGLang: greedy decode, verify, drafting and fixed-noise sampled verify #52's in-engine evidence then added back what a newcomer needs:

    • the verification-position results and their limit;
    • the split of head time between target and drafter;
    • the derived bound on the saving;
    • the contrast with prior certified heads;
    • the definitions the reader could not resolve.

    At the third cold read the main-text .tex stood at 7,127 words (-6.8%). The fourth cold read added 418 words, nearly all definitions and scoping: which source and decision rule produced each result (a new column in Table 2), what can vary with the batch shape and why M stays fixed, who implemented fixed-noise verification and what the seeded replay compares against, which engine runs compared whole outputs, and where the drift is defined.

  • Every number cut from the main text appears in the appendices or the research notes (numdiff.py: 0 numbers found nowhere).

  • Certified LM head in SGLang: greedy decode, verify, drafting and fixed-noise sampled verify #52 (merged) is folded in. A 64-prompt check inside SGLang, under the conservative model, found no certified token that differed from the stock head. For DFlash-4B verification, the whole-batch fallback ran in 90% of verify head calls. The check was untimed (kernel-engine).

Four cold reads and the reviewer's fidelity review at ea33050 have been folded in (logged in the editorial cut log). The fidelity fixes add the 64-entry cap to the per-position fallback's condition, compare the kernel replay's fallback at M = 128 with independence at its own rates (30% and 85%, derived), scope FR-Spec's 49% to Llama-3-8B, and give the derived batch-1 saving as about 3.4-3.5%. One change outside paper/: the HiRE entry's first author is brace-protected as {Yashas Samaga B L} in sources/references_full.bib as well as paper/references.bib, since the checker requires the two entries to be identical; the reference list showed "L et al." before. The PR changes sources only; paper/paper.pdf is rebuilt on main after merge.

… kernel trace

Test 1 gains the same-session control of the three verify variants and the
kernel trace that puts 72% of the B = 256 FlashInfer verify phase in the GDN
verify kernel. P9 gains the measured remainder verify at widths 2 to 16, the
reuse program's time, and the oracle at concurrency 8 and 16, all as upper
bounds. The repair-verifier and repair-p9-program items are narrowed to what
remains.
…che strategy, checkpoint reuse

MTP with three steps under the prefix cache off, the overlap scheduler off,
deterministic inference and the FP32 head with pinned pools; the first output
token changed by either switch in 192 of 193 prompts longer than 64 tokens; the
prefix-cache-off history control for MTP; checkpoint reuse; and the pinned
radix-off MTP run bitwise equal to the bench's unpinned one. The plain-decoding
switch pairs stay pending.
Name the trace's sample, say which kernel takes the derived 6.8 ms, state that
the concurrency 8 and 16 oracle charges the padded verify, and scope the
per-request-growth bound to the concavity condition.
The paper's appendices kept every investigation of the programme, so they ran to
65 pages that a reader assessing the paper's claims does not need. Units that
support no main-text claim now live in paper/notes/research_notes.tex, a
one-column document built from paper/ after the paper
(latexmk -pdf notes/research_notes.tex):

- all of Appendix F (drafting and repair, with the P9-costs fold), moved by git mv;
- the stack material of Appendix E (yardstick, ranked costs, ceilings, speculation
  and the recurrent state, P4, P5, levers, the two stacks, the sensitivity workload);
- Appendix D.5 (recurrent state under speculation, H5, with checkpoint reuse);
- the directional margin and the P1 decoder tail, tab:tests, the common-mass,
  approximate-mode, demand-frontier and synthetic sections, the top-k summary and
  the pending work model;
- the status table of the questions and proposals, intact.

Moved text is verbatim except cross-references: the notes point into the paper
through xr-hyper (\paperref, "of the paper"), and the paper names the notes in
words, so it still builds on its own. The retained-tail bound eq:tail stays in
the paper, in C.8 where it is used. The three inline appendix figures move
unchanged into figures/{synthetic,ceilings,acceptance}.tex.

Each document now has its own evidence register and pending list (the paper
keeps the 52 entries and 8 pending items it cites, the notes the 58 and 25 they
cite; 27 entries appear in both with identical files), sharing their macros in
sections/app_register_macros.tex. check_paper_references.py checks both
documents: citations against references.bib, register paths at a revision,
markers without entries, entries their document does not cite, and shared
entries that differ. Terms used only by moved sections move from the app scope
of terminology.tex to the notes' glossary.

Paper: 51 pages (was 84); the only warnings are the two references from
discussion.tex to the moved sec:tail and app:drafting, which the editor replaces
when merging this. Notes: 41 pages, 0 warnings. Checker clean.
…tnote

The appendix-editor's M1 moved the certified decoder tail, the serving stack
and the drafting and repair appendices to paper/notes/; the paper no longer
references them by label.
The editor shortens Table 1, Table 2, Section 3's accumulation lemma, the kernel
checks, Section 2.5 and Figure 5 in the main text; their full versions land here
in the same milestone as those cuts:

- A.1: the full numerical-assumptions table, verbatim, as tab:assumptions-full;
- A.3: the statement of Lemma lem:tree before its proof, the sentence on what the
  tree's shape distinguishes, and that the conservative model covers the Hopper
  model's gamma about sixfold;
- A.8: the outlier-column, PCA and centring results (selfevidence-csv, stats) and
  the gather-size sentence that #160 dropped, traced to selfevidence_plain4b.json's
  batch unions (9.45 and 12.51 entries on steps with 5-8 and 9-16 positions);
- A.9 (new, app:kernel-checks): the per-variant self-test, runtime probes and
  tests, the measured int8 TMA violation and the seven-build version pattern that
  matches triton-lang/triton#9433 (kernel-impl, kernel-tma, triton-tma);
- C.5: the capture prompts' datasets and domains from prompt_manifest.csv;
- C.7: the full transport table, verbatim, as tab:transport-full;
- E.8: Figure fig:frontier with its detail (four of nine arms, 3.45x per-request
  rate, 0.98x and 0.86x, run-to-run variation), and the divergence-given-
  perturbation result of #162 with its intervals and exceptions, cited through
  a new register entry state-perturb.

The app-scope glossary terms "Capture and replay", "Certified row" and
"Enclosure" go: the main-text block now defines them.

Built alone, the branch shows lem:tree and fig:frontier defined twice; the
editor's cuts remove the main-text copies in the same push. Checker clean.
The main text now explains the method in plain operations before its
machinery, and separates method from measurement:

- Introduction: what a verifier uses from the head, the method as four
  operations (approximate, bound, refine, fall back), why the reference must
  be the engine's own kernel (with a marked hypothetical BF16 tie), transport
  in one paragraph, and shorter contributions.
- Section 2 defines vocabulary entry, position and batch shape, keeps the
  references, the gap condition and the interval form, and is the one place
  that explains the error models and the fallback. Table 1 is a short
  one-column table; the full table is Appendix A (tab:assumptions-full).
  Section 2.5 keeps the headline divergences and the scoped perturbation
  result (#162); the rest is in Appendix D.
- Section 3 is the method: the error bound (Lemma tree now stated in
  Appendix A), the refinement as five steps, sampled decisions, the kernel
  and its checks (TMA detail in Appendix A.9).
- Section 4 is the measurement: setup, candidates, fallback and agreement,
  and the head-only runtime with its committed cause (kernel-micro).
- Section 5 keeps the transport argument; Table 2 is a two-drafter summary
  (full table in Appendix C) and Figure 4 is placed at the section start.
- Section 7 consolidates the limitations; the stock serving frontier keeps
  two sentences and its figure moves to Appendix E.

"Row" now means a row of W only in mathematics; prose says vocabulary entry
for rows of W and position for head inputs.
Every figure now takes its colours from style.tex, where each hue has one
meaning: ink the stock engine and its baseline, blue the certified head and
its int8 copy, vermilion the fallback and open decisions, purple drafters and
drift, grey context and alternatives. Series that carry no paper-wide meaning
use ink and greys with distinct markers. The two error models are always a
solid/circle (Hopper) and dashed/square (conservative) pair. Measured values
carry markers, derived curves are plain lines, schematics say so in the panel
title. Green and the filled "good"/"warn" boxes are retired.

Figure 2 (mechanism) follows the method's operations: (a) approximate and
bound every vocabulary entry and drop those that cannot win, (b) recompute the
candidates, widen them by the error model and round to BF16, with the three
outcomes written under each case, (c) the whole-batch and per-position
fallbacks drawn as which positions of one head call the stock head recomputes.
The filled decision boxes and the unsourced branch line are gone.

Figure 3 (candidates) uses the editorial term map: vocabulary entries for rows
of the head, positions for head inputs, M for positions per head call in both
(b) and (c). (b) shades and names the region above M = 16, where batches are
consecutive capture rows rather than engine batches; (c) shades it too and
adds p10-p90 whiskers to the measured time; FP8 and int4 are grey alternatives
labelled on their lines.

Figures 1, 4, 5 and the divergence figure are restyled to the palette.
Figure 5 sizes itself from the line width (capped at 10.5 cm), so it keeps its
shape in the appendix's single column. Figure 4b's drift markers are thinned.

The values that Figures 3b and 4a used to type from JSON evidence are now
read from paper/figures/data/json_values.csv, written and checked by
paper/figures/data/make_figure_data.py (command in the README there). No
plotted number changes.
…ved A/B (#163)

The host-gap paragraph, the levers-table row, the H6 status row, the hostgap
register entry and the hostgap-served pending item now carry #163's results for
the tuned MTP arm: all five patches validated and token-identical, the held cycle
5.9-8.8% shorter, and served per-request rate 1.067-1.101x in interleaved pairs at
concurrency 1-32 (one session). DFlash with FlashInfer draft attention stays
pending. Text from the host-gap agent, checked against evidence/hostgap/README.md.
Point Section 2.5's perturbation result at Appendix E, where the full analysis
now lives, shorten the contributions' third item (its numbers are in the
abstract and Section 4), and remove sentences that only announced structure.
Table 2 overran the column into the gutter at print size; the pair counts move
to the caption and the row labels shorten. Table 1's rows get a little space
between them so that each assumption reads as one unit.
The three figures the appendix editor moved to the research notes take the
palette's rule for series with no paper-wide meaning: ink and greys, told
apart by marker and dash pattern. The drafter's pooled acceptance line stays
purple. In the ceilings plot the derived ceilings are lines without markers
(ink layer-serial, grey overlapped, one dash pattern per lever stack) and the
single served runs are filled markers. The synthetic plot gets a title naming
its status and a y label that fits its axis.

No figure uses teal, ochre, brick, vpgreen or the green and amber washes any
more, so style.tex drops them; shaded regions use the neutral wash. The
divergence figure's tick labels get a strut so that "16" sits on the same
baseline as the others.
The abstract, contribution 4 and the conclusion now say transport failed for
the two public drafters under every bound family and tiling tested, as Section
7 does; Section 4.3 names the model beside each derived batch share.
…back wording, H3 row)

D.4 opens with its link to the same-shape rule and splits into D.4-D.7 (method; where the
outputs first differ; how often; consequences), with the tap, cache-hashing tap, tap checks
and the two pairs' findings as separate paragraphs. Appendix headings no longer sit at a page
foot (\appneedspace), and paragraph spacing stretches a little so flush-bottom pages fill.
The fallback glossary row names the evidence's 'column fallback' once; E15 drops it. A.10
and the lean entry point at notes Section 5.8 plainly. Notes: the H3 row gives the paper's
per-position-fallback ratios (0.67-0.70 up to M = 16, 0.81 at 32, 0.93 at 64, 1.31 at 128),
and Section 1 says the two registers are numbered separately.
Figure 4: the drift panel is split into two stacked panels on a shared x axis,
(b) DFlash-4B and (c) MTP-4B, each with its own measured drift curve, the same
derived thresholds (labelled in (b)) and its own medians annotation: 107x for
DFlash-4B and 112x for MTP-4B, both computed from the committed quantile files
(median drift over the median int8 per-entry threshold). The two drafters can
no longer be confused. In (a) the closest rescaling of h^d is a larger dot with
a right-angle mark.

Figure 3: "128 columns" becomes "per 128 weights" (each entry's 2,560 weights
carry one scale per 128), in (a)'s legend, (a)'s int4 label and Figure 4's
threshold labels. The T = 1 race circles are larger and heavier. In (b)
"conservative" is written out, the derived/measured note sits at the top left
away from the tick labels, and the legend has no white box.

Figure 2(b): the three pairs are labelled "case 1", "case 2", "case 3" and
separated by faint lines, so they read as alternatives.

Figure 1: plain GPU idle is an empty segment and the MTP idle inflated by
tracing is hatched, so the two are clearly different.
…-noise attribution, abstract runtime wording, HiRE author)
…ptions, Table 4 precision, chunk, fitted choices)
@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: REQUEST CHANGES at ea33050

This is the fidelity review of the editorial pass against its base a586a5e. Two main-text sentences need a change, each a clause long. Everything else I checked holds (list below).

Required

  1. paper/sections/contract.tex:52, the per-position fallback's condition. The text says the fallback "applies only to a position left open by a near tie whose candidate list is complete". The code also caps that list at 64 entries. _route_kernel takes the per-position path only when the status is exactly AMBIGUOUS and the count is at most COLS_CAP (src/certified_head/kernels.py:844). COLS_CAP = 64 (src/certified_head/head.py:120) and is applied as min(capacity, COLS_CAP) (head.py:1165), and the default capacity is 256. A near tie with 65 to 256 candidates therefore goes to the whole-batch fallback. Suggested wording: "a near tie whose candidate list is complete and has at most 64 entries". evidence/certified_head/README.md:56 has the same omission; that file is outside this PR and can be fixed in a follow-up.

  2. paper/sections/setup.tex:74, the clustering inference. The sentence compares the kernel replay's measured 27% and 77% at M = 128 with 36% and 84%, which come from independence at the held-out replay's rates (0.35% and 1.40%, rstock_plain4b.json via json_values.csv). The kernel replay's own rates are 0.28% and 1.46% (evidence/certified_head/fallback_vs_model.json). At those rates, independence gives 30% and 85% (1-(1-p)^128 = 0.299 and 0.848). The base compared like with like ("below the 30% and 85% that independent rows at its own rates would give"). The conclusion survives, but for the Hopper model the gap is 3 points, not 9. Suggested wording: "...the kernel replay measures 27% and 77%, below the 30% and 85% that independence at its own rates gives (derived), consistent with ...". The 36% and 84% can stay where they predict the held-out step shares.

Optional

  1. paper/sections/intro.tex:9: FR-Spec's 49% was measured for EAGLE-2 on Llama-3-8B with a 128k vocabulary, and app_stack.tex:81 keeps that scope. Adding "on Llama-3-8B" to the intro sentence would keep it there too.
  2. paper/sections/setup.tex:85 and the abstract say "at most about 3%". The derived value at M = 1 is 10.3% × (1 − 0.673) = 3.4% with the per-position fallback, and 3.5% with the whole-batch fallback (0.661). "About 3%" is accurate, but "at most" reads as a 3% bound.
  3. The word counts in the PR body. I followed PROCESS.md's method (pdftotext -layout, from the title to the References line) on fresh builds. That gives 9,340 words at a586a5e and 9,021 at ea33050 (−3.4%), against the body's 9,270 and 8,998 (−2.9%). At the head the method also drops the 43 words in p10's left column below the References line. Counting column by column gives 9,410 → 9,123 (−3.0%). The .tex counts match exactly (7,645 → 7,545). Please reconcile these before the counts go into the report to Sam.

Checked and holding

  • Build at ea33050.
    • The paper has 48 pages and the main text ends on p10, with References in p10's right column. There are 0 LaTeX warnings.
    • The research notes build to 52 pages.
    • check_paper_references.py is clean, both at the head and on a trial merge with the current main (9b5fda2). Main has not touched paper/ since the merge base.
    • pre-commit is clean on all 104 changed files.
    • There is no hostname or IP in the diff, the commit messages or the body.
    • Every commit is by Sam, and none has an AI co-author or "Generated with" line.
  • Scope conditions. Each condition sits beside its claim:
    • the R-stock contract at the same batch shape, BF16 rounding and first-index tie;
    • the assumed stock-kernel error and the two named models;
    • the fixed-M contract and the measured invariance that the per-position fallback needs;
    • the 64-prompt, conservative-model, untimed scope of the engine check;
    • DFlash-4B's outputs not compared end to end;
    • the frontier's four of nine arms, each against its matched plain baseline in the same session (App E);
    • floor rates that name their cap (3.42 per 1,000 at cap 16, 0.63 at cap 8).
  • No strengthened claims.
    • "No certified token differed" is scoped to the 64-prompt check under the conservative model, and §4.3 says the agreement cannot tell the models apart.
    • Head-only times are called expected times, computed from measured times and rates.
    • The ~3% saving is labelled derived and not measured.
    • Fixed-noise verification is presented as a change of rule, with its at-least-half acceptance caveat, and its equality in law holds only for idealized noise and prefix-only logits.
    • Transport is "sound but too loose", for the variants tested.
    • Serving effects are reported as not yet measured wherever they come up.
  • numdiff a586a5e → ea33050, on all sections and on the main text alone.
  • Moved text. Paragraph diffs of the base sections against paper/notes/ show only cross-reference changes, apart from the logged folds (P9 costs, the state fold, Appendix F: exact fold-every-commit verification for DFlash; P10 rejected by its gate (#133) #158). I read f844fef and cdf8c70 as new text, and their numbers match the evidence.
  • Numbers against evidence.
    • Abstract: about 1.8 candidates (1.845 and 1.777), 0.28% and 1.46%, and 60,000 rows match replay_decisions.json and fallback_vs_model.json.
    • 196,734 is the sum of certified rows in engine_v2.json, with 0 mismatches.
    • The engine fallback shares match engine_v2.json: 1.38% (207 of 14,946), 1.74% (347 of 19,912), 3.99% (2,292 of 57,424), and 90% of DFlash verify calls (543 of 603).
    • The head timings match head_path_time.csv and ncu_gemv_summary.json: 239.6 µs against 370.5 µs, an expected 0.67–0.70 up to M = 16, SM 79% and DRAM 62–63%.
    • The head shares match the profiling README: 17.2% = 4.4% + 12.9%.
  • Copy constant. γ_copy is the conservative constant throughout. The 1.84 and 1.78 depend on the stock model only through δ_max.
  • Figures.
    • make_figure_data.py --check passes.
    • Figures 1–4 and Tables 1–4 at 110 dpi have readable labels, and their status tags follow the figure plan.
    • Figure 1's caption inference about tracing matches the profiling README.
  • Disclosures and citations.
    • The AI-use footnote is unchanged, and App F.5 (attribution) is identical to the base's G.6.
    • No citation key is lost. gdn, gumbel1954 and papandreou2011 left the main text together with their claims and are cited where those claims now live. specdecode and chen2023specsampling were added.
    • The HiRE change touches only the author field, now {Yashas Samaga B L} as on arXiv, which renders as "Yashas Samaga B L et al." in both bib files.
  • Cold-reader rulings.
    • A2: the DFlash verify limit is in the abstract (90% of verify batches) and in §4.3's engine paragraph, and the offline 78% and 84% are in Table 8 (A.8).
    • A3: 4.4% plus 12.9% is printed per bar in Figure 1.
    • A4: the saving is labelled derived.
    • B4: the cause of transport's failure is scoped.

Codex

Codex has not reviewed #161 at any head, because the PR is still a draft. A merge needs my APPROVE and a clean Codex round on the same head.

The preprint notice now prints the build date. A fresh build on another day will therefore differ from the committed PDF on that line, and I will exclude it when I check the rebuild-only PDF PR.

…llback, clustering against the kernel replay's own rates, FR-Spec scope, derived saving)
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@SamMausberg
SamMausberg marked this pull request as ready for review October 1, 2026 23:54
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 1, 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-10-02T00:09:23.202225Z fb87127 Manual request
ℹ️ 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: APPROVE at 0d3ece5

The fix commit changes 5 lines in abstract.tex, contract.tex, intro.tex and setup.tex, and it closes every item from my review at ea33050:

  1. contract.tex:52: the per-position fallback now applies to "a near tie whose candidate list is complete and has at most 64 entries". This matches _route_kernel's cnt <= COLS_CAP with COLS_CAP = 64.
  2. setup.tex:74: the 36% and 84% are now attributed to the held-out rates. The measured 27% and 77% (kernel-path, head_path_time.csv at M = 128: 0.2735 and 0.7735) are compared with 30% and 85% from independence at the kernel replay's own rates (derived, kernel-replay). Both tags' register entries hold the files: fallback_vs_model.json gives 0.002767 and 0.014633, which yield 0.299 and 0.848.
  3. intro.tex:9: the 49% is now scoped to an EAGLE-2 drafter on Llama-3-8B.
  4. §4.4 and the abstract: the expected time at M = 1 under the conservative model is "0.66–0.67" (head_path_time.csv: 0.661 whole-batch, 0.673 per position). The saving is "at most about 3.4–3.5% (derived)": 10.3% × 0.339 = 3.49% and 10.3% × 0.327 = 3.37%.
  5. PR body: the word counts now use PROCESS's method on fresh builds. I reproduce 9,340 → 9,037 and 7,645 → 7,589 at this head.

Checks at 0d3ece5:

  • The paper builds to 48 pages with 0 LaTeX warnings. The main text ends on p10, with References in p10's right column. Pages 7 and 8 at 110 dpi are clean.
  • check_paper_references.py is clean, at the head and on a trial merge with the current main (9b5fda2).
  • pre-commit is clean on the changed files.
  • There is no hostname or IP in the commit or the body.
  • The author is Sam, and there are no co-author or "Generated with" lines.

The rest of my ea33050 review still holds, since nothing else changed. Codex is still running on 0d3ece5 (requested 23:54 UTC). A merge needs a clean Codex round on this same head.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0d3ece50f3

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread paper/notes/register.tex
\evitem{rstock}{Rows and batches left to the stock kernel by rule and error model; no certified token differed from the engine's (the paper's Table~\paperref{tab:rstock})}{\nolinkurl{evidence/head_geometry/rstock_plain4b.json}}{\nolinkurl{experiments/head_geometry/analyze_rstock.py}}
\evitem{selfevidence-mtp}{Candidate sets and fallback shares on 4,010 MTP-4B verify rows and 4,024 draft rows (the paper's Appendix~\paperref{app:candidates})}{\nolinkurl{evidence/head_geometry/selfevidence_mtp4b.json}, \nolinkurl{selfevidence_mtp4b.csv}, \nolinkurl{selfevidence_mtp4b_ccdf.csv}}{\nolinkurl{experiments/head_geometry/analyze_selfevidence.py}, \nolinkurl{export_candidate_ccdf.py}}
\evitem{tail}{Kill test of the certified decoder tail, P1 (Section~\ref{app:tail})}{\nolinkurl{evidence/head_geometry/tail_killtest.json}}{\nolinkurl{experiments/head_geometry/tail_killtest.py}}
\evitem{repair-p12}{P12's static screen on the head compiled through the last FFN, with the winner's score known (an upper bound on the rows any screen with this bound skips), and the compiled argmax against the model's (Section~\ref{app:p12})}{\nolinkurl{evidence/repair/p12_static_screen.json}, \nolinkurl{p12_static_screen.provenance.json}, \nolinkurl{README.md}}{\nolinkurl{experiments/repair/runs/p12_screen.sh}, \nolinkurl{experiments/repair/p12_static_screen.py}, \nolinkurl{write_provenance.py}}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Commit the P12 evidence before citing its measurements

At the reviewed revision, a repo-wide filename search finds neither evidence/repair/p12_static_screen.json nor p12_static_screen.provenance.json, while the notes use this entry to support concrete results such as the 0.077% skip rate. Consequently, python scripts/check_paper_references.py --rev 206fffb4ea6acdd7a05890e0a20dfef9937e8166 reports both paths as missing, so this should remain pending unless the artifacts and their documented provenance command are committed.

AGENTS.md reference: AGENTS.md:L15-L18

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The evidence is on main: #165 (8950907) committed these files after this branch last took main. The branch now includes it through merge 0a92958 (origin/main f56ea18, bringing #165, #166 and #168), which changes nothing under paper/. At 0a92958, python scripts/check_paper_references.py --rev HEAD finds every register path, including evidence/repair/p12_static_screen.json, p12_static_screen.provenance.json and jacobi_probe_{progress.csv,summary.json,provenance.json}.

Comment thread paper/notes/register.tex
\evitem{drafting-req}{The per-position acceptance a block drafter would need for $5\times$ end to end at concurrency 1, from Stage A's cycle periods under both verify kernels and the block-16 trace's acceptance and top-16 support by position (derived, no new runs; Section~\ref{app:repair})}{\nolinkurl{evidence/drafter/drafting_requirement.json}, \nolinkurl{README.md}}{\nolinkurl{experiments/drafter/drafting_requirement.py}}
\evitem{repair-recycle}{One-step recycling of the target's suffix predictions against fresh DFlash drafts}{\nolinkurl{evidence/repair/one_step_recycling.json}, \nolinkurl{draft_source_accuracy.csv}}{\nolinkurl{experiments/repair/analyze_jacobi.py}}
\evitem{repair-b}{Repair Stage B: the anchored residual evaluator on real block-16 DFlash blocks (operator error, decision agreement, $R_i$, progress per sweep, exact Jacobi) and the economic gate}{\nolinkurl{evidence/repair/residual_eval_b16.json}, \nolinkurl{residual_eval_b16.agree_by_distance.csv}, \nolinkurl{p3_gate_b16.json}, \nolinkurl{README.md}}{\nolinkurl{experiments/repair/runs/residual_b16.sh}, \nolinkurl{experiments/repair/residual_eval.py}, \nolinkurl{summarize_residual.py}, \nolinkurl{p3_gate.py}}
\evitem{repair-jacobi}{Exact Jacobi sweeps (recycle and keep) from real DFlash windows in the engine at $B=16$ and 32: accepted drafts and committed tokens per exact pass after each sweep, P3's ceiling, the effect of one correction downstream and the replay check (Section~\ref{app:repair})}{\nolinkurl{evidence/repair/jacobi_probe_progress.csv}, \nolinkurl{jacobi_probe_summary.json}, \nolinkurl{jacobi_probe_provenance.json}, \nolinkurl{README.md}}{\nolinkurl{experiments/repair/runs/jacobi_probes.sh}, \nolinkurl{experiments/repair/serve_probe.py}, \nolinkurl{analyze_jacobi.py}, \nolinkurl{write_provenance.py}}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Restore the Jacobi result to pending until its evidence lands

This entry turns the previously pending engine-sweep experiment into measured evidence, but none of jacobi_probe_progress.csv, jacobi_probe_summary.json, or jacobi_probe_provenance.json exists anywhere in the reviewed tree. The reference checker therefore fails for all three paths, while the notes cite them for exact acceptance, throughput, and replay-agreement numbers; either commit the reproducible artifacts or keep these claims marked pending.

AGENTS.md reference: AGENTS.md:L15-L18

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The evidence is on main: #165 (8950907) committed these files after this branch last took main. The branch now includes it through merge 0a92958 (origin/main f56ea18, bringing #165, #166 and #168), which changes nothing under paper/. At 0a92958, python scripts/check_paper_references.py --rev HEAD finds every register path, including evidence/repair/p12_static_screen.json, p12_static_screen.provenance.json and jacobi_probe_{progress.csv,summary.json,provenance.json}.

@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE at 0a92958

0a92958 merges origin/main f56ea18 (#165, #166, #168) into 0d3ece5, which I approved. The merge keeps the PR side as it was:

  • every file the branch changes against the merge base is identical in 0d3ece5 and 0a92958;
  • nothing under paper/, sources/ or scripts/ differs from 0d3ece5.

At this head, check_paper_references.py --rev 0a92958 is clean, so the two Codex P1s on 0d3ece5 are resolved. The P12 and Jacobi files they flagged now exist in the branch's own tree (evidence/repair/p12_static_screen*.json and jacobi_probe_*).

Those P1s point at the research-notes fold of #165 and #166 (06a8e8c). That fold was already in ea33050, and I should have read it as new text then. I have now checked it against the merged evidence:

  • P12 (p12_static_screen.json):
    • 1,000 queries; 248,320 × 11,776 dictionary, 4.6 times the head's coefficients; argmax match 99.7%;
    • skipped share 0.000773 = 192 rows (0.077%) in token-id order, and 0.000515 = 128 rows (0.052%) after the random-projection sort;
    • median winner lead 0.125‖q‖;
    • the head-alone static screen at contiguous 64 is 0.08% (Table tab:transport-full);
    • "25 positions from each of 40 outputs" matches the repair README.
  • Jacobi (jacobi_probe_summary.json, jacobi_probe_progress.csv):
    • setup: 67 requests; A_D 6.49 and 6.69; 4,085 + 3,968 = 8,053 replay cycles with 0 mismatches;
    • accepted drafts per sweep: 1.58, 1.08, 0.92, 0.85 (keep) and 1.23 … 0.84 (recycle) at B = 16, so 0.84–1.58; 1.07–1.90 at B = 32;
    • committed tokens per pass after four sweeps: 2.07 and 2.19 at B = 16, 2.30 and 2.45 at B = 32;
    • P3 ceiling: 5.18 / 5.46 and 5.74 / 6.13;
    • share of blocks still not fully accepted after four keep sweeps: 72.1% at B = 16 and 98.9% at B = 32;
    • effect of one correction: 0.869 (0.862), then 0.493, then about a quarter;
    • throughput: the first keep sweep adds 1.58 / 4.78 = 0.33 tokens per ms, against fresh drafting's 6.49 / 7.46 = 0.87.
  • Backbone trace (evidence/backbone/README.md, hold 3):
    • 152 Hopper GEMV calls at M = 1 and 120 Triton calls at M = 16;
    • replay span −102 µs and −45 µs, 52% and 37% of the predicted 197 µs and 120 µs;
    • unprofiled windows −111 µs and −15 µs;
    • against mtp-tuned: 0.993 and 0.989; tokens per verify cycle 3.273 against 3.279; baseline spreads 1.3% and 2.4%; 0.996 and 0.984 against a 0.81% spread.
    • One small looseness, not blocking: "accounts for part of the shortfall at concurrency 8" rests on the c = 16 trace. The README draws the same link ("close to the served c = 8 result").

Codex is running on 0a92958 (requested 23:59 UTC). A merge needs a clean round on this head.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0a9295883a

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +1 to +4
% Research notes for "The Work a Verifier Needs" (owner: appendix editor).
% Build from paper/, after the paper, because the notes read paper.aux for references into it:
% cd paper && latexmk -pdf paper.tex && latexmk -pdf notes/research_notes.tex
% This writes research_notes.pdf in paper/. Building from paper/ keeps \input paths, the figures'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Document the new research-notes artifact in README

Adding this companion document without updating README.md leaves the repository's entry points and reproduction instructions stale: Start here still directs readers only to paper/paper.pdf, the build recipe only builds paper.tex, and the layout table does not mention paper/notes/ or research_notes.pdf. A fresh reader therefore cannot discover or reproduce the document that now contains the material removed from the paper; add its purpose and two-stage build command to the README.

AGENTS.md reference: AGENTS.md:L15-L18

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in fb87127 (README.md only). "Start here" now names paper/research_notes.pdf (source in paper/notes/) and what it holds; the build recipe adds latexmk -pdf -interaction=nonstopmode -halt-on-error notes/research_notes.tex after the paper's build, from paper/, and says why the order matters (the notes cite the paper's labels through xr-hyper and read paper.aux); the layout table has a paper/notes/ row. The tag description also now reads [Dn], as the paper prints it.

@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE at fb87127

fb87127 changes only README.md. It answers Codex's P2 at 0a92958 (the README did not mention the research notes), and each new statement matches the tree:

  • research_notes.tex loads xr-hyper and \externaldocument[paper-]{paper}, so the notes build from paper/ after the paper.
  • The added latexmk line is the command I used for every notes build.
  • The output is paper/research_notes.pdf.
  • The description follows the notes' sections, and the notes have their own register.
  • "[Dn]" is what the paper prints.

pre-commit and codespell are clean, there is no hostname or IP, the author is Sam, and there are no co-author lines. Nothing else changed since 0a92958, so my earlier approvals still cover the rest.

When this merges, the rebuild-only PR must commit paper/research_notes.pdf as well as paper/paper.pdf. The README now points readers to it, and it is not in git yet.

A merge needs a clean Codex round on fb87127.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fb87127721

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread paper/paper.tex
Comment on lines +22 to +24
% The notice carries the date of the build, in the paper's day-month-year style.
\newcommand{\builddate}{\number\day\space\ifcase\month\or January\or February\or March\or April\or May\or June\or July\or August\or September\or October\or November\or December\fi\space\number\year}
\renewcommand{\Notice@String}{Preprint, \builddate; not peer reviewed.}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Rebuild the published paper PDF

This commit substantially rewrites the manuscript, figures, and appendices, but the tracked paper/paper.pdf is byte-for-byte identical to its blob in the parent commit. A fresh checkout following the README's “Start here” instruction therefore reads the pre-editorial paper rather than the source at this revision; rebuild and commit the PDF with these source changes.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. By this repository's convention, paper PRs change only the sources, because a committed PDF made every paper PR conflict with every other. paper/paper.pdf is rebuilt on main in a rebuild-only PR right after this merges, and the reviewer checks it against a fresh build.

Comment thread README.md
machine.
marks work whose result is not yet committed as [D*n*]; the evidence register in
the appendices lists every cited file with the program that produced it. The
companion `paper/research_notes.pdf` (source in `paper/notes/`) holds the

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Commit the advertised research-notes PDF

At this revision the Git tree contains no paper/research_notes.pdf, even though the README now presents that path as the companion document readers should use. On a fresh checkout the new entry point is therefore broken unless the reader installs the LaTeX toolchain and builds it; commit the generated PDF alongside the source, as is already done for paper/paper.pdf, or stop advertising it as an available artifact.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. paper/research_notes.pdf goes into the same rebuild-only PR as paper/paper.pdf, opened on main right after this merges, so the README's entry point resolves on main.

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