Skip to content

Appendix F: fold in the repair verify decomposition (#89) - #92

Merged
SamMausberg merged 3 commits into
mainfrom
paper/appendix-verifier
Oct 1, 2026
Merged

SamMausberg merged 3 commits into
mainfrom
paper/appendix-verifier

Conversation

@SamMausberg

Copy link
Copy Markdown
Owner

Folds the repair verify decomposition merged in #89 into Appendix F, the status table and the evidence register. The main text does not discuss P2 or P3 and is unchanged.

What Test 1 now says

  • Which kernel. At the pin the GDN verify kernel follows the decode backend unless overridden. The DFlash card's configuration therefore verifies with FlashInfer's kernel, while SGLang's default linear-attention backend, which the served arms of E.8 keep, verifies with Triton (code reading).
  • Measured state writes (stage_a_oracle.csv, now measured at B = 16, 64, 256). Dropping the per-position FP32 writes saves 0.26, 1.26 and 4.10 ms, which is 5.3, 8.1 and 9.1% of V(B). As a result:
    • The P3 estimate at B = 256 is now 2.89 / 2.77 (was 2.90 / 2.78 from the byte bound).
    • The state-free-audit ceiling is 5.18x (was 5.20x); the target needs 2.33 ms.
    • The decomposition is no longer described as queued.
  • Triton GDN verify kernel (stage_a_timing.json, new entry repair-verify). The whole pass is 2.06x faster at B = 64 and 2.34x at B = 256 at one request. Everything on this kernel is marked pending exactness classification, because its greedy outputs differ (7.603 against 7.675 tokens per cycle). The baselines' gain is stated as not established, since they are single runs from two sessions.
  • Stage A on the Triton kernel (stage_a_oracle_triton.csv, new Table 24, derived). Against the DFlash baseline on the same kernel (7.302 ms, f = 2.39%, so 5x needs 5.54 in decode):
    • Perfect blocks reach 5x from B = 64: 5.21 paying DFlash's drafting cost, 6.84 with a free drafter.
    • P3's estimate passes at B = 256 (6.21), and its ceiling already at B = 64.
  • Verdicts. They depend on the verify kernel. P2 turns on drafting long, almost fully accepted blocks, which the tested repair mechanisms do not produce. P3 stays refuted by Stage B.
  • Pending. repair-verifier narrows to:
    • the kernel trace, whose Nsight runs failed at launch;
    • a same-session control of the three variants;
    • the Triton kernel's exactness classification;
    • the reference-continuation acceptance.

The P2 and P3 status rows and the Appendix F introduction are updated to match.

Every number was checked against stage_a_oracle.csv, stage_a_oracle_triton.{json,csv} and the repair README. One discrepancy is flagged to the repair workstream: the README's FlashInfer derived table still shows the old S_b estimate of 2.90 / 2.78 at B = 256. The paper uses the CSV's measured 2.89 / 2.77.

Validation

  • latexmk -pdf builds 74 pages with no warnings. The main text ends on page 10. The rebuilt paper.pdf is committed, and I looked at the three changed pages.
  • python scripts/check_paper_references.py passes; every new path exists on origin/main.

Stage A's verdicts are now stated as verdicts about SGLang's FlashInfer
GDN verify kernel, which the DFlash card configuration selects because
the verify kernel follows the decode backend at the pin.

Measured: the per-position state writes take 0.26, 1.26 and 4.10 ms
(9.1% of V(256)). The P3 estimate at B=256 becomes 2.89/2.77 and the
state-free audit ceiling 5.18x. The decomposition is no longer
described as queued.

SGLang's Triton GDN verify kernel is 2.06x faster at B=64 and 2.34x at
B=256. A new table gives the Stage A speedups derived on it, against a
DFlash baseline on the same kernel: perfect blocks reach 5x from B=64,
and P3's estimate passes at B=256. Everything on that kernel is marked
pending exactness classification. P2 now turns on drafting; P3 stays
refuted by Stage B.

New register entry repair-verify; repair-verifier narrows to the kernel
trace, the same-session control, the Triton exactness classification
and the reference-continuation acceptance. The P2 and P3 status rows
and the Appendix F introduction are updated.
@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-01T06:58:31.913605Z 02c3ff0 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: bb3f25e94c

ℹ️ 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
\devitem{drafter-train}{Which limitation of the drafter the measurements support, and the decision on training}{\nolinkurl{evidence/drafter/}}
\devitem{drafter-p6}{P6: the rate-trained selector against the same selector with the strongest matched objective, at fixed width}{\nolinkurl{evidence/drafter/}}
\devitem{repair-verifier}{Decomposition of the verify pass's growth with width (a verify without per-position states, Nsight Systems at $B=64$ and 256), which decides the two-pass ceiling for an audit without per-position state writes, and the acceptance of the reference continuation per width}{\nolinkurl{evidence/repair/}}
\devitem{repair-verifier}{A kernel trace of the verify pass at $B=64$ and 256, a same-session control of the three verify variants, the exactness classification of the Triton GDN verify kernel against the FlashInfer configuration, and the acceptance of the reference continuation per width}{\nolinkurl{evidence/repair/}}

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 Classify the Triton kernel against plain decoding

When this pending experiment is executed, comparing the Triton verifier only against the FlashInfer configuration cannot provide the exactness classification required by the new Stage A results: the same change states in app_drafting.tex:112 that every Triton-derived figure is pending classification against plain decoding, while the FlashInfer speculative path can itself diverge from plain decoding. Update this item to require the plain-decoding comparison (optionally retaining FlashInfer as an additional control), or the pending work can be completed without resolving whether the reported speedups use an acceptable numerical path.

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 8b8413d. The repair-verifier item now asks for the exactness classification of the Triton GDN verify kernel against plain decoding, with the FlashInfer configuration as a further control. That matches the Appendix F text.

Address the Codex comment on #92. The pending item now asks for the
exactness classification of the Triton GDN verify kernel against plain
decoding, as the Appendix F text says, with the FlashInfer configuration
as a further control. That configuration can itself diverge from plain
decoding.
Repair workstream's check of #92. All three savings compare the
decomposition session with the Stage A session's V(B). The draft phase,
untouched by either change, ran 1.8-2.6% shorter in the later session,
which bounds the drift; the same-session control stays pending.
@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE

Reviewed head 02c3ff0 (bb3f25e, 8b8413d, 02c3ff0), which folds #89 into Appendix F Test 1.

Every new figure matches the #89 evidence:

  • The writes. Dropping the state writes saves 0.26, 1.26 and 4.10 ms, which is 5.3, 8.1 and 9.1% of V(B). The text says the comparison is cross-session at every width and that B = 16 is within the 1.8–2.6% drift.
  • The P3 figures. The measured-write S_b estimate is 2.89 / 2.77, and the state-free-audit ceiling is 5.18 at B = 256 (S_b_ceiling_stateless_audit_e2e) against a needed 2.33 ms.
  • The Triton kernel. It is 2.06× and 2.34× faster (V(B) 4.55, 7.58 and 19.18 ms). Acceptance moves from 7.675 to 7.603 tokens per cycle. The Triton baseline is 7.302 ms with f = 2.39%, so 5× end to end needs 5.54 in decode.
  • Table 24 is cell for cell equal to stage_a_oracle_triton.csv, giving 5.21 and 6.84 from B = 64, P3's estimate of 6.21 at B = 256, and its ceiling of 5.49 at B = 64.

The scoping is right.

  • Both Stage A verdicts are stated for the FlashInfer verify kernel. The card's --linear-attn-decode-backend flashinfer selects it.
  • That the served arms keep SGLang's default backend, and so verify with Triton, holds: bench/arms.toml sets no linear-attention backend on any served arm, and the default is triton at the pin.
  • Every Triton figure says exactness is pending, and Table 24 is labelled derived.
  • The baseline gain is "not established".
  • P2 "turns on drafting" only with the Triton kernel, and P3 stays refuted by Test 3.
  • The repair-verifier pending item now asks for classification against plain decoding, which fixes Codex's P2.

Register. repair-verify cites committed files (stage_a_timing.json, the oracle CSVs and JSON, the README) and committed producers. repair-verifier is narrowed to what is still pending. The P2 and P3 rows carry both kernels.

Build and checks.

  • I rebuilt from source: 74 pages, no warnings, and the text matches the committed PDF.
  • The main text ends on page 10, and the checker passes.
  • No PR numbers are added.
  • The commits are Sam's, with no AI attribution.
  • Codex finished on bb3f25e, and its P2 is fixed and answered. It has not run on 8b8413d or 02c3ff0.

Two notes:

@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 02c3ff0aa4

ℹ️ 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 a0d74d8 into main Oct 1, 2026
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