Skip to content

Paper: fold the served certified head (#190), and lead with the contract and the served result - #214

Merged
SamMausberg merged 6 commits into
mainfrom
paper/benchcert-fold
Oct 2, 2026
Merged

SamMausberg merged 6 commits into
mainfrom
paper/benchcert-fold

Conversation

@SamMausberg

@SamMausberg SamMausberg commented Oct 2, 2026 •

Copy link
Copy Markdown
Owner

The abstract still said the certified head's served effect was "not yet measured", and five \pend{bench-cert} markers sat in the main text. #190 measured that effect. This PR states the result with its conditions. It also applies the framing edits main approved (memo of 2 October): the paper now leads with what it shows (a contract against a closed-source production kernel, the measured served outcome and why it is small, the stock engine's own numerics, and transport's negative result) rather than with an inventory. No new evidence and no new claims beyond the committed READMEs.

Commit 1: free main-text lines (approved cuts B1, B3, B4, B6, B9)

No claim or condition is lost; the commit message lists where each sentence went. In short: a duplicate engine-check sentence is cut, the derived clustering sentence and the Hopper expected-times sentence move to Appendix A, Section 4.5's backbone clause shortens (Table 1 keeps 0.991 and "not compared"), and the Limitations stop restating Section 2.2.

Commit 2: fold #190

  • Table 1 gains a "Certified head, per arm" group with three-session geometric means and 95% intervals: plain decoding 1.025 at c = 1, MTP with Triton attention 1.046, 16-token DFlash 1.012 at c = 1 and 0.970-0.990 at c = 2-4, 8-token DFlash 0.975-0.988 at c = 4-8. The old "certified head did not start at full capacity" row goes; footnote c says that the DFlash pairs pinned the attention cache at 60,000 tokens and that, unpinned, the head ran out of memory.
  • Section 4.5 gets a paragraph "The certified head, served". Section 4.4's derived 3.4-3.5% bound now points to the measured 2.5% for plain decoding.
  • Appendix E.5 (new) has the design, every point (Table tab:cert-served, with the pre-registered predictions), throughput, exactness and the one large divergence. Appendix E's other subsections no longer call the served effect pending. The stock-GEMM bandwidth baseline sentence moves from Section 4.4 to E.2, beside the stock head's other isolated numbers.
  • Registers: \evitem{cert-served} goes into both registers, with the same files and producers, and the bench-cert pending items are removed. In the notes, H3, H4, the levers-table cell and the serving paragraph now cite the result.

Commit 3: framing (main's ruling on the memo)

  • Abstract, from about 400 to about 315 words. The derived head-only estimate (0.7x; at most 3.4-3.5%) and the DFlash 90%-fallback sentence leave the abstract (Section 4 keeps both). It adds the served result with its conditions: +2.5% plain, +4.6% MTP and +1.2% DFlash at c = 1 with identical tokens; the best configuration falls 1.0-3.0% at c = 2-8, where certified batches reach 30-64 rows and most verify calls fall back, and 0.6% at 128, where the head is gated off. It also adds the stock engine's BF16 numerics finding, and the host-work sentence scoped to "among the engine changes we measured".
  • Contributions: item 1 says why the reference is the engine and not exact arithmetic, citing the 52% configuration dependence and the 8.9-nat BF16 event. Item 3 states the served outcome (+1.2-4.6% at one request, up to 3.3% lost at larger batches, short of the head-only prediction). One clause points to the research notes as the record of the wider programme.
  • Section 3.3: the three seeded-sampling paragraphs become one, and the acceptance of fixed-noise verification against the stock rejection sampler is stated as not measured (the \pend{kernel-seeded-engine} markers in Sections 3 and 7 go).
  • Limitations: "Replay, not serving" becomes "Replay and serving": one greedy workload, and the fallbacks' time inside the served graphs was not measured, so why the served gains fall short of the prediction is a hypothesis.
  • Conclusion: ends on what holds beyond this head. Holding a fast path to the engine's own output with the engine's kernel as fallback is a design that does not depend on the head. On this hybrid model the head is a small target: its chain takes 10% of a plain step at batch 1 and 6% at batch 128, where the recurrent-state kernel takes 42% (Appendix E.2).
  • Trims to stay within ten pages: Related Work's pointer to Section 1.1; the intro's FR-Spec sentence, whose content Appendix E.2 already gives; shorter Figure 1 and Figure 4 captions; tighter Limitations and Conclusion wording.

Fidelity notes (checked against evidence/certified_head/served/README.md, ratios.csv)

  • The losses are not DFlash-only, and they are not a rule about call size. DFlash loses 1.0-3.0% at every point above c = 1 where the head is active (certified calls of 28-64 rows), and MTP loses 3.3% at c = 64 (64-row draft calls). Plain decoding at c = 32 and 64 and MTP at c = 8-32 run calls of the same sizes without a detectable loss, and the text says so.
  • Fallback shares come from the complete check rerun (check2 rows of check.csv): 54-82% of DFlash's verify calls at its loss points (16-token at c = 2 and 4: 64.2%, 81.5%; 8-token at 4 and 8: 53.7%, 70.9%) and 75.7% of MTP's draft calls at c = 64, whose verify runs certified only in the drain.
  • The mechanism of the shortfall is the README's hypothesis, not a measurement. The text gives the gains as 28-71% of the pre-registered prediction and calls the reason a hypothesis.
  • The BF16 event is stated as the README states it: the stock BF16 decode path commits a token FP32 places 8.9 nats below its top. "Ill-conditioned" is the README's interpretation and appears only in Appendix E.5, labelled as one.

Commit 4: hold the main text to ten pages

As first pushed (bf0b880), the commits ran about six lines onto p11. These cuts keep every result and condition:

  • Section 4.3 loses the sentence calling the FP32-output kernel's error "the more direct test". The Limitations still call that error indirect evidence, and Section 2.2 reports it.
  • In the abstract, "depending on the error model" becomes "under two error models".
  • Limitations: the Figure 3b aside goes, and so do the per-change session counts, which Table 1's caption and footnote d already give. The served-runs and fixed-noise sentences are tightened, and both still state their limits.
  • Conclusion: one sentence for the fallback design, and shorter wording.

Commit 5: review round 1 (issuecomment-5958238854, at c923ada)

Each blocking item was checked against the committed evidence before it was changed.

  1. Fallback shares now come from the complete check rerun (check2 rows of check.csv), not h1's partial launch. In Section 4.5, 54-82% of DFlash's verify calls fall back in check mode at its loss points, and 76% of MTP's draft calls at c = 64. Appendix E.5 gives 76-82% at c = 4 for 16-token DFlash (draft projection 75.9%, verify 81.5%).
  2. The loss is not stated as a rule about call size. Section 4.5 says the head loses 1.0-3.3% for DFlash above c = 1 where the head is active (calls of 28-64 positions) and for MTP at 64 (64-position draft calls), and that plain decoding at c = 32 and 64 and MTP at c = 8-32 run calls of these sizes without a detectable loss. Notes H3 says the same. The notes' levers-table cell now gives the losses too.
  3. Seeded control (Appendix E.5): "left every token of the 109 requests equal to stock's, and the log-probabilities at position 439 identical to the bit", which is what control_waves.py's small_compare compares.
  4. Abstract: "30-64 positions" for the best configuration at 2 to 8 requests.
  5. Abstract: "(check mode)" after the 592,433 positions.
  6. Conclusion: one batch size. At batch 128 the head chain takes 6% of a plain decode step and the recurrent-state kernel 42%. The batch-1 share (10.3%) stays in Section 1 and Section 4.4.
  7. Contribution 1 points to Appendix E.5, not Section 4.5, for the 8.9 nats; the batch dependence keeps its pointer to the fixed-configuration paragraph.
  8. Section 4.5: "(only MTP's 95% interval, 1.0002-1.22, excludes 1)".
  9. Not in this PR: evidence/certified_head/served/README.md (line 64, and the sentence after reading (ii)) belongs to the benchcert evidence. It is flagged to main for a later evidence PR.

These fixes added about four lines, so the same commit also trims, without dropping any claim or condition:

  • Section 4.5: the paragraph's subject is "it" under its own title, and the loss sentence is restructured.
  • Section 5.4: the pointer to Table 12 no longer names its appendix, and "DFlash-4B verification positions" becomes "DFlash-4B positions".
  • Limitations: two repeated pointers to Section 2.2 go, and so do the words "too", "the capture's" and "served".
  • Notes: the levers table's caption sentence on attention backends moves into the paragraph that defines the classes, so the table fits its page with the longer cell.

Commit 6: review round 2 (issuecomment-5958796777, at 276f3aa)

  • Blocking, Appendix E.5: the seeded control recorded only the top five and five tracked tokens (1756, 68189, 8078, 5715, 9471) at position 439 (control_waves.py, seeded_logprobs). The sentence now reads "...and the top-five and five tracked tokens' log-probabilities at position 439 identical to the bit". The notes do not repeat the phrase.
  • Optional 2, Conclusion: "loses on DFlash above one request and on MTP at 64, where fallbacks become common", matching Section 4.5.

Build (8b58206; one core, niced, no exclusive hold running): paper 54 pp, 0 warnings, Conclusion ends on p10R with one line spare, References at the top of p11; notes 55 pp, 0 warnings; check_paper_references.py --rev HEAD clean; pre-commit passed.

Build (276f3aa; one core, niced, no exclusive hold running)

  • Paper: 54 pp, 0 LaTeX warnings. The Conclusion ends on p10R with two lines spare, and References start at the top of p11. Pages 8 and 10 checked as renders.
  • Notes: 55 pp, 0 warnings.
  • scripts/check_paper_references.py --rev HEAD: every check clean (4 pending markers left in the paper, all in the appendices; Notes and appendices: fold #211 and #213, and state every unmeasured result as such #215 removes them).
  • pre-commit on every changed file: passed.

Codex

Approved by main as the first commit of the #190 fold. No claim or
condition is lost:
- Section 4.3: the engine-check paragraph's last sentence repeated the
  one before it (per-position fallback only in one plain run); cut.
- Section 4.3: the derived independence-at-replay-rates sentence
  (30%/85%, clustering) moves to Appendix A ("Fallback by call size"),
  with its evidence marker; the main text keeps 36/84% and 27/77% and
  points to the appendix.
- Section 4.4: the Hopper-model expected-times sentence moves to
  Appendix A ("Expected time under the Hopper model"), with its marker;
  the main-text claim already names the conservative model.
- Section 4.5: "leave MTP, whose outputs were not compared, at 0.991
  times its throughput" becomes "not for MTP"; Table 1 keeps 0.991 and
  "not compared".
- Limitations: the restatement of Section 2.2's probe result is cut to
  the probes' limits (one exact operand, no subnormals, one GPU).
The certified head has been measured served (evidence/certified_head/served/):
- Table 1 gains a "Certified head, per arm" group: geometric means of three
  session ratios with 95% t intervals, from ratios.csv. Footnote c records
  the DFlash pairs' 60,000-token attention-cache pin. The old "did not
  start at full capacity" row is removed.
- Section 4.5 gets a paragraph on the served head; Section 4.4's derived
  bound points to the measured plain-decoding gain.
- New Appendix E.5: design, every point with the pre-registered prediction
  (tab:cert-served), throughput, exactness, and the one large divergence
  (stock's BF16 decode path against FP32).
- Appendix E's other subsections no longer call the served effect
  pending. The stock GEMM's bandwidth baseline moves from Section 4.4 to
  E.2, next to the stock head's isolated times.
- Registers: evitem cert-served in both registers; the bench-cert pending
  items are removed. Notes: H3, H4, the levers-table cell and the serving
  paragraph cite the result.
Framing edits approved by main, plus fixes to the fold's wording:
- Abstract (about 315 words, from about 400): the served result with its
  conditions (+2.5% plain, +4.6% MTP, +1.2% DFlash at c = 1 with
  identical tokens; the best arm loses 1.0-3.0% at c = 2-8, where
  certified batches reach 28-64 rows and most verify calls fall back, and
  0.6% at 128, gated off); the stock BF16 decode-path finding; the
  host-work sentence scoped to the engine changes measured. The derived
  head-only estimate and the DFlash 90% sentence stay in Section 4.
- Contributions: item 1 says why the reference is the engine, not exact
  arithmetic (configuration dependence; the 8.9-nat BF16 event). Item 3
  states the served outcome. One clause points to the research notes.
- Section 3.3 in one paragraph. Fixed-noise acceptance against the stock
  rejection sampler is stated as not measured, which removes the
  kernel-seeded-engine markers in Sections 3 and 7.
- Section 4.5: the losses include MTP at c = 64 and the gated-off
  overhead; the c = 1 gains are 28-71% of the pre-registered prediction;
  the divergence rates are scoped to the three families with a rate.
- Limitations: "Replay and serving" (one workload; why the served gains
  fall short is a hypothesis). The Conclusion ends on the design that
  carries beyond the head, and on the head's small share against the
  recurrent state's.
- Appendix E intro lists E.5; E.2's bandwidth sentence merged; E.5's
  wave-control wording; notes H3 and H4.
- Trims to hold ten pages: Related Work's pointer to Section 1.1, and
  shorter contribution, Limitations and Conclusion wording.
@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-02T18:35:21.121107Z 8b58206 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 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: bf0b880529

ℹ️ 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
\paragraph{Engine changes} At low concurrency the largest gain in Table~\ref{tab:levers} comes from host work, not a kernel: making FlashInfer's attention planning, the host work that leaves the MTP cycle idle (Figure~\ref{fig:breakdown}), cheaper and free of blocking GPU reads 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$ but leave MTP, whose outputs were not compared, at 0.991 times its throughput \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}. Together, the fold, the routing table and the certified head lower 16-token DFlash's per-request rate at $c=1$ to 0.986 times stock (95\% interval 0.982--0.989, three sessions) and raise its throughput at $c=8$ 1.073 times, where most verify calls exceed the certified head's 64-position limit \ev{stack-composition} (Appendix~\ref{app:stack-composition}). Two declared approximations miss the quality budget fixed before measuring \ev{lossy}: FP16 recurrent state serves 1.16--1.17 times the best non-lossy arm's throughput at $c=64$--256 (three sessions) for 1.0--1.4 GSM8K points below plain decoding's reference runs, a loss this check cannot resolve, and an int4 target with its int4 drafter~\cite{nota2026} fails a logit probe and is slower above $c=1$.
\paragraph{Engine changes} At low concurrency the largest gain in Table~\ref{tab:levers} comes from host work, not a kernel: making FlashInfer's attention planning, the host work that leaves the MTP cycle idle (Figure~\ref{fig:breakdown}), cheaper and free of blocking GPU reads 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$ but not for MTP \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}. Together, the fold, the routing table and the certified head lower 16-token DFlash's per-request rate at $c=1$ to 0.986 times stock (95\% interval 0.982--0.989, three sessions) and raise its throughput at $c=8$ 1.073 times, where most verify calls exceed the certified head's 64-position limit \ev{stack-composition} (Appendix~\ref{app:stack-composition}). Two declared approximations miss the quality budget fixed before measuring \ev{lossy}: FP16 recurrent state serves 1.16--1.17 times the best non-lossy arm's throughput at $c=64$--256 (three sessions) for 1.0--1.4 GSM8K points below plain decoding's reference runs, a loss this check cannot resolve, and an int4 target with its int4 drafter~\cite{nota2026} fails a logit probe and is slower above $c=1$.

\paragraph{The certified head, served} Served alone against each tuned arm in three sessions, the certified head raises throughput at $c=1$ by 2.5\% for plain decoding, 4.6\% for MTP and 1.2\% for 16-token DFlash, and keeps gaining up to $c=32$ for plain decoding and $c=8$ for MTP (Table~\ref{tab:levers}; Appendix~\ref{app:cert-served}) \ev{cert-served}. It loses 1.0--3.3\% wherever its certified calls reach 28--64 positions (DFlash above $c=1$, MTP at 64), where 55--83\% of verify calls need a fallback in check mode, and up to 1.2\% where it is gated off. So the best arm at each concurrency gains only at $c=1$ and loses 1.0--3.0\% at $c=2$--8 and 0.6\% at 128, and the gains at $c=1$ are 28--71\% of the saving predicted from the head-only times. Its tokens equal stock's at $c=1$, in check mode and, for MTP, under identical batch evolution; closed-loop runs of plain decoding, MTP and 8-token DFlash diverge from stock at 1.03--1.21 times the rate between stock runs, and the one large divergence is where stock's BF16 decode path errs against FP32. Batches that request log-probabilities, penalties or a grammar get the stock verify.

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 Trim the manuscript back to the ten-page limit

This added served-results paragraph leaves the conclusion spilling onto an eleventh main-text page—the commit's own build note reports an overflow of roughly six lines—while the repository defines the manuscript as a ten-page main paper. Shorten this paragraph or make equivalent cuts elsewhere before treating this revision as submission-ready.

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 c923ada: four short cuts in Sections 4.3 and 7, the abstract and the Conclusion (listed in the PR body). The main text now ends at the foot of p10R, and References start at the top of p11.

The fold and the framing ran about six lines onto p11. These cuts bring
the Conclusion back to the foot of p10 without dropping a result or a
condition:
- Section 4.3: the sentence pointing to the FP32-output kernel's error
  as "the more direct test" (the Limitations already call that error
  indirect evidence, and Section 2.2 reports it).
- Abstract: "depending on the error model" becomes "under two error
  models".
- Limitations: the Figure 3b aside; the per-change session counts, which
  Table 1's caption and footnote d already give; tighter wording for the
  served runs and the fixed-noise acceptance, which is still stated
  here and in Section 3.3.
- Conclusion: one sentence for the fallback design, and shorter wording.
@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: c923adadff

ℹ️ 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/abstract.tex Outdated
% Abstract: one paragraph, as the MLSys template asks.
\begin{abstract}
In speculative decoding a target model checks tokens that a cheaper drafter proposes. At each position a greedy verifier, like greedy decoding, needs one fact from the output head, the winning token, yet the engine scores the whole vocabulary. That token can be found more cheaply: approximate every score from an int8 copy of the head, bound each approximation's error, recompute exactly the few entries that could still win, and fall back to the engine's own head when the bounds cannot decide. Inside a production engine the token must be the one the engine's head returns for a batch of the same size, after BF16 rounding and its tie rule. We prove when bounds on the head's FP32 sums fix this token, given an assumed bound on its rounding error, and extend the method to seeded sampling. For Qwen3.5-4B in SGLang on a GH200, replaying 60,000 positions captured from greedy decoding, the GPU kernel recomputes about 1.8 entries per decision and leaves 0.28\% of positions to the engine's head under a published model of Hopper accumulation, or 1.46\% under a conservative model; with that fallback every token equals the engine's. In a 64-prompt check inside SGLang under the conservative model no certified token differed from the engine's head, but for one public drafter 90\% of verify batches still needed the fallback. Timed alone, with fallbacks costed at their measured rates, the certified head is expected to take about 0.7 times the engine head's time for calls of up to 16 positions, which would save at most about 3.4--3.5\% of a batch-1 decode step (derived). That estimate uses a per-position fallback that the engine check exercised only in plain decoding; from 128 positions the head is slower, and its effect on serving is not yet measured. At 1 to 8 concurrent requests the largest exact serving gain came from host work: making attention planning cheaper and free of blocking reads raised MTP drafting's throughput with FlashInfer attention by 9.4--9.6\% (one session, token-identical outputs). Bounds carried over from the drafter's own head computation are sound but too loose to skip more than 0.7\% of the vocabulary in any variant tested: the distance between draft and target head inputs, relative to the target's, has a median of 92\% and 95\% for the two public drafters, where about 1\% is needed.
A greedy verifier in speculative decoding, like greedy decoding itself, needs one fact from the output head, the winning token, yet the engine scores the whole vocabulary. We find that token from an int8 copy of the head: bound each approximate score's error, recompute exactly the few entries that could still win, and fall back to the engine's own head when the bounds cannot decide. The token must be the one the engine's head returns for a batch of the same size, after BF16 rounding and its tie rule. We prove when bounds on the FP32 sums fix it, given an assumed and tested bound on the closed-source kernel's rounding error, and extend the method to seeded sampling. For Qwen3.5-4B in SGLang on a GH200 the kernel recomputes about 1.8 entries per decision and leaves 0.28--1.46\% of 60,000 replayed positions to the fallback under two error models; every token equals the engine's, and none of 592,433 positions certified in the served engine differs. Served in three sessions, it raises throughput at one request by 2.5\% for plain decoding, 4.6\% for MTP and 1.2\% for DFlash, with identical tokens, but the best configuration loses 1.0--3.0\% at 2 to 8 requests, where certified head calls reach 28--64 positions and most verify calls fall back, and 0.6\% at 128, where the head is gated off. The stock engine is itself not FP32-exact: at one position its BF16 decode path commits a token FP32 places 8.9 nats below the top. Among the engine changes we measured, the largest gain at low concurrency came from host work: 9.4--9.6\% for MTP with FlashInfer attention (one session), still short of MTP with Triton attention. Bounds carried over from the drafters' own head computation skip under 0.7\% of the vocabulary in every variant tested: draft and target head inputs differ by a median 92--95\% of the target's norm, where about 1\% is needed.

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 committed manuscript PDFs

This rewrites the abstract and many other manuscript sections, but both paper/paper.pdf and paper/research_notes.pdf are byte-for-byte unchanged from the parent commit. Because the repository directs readers to paper/paper.pdf as the primary manuscript, they will receive the previous version without the new served-head results; rebuild and commit both generated PDFs from these updated sources.

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.

Not changed, by repository practice: paper PRs change only the LaTeX sources and figure data, and the integrator rebuilds paper/paper.pdf and paper/research_notes.pdf on main in a separate rebuild-only PR after the paper PRs merge (as in #171, #176, #189 and #193). Committing PDFs in every paper PR made each one conflict with the others. This PR's build was checked locally (PR body, Build section).

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: REQUEST CHANGES at c923ada

The fold is careful, and almost every served number reproduces from evidence/certified_head/served/. The framing edits make the paper's point earlier without adding claims. Three things need fixing first: the fallback shares come from the partial check run, one sentence (in two places) states a rows-to-loss rule that the plain and MTP points contradict, and the seeded control's log-probability claim is broader than what was compared. Each is a wording or number change, with no page cost beyond a few words.

Blocking

  1. The fallback shares come from the partial first check launch, not the complete rerun.

    • Locations: setup.tex §4.5 ("where 55--83% of verify calls need a fallback in check mode") and Appendix E.5 Throughput ("to 75--83% at $c=4$ for 16-token DFlash"). The PR body cites 64/83/55/70/67%.
    • Those are the check rows of check.csv, the h1 launch whose counters the README labels partial ("stay in check.csv labelled partial"). The README's own check table and the 0-of-592,433 exactness claim rest on check2.
    • From check2 (fallback calls over calls), the verify head gives:
      • 16-token DFlash: 64.2% at c = 2, 81.5% at c = 4 (draft projection 75.9%);
      • 8-token DFlash: 53.7% at c = 4, 70.9% at c = 8.
    • MTP at c = 64 is a further problem. Its verify runs certified only in the drain (78 calls, 62.8%), and the README attributes that point's loss to 64-row draft calls, of which 75.7% fall back.
    • Fix:
      • §4.5: "where 54--82% of DFlash's verify calls and 76% of MTP's draft calls at $c=64$ need a fallback in check mode".
      • E.5: "to 76--82% at $c=4$ for 16-token DFlash".
      • Plain decoding's "2% at $c=1$ to 61% at 64" already matches check2 (1.6%, 60.8%).
  2. The loss is stated as a rule about call size, and the plain and MTP points contradict it.

    • Locations: setup.tex §4.5 "It loses 1.0--3.3% wherever its certified calls reach 28--64 positions (DFlash above $c=1$, MTP at 64)"; notes/status.tex H3 "1.0--3.3% less where certified batches reach 28--64 rows (DFlash above $c=1$, MTP at 64)".

    • Calls of the same sizes run certified without a loss in five cases:

      • plain decoding at c = 32 (32-row calls, 1.011) and c = 64 (64 rows, 0.999);
      • MTP at c = 8 (32-row verify, 1.017), c = 16 (64-row verify, 1.000) and c = 32 (32-row draft, 0.979, interval includes 1).

      The check2 rows confirm 64-row certified verify calls at MTP c = 16 and 64-row decode calls at plain c = 64. The parenthesis does not rescue "wherever": a reader takes 28-64 positions as the cause. The README scopes the same statement to DFlash ("DFlash loses at every tested point where its certified batches reach 28-64 rows").

    • Fix: "It loses 1.0--3.3% at every DFlash point above $c=1$ where it runs, with certified calls of 28--64 positions, and for MTP at $c=64$ (64-position draft calls); plain decoding and MTP keep their gains, or show no change, with calls of the same sizes up to $c=32$." Make the same change in H3. E.5's version ("Both DFlash arms lose ... where their certified calls reach 28--64 positions") is already scoped correctly.

    • The notes' levers-table cell (stack.tex, "served: $+$1.2--4.6% at $c=1$") reports only the gain. Add the losses, e.g. "; $-$1.0--3.3% for DFlash above $c=1$ and MTP at 64; the envelope rises only at $c=1$".

  3. The seeded control compared log-probabilities at one position, not throughout.

    • Location: Appendix E.5 Exactness, "With log-probabilities requested, ... the certified graphs, the certified draft and draft-extend heads and the gated-off verify left tokens and log-probabilities identical to the bit."
    • experiments/benchcert/control_waves.py's small_compare compares output_ids across servers. It records log-probabilities only at position 439 of the seeded prompt (top5_at_439, tracked_at_439). The README's reading (ii) says exactly this: "equal stock bitwise on all 109 requests ... and their logprobs at 439 are identical to the bit."
    • Fix: "left every token of the 109 requests identical, and the log-probabilities at position 439 identical to the bit".

Optional

  1. Abstract, "certified head calls reach 28--64 positions". At 2-8 requests the best configuration's certified calls are 30-64 positions: 16-token DFlash has 32 verify and 30 draft rows at c = 2 and 64/60 at c = 4; 8-token DFlash has 64/56 at c = 8. The 28 belongs to 8-token DFlash at c = 4, which is not the best arm there.
  2. Abstract, "none of 592,433 positions certified in the served engine differs". "(check mode)" would keep the condition beside the claim. Check mode runs the stock head in every certified step, so it is not the timed graph, and E.5 says so.
  3. Conclusion, "10% of a batch-1 plain decode step, against 42% for the recurrent-state kernel at batch 128". This compares two batch sizes. At batch 128 the head chain is 6.1% (Appendix E.2), against 41.6%, which makes the same point at one batch size.
  4. Contribution 1 cites Section 4.5 for the 8.9-nat event. Section 4.5 does not give the number; Appendix E.5 does. Point to Appendix~\ref{app:cert-served}.
  5. Section 4.5, closed-loop divergence rates of 1.03-1.21. MTP's interval (1.0002-1.22) just excludes 1. E.5 says so and gives the identical-batch-evolution explanation. A clause in §4.5 would keep that condition in the main text.
  6. Evidence README, for a later evidence PR. evidence/certified_head/served/README.md:64 ("logprob-identical to stock") and the "leave tokens and logprobs unchanged" sentence after reading (ii) state more than the comparison covers, for the same reason as item 3.

What I checked

  • Head and base. Head c923ada, confirmed with git ls-remote. Base: main 925ef07, which includes Paper and notes: fold the lossy levers (#209) and the backbone table on mtp-tuned-triton (#210) #212. Four commits by the configured identity, with no AI attribution lines; the hostname check is clean.
  • Codex. The P1 (page fit, on bf0b880) is fixed: my build ends the Conclusion on p10. The P2 on c923ada (rebuild the committed PDFs) is correctly answered by repository practice; the BRIEF forbids PDFs in paper PRs.
  • Served numbers, recomputed from ratios.csv, check.csv (check2 rows), predictions.json, capture_memory.csv and the control JSONs.
    • Primaries: 1.0251, 1.0456, 1.0125 and 0.9880.
    • Every row of the new E.5 table matches ratios.csv, intervals and predictions included.
    • Envelope: 1.012, 0.990, 0.970, 0.975, then 0.988, 0.994, 0.999, 0.994.
    • Gains as a share of prediction: 0.0251/0.0354 = 71%, 0.0456/0.0859 = 53%, 0.0125/0.0446 = 28%.
    • Gate overhead 0.6-1.2%; capture memory 3.84-25.7 GB; 592,433 rows with 0 differing; 32/32 identity at c = 1.
    • Divergence-rate ratios 1.21, 1.11 and 1.03 with their intervals; classes 540/553/19/1 of 1,113.
    • Seeded control: 3,708 certified verify steps, 109/109 on both reps, baseline_identical true. Waves 64/64, 512/512 and 64/64.
    • FP32 event: -0.87 against -9.79, so 8.9 nats; post hoc 4/19 against 8/34, Fisher p about 0.16.
  • Interpretations stay labelled. "Ill-conditioned" appears only in E.5, as an interpretation. The stock BF16 statement in the abstract and contribution 1 is the measured part: stock batch-1 decode puts 1756 on top, and FP32 places it 8.9 below. The shortfall mechanism is called a hypothesis in E.5 and the Limitations.
  • Moves and cuts. The 170 us baseline is now in E.2, the 49% FR-Spec figure is in E.2, and the clustering sentence and the Hopper expected times are in Appendix A. numdiff against 925ef07 drops nothing outright: 0 of 12 dropped kinds are found nowhere. No \pend is left in the main text; five remain in the appendices, for Notes and appendices: fold #211 and #213, and state every unmeasured result as such #215.
  • Build. My own build, in the CPU window, one core:
    • Paper: 54 pp, 0 warnings, 0 overfull. The Conclusion ends on p10 with a few lines to spare, and References start on p11.
    • Notes: 55 pp.
    • check_paper_references.py --rev HEAD is clean, and pre-commit on the changed files passes.
    • I looked at p1, p7, p8 and p10 at 150 dpi. Table 1's new group fits the column, and the footnotes read correctly.

On the next head I will re-check items 1-3, the page budget from a fresh build, the checker and Codex.

…losses (review of #214)

- Section 4.5 and Appendix E.5: fallback shares come from the complete check
  rerun (check2), not h1's partial launch: 54-82% of DFlash's verify calls
  and 76% of MTP's draft calls at c = 64; 76-82% at c = 4 for 16-token DFlash.
- Section 4.5 and notes H3: the loss is stated for DFlash above c = 1 and MTP
  at 64, and plain decoding (c = 32, 64) and MTP (c = 8-32) are named as
  running calls of the same sizes without a detectable loss. The levers
  table adds the losses and the envelope.
- Appendix E.5: the seeded control compared every token, and
  log-probabilities at position 439 only.
- Abstract: 30-64 positions for the best configuration, and "(check mode)".
  Contribution 1 points to Appendix E.5 for the 8.9 nats. The Conclusion
  compares the head and the state kernel at one batch size. Section 4.5
  says only MTP's divergence interval excludes 1.

To keep the main text within ten pages (the fixes added about four lines),
with two lines spare at the foot of p10, these trims drop no claim or
condition: Section 4.5's subject becomes "it" under its own paragraph title
and its loss sentence is restructured; Section 5.4 points to Table 12 without
naming its appendix and says "DFlash-4B positions"; the Limitations drop two
repeated pointers to Section 2.2 and the words "too", "the capture's" and
"served". In the notes, the levers table's caption sentence on attention
backends moves into the paragraph that defines the classes, so the table fits
its page with the longer certified-head cell.
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: 276f3aa346

ℹ️ 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 276f3aa

I re-reviewed the delta from c923ada: one commit, 13 lines in 8 files. My three blocking items and optional items 4-8 are fixed, and the build fits the page budget. One blocking item remains. It comes from the wording I suggested for item 3, which still overstates the comparison, so the error is mine.

Blocking

  1. Appendix E.5, Exactness (app_stack.tex): "...left every token of the 109 requests equal to stock's, and the log-probabilities at position 439 identical to the bit."
    • The seeded control does not record the full distribution at 439. experiments/benchcert/control_waves.py requests top_logprobs_num 5 and the five SMALL_TRACK token ids (1756, 68189, 8078, 5715, 9471). seeded_logprobs keeps only those (top5, tracked). Codex flagged the same overstatement on Served README: scope the seeded control's log-probability claims to position 439 #217 (4168624769).
    • I checked the recorded fields from control_seeded_mtp.json (seeded_target): they are identical across stock, cert0, cert and stock2 in all 20 wave, size and pass groups. So the scoped claim holds.
    • Fix: "...and the top-five and five tracked tokens' log-probabilities at position 439 identical to the bit."

Re-checked at 276f3aa

  • Item 1 (fallback shares): fixed. §4.5 now reads "54--82% of verify calls fall back in check mode" for DFlash where the head is active. That matches check2: 64.2 and 81.5 for 16-token blocks at c = 2 and 4, and 53.7 and 70.9 for 8-token blocks at c = 4 and 8. MTP at 64 reads "64-position draft calls, 76% falling back" (75.7). E.5 reads "76--82% at $c=4$" (75.9 and 81.5).
  • Item 2 (call-size rule): fixed. In §4.5, notes H3 and the levers cell, the losses are scoped to DFlash above c = 1 where the head is active and to MTP at 64. Each now says that plain decoding at c = 32 and 64 and MTP at c = 8-32 run calls of these sizes without a detectable loss.
  • Item 3: fixed, apart from item 1 above.
  • Optional items 4-8, all fixed:
    • "30--64 positions": the best arm's certified calls at c = 2-8 have 30-64 rows.
    • "(check mode)" sits beside the 592,433 positions.
    • The Conclusion's head share is "at batch 128 its chain takes 6%", against 41.6% for the state kernel, both in App E.2.
    • Contribution 1 points to Appendix E.5.
    • "only MTP's 95% interval, 1.0002--1.22, excludes 1".
  • Trims.
    • The attention-backend classification moves from the levers-table caption into the classification paragraph ("a change of its attention backend included"), so it is kept.
    • Limitations loses two pointers to Section 2.2, whose content is unchanged, plus "the capture's" and "served". Transport loses "in Appendix C" (the table reference stays) and "verification".
    • No claim or condition is dropped. The batch-1 head share (10.3%) is still in the Introduction.
  • numdiff against c923ada. The dropped tokens are only the replaced values: 10 (Conclusion), 28 (abstract), and 55, 75 and 83 (fallback shares).
  • Build. My own build: paper 54 pp, 0 warnings, 0 overfull. The Conclusion ends at the foot of p10 and References start on p11. Notes 55 pp. check_paper_references.py --rev HEAD is clean.
  • Codex is clean on 276f3aa, per main.

Optional

  1. Conclusion, "loses at larger batches, where fallbacks become common". This is looser than §4.5's scoped statement. "...loses on DFlash above one request and on MTP at 64, where fallbacks become common" would match §4.5 at a similar length, if the page allows.

On the next head I will check only this sentence, plus the build if any line moves.

…usion's loss scope (review 2 of #214)

- Appendix E.5: the seeded control recorded the top-five and five tracked
  tokens' log-probabilities at position 439, not the full distribution; the
  sentence now says so.
- Conclusion: the head loses on DFlash above one request and on MTP at 64,
  as Section 4.5 states, not "at larger batches".
@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: 8b58206d55

ℹ️ 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 8b58206

I re-reviewed the delta from 276f3aa: one commit, two sentences.

  • Item 1 (blocking at 276f3aa): fixed. Appendix E.5 now reads "...left every token of the 109 requests equal to stock's, and the top-five and five tracked tokens' log-probabilities at position 439 identical to the bit." That is what control_waves.py records (top_logprobs_num 5 and the SMALL_TRACK ids). I checked control_seeded_mtp.json seeded_target: those fields are identical across stock, cert0, cert and stock2 in all 20 wave, size and pass groups.
  • Optional item 2: taken. The Conclusion now reads "loses on DFlash above one request and on MTP at 64, where fallbacks become common", matching §4.5.
  • Build. My own build, in the CPU window: paper 54 pp, 0 warnings, 0 overfull. The Conclusion still ends at the foot of p10, and References start on p11. Notes 55 pp. check_paper_references.py --rev HEAD is clean. numdiff against 276f3aa drops nothing and adds only the "64" of the Conclusion's new wording.
  • Codex reviewed 8b58206 clean (18:35 UTC) and left no inline threads.

#215 (approved at 2f7f913) is based on 276f3aa. After a rebase onto this head, I will check only the diff of diffs.

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