Repository navigation
Main text: the served frontier and the exact engine changes (Section 4.5); Tables 1-4 to the appendices - #181
Conversation
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
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
Blocking
Optional
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. numdiff 9a6e849..d92f9b5: 7 token kinds were dropped, and every one is found elsewhere:
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).
… the abstract; two shorter sentences
…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
d92f9b5 to
b54878d
Compare
|
@codex review |
There was a problem hiding this comment.
💡 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".
| \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} |
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
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.
| 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\\ |
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
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
…s, Figure 5 0.46 as tall as wide
….5's text (the table caption already says what Table 5 compares)
|
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
Blocking (Codex on b54878d; both comments are correct)
Figure 5 at print size (main asked about the height change; I read the 300 dpi render of p8)
Optional
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. |
…he appendix pointer (reviewer 2, optional)
…n does not use (writing lead's choice; 1.14 stays in App C.3)
|
@codex review |
|
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
Blocking
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
|
@codex review |
There was a problem hiding this comment.
💡 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".
| \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. |
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
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.
| \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}. |
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
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.
|
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
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. |
|
@codex review |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
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).
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. Checked over all rounds:
After merge:
|
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.
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.
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:
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:
hostgap,evidence/hostgap/hold4/ab_mtp.jsonbackbone,evidence/backbone/served/mtp_v1/backbone,served/plain_v1/bench-frontier,pairs.csv;bench-equalitydrafter-fold,evidence/drafter/fold_timing/summary.jsonIsolated 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, newstack-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.
\refresolves:tab:assumptions-full. §2 now ends with an "Assumptions" paragraph pointing to it.tab:rstock. §4.3 states the held-out shares, 0.35% and 1.40%.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.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:scripts/check_paper_references.py --rev HEAD: clean, including the new citation-audit check.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)
B1. The abstract's host-gap sentence is now scoped to 1 to 8 concurrent requests and to MTP drafting with FlashInfer attention; the fold gives 1.120 at c = 32.
B2. §4.5 adds that stock MTP with Triton attention, which plans nothing on the host, stays faster there: 532 against about 500 tokens/s at c = 1, derived, with
bench-frontier. The patches therefore do not move the MTP frontier.B3.
\cite{dspark,dcut}is restored where the two works are named.B4. Related Work goes back to "four things".
B5. Table 5's "bitwise" footnote now reads "identical tokens and top-five log-probabilities".
B6, the merge order with Paper §1-2 prose: targeted fixes by unit, Sam's title, error-model qualifiers, terminology unified #183. Main set the order Citations: recheck all 125 references and their citing sentences; audit trail to sources/; two error-model qualifiers in App A #184, then Main text: the served frontier and the exact engine changes (Section 4.5); Tables 1-4 to the appendices #181, then Paper §1-2 prose: targeted fixes by unit, Sam's title, error-model qualifiers, terminology unified #183. Paper §1-2 prose: targeted fixes by unit, Sam's title, error-model qualifiers, terminology unified #183 rebases after this PR and carries its Table 1 row edits into
app_proofs.tex.Optional items done: "0.991 times for MTP"; the 3.3 points are marked derived; the engine check says "identical certified and stock outputs"; App E.3's dangling "also" is gone; the moved sources table uses
[!ht]and stays before the register.Optional items deferred: defining "exact up to rounding" in the main text (page budget), contribution 3's ownership, and the short-versus-full table duplicates, which go to main after this merges.
Page budget after the fixes. These clauses come out of the main text:
Table 5's evidence markers move onto its group rows. Figure 5 is now 0.48 as tall as it is wide, and its in-plot "open triangles: one session" note is dropped, because it sat on the MTP markers; the caption already says hollow markers are one session. No number or condition was removed.
Rebase. onto Citations: recheck all 125 references and their citing sentences; audit trail to sources/; two error-model qualifiers in App A #184: Related Work's "Screening and sampling" line keeps Citations: recheck all 125 references and their citing sentences; audit trail to sources/; two error-model qualifiers in App A #184's FlashSampling sentence, with both citations, and this PR's shorter opening clause. Onto State #175: the concurrency pair's cache check, plain-decoding switches and targeted tests (App D, notes) #188: clean.
Review round 2 (Codex and reviewer 2 at b54878d)
evidence/backbone/README.md324-331). So "exact" no longer covers that row: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.