Skip to content

Appendix F: the per-position acceptance a block drafter would need for 5x (#134, derived) - #140

Merged
SamMausberg merged 6 commits into
mainfrom
paper/appendix-draftreq
Oct 1, 2026
Merged

SamMausberg merged 6 commits into
mainfrom
paper/appendix-draftreq

Conversation

@SamMausberg

@SamMausberg SamMausberg commented Oct 1, 2026 •

Copy link
Copy Markdown
Owner

Stacked on #136. The base is paper/appendix-p4cap, so the diff shows only this PR's two commits (aff3ec7 and the PDF 16bd1b8). After #130 and #136 merge I'll retarget it to main. It folds #134 (evidence/drafter/drafting_requirement.json, derived from committed measurements with no new runs) into Appendix F's existing Stage A (Test 1) paragraph, which already derives the 5x target from perfect continuations. #134 adds the conversion to a per-position acceptance and the comparison with the measured drafter, so it goes in as two sentences, not a new subsection.

What it says (derived)

  • FlashInfer verify. That comes to 43-276 tokens per cycle at B = 16-256, which is more than B at every width. No width reaches 5x even with every block accepted, consistent with Test 1's 4.68x at B = 256 with DFlash's drafting cost.
  • Triton verify (exactness pending):
    • B = 16: 42.1 tokens, more than the 16 a block can commit.
    • B = 64: 61.1 of 64, which needs a constant per-position acceptance of at least 0.9985.
    • B = 256: 132.2 of 256, which needs at least 0.9941.
  • Measured at block 16. The drafter's conditional acceptance on the block-16 trace is 0.80-0.91 by position, a miss rate of about 11%.
  • Corrected scope of the top-16 support figure. Its conditional rate is 0.91-0.92 from position 4. The text says this is measured only at the stock block-16 trajectory's cycle starts, and is not a bound on a selector (which would start its cycles elsewhere) or on a wide-block drafter.

The P2 status row gains the requirement (≥ 0.9985 at B = 64 against 0.80-0.91 measured, derived). The new register entry is drafting-req.

Consistency with every 5x mention. The other mentions are Test 1 (5.01x with a free drafter, 4.68x with DFlash drafting, at B = 256; FlashInfer), the Triton table, the sentence "a 5x gain needs blocks of 64 or more tokens accepted almost entirely", and the P2 row. They agree with these numbers, so none of them changes.

Checks

  • latexmk -pdf: 0 warnings, 80 pages, main text ends on p10, References on p11.
  • scripts/check_paper_references.py is clean.
  • The host-identity hook passes.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-01T15:39:07.637896Z d0bb0f0 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.

…need for 5x (#134, derived)

From evidence/drafter/drafting_requirement.json (no new runs), folded into
the existing Stage A paragraph as two sentences: with the Triton verify
kernel a cycle must commit 61.1 of 64 tokens at B = 64 or 132.2 of 256 at
B = 256, a constant per-position acceptance of at least 0.9985 or 0.9941,
against 0.80-0.91 measured at block 16; with FlashInfer no width suffices
even fully accepted. The top-16 support rate (0.91-0.92 from position 4)
is stated as measured only at the stock block-16 trajectory's cycle
starts, so it bounds neither a selector nor a wide-block drafter. New
register entry drafting-req; the P2 status row gains the requirement.
@SamMausberg
SamMausberg force-pushed the paper/appendix-draftreq branch from ba88a6d to 16bd1b8 Compare October 1, 2026 15:29
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@SamMausberg
SamMausberg changed the base branch from paper/appendix-p4cap to main October 1, 2026 15:32

@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: 16bd1b899b

ℹ️ 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/app_register.tex Outdated
\quad Adaptive sampled depth stays exact & Tiny laws with candidate-dependent stopping & Settled by prior art and Theorem~\ref{thm:fixednoise} (Appendix~\ref{app:stopping})\\
P1: a certificate on the decision can skip the final layer's MLP and the head & Oracle-radius replay at the cut (Appendix~\ref{app:tail}) & Rejected by its kill test~\ev{tail}\\
P2: long-window exact repair from a DFlash window beats optimized DFlash substantially & Perfect-continuation oracle, then real windows (Appendix~\ref{app:repair}) & With SGLang's FlashInfer GDN verify kernel, perfect blocks meet the $5\times$ target only at $B=256$ with a free drafter (5.01$\times$; 4.68$\times$ with DFlash's drafting cost); with its Triton kernel (exactness pending), from $B=64$ (5.21$\times$)~\ev{repair-a,repair-verify}; one-step recycling does not help, and exact sweeps gain about one token each~\ev{repair-recycle,repair-b}; sweeps in the engine \pend{repair-jacobi}\\
P2: long-window exact repair from a DFlash window beats optimized DFlash substantially & Perfect-continuation oracle, then real windows (Appendix~\ref{app:repair}) & With SGLang's FlashInfer GDN verify kernel, perfect blocks meet the $5\times$ target only at $B=256$ with a free drafter (5.01$\times$; 4.68$\times$ with DFlash's drafting cost); with its Triton kernel (exactness pending), from $B=64$ (5.21$\times$)~\ev{repair-a,repair-verify}; a block drafter would need a per-position acceptance of at least 0.9985 at $B=64$ with the Triton kernel, against 0.80--0.91 measured at block 16 (derived)~\ev{drafting-req}; one-step recycling does not help, and exact sweeps gain about one token each~\ev{repair-recycle,repair-b}; sweeps in the engine \pend{repair-jacobi}\\

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 Qualify the acceptance threshold as a constant-rate model

When conditional acceptance varies by position—as the cited 0.80–0.91 measurements do—the derived 0.9985 is not a lower bound on each position's acceptance; it is the value obtained only after assuming one constant conditional rate at all positions. For example, late-position acceptance can be far below 0.9985 while the expected committed length still exceeds 61.1. The appendix states the constant-rate assumption, but this status row presents the number as an unconditional requirement; retain that assumption here or report the required 61.1 expected commits instead.

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 cfcee1a (head d4b71df). The P2 status row now gives the requirement itself: with the Triton kernel, a block drafter must commit 61.1 of 64 tokens per cycle at B = 64. It gives 0.9985 only as the per-position acceptance if that rate were the same at every position. The App F sentence already stated that assumption.

Codex P2 on #140: with acceptance varying by position, 0.9985 is not a
per-position lower bound; the row now gives the 61.1 of 64 expected
commits and the 0.9985 only for a rate that is the same at every
position.
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE (provisional, on d4b71df: Codex is still running on this head. I will confirm or withdraw once it finishes.)

Review of the exact head d4b71df (based on main 097ae5c): aff3ec7 (App F Test 1 sentences, the P2 row, evitem drafting-req), cfcee1a (Codex P2) and the PDFs.

  • The two App F sentences match Drafter: the per-position acceptance a block drafter needs for 5x (derived from committed evidence) #134's merged evidence (evidence/drafter/drafting_requirement.json, which I verified on Drafter: the per-position acceptance a block drafter needs for 5x (derived from committed evidence) #134):
    • with the Triton kernel, 61.1 of 64 tokens at B = 64 and 132.2 of 256 at B = 256;
    • for a drafter with the same conditional acceptance at every position, that means at least 0.9985 or 0.9941, against 0.80-0.91 measured at block 16;
    • with FlashInfer, no width suffices even fully accepted (derived);
    • the top-16 support of 0.91-0.92 from position 4 is stated as measured only at the stock block-16 trajectory's cycle starts, so it is not a bound for a selector or a wide-block drafter.
  • The P2 status row now states the requirement as a constant-rate model, which fixes Codex P2 r4157288936 (answered).
  • Register. drafting-req cites the JSON, its README and the generator, all on main.
  • Rebuild in place. latexmk -g on one core finished with 0 warnings, wrote 80 pages, and its text is identical to the committed PDF. References start on p11, and check_paper_references.py is clean.

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

ℹ️ 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/app_drafting.tex Outdated
With the audit charged the measured verify pass, P3's two-pass design misses the $5\times$ target at every width even with free repair, so by its pre-registered rule it is refuted for this verifier, and P2 meets its target only at the edge of this test, at $B=256$ with a drafter that costs nothing and every block accepted. Both verdicts are statements about the FlashInfer verify kernel, and two further runs at $B=16$, 64 and 256 separate its parts~\ev{repair-verify}. Dropping the per-position FP32 state writes, with an engine patch used for timing only, shortens the pass by 0.26, 1.26 and 4.10~ms, 5.3, 8.1 and 9.1\% of $V(B)$, close to their bytes at 3.0~TB/s. These savings compare a pass from a later session with the Stage A session's $V(B)$; the draft phase, which neither change touches, ran 1.8--2.6\% shorter in the later session, so at $B=16$ the difference is within that drift. An audit that dropped those writes and continued from the accepted boundary by an uncharged replay would therefore lift P3's ceiling to 5.18 end to end at $B=256$, where the target needs a saving of 2.33~ms; such a verifier would also make the DFlash baseline cheaper, since a block-16 cycle writes 16 per-position states. The larger cost is the FlashInfer kernel itself: selecting SGLang's Triton GDN verify kernel instead, a stock option, makes the whole pass $2.06\times$ faster at $B=64$ and $2.34\times$ at $B=256$ at one request ($V(B)=4.55$, 7.58 and 19.18~ms).

The Triton kernel is a different numerical path. DFlash at block 16 with it commits 7.603 tokens per cycle against 7.675, so its greedy outputs differ from the FlashInfer configuration's, and every figure that uses it is pending an exactness classification against plain decoding. With the DFlash baseline on the same kernel, 7.302~ms per cycle and $f=2.39\%$, so that $5\times$ end to end needs 5.54 in decode, the derived speedups change both verdicts (Table~\ref{tab:stagea-triton}). Perfect blocks reach $5\times$ end to end from $B=64$, 5.21 paying DFlash's drafting cost and 6.84 with a free drafter, and P3's two-pass estimate passes at $B=256$ (6.21), its ceiling already at $B=64$. The baselines on the two kernels are single runs from two sessions, so the baseline's own gain from the switch is not established; the wide blocks gain about two times. The Stage A verdicts therefore depend on the verify kernel. With the Triton kernel P2 turns on drafting, since a $5\times$ gain needs blocks of 64 or more tokens accepted almost entirely and the repair mechanisms tested here do not produce them (Tests~2 and~3); P3 stays refuted by Test~3 whatever the verifier. Past $B=16$ the FlashInfer pass grows by about 0.167~ms per extra token, roughly five times what that token's GEMM work and its 48~MiB per-position state write account for. A kernel trace locating the rest inside the pass, a same-session control of the three verify variants, and the acceptance of the reference continuation per width are \pend{repair-verifier}.
The Triton kernel is a different numerical path. DFlash at block 16 with it commits 7.603 tokens per cycle against 7.675, so its greedy outputs differ from the FlashInfer configuration's, and every figure that uses it is pending an exactness classification against plain decoding. With the DFlash baseline on the same kernel, 7.302~ms per cycle and $f=2.39\%$, so that $5\times$ end to end needs 5.54 in decode, the derived speedups change both verdicts (Table~\ref{tab:stagea-triton}). Perfect blocks reach $5\times$ end to end from $B=64$, 5.21 paying DFlash's drafting cost and 6.84 with a free drafter, and P3's two-pass estimate passes at $B=256$ (6.21), its ceiling already at $B=64$. The baselines on the two kernels are single runs from two sessions, so the baseline's own gain from the switch is not established; the wide blocks gain about two times. The Stage A verdicts therefore depend on the verify kernel. With the Triton kernel P2 turns on drafting, since a $5\times$ gain needs blocks of 64 or more tokens accepted almost entirely and the repair mechanisms tested here do not produce them (Tests~2 and~3); P3 stays refuted by Test~3 whatever the verifier. In per-position terms, a cycle drafted by DFlash at width $B$ would have to commit 61.1 of 64 tokens at $B=64$ or 132.2 of 256 at $B=256$, which for a drafter with the same conditional acceptance at every position means at least 0.9985 or 0.9941, against 0.80 to 0.91 for the public drafter at block 16; with the FlashInfer kernel no width suffices even with every block accepted (derived)~\ev{drafting-req}. The drafter's top-16 candidate sets still contain the target's token at a conditional rate of 0.91 to 0.92 from the fourth position, but that rate is measured only at the cycle starts of the stock block-16 trajectory, so it bounds neither a selector, which would start its cycles elsewhere, nor a wide-block drafter. Past $B=16$ the FlashInfer pass grows by about 0.167~ms per extra token, roughly five times what that token's GEMM work and its 48~MiB per-position state write account for. A kernel trace locating the rest inside the pass, a same-session control of the three verify variants, and the acceptance of the reference continuation per width are \pend{repair-verifier}.

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 Limit the FlashInfer conclusion to measured widths

The cited derivation evaluates only $B=16,32,64,128,256$, so it supports that none of those widths can reach the target while paying DFlash drafting cost, not that “no width” can ever suffice. Larger widths were not measured, and the immediately following pending work explicitly leaves wider-kernel behavior unresolved; qualify this as “none of the measured widths” to avoid turning a bounded experiment into an unconditional conclusion.

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 d76387c (head d0bb0f0). The sentence now reads "with the FlashInfer kernel none of the measured widths, 16 to 256, suffices even with every block accepted".

@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE (provisional, on d0bb0f0: Codex is still running on this head. I will confirm or withdraw once it finishes.)

d76387c scopes the FlashInfer conclusion to "none of the measured widths, 16 to 256", which matches the widths in drafting_requirement.json (16, 32, 64, 128, 256). This fixes the Codex P2 on d4b71df. Rebuild in place: latexmk -g finished with 0 warnings, wrote 80 pages, and its text is identical to the committed PDF. References start on p11.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: d0bb0f07e0

ℹ️ 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
SamMausberg merged commit c6c121c into main Oct 1, 2026
@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE (confirmed on d0bb0f0)

Codex finished its review of d0bb0f0 with no inline comments, and the head is unchanged, so my approval stands.

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