Repository navigation
Appendix F: the per-position acceptance a block drafter would need for 5x (#134, derived) - #140
Conversation
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. |
…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.
ba88a6d to
16bd1b8
Compare
|
@codex review |
There was a problem hiding this comment.
💡 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".
| \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}\\ |
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
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.
|
@codex review |
|
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,
|
There was a problem hiding this comment.
💡 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".
| 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}. |
There was a problem hiding this comment.
Limit the FlashInfer conclusion to measured widths
The cited derivation evaluates only
Useful? React with 👍 / 👎.
…dths Codex P2 on #140: the derivation covers B = 16 to 256 only.
|
@codex review |
|
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 |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. 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". |
Stacked on #136. The base is
paper/appendix-p4cap, so the diff shows only this PR's two commits (aff3ec7and the PDF16bd1b8). After #130 and #136 merge I'll retarget it tomain. 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)
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.pyis clean.