Skip to content

Main text: the served frontier and the exact engine changes (Section 4.5); Tables 1-4 to the appendices - #181

Merged
SamMausberg merged 15 commits into
mainfrom
paper/served-baseline
Oct 2, 2026
Merged

SamMausberg merged 15 commits into
mainfrom
paper/served-baseline

Conversation

@SamMausberg

@SamMausberg SamMausberg commented Oct 2, 2026 •

Copy link
Copy Markdown
Owner

The main text has not shown the serving frontier since the editorial pass moved it to Appendix E.3, and it gave no before/after for the engine changes we measured. This PR adds both in a new Section 4.5, Served Decoding, using merged evidence only. To keep the main text within ten pages it moves the four existing main-text tables, unchanged, to the appendices. The integrator ruled on each move, listed below.

What Section 4.5 adds

  • Figure 5, the stock serving frontier (moved from Appendix E.3; data unchanged, 0.48 as tall as wide, in-plot note dropped). The paragraph beside it gives the measurement conditions:

    • one launch per arm per session, at full capacity;
    • client concurrency c swept in closed loop on the 1,152-prompt held-out confirmation split of the frozen workload, with 512-token outputs;
    • CUDA graphs and the overlap scheduler confirmed at launch; no prefix cache;
    • x includes the time to first token.

    The results it states: speculation leads plain decoding up to c = 32 and trails from 48, for every drafter (bench-frontier). At c = 1, DFlash-4B with 16-token blocks gives 3.06 times plain decoding's throughput with the same Triton attention. The text says DFlash-4B is a public drafter that we tuned and validated but did not design. Every arm is stock or exact up to rounding (bench-equality). On GSM8K, the four arms tested score within the noise of plain decoding: losses above about 3.3 points are excluded, smaller ones are not (bench-quality, copied from the notes register).

  • Table 5, engine changes against the tuned stock arm each modifies (prints as Table 1, the only main-text table now). Every measured row is one session; the brackets give the range over that session's run pairs:

    Arm Change c Throughput ratio (pairs) Outputs Evidence
    MTP, FlashInfer host-gap patches 1-8 1.094-1.096 (1.090-1.101) token-identical; logprobs not compared hostgap, evidence/hostgap/hold4/ab_mtp.json
    MTP, FlashInfer backbone GEMM routing 1 0.991 (0.989-0.993) not compared, so exactness not established backbone, evidence/backbone/served/mtp_v1/
    plain backbone GEMM routing 1 1.035 (1.034-1.035) exact up to rounding backbone, served/plain_v1/
    plain replayed GDN decoding 128 1.081 (one pair) exact up to rounding bench-frontier, pairs.csv; bench-equality
    DFlash, block 16 fold verify 1 / 8 / 32 0.968 (0.966-0.970) / 1.061 (1.053-1.070) / 1.120 (1.106-1.134) bitwise with matched pools and fixed batch composition drafter-fold, evidence/drafter/fold_timing/summary.json

    Isolated ratios are never multiplied. The text reads the table in two points. At low concurrency the largest gain comes from host work: the host-gap series, which removes the blocking planning reads and makes the host planning cheaper, gives +9.4-9.6% for MTP, while faster backbone GEMM kernels give 3.4-3.5% for plain decoding, about the certified head's derived saving. Removing per-request state traffic pays as the batch grows: the fold costs 3.2% at c = 1 and gains 6.1% at c = 8.

  • Served statements elsewhere. The abstract gets one sentence: the host-gap result, labelled one session and token-identical. Contribution 3 now covers serving. Limitations now say the rows are single sessions and list three pending results. The certified head's served effect and the composed stack are stated as not yet measured in §4.5 and Limitations (bench-cert, new stack-composition), not as table rows.

Page budget (integrator's rulings, 2026-10-02)

Rulings R-a to R-e, plus B, C, H and A for the page budget. Every condition stays stated beside its claim in the prose.

  • Moved unchanged to the appendices, labels kept so every \ref resolves:
    • Table 1 (assumptions) to Appendix A, beside tab:assumptions-full. §2 now ends with an "Assumptions" paragraph pointing to it.
    • Table 2 (sources) to Appendix F. §4 opens by naming the six sources, and each result gives its population: 6,005 held-out positions in whole decode steps; the first 60,000 captured positions at their batch shapes; 64 engine-check prompts; the microbenchmark's head alone at M = 1 to 256 with CUDA graphs and a warm L2 cache.
    • Table 3 (fallback by model) to Appendix A, beside tab:rstock. §4.3 states the held-out shares, 0.35% and 1.40%.
    • Table 4 (transport) to Appendix C, beside tab:transport-full. §5.3 keeps the headline: at most 0.59% (DFlash-4B) and 0.64% (MTP-4B) skipped over every family and tiling tested.
  • Shortened.
    • §4.1, "A fixed configuration".
    • §3.3, the evidence paragraph (deterministic mode, no top-k/top-p, conservative model only, change of rule and pending acceptance all kept).
    • Related Work, "What is and is not new". The DSpark/D-cut sentence now points to Appendix B.6, which holds it with its citations.
    • Figure 2, 3, 4 and 5 captions.
    • The Conclusion is unchanged apart from keeping its last sentence on the certified head's unmeasured served effect.
    • §4.3, the engine-check paragraph.
    • §4.4, the closing pending clause.
    • §5.3, "Why the drift is large" and "Why certification gains so little": oracle radii in one sentence; the drift extrapolation is now a pointer to Appendix C, which labels it a model, not a measured drafter.

Numbers that left the main text are in the moved tables or already in the appendices: 49%/80% at a tenth of the drift (Table C.x), the CV of throughput at most 1.9% (Appendix E.3), and the 0.65% per-entry radius, which is still in §5.3.

Build

One core, latexmk -g, at 9fae2f8, on main c356cd6, which includes #184 and #188; main has since added only a PDF rebuild:

  • paper: 49 pages, 0 LaTeX warnings, 0 overfull or underfull boxes. The main text ends on p10 with the Conclusion, and References start at the top of p11.
  • notes: 53 pages, 0 warnings.
  • scripts/check_paper_references.py --rev HEAD: clean, including the new citation-audit check.
  • Rendered at 110 dpi and checked: p8, with Figure 4, Figure 5 and Table 5, and the appendix pages that received the moved tables.

pre-commit was run on the changed files (the host-identity guard passed); codespell, run by hand, was clean.

Review round 1 (reviewer 2 at d92f9b5, REQUEST CHANGES)

Review round 2 (Codex and reviewer 2 at b54878d)

  • Codex P2 (setup.tex:66), the MTP routing row. Its outputs were not compared, and the routes change draft and verify arithmetic at near ties (evidence/backbone/README.md 324-331). So "exact" no longer covers that row:
    • Table 5 is titled "Engine changes", and its caption says exactness is not established where outputs were not compared.
    • §4.5's paragraph is titled "Engine changes" and gives "0.991 times for MTP, whose outputs were not compared".
    • Contribution 3, Limitations and App E.3 drop "exact".
    • The abstract keeps "largest exact serving gain", which refers only to the token-identical host-gap patches.
  • Codex P2 (app_register.tex:23). The served-sweeps row now says "1, 3 or 4 sessions".
  • Reviewer 2, optional. The DSpark and D-cut citation now shares one parenthesis with the appendix pointer (\citealp).
  • Page budget. Figure 5 stays at 0.48 of its width, per main's ruling. The two lines came from text:
    • shorter Table 5 and Figure 5 captions;
    • §4.5's opening sentence, which repeated the Table 5 caption;
    • the clause "Since tile radii exceed row norms (median ratio 1.14)" in §5.2, cut with the writing lead's agreement. Proposition C.4 does not use that cause, and 1.14 stays in App C.3.
  • Reviewer 2 at 9fae2f8. The main text named the whole 1,857-prompt workload, but the sweeps run on the 1,152-prompt confirmation split, held out from the tune split. Fixed in 8c6cb4f, at the same length; App E.3 now names the split's size.
  • Codex at 8c6cb4f, two P2s, fixed in 73139f1 and 3b59fbd. First, §4's lead now says "engine changes". Second, the 9.4-9.6% is credited to the full host-gap series, which removes the blocking reads and makes the host planning cheaper, not to the read removal alone (evidence/hostgap/README.md:28-33). This applies in §4.5 and in the abstract.
  • Build at 3b59fbd: 49 pages, 0 warnings. The Conclusion ends on p10 and References start at the top of p11. Notes: 53 pages. Checker: clean. Figure 5 rendered at 110 dpi.

Coordination

The writing team (prose and formatting) starts its main-text pass from main after this merges. Claims are in ~/vp-coord/notes/paper_claims.md. M1 renames "interval rule"/"gap rule" to "condition" and "seeded verification" to "fixed-noise verification". The old names that remain in moved captions are theirs to change in M2. If M1 merges first, this PR reconciles §2's "Assumptions" paragraph with M1's §2.3 sentence (one \label{sec:assumptions}, "in Appendix~\ref{app:proofs}").

Not included: the composed stack (#177), the certified head's served benchmark, patch 0005's timing (#167) and the profile and state results. They follow as small separate PRs.

@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 2, 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-02T08:43:50.422934Z 3b59fbd 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: d92f9b50ac

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

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: REQUEST CHANGES at d92f9b5

Reviewer 2 (paper fidelity and quality; this PR moved to me from reviewer 1). I read every changed paragraph against main (9a6e849; main's paper sources are unchanged since) and checked every number in §4.5 and Table 5 against the committed files. The moved tables are identical to the originals apart from their widths, the new "Served sweeps" row in Table 2 and the "in full" pointers in two captions. Each §4 result still names its source and population, and §5.3 keeps its headline numbers. The served additions are mostly accurate. Two framing problems with the host-gap result block approval, as do a dropped citation, an internal inconsistency in Related Work and one undefined exactness class.

Checked and correct

  • Host-gap row: evidence/hostgap/hold4/ab_mtp.json, y ratio of means at c = 1, 2, 4, 8 = 1.0960, 1.0957, 1.0938, 1.0949 -> 1.094-1.096. Pair ratios run from 1.0896 to 1.1008 -> (1.090-1.101). The footnote matches the README's 192/192 tokens, verify-step counts and correct-draft histograms, with log-probabilities not compared.
  • Backbone rows: served/plain_v1 pairs 1.035 and 1.034, ratio of means 583.3/563.8 = 1.035, exact up to rounding (lever v1, c = 1). served/mtp_v1 pairs 0.993 and 0.989, ratio of means 0.991, exactness not measured.
  • Replayed GDN decoding: pairs.csv, plain-tuned-replayssm vs plain-tuned at c = 128, one pair, 1.0811. Exact up to rounding per frontier.csv.
  • Fold verify: fold_timing/summary.json b16 c = 1 0.968 [0.9664, 0.9696], c = 8 1.0612 [1.0526, 1.0699], c = 32 1.1196 [1.1056, 1.1339], running limits matched. The separate matched-pool check is in buffered_verify/localize/.
  • 3.06: dflash-tuned-b16 c = 1 y 874.37 over plain-tuned-triton 285.64. The App E figure of 3.45: x 986.89 over 285.93. "A public drafter that we tuned and validated" is kept.
  • "More than plain up to c = 32 and less from 48, for every drafter" holds for each drafter's best arm.
  • Fig. 5 caption: the largest coefficient of variation over points with n >= 2 is 1.95% for x (mtp-tuned c = 48) and 1.90% for y, so "below 2% of each mean" holds.
  • GSM8K: comparisons.json and notes/serving.tex. Four arms, losses above about 3.3 points excluded, smaller ones not.
  • Admission bias: App B.6 (app:stopping) shows that fixed-noise verification gives the same output under every depth policy (Theorem thm:fixednoise), so "free of the admission bias" is supported.
  • Codex: clean on d92f9b5.

Blocking

  1. abstract.tex:3. "In serving, the largest exact gain came from host work" is unscoped. Table 5's own fold-verify row gains 12.0% at c = 32 (1.120), more than the host-gap 9.4-9.6%, and the comparison spans different arms. §4.5 scopes the same sentence to low concurrency, and the abstract should too, for example: "At 1 to 8 concurrent requests, the largest exact gain we measured came from host work: on MTP with FlashInfer attention, planning attention without blocking reads raised throughput 9.4-9.6% (one session, token-identical outputs)."
  2. setup.tex:90, and the abstract, leave out a condition that changes what the host-gap result means. The arm it modifies, mtp-tuned (MTP with FlashInfer attention), is the arm bench tunes for high concurrency. At c = 1-32, stock MTP with Triton attention serves faster. Bench's confirmation (frontier.csv) gives mtp-tuned-triton 532.4 against mtp-tuned 456.0 tokens/s at c = 1, and 3,009 against 2,682 at c = 8. The patched FlashInfer arm reaches about 500 and 2,937 (derived: 1.096 x 456.0 and 1.095 x 2,682). So the patches do not move the MTP frontier at the concurrencies the abstract names. The hostgap README says so itself: Triton attention plans nothing on the host, +17% at c = 1. Read with "the largest gain comes from host work, not a kernel", the current text implies an improvement in MTP serving that Figure 5 does not show. Fix: one clause in §4.5, for example "on the FlashInfer arm; stock MTP with Triton attention, which plans nothing on the host, is faster still at c = 1-32 (532 against 456 tokens/s at c = 1) \ev{bench-frontier}". The abstract names FlashInfer attention as in item 1.
  3. related.tex:10. "DSpark and D-cut describe" names two works whose \cite{dspark,dcut} this PR removed from the main text, so the reader cannot find them from here. Restore the citation at the names.
  4. related.tex:12. "For the certified head we claim the four contributions of Section~\ref{sec:contributions}:" is followed by a list that does not match §1.1. §1.1 item 2 combines the error bound with seeded sampling, which this list splits in two, and §1.1 item 4 (transport) is treated separately in the next sentence. Either restore "four things:" or name the first three items of §1.1 as they are worded there.
  5. setup.tex:79 (Table 5, fold verify, footnote b). "Bitwise" is undefined. The evidence convention, and App D's wording (app_exactness.tex:118), is identical tokens and top-five log-probabilities, not bit-identical logits. Fix the footnote: "$^b$Identical tokens and top-five log-probabilities, with matched pools and fixed batch composition, in a separate check."
  6. Merge conditions with Paper §1-2 prose: targeted fixes by unit, Sam's title, error-model qualifiers, terminology unified #183. Whichever merges second carries these:

Optional

  • O1 setup.tex:90. "And nothing for MTP": the measured ratio is 0.991, both pairs below 1, and the README says "0.9% slower". Suggest "and slightly slows MTP (0.991)".

  • O2 setup.tex:88. The main text uses "exact up to rounding" without defining it. It is defined only in App E.3 and is not in the glossary. Add a clause (first difference at an exact tie, within one BF16 step, or at a near tie within two) or a glossary row.

  • O3 setup.tex:88. "Excluding losses above about 3.3 points" is derived: Wald intervals from the committed counts, per notes/serving.tex. Add "(derived)".

  • O4 setup.tex:47. "Runs with one request at a time gave identical whole outputs" should say what was compared: certified and stock servers.

  • O5 app_stack.tex:92. "Also gives 3.45 times": the "also" dangles now that the 3.06 sentence has moved to §4.5.

  • O6 intro.tex:38, contribution 3. "The exact engine changes timed against it" does not say which changes are this project's (host-gap and backbone patches, fold enablement) and which are existing SGLang options (replayed GDN decoding?). One phrase would settle attribution.

  • O7 app_register.tex. Table 2 (now Table 22) floats to p48, inside F.3 "Reproduction", past the register's longtable. A reader following §4's pointer to it "in Appendix F.1" finds it two subsections later. Place it before the longtable as a non-float, or with [H].

  • O8. In the appendices, the short Tables 3, 6 and 12 now sit beside their full versions (Tables 2, 5 and 11). That is fine as a holding place under main's ruling, but fold or drop them once the main text settles.

  • O9 Fig. 5, for F1. The "c=128" direct label touches the markers at the top left, and the legend sits close to the plain curve at c = 48-64.

Build and checks at d92f9b5 (CPU window, one core): 0 LaTeX warnings, 0 overfull or underfull boxes. The paper is 50 pages and the notes 52. The Conclusion ends on p10, and the References begin at the top of p11. check_paper_references.py --rev d92f9b5 is clean.

numdiff 9a6e849..d92f9b5: 7 token kinds were dropped, and every one is found elsewhere:

  • 0.91 is Fig. 4(a)'s direct label and is also in §5.3.
  • 20 and 2,560 follow from "one scale per 128 weights".
  • 248,320 appears elsewhere.
  • 49% and 80% are in App C.8.

Main-text only, 40 kinds left, all of them in the moved tables. I rendered p7, p8 (Fig. 5, Table 5) and p10 at 150 dpi, and the appendix pages with the moved tables (16, 20, 31, 48) at 110 dpi. Commits are by Samuel Mausberg with no trailers, and the host-identity check is clean.

…4.5); Tables 1-4 to the appendices

Figure 5, the confirmed stock serving frontier, moves from Appendix E.3 into a new Section 4.5
with Table 5: each exact engine change timed against the tuned stock arm it modifies, one
session each with its pair range and the output class the evidence states (host-gap patches
on MTP, backbone GEMM routing on MTP and plain, replayed GDN decoding on plain, fold verify on
DFlash block 16); the certified head's served effect and the composed stack stay pending
(bench-cert, new stack-composition). The abstract, contribution 3, Limitations and the
Conclusion each get one served statement.

For ten pages, per the integrator's rulings: Tables 1-4 move unchanged to Appendices A, F, A
and C beside their full versions (labels kept); Section 2 ends with a pointer to the
assumptions table and Section 4 names its six sources, with each population at the result
that uses it; Sections 3.3, 4.1, 4.3, 4.4 and 5.3, two Related Work paragraphs and the Figure
2-5 captions are shorter, with every condition kept beside its claim. Register: bench-quality,
hostgap, drafter-fold and backbone copied from the notes register (same files and producers).
…data); the pending row leaves Table 5, Section 4.5 states it
… and FlashInfer MTP; Triton MTP stays faster there; restore the DSpark and D-cut citation; 'four things' in Related Work; bitwise defined in Table 5; optional fixes
…tract and Section 4.5, the source sentence and the engine-check inference
…ith the in-plot note dropped (the caption says hollow markers are one session), two shorter clauses
@SamMausberg
SamMausberg force-pushed the paper/served-baseline branch from d92f9b5 to b54878d Compare October 2, 2026 06:20
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@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: b54878d001

ℹ️ 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/sections/setup.tex Outdated
\end{figure}

\begin{table}[!b]
\caption{Exact engine changes against the tuned stock arm each modifies (group rows), flags otherwise identical, on the workload of Figure~\ref{fig:frontier}; one session each. Ratio: throughput $y$ with over without the change; brackets: range over the session's run pairs. Outputs: greedy outputs against stock, same configuration.}\label{tab:levers}

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 Stop classifying the unvalidated MTP route as exact

The MTP backbone-routing row is included under “Exact engine changes,” even though its Outputs cell says “not compared.” More importantly, evidence/backbone/README.md lines 324–331 state that the route changes draft/verify arithmetic and acceptance at near ties, and that its exactness class remains pending. Calling this an exact change here—and again in the contribution and limitations prose—overstates the evidence; remove the exact qualifier for this result or add the pending matched-output comparison.

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 0ae4f74, with the page-budget follow-ups up to 9fae2f8. Table 5 is now titled "Engine changes", and its caption says exactness is not established where outputs were not compared. The MTP routing row's Outputs cell reads "not compared". In §4.5 the paragraph is retitled "Engine changes" and gives "0.991 times for MTP, whose outputs were not compared". Contribution 3, Limitations and App E.3 no longer call every change exact. The abstract keeps "largest exact serving gain" because it refers only to the host-gap patches, whose outputs are token-identical.

Comment thread paper/sections/app_register.tex Outdated
Engine check & the kernel inside SGLang, \modelcons & interval rule; seeded verification & 64 prompts\\\addlinespace[2pt]
Microbench\-mark & the head alone, CUDA graphs, warm L2 cache & time only & $M=1$ to 256\\\addlinespace[2pt]
Speculative captures & aligned draft and target head inputs; verification positions & \Rreal{}, gap rule; drift & 40,000 pairs per drafter\\\addlinespace[2pt]
Served sweeps & the serving engine at full capacity, swept over client concurrency & time; output equality & 1 or 3 sessions\\

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 Include four-session frontier points in the source count

The served-sweeps row reports only “1 or 3 sessions,” but the newly promoted frontier includes plain-tuned points with four valid sessions, as its own caption states and evidence/bench/confirm/frontier.csv records. This understates the replication count and contradicts Figure 5; list one, three, or four sessions (or otherwise separate the single-session lever runs from the frontier).

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 0ae4f74: the served-sweeps row of the sources table now says "1, 3 or 4 sessions", matching frontier.csv (plain-tuned has four) and the Figure 5 caption.

…tputs not compared), so Table 5 and the prose stop calling every change exact; served sweeps have 1, 3 or 4 sessions
….5's text (the table caption already says what Table 5 compares)
@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: REQUEST CHANGES at b54878d

Reviewer 2. I compared b54878d, rebased on main c356cd6, with d92f9b5, where I had requested changes. All five of my text blockers are fixed. Two new Codex P2s on this head are both valid, and they block. Figure 5 at print size passes, with one label collision for the figures pass.

My items, all fixed

  • B1, abstract: "At 1 to 8 concurrent requests the largest exact serving gain came from host work: ... raised the throughput of MTP drafting with FlashInfer attention 9.4-9.6% (one session, token-identical outputs)."
  • B2, §4.5: "Stock MTP with Triton attention, which plans nothing on the host, stays faster there (532 against about 500 tokens/s at c=1, derived) \ev{bench-frontier}; the patches do not move the MTP frontier."
  • B3: \cite{dspark,dcut} is restored where DSpark and D-cut are named.
  • B4: "four things:" again.
  • B5: footnote b now reads "Identical tokens and top-five log-probabilities, with matched pools and fixed batch composition".
  • B6: main set the order. Paper §1-2 prose: targeted fixes by unit, Sam's title, error-model qualifiers, terminology unified #183 carries its rows 3 and 7 into the moved Table 1 after this PR merges.
  • Optional items done: "0.991 times for MTP"; "3.3 points (derived)"; "identical certified and stock outputs"; App E "3.06 times the throughput and 3.45 times the per-request rate"; Table 22 before the register.
  • Page trims cut only a comparison and a gloss (§2.3 defines the per-position fallback). No number or condition is lost.
  • Rebase: related.tex keeps Citations: recheck all 125 references and their citing sentences; audit trail to sources/; two error-model qualifiers in App A #184's knlp and FlashSampling sentences with both citations, plus this PR's opening clause.

Blocking (Codex on b54878d; both comments are correct)

  1. setup.tex:66 (Codex 4163351321). The MTP backbone-routing row sits in a table titled "Exact engine changes", and the abstract, §4.5 and contribution 3 use the same name. But this row is not shown to be exact. evidence/backbone/README.md (lines 324-331) says "the routes change the draft and verify passes' arithmetic, which moves acceptance at near ties" (3.273 against 3.279 tokens per cycle) and "The exactness class of lever v1 on MTP was not measured". "Not compared" in the Outputs cell does not cancel an "exact" title.
    • Fix: either take the row out of Table 5 and keep its 0.991 in the §4.5 sentence, labelled "exactness not measured", or retitle the table "Engine changes" with exactness stated per row.
    • Whichever you choose, check that "exact" in the abstract, §4.5 and contribution 3 no longer covers this row.
  2. app_register.tex:23, Table 22 "Served sweeps" (Codex 4163351326). "1 or 3 sessions" is wrong. frontier.csv has 20 points with 1 session, 46 with 3 and 6 with 4 (the plain-tuned arm), and Fig. 5's caption already says "three or four". Write "1, 3 or 4 sessions".

Figure 5 at print size (main asked about the height change; I read the 300 dpi render of p8)

  • The figure is legible at column width. Tick and legend text are about 7 pt, axis labels about 9 pt, and the four series stay distinguishable by marker and dash. The height change from 0.515 to 0.48 of the width is small, and dropping the in-plot note removed a real overlap with the MTP markers.
  • Two defects remain, both against the figure standard. Neither changes the page count, so they are fine for F1, the figures editor's restyle, where I will check them:
    • The "c=128" direct label sits on the plain-decoding markers at the top left.
    • The legend's first row nearly touches the DFlash block-16 squares above it and the grey plain-decoding point at about (230, 3k). The area below 2k left of x = 250 is empty, so the legend can move down.

Optional

  • related.tex:10 renders as "(Cheng et al., 2026; Liu et al., 2026) (Appendix B.5)", two parentheses in a row. Something like "DSpark and D-cut describe~\cite{dspark,dcut}, which Appendix~\ref{app:stopping} illustrates" reads better.

Build at b54878d (CPU window, one core): 0 LaTeX warnings, 0 overfull or underfull boxes. The paper is 49 pages and the notes 53. The Conclusion ends on p10 with a few lines to spare, and the References start at the top of p11. check_paper_references.py --rev HEAD is clean. numdiff against main c356cd6 drops the same 7 token kinds as before, all found elsewhere (0.91, 20, 2,560, 248,320, 49, 80, 6), and adds 532, 500 and 0.991. numdiff against d92f9b5 drops only "24", from #184's App A fix.

…n does not use (writing lead's choice; 1.14 stays in App C.3)
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: REQUEST CHANGES at 9fae2f8

Reviewer 2. I compared 9fae2f8 with b54878d. Both Codex P2s and my optional point are fixed, and every line cut is safe. One blocking item remains: a wrong number in §4.5, which I should have caught in the first round.

Fixed and checked

  • Codex 4163351321:
    • Table 5 and its paragraph are now "Engine changes". The caption says "exactness is not established where not compared", and the routing result reads "0.991 times for MTP, whose outputs were not compared".
    • "Exact" is gone from contribution 3, Limitations, App E.3 and the setup header comment.
    • The abstract's "largest exact serving gain" covers only the host-gap row (token-identical), so it is correct as it stands.
  • Codex 4163351326: Table 22 now says "1, 3 or 4 sessions". frontier.csv has 20, 46 and 6 points with 1, 3 and 4 sessions.
  • Optional: "(\citealp{dspark,dcut}; Appendix~\ref{app:stopping})" is now one parenthesis.
  • Cuts:
    • §4.5's opening sentence repeated the caption.
    • "both with Triton attention" keeps the condition.
    • §5.2's "Since tile radii exceed row norms (median ratio 1.14)" claimed a cause that Proposition C.4 does not use, so cutting it fixes the logic. The 1.14 stays in App C.3 (app_transport.tex:62).
    • No number or condition is lost.

Blocking

  1. setup.tex:88. "swept over client concurrency c ... on 1,857 public prompts (chat, code, mathematics)": 1,857 is the whole workload, bench/workloads/mixed-v2 = 1,152 confirmation + 576 tuning + 129 warm-up prompts. The frontier, and every Table 5 run I checked (fold timing's confirm.jsonl; backbone README:233, "the mixed-v2 confirmation split"), uses the 1,152-prompt confirmation split. The arms were chosen on the disjoint tuning split (evidence/bench/README.md:26-30). The main text therefore gives the wrong size for the measured set, and it no longer says that tuning and evaluation used different prompts, which is the condition that makes the frontier a held-out result. Fix, at the same length: "on 1,152 held-out public prompts (chat, code, mathematics)". Or, if a clause fits: "on the 1,152-prompt confirmation split of a public workload, the arms having been chosen on a disjoint split". App E.3's "frozen workload of 1,857 ... reported on a disjoint confirmation split" is correct but could name 1,152 too (optional).

Not re-run: I have not rebuilt 9fae2f8, because the fix above changes a line. Your build reports 49 pages, 0 warnings, the Conclusion on p10 and the References on p11. I will build the next head myself and check the delta, the page budget and Codex on it. Codex has not yet reported on 9fae2f8.

… split, not the whole 1,857-prompt workload (reviewer 2); App E.3 names the split's size
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@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: 8c6cb4ff72

ℹ️ 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/sections/setup.tex Outdated
\section{Measurements on the Engine's States}\label{sec:measure}
This section measures the certified head on states recorded from the running engine. Its numbers come from the five sources of Table~\ref{tab:sources}; numbers labelled baseline are the stock head's.
\section{Measurements}\label{sec:measure}
This section measures the certified head on states recorded from the engine, then the served engine with and without exact changes. Its numbers come from six sources, each named with its decision rule where it is used (Table~\ref{tab:sources} in Appendix~\ref{app:register}): the \emph{held-out replay} in FP64, the \emph{kernel replay} at the captured batch shapes, the \emph{engine check} inside SGLang, a head-only \emph{microbenchmark}, the \emph{speculative captures} and the served sweeps (Section~\ref{sec:served}). Numbers labelled baseline are the stock engine's.

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 Remove the remaining exactness claim from the overview

Although the table and caption were fixed, this newly added overview still describes the served comparisons as being “with and without exact changes.” The fresh remaining evidence is Table 5's MTP backbone-routing row, whose outputs are explicitly “not compared” and whose exactness is therefore unestablished. Calling the whole set exact continues the overstatement; describe these as engine changes without the qualifier.

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 73139f1: Section 4's lead now reads "then the served engine with and without engine changes", consistent with Table 5's title. No main-text use of "exact" now covers the MTP routing row. The abstract's "largest exact serving gain" refers only to the host-gap patches, whose outputs are token-identical.

Comment thread paper/sections/setup.tex Outdated
\subsection{Served Decoding}\label{sec:served}
\paragraph{The stock baseline} Each serving configuration, or \emph{arm}, runs with CUDA graphs and the overlap scheduler (checked at launch) and without the prefix cache, which the workload does not reuse. It is launched once per session at full capacity and swept over client concurrency $c$, the requests a closed-loop client keeps in flight, on 1,152 held-out public prompts (chat, code, mathematics) with 512-token outputs \ev{workload}. Figure~\ref{fig:frontier} plots the per-request output rate $x$, including the time to first token, against throughput $y$ (Appendix~\ref{app:serving}). Over three sessions speculation serves more than plain decoding up to $c=32$ and less from 48, for every drafter \ev{bench-frontier}; at $c=1$, DFlash-4B with 16-token blocks, a public drafter that we tuned and validated, gives 3.06 times plain decoding's throughput, both with Triton attention. Every arm is stock or exact up to rounding against a matched stock reference \ev{bench-equality}, and on GSM8K the four arms tested (two MTP, DFlash block 8, replayed plain decoding) are within the noise of plain decoding, excluding losses above about 3.3 points (derived), not smaller ones \ev{bench-quality}.

\paragraph{Engine changes} At low concurrency the largest gain in Table~\ref{tab:levers} comes from host work, not a kernel: planning FlashInfer attention without the blocking GPU reads that leave the MTP cycle idle (Figure~\ref{fig:breakdown}) raises MTP's throughput by 9.4--9.6\% at $c=1$--8 \ev{hostgap}. Stock MTP with Triton attention, which plans nothing on the host, stays faster there (532 against about 500 tokens/s at $c=1$, derived) \ev{bench-frontier}; the patches do not move the MTP frontier. Faster backbone GEMM kernels gain 3.4--3.5\% for plain decoding at $c=1$ and 0.991 times for MTP, whose outputs were not compared \ev{backbone}. Removing per-request state traffic pays as the batch grows: verifying DFlash blocks without per-position state snapshots (SGLang's fold-every-commit protocol) costs 3.2\% at $c=1$ and gains 6.1\% at $c=8$ \ev{drafter-fold}. The certified head on DFlash verification and the composed changes are not yet timed \pend{bench-cert,stack-composition}.

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 Attribute the gain to the full host-gap patch series

The 9.4–9.6% served result was measured for the full 0001–0005 patch series, not for an ablation that only removed blocking reads. evidence/hostgap/README.md lines 28–33 says patches 0001–0003 removed those reads but shortened held cycles by only 2.7–4.8%, while patch 0004's cheaper host arithmetic supplied most of the low-batch gain. This sentence, repeated in the abstract, therefore assigns the full measured gain to the wrong mechanism; report it as the full host-gap/planning patch series unless a served read-removal ablation is available.

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 73139f1 (abstract shortened in 3b59fbd to keep the page). The gain is now attributed to the whole series, as evidence/hostgap/README.md:28-33 does. Section 4.5: "making FlashInfer's attention planning, the host work that leaves the MTP cycle idle (Figure 1), cheaper and free of blocking GPU reads raises MTP's throughput by 9.4-9.6%". Abstract: "removing blocking reads from attention planning and making it cheaper raised MTP drafting's throughput with FlashInfer attention 9.4-9.6%". Contribution 3 carries no attribution.

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: REQUEST CHANGES at 8c6cb4f

Reviewer 2. My blocker is fixed: §4.5 now says "1,152 held-out public prompts", and App E.3 names the confirmation split. My own build of 8c6cb4f is clean: 49 pages, 0 warnings, the Conclusion on p10 and the References at the top of p11, checker clean. numdiff against 9fae2f8 changes only 1857 to 1152. But Codex's review of this head (07:45) raises two P2s, I checked both against the evidence, and both are correct. They block.

Blocking

  1. setup.tex:15 (Codex 4163799111). The §4 lead still reads "then the served engine with and without exact changes". The MTP routing row's exactness is not established, as the Table 5 caption itself now says, so drop the qualifier: "with and without engine changes". I checked the head for other cases of "exact" attached to the engine changes. In the main text it remains only in the abstract's "largest exact serving gain", which covers just the token-identical host-gap row and is correct.
  2. abstract.tex:3 and setup.tex:90 (Codex 4163799114). Both credit the 9.4-9.6% to "planning attention without blocking reads". That figure is for the full patch series 0001-0005. evidence/hostgap/README.md:28-33 says that 0001-0003 alone, which remove the blocking reads, shortened the held cycle by 2.7-4.8%, and that "0004, which makes that host work cheaper, supplies most of the full series' gain there" (at low batch, derived across two holds). The sentence therefore names the wrong mechanism for most of the gain. Name both parts of the series, as the notes' H6 row does: "removing blocking reads and making host-side attention planning cheaper raised ..." in the abstract, and the same in §4.5 (for example, "planning FlashInfer attention on the host more cheaply and without the blocking GPU reads that leave the MTP cycle idle"). If a line is short, "the host-gap patches (no blocking reads, cheaper host planning)" fits. The hostgap register entry ("the five patches that compute FlashInfer's attention plans without blocking reads") describes the series rather than claiming a cause, but it could add "and more cheaply".

I'm sorry these two came in separate rounds. I checked §4.5 and the abstract against the Table 5 numbers, not against the patch-by-patch attribution in the hostgap README. After the next push I will diff the delta, rebuild, check the page budget and wait for Codex to finish before posting.

…o blocking reads and cheaper host planning), not the read removal alone; 'engine changes' in Section 4's lead
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 3b59fbd101

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

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE at 3b59fbd

Reviewer 2. I checked the delta from 8c6cb4f to 3b59fbd. It fixes both Codex P2s from 07:45. This approves the whole PR: I reviewed it in full at d92f9b5 and checked every head since (b54878d, 9fae2f8, 8c6cb4f, 3b59fbd).

  • setup.tex:15 now reads "with and without engine changes". No main-text sentence calls the MTP routing row exact. The abstract's "largest exact serving gain" covers only the token-identical host-gap row.
  • The host-gap gain is credited to the whole series, as in evidence/hostgap/README.md:28-33 and the notes' H6 row:
    • §4.5: "making FlashInfer's attention planning, the host work that leaves the MTP cycle idle (Figure 1), cheaper and free of blocking GPU reads raises MTP's throughput by 9.4-9.6%";
    • abstract: "removing blocking reads from attention planning and making it cheaper raised MTP drafting's throughput with FlashInfer attention 9.4-9.6% (one session, token-identical outputs)".
  • All four Codex threads (4163351321, 4163351326, 4163799111, 4163799114) have fix replies. Codex is clean on 3b59fbd (08:43).

Build at 3b59fbd (CPU window, one core): 0 LaTeX warnings, 0 overfull or underfull boxes. The paper is 49 pages and the notes 53. The Conclusion ends on p10, and the References start at the top of p11. check_paper_references.py --rev HEAD is clean. numdiff against 8c6cb4f: no change. numdiff against main c356cd6: 8 token kinds dropped, all found elsewhere (0.91, 1.14, 20, 2,560, 248,320, 49, 80, 6), as checked on earlier heads.

Checked over all rounds:

  • Table 5 and §4.5 numbers match the hostgap, backbone, bench and fold files.
  • The scope conditions are in place: one session; FlashInfer MTP, with stock MTP on Triton attention faster at c = 1-8; held-out 1,152-prompt split; routing outputs not compared; "bitwise" defined.
  • The moved Tables 1-4 match the originals, and each §4 result names its source and population.
  • The DSpark and D-cut citation is restored, and the rebase keeps Citations: recheck all 125 references and their citing sentences; audit trail to sources/; two error-model qualifiers in App A #184's related-work fixes.
  • Figure 5 is legible at print size. Its c=128 label collision and legend spacing go to F1, per main's ruling.

After merge:

@SamMausberg
SamMausberg merged commit ccc30c1 into main Oct 2, 2026
SamMausberg added a commit that referenced this pull request Oct 2, 2026
Row 3's status points to §2.2, where the FP32-output variant is introduced;
row 7 keys the seeded noise by the token position in the sequence. The
sentence before the full table no longer says Table 1 is in the main text.
SamMausberg added a commit that referenced this pull request Oct 2, 2026
With Table 1 and §2.4 already out of the main text, the qualifiers from
review and the wgmma statement pushed the Conclusion onto p11. Cuts, none
touching the wgmma sentences:
- §2.2: R-bf16 "does not give the engine's result" (reviewer's
  rephrase-without-"either" route); the emulation sentence and the
  certified-tie sentence are shorter; "(the published Hopper model keeps
  25)" goes, since the wgmma sentence gives the 25 bits.
- Limitations: the FP32-output variant's 1/58 stays in §2.2; Limitations
  keeps that the engine's BF16-output kernel hides its accumulator, so the
  variant's error is indirect evidence.
- Related Work, "What is and is not new" (outside §1-2, moved in for the
  page budget): keeps every prior-art item it named and points to §1.1 for
  the contributions instead of listing them a second time.
- Theorem 2.3's proof moves to Appendix A beside Lemma 2.2's, with the
  step from the accumulator bounds written out.
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