Skip to content

Paper milestone 2: workstream methods, head-geometry results and the five contracts - #30

Merged
SamMausberg merged 14 commits into
mainfrom
paper/methods
Sep 30, 2026
Merged

SamMausberg merged 14 commits into
mainfrom
paper/methods

Conversation

@SamMausberg

Copy link
Copy Markdown
Owner

Milestone 2 of the paper revision. It integrates the workstream drafts as methods and adds the head-geometry results from #16 and the bench evidence from #17. It also frames every exactness claim with P7's five contracts, and adds P6's selector objectives with proofs. Every cited number is from main; everything else is a marked pending item naming its evidence path.

Results added (all merged evidence)

Head geometry (#16, evidence/head_geometry/)

  • Alignment. The captured plain-decode head inputs reproduce the engine:

    • the FP64 argmax matches the engine at 99.51% of 105,269 positions;
    • all 519 disagreements are within one BF16 spacing;
    • the top two logits are exact BF16 ties at 1.0% of positions.

    The text keeps R-bf16 as a comparison, not as the engine's computation.

  • Candidate sets (Table 7, and Figure 5 read from the committed CSV):

    • an int8 head certifies the real-arithmetic winner with 1.34 to 1.55 candidate rows on average;
    • FP8 needs 4.9 rows;
    • int4 is useless as a certificate.

    The explanation given is the margin distribution (median top-two margin 7.3 logits, head-input norm median 159), not envelope tightness.

  • How often the stock contract needs the stock kernel (new Table 8, from rstock_plain4b.json):

    • The gap condition of Thm 3.5 has a floor near 2% of rows.
    • The interval form (new Prop 3.6, proved) rounds accumulator intervals into BF16 buckets and applies the first-index rule. Under the blocked Hopper model it leaves 0.35% of rows (2.8% of batches) to the stock kernel.
    • No certified token differed from the engine's on these 6,005 rows. The text says this is consistent with the error models, not a proof.
  • P1, the certified tail, is rejected by its kill test. An int8 MLP surrogate can save at most 0.071 GB of 1.413, and it lowers the head-only certification rate from 79.3% to 71.8%.

  • These results also appear in the abstract, the contributions, Table 2 and the claim ledger.

Bench (#17, bench/, evidence/bench/)

  • The mixed-v2 workload: GSM8K train prompts, with GSM8K test reserved for quality; confirmation-split token statistics.
  • The natural-length run: 3.8% of outputs stop before 512 tokens, 0.7% loop by then, and 25% hit the 16,384-token limit. The text notes it was run on mixed-v1 with CPU contention, so it is a length measurement.
  • The feasibility probes, labelled as what launches, not as performance.

Contract witnesses (#26, evidence/contracts/)

  • Cited in Sec 3.1.
  • Sec 3.9 adds the regrouped-recurrence result (1,481 of 1,600 FP32 outputs differ; 2 after BF16) and the non-expansive transition condition.

Methods integrated from drafts

  • Sec 3.5 (kernel fallback):
    • two named accumulation models for the stock kernel;
    • the reduced-precision split-K check;
    • the interval-form decision;
    • batch and row-wise fallback modes;
    • the fallback as a conditional CUDA-graph node.
  • Sec 3.6 and 3.8 (state): the differential test design, the first-difference tap and mechanism classes, SGLang's per-position verify state, and the targeted H5 tests.
  • Sec 5 (geometry): the capture patch, the verify-layout pairing, and the method for the drift and certification measurements.
  • Sec 6.6 (kernel):
    • the pipeline figure;
    • the int8 layout and envelope coefficients;
    • the directed-rounding epilogue, compaction and FP64 re-scoring;
    • the three passes and the seeded-sampling path.
  • Sec 8 (drafter):
    • the DFlash-4B architecture read from the checkpoint;
    • the SGLang cycle and the per-position state cost;
    • byte counts per cycle and the acceptance definitions;
    • the card's numbers, attributed to the authors.
  • Sec 9 (repair): the cost model, Stage A oracle bounds, the three-condition analysis with hazards, Jacobi and anchored-evaluator methods, and prior work.
  • Sec 10 (moonshot):
    • the floor equation;
    • speculation versus recurrent-state bytes;
    • the lever classes;
    • the two stacks and the declared quality budget;
    • the P4 and P5 paragraphs.
  • Sec 11 (bench): setup, workload, metrics, protocol, baselines, quality check and hazards.

The implementations that are not yet merged (kernel, state, drafter, moonshot, repair) are described as methods, with their results pending.

Theory added

  • P7 (Sec 3.1): the five-contract table, and the requirement that the reference be named as an executable specification.
  • Prop 3.6 (interval form of the stock decision), proved.
  • P6 (Sec 8.6):
    • the rate objective R - lambda C, with the ratio argument;
    • Prop 8.1: the exact prefix value of a sampled draft policy against a greedy target and against a sampled target, with the gradient including the 1{q_j < p_j} term. It is proved, and the proof shows why freezing acceptance as a reward biases the gradient.
  • P6 prior art is left as a % CITE placeholder until verified. I have asked the drafter agent for checked references.

Bibliography

  • 7 entries checked against their arXiv abstract pages: MT-Bench, OASST1, HumanEval, MBPP, GSM8K, Santilli et al. (Jacobi decoding) and Song et al. (parallel nonlinear equation solving).
  • 13 entries from the repair agent, each checked on its arXiv or proceedings page. I re-checked two (ReTrace, Carryover Drafting). Duplicates of existing keys (astar, dflow) were dropped.

Other fixes

  • Page anchors. The title page is numbered separately (\pagenumbering{roman} then arabic), which removes the duplicate page.1 anchor warning that main's integrator reported.
  • \datafigure{file}{plot}{description}. A figure that reads committed data is drawn when its file exists, and otherwise shows a pending placeholder. The paper therefore builds before evidence merges and regenerates when it does.
  • README and RUNBOOK. They list the contract witnesses, the merged head-geometry evidence and the harness commands.

Validation

  • latexmk builds 65 pages with no LaTeX or BibTeX warnings and no overfull boxes.
  • I rendered every page at 60 dpi and checked the new figures and tables. Figure 5 is drawn from the committed CSV.
  • Every number in the added results was recomputed from the merged JSON and CSV files in evidence/head_geometry/, evidence/bench/ and evidence/contracts/.
  • Every \nolinkurl evidence path either exists on main or sits inside a \pending item.
  • The paper has no \underreview marks and no ~/vp-coord paths.
  • pre-commit passes on README and RUNBOOK. The hooks exclude paper/.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 30, 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-09-30T20:37:14.422810Z 4e083f0 PR opened
ℹ️ 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.

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: REQUEST CHANGES

Reviewed at 4e083f0, whole diff. The branch is 2 commits behind main.

What I checked

  • Build. A clean build (latexmk -C, then latexmk -pdf ... paper.tex) gives 65 pages with no LaTeX or BibTeX warnings. Table 8 and Figure 5 (drawn from the committed CSV) render on p. 28.

  • Evidence paths. Every \nolinkurl path outside a pending item exists on main, or sits in a claim-ledger row marked Pending. There are no \underreview marks and no private paths.

  • Numbers against main. All match evidence/head_geometry/ (Real-head replay: head-input capture, transport and self-evidence bounds #16), evidence/bench/ (Add serving benchmark harness, frozen workload and GSM8K quality check #17) and evidence/contracts/ (Exact witnesses that separate the exactness contracts (P7) #26):

    • Table 8 against rstock_plain4b.json;
    • the 1.34-1.55 candidate means;
    • the 99.51 % alignment;
    • the P1 figures (0.071 of 1.413 GB; 79.3 % against 71.8 %);
    • the contract witnesses.

    No number from an unmerged PR appears.

  • Proposition 3.6 (interval form) is correct.

    • BF16 round-to-nearest-even is monotone on the reals, so for any real enclosure [ŷ⁻, ŷ⁺] of the FP32 accumulator, L = rn_B(ŷ) ∈ [rn_B(ŷ⁻), rn_B(ŷ⁺)]. The outward FP32 step in the geometry code is harmless but not needed for soundness.
    • Strict inequality for j < k, ≤ for j > k, and strict for rows outside C give exactly torch.argmax's first-index choice.
  • Proposition 8.1 (prefix value) is correct.

    • Greedy: E L = Σ_k P(L ≥ k).
    • Sampled: the score terms with j > k vanish by the conditional mean-zero score. The pathwise derivative of min(1, p/q) removes exactly the q_j ≥ p_j terms, which leaves 1{q_j < p_j}.
    • The ratio argument for R - λC is Dinkelbach's.
  • Named models. The conservative model (2D · 2^-23 = 6.1e-4) and the blocked model (Khattak-Mikaitis plus FP32 split-K, 1.19e-4) are named, and both say they rest on assumptions.

  • P7 contract table. It is consistent with the witnesses.

Blocking

1. The headline R-stock figure must name its assumption and give the conservative figure.

  • Where. The abstract ("0.35 % of rows (2.8 % of decode batches) ... under the published accumulation model"), contribution 3, and the Section 3.5 summary ("leaves 0.35 % of rows and 2.8 % of batches under the blocked accumulation model").
  • Fix.
    • Say that the figure assumes the Khattak-Mikaitis model of Hopper BF16 wgmma (an assumption, not a vendor contract).
    • Give the conservative model's 1.40 % of rows (10.9 % of batches) beside it.
    • Say "the capture run's decode batches (up to 16 requests)" instead of "decode batches".

2. Table 8's last two rows need labels. The γ = 1e-5 row and the "IEEE FP32 blocked tree" row (1.7e-6) do not model the stock tensor-core GEMM. Label them as sensitivity rows that are not achievable for the stock kernel (for example, in the caption and the row names), so that "0 %" cannot be quoted as a fallback rate.

3. "The fallback is rare enough not to decide the outcome" (Section 6.4, after Table 8) is not supported.

  • The problem. The batch shares were measured on capture batches of 7-10 rows. With the whole-batch fallback that Section 3.5 calls assumption-free, the share of batches needing the stock head grows like 1 - (1 - p)^B, assuming rows fail independently:
    • at the 0.35 % row rate: about 11 % of batches at B = 32 and 36 % at B = 128;
    • at the conservative 1.40 %: about 36 % and 84 %.
  • Fix. Scope the sentence to the capture batch sizes, and say that at serving batch sizes the outcome depends on the row-wise fallback (pending its invariance evidence) or on the measured P_fb(M).

4. The P6 prior art is uncited.

  • Where. Section 8.6 compares the rate objective with "published prefix- and value-aware objectives", but cites nothing. The only trace is a hidden % CITE: D-PACE, PARD-2, VAT, CaDDTree, TIGER, VSD -- to be verified comment.
  • Why it matters. Proposition 8.1 is presented in a way that implies it is new. I could not verify those works myself (this session's web-search budget is exhausted and the arXiv API refused queries).
  • Fix, either:
    • cite the verified references and say what each already derives (in particular, whether any gives the expected-accepted-length gradient with the 1{q < p} term); or
    • remove the reference to published objectives, and state that prior work on draft-training objectives has not been checked, so no novelty is claimed for Proposition 8.1.

5. A pending result is listed as a contribution. Section 6.6 ends "What this implementation adds is narrower: ... and runtime measured for the complete path against the engine's actual head chain". That runtime is pending (the preceding \pending{kernel: ...}). Make it "and a planned measurement of runtime for the complete path", or move it after the kernel evidence merges.

Suggestions (non-blocking)

  1. Figure 5. The "int8, per row" and "int8, 128-groups" curves have nearly the same colour at print size. Use distinct colours or markers.
  2. "A fallback costs time, never agreement" (Section 3.5) also assumes that cuBLAS is run-to-run deterministic at the same shape and algorithm. State that assumption, citing the state workstream's same-batch repeat once it is committed.

@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: 4e083f04dc

ℹ️ 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/references.bib
% from the arXiv abstract pages on 30 September 2026.
% ---------------------------------------------------------------------------

@inproceedings{mtbench,

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 Mirror the new references in the source manifest

This block adds 20 BibTeX keys, but none is added to sources/source_manifest.json, whose source_count remains 194 while the bibliography now has 214 entries. This breaks the repository's citation-audit contract in sources/citation_audit.md:139-141, which says the manifest contains the corrected bibliography text for every entry, so readers cannot audit any of the newly cited workload or repair sources through the documented manifest. Add corresponding manifest records and update its count when adding these references.

Useful? React with 👍 / 👎.

…ior art

- The abstract, contribution 3 and Sec 3.5 name the Khattak-Mikaitis
  model as an assumption for the 0.35% / 2.8% figures, give the
  conservative 1.40% / 10.9% beside them, and say the batches are the
  capture run's (up to 16 requests).
- Table 8 labels the gamma = 1e-5 and IEEE FP32 rows as sensitivity rows
  that do not model the stock tensor-core GEMM.
- The whole-batch fallback share is scoped to the capture batches, with
  1 - (1 - p)^B (about 36% at B = 128 for p = 0.35%, 84% for 1.40%) for
  larger batches.
- Sec 8.6 cites verified prior art (AADT, BV Loss, D-PACE, PARD-2, VAT,
  VSD, TIGER, DBLAST, LiLiCorr), claims no novelty for Prop 8.1, and
  names VAT's weighting as the strongest control per its own ablation.
- Sec 6.6 calls the complete-path runtime measurement planned.
@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE

Re-reviewed at 8ab7d6f. All five blocking items are resolved.

  1. Headline figure. The abstract, contribution 3 and Section 3.5 now name the Khattak-Mikaitis model of Hopper accumulation as an assumption for 0.35 % of rows. They give the conservative 1.40 % (10.9 %) beside it, and describe the batches as "the capture run's batches of up to 16 requests".
  2. Table 8. The γ = 1e-5 and IEEE-FP32 rows are marked "(sensitivity)", and the caption says only the first two model the stock tensor-core GEMM.
  3. Fallback at serving batches. "Rare enough" is gone. The text gives 1 - (1-p)^B (about 36 % at B = 128 for p = 0.35 %, 84 % for 1.40 %) and makes serving-batch runtime depend on the row-wise mode, which is pending.
  4. P6 prior art. No novelty is claimed for Proposition 8.1, and the prior art is cited. I checked all nine new entries (aadt, bvloss, dpace, pard2, vat, caddtree, tiger, vsd, dblast) against the arXiv API: titles, first authors and author counts all match. The AADT, BV Loss, VAT and D-PACE descriptions are consistent with their abstracts. No hidden % CITE comments remain.
  5. Section 6.6. The complete-path runtime is now "planned".

A clean rebuild gives 67 pages with no LaTeX or BibTeX warnings.

Suggestions (non-blocking):

  • D-PACE derives its per-position weights from the gradient of a differentiable surrogate of expected accepted length. That is essentially the greedy half of Proposition 8.1 in weighted-cross-entropy form, not only a weighting "by position or by the chance of reaching it". Saying so would be fairer to D-PACE and would sharpen what remains for P6: the rate objective and the sampled-target gradient.
  • After Table 8, "the whole-batch fallback is paid in about 3 % of batches" should read "about 3 % (blocked model) to 11 % (conservative)".

@SamMausberg
SamMausberg merged commit 530cb5f into main Sep 30, 2026
@SamMausberg
SamMausberg deleted the paper/methods branch September 30, 2026 20:40
SamMausberg added a commit that referenced this pull request Sep 30, 2026
…e manifest

paper/references.bib has 223 entries and the manifest had 194, so the
workload, repair and P6 sources added with paper milestone 2 (PR #30) could
not be audited through it. Each new record follows the manifest's schema,
takes its text from the BibTeX entry and says it mirrors that entry;
source_count is 223.
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