Skip to content

Venue paper: MLSys-format main text on the certified head and transport's failure, with appendices - #53

Merged
SamMausberg merged 30 commits into
mainfrom
paper/venue
Oct 1, 2026
Merged

SamMausberg merged 30 commits into
mainfrom
paper/venue

Conversation

@SamMausberg

@SamMausberg SamMausberg commented Oct 1, 2026 •

Copy link
Copy Markdown
Owner

This PR turns the 94-page research report into a focused paper in the MLSys format, at Sam's request. The main text is organized around two results and the contract that makes them precise:

  • a certified low-precision output head that meets a stock-kernel contract;
  • the measured failure of transport, the mechanism the project set out to build.

Everything else the report covered moves to the appendices. The main text is by the author workstream and the appendices by the appendix workstream; both are on this branch.

Venue and template

MLSys, with the official author kit. The MLSys 2026 call for papers (mlsys.org/Conferences/2026/CallForPapers) links media.mlsys.org/Conferences/MLSYS2025/mlsys2025style.zip. The format is two columns, a 10-page main body, then references, then an unlimited appendix. [accepted] prints the author block (Samuel Mausberg). The preamble replaces the style's proceedings notice with "Preprint, 30 September 2026; not peer reviewed", because this is not an accepted MLSys paper.

The licences, recorded in paper/template/README.md:

  • mlsys2025.sty is not committed. It has no licence or permission statement, and neither has the ICML style it derives from. paper/template/fetch_mlsys_kit.sh downloads the official kit and checks the SHA-256 of the zip and of the file. paper/latexmkrc runs it before every build and stops with a message naming the failed step. The coordinator approved this. RUNBOOK and README state the network prerequisite.

  • Vendored under their licences:

    • mlsys2025.bst and the kit's fancyhdr.sty 3.2, both LPPL (stated in their headers);
    • algorithm.sty and algorithmic.sty from the CTAN algorithms bundle, LGPL-2.1+, with the licence text. The kit's own copies are 1996 files with no licence text, and TeX Live here lacks the bundle.
  • Preamble settings:

    • \raggedbottom replaces the style's \flushbottom, which reports underfull columns next to large floats; the kit's own example reports five.
    • hyperref is loaded with hypertexnames=false, because the style's caption macro typesets each caption twice and so creates duplicate PDF destinations.
    • fix-cm avoids math font-size substitution.

    None of these changes a margin, font size or spacing.

  • Build fix. latexmkrc stops TeX wrapping the log at 79 characters. A wrapped line hid "No file paper.bbl" from latexmk, which then never ran BibTeX. The appendix editor diagnosed it.

Main text (10 pages; references start on page 11)

  1. Introduction. The head's byte shares (derived) and time shares, now measured and merged in Profile SGLang decode and MTP on GH200: attribution, head baseline, bytes per step #13: 10.3% of a plain step at batch 1, 6.1% at 128, 17.2% of an MTP cycle at batch 1. Even a free head gains at most 1.11x on a plain step at batch 1. Then the open question (exact against what) and four contributions at their evidenced strength. Figure 1 shows the mechanism.
  2. The stock head and the exactness contract.
    • What SGLang computes.
    • Table 1, terminology, generated from paper/terminology.tex, which the appendix glossary also reads.
    • R-real, R-bf16, R-stock and S-race; the BF16 separation lemma; the gap theorem; the enclosure-gap exclusion rule and delta_max; the interval (BF16-bucket) form; the contract and both fallbacks.
    • Table 2, numerical assumptions: every rounding, accumulation, tie and error-model assumption, its status (exact, pin, assumed, proved, pending) and the results that depend on it.
    • The same-shape rule, with a short summary of the stock divergence findings of State safety: differential harness and tensor-level divergence mechanisms #37.
  3. Evaluation setup.
    • System, pins and drafters.
    • Capture and replay, prompts and the held-out split.
    • The alignment check.
    • What is compared with what; no served run is reported.
  4. The certified head.
    • The accumulation-tree lemma and the envelope theorem, with the Khattak–Mikaitis constants.
    • The refinement ladder and its adaptation to R-stock.
    • Sampled decisions within the contract: the certified race, and fixed-noise verification with the four properties of the adopted contract.
    • Candidates (Table 3) and fallback shares (Table 4), with Figure 2.
    • Batch growth, the kernel design, and the runtime gate with the measured stock-chain times.
    • The narrow claim relative to prior art.
  5. Transport and why it fails.
    • The transported-certificate theorem and the crossover theorem.
    • The weight-only thresholds.
    • The measured drift on both drafters (Figure 3) and why it is large.
    • Certification for every tiling on both drafters (Table 5).
    • The drift-scaling extrapolation, labelled as a model, and the scoped verdict.
  6. Related work, including what we do not claim.
  7. Discussion and limitations:
    • the error model is an assumption;
    • replay, not serving, including the DFlash verify-row fallback shares;
    • the scope of the negative result;
    • generality.
  8. Conclusion.

Pending results carry one marker, [pending Dn]. It links to the pending list in the appendix, which names each result and the file it will produce. The main text names no PR, no queue status and no revision history; transport is presented as the hypothesis the work set out to test.

What moved to the appendices (appendix workstream)

  • A. Proofs of the Section 2 and 4 results not proved inline. It also derives the constants of the error models from Lemma 4.1:

    • conservative model: 6.107e-4;
    • Hopper model: (1+u_v)^160 (1+2^-23)^160 - 1 = 1.1922e-4. The committed replays used the rounded 1.19e-4, and A says so.

    It then covers the integer pass, computed norms and outward rounding, candidate counts, the directional margin, and the certified tail (P1, rejected). It ends with what is machine-checked (Lean, lemma by lemma), what is tested (exact floating-point and rational references) and what is proved on paper.

  • B. The fixed-noise proof and coupling bounds. The standard acceptance rule with enclosures (guards and P_?), residual races, common mass, bounded range and KL/TV. The adaptive-depth illustration, the demand frontier and the synthetic experiment. All of this is analysis; none of it is built.

  • C. Transport:

    • bound geometry, with the Hölder crossover as its own proposition;
    • the summary proposition and the full head constants;
    • the DFlash capture alignment, and drift by outcome, position, domain and context;
    • certification by bound family, a new table from transport_*.csv;
    • sampled acceptance and batch unions;
    • drift scaling for both drafters, labelled a model.
  • D. The five contracts with their exact witnesses, including the explicit R-bf16 one, the commit rule and the consumers table. State safety: differential harness and tensor-level divergence mechanisms #37's divergence method and results, with the model-independent findings first and the splits under both error models after them. The noise floor and deterministic mode, the recurrent state and H5 (pending), and the code paths read at the pin.

  • E.

    • Bytes, and the merged profile evidence (Profile SGLang decode and MTP on GH200: attribution, head baseline, bytes per step #13): plain and MTP attribution, the head microbenchmark, host gaps, and ranked Amdahl ceilings.
    • Ceilings with the now-measured bandwidth, and speculation against the recurrent state.
    • Minimal state; P4 with the measured 41.6% share; and P5, now rejected by its pre-registered criterion at no more than 0.60% of a step.
    • Levers and negative results, the serving protocol and the frontend diagnosis.
  • F. DFlash-4B, cycle cost, acceptance by position, limits, P6, P2/P3, and the untested selector and depth analysis. F also integrates Drafter: card gate, P6 support screen, panel-v2 baselines and output equality #51, which merged during this PR:

    • the card-reproduction gate on the 80 MT-Bench first turns: 5.73 tokens per cycle per request (95% interval 5.36-6.13) against the card's 5.93 on B200, with 26 of the 80 hitting the 4,096-token cap;
    • DFlash and three-step MTP acceptance on panel-v2: 6.81 and 3.38 per request;
    • one-sided output-equality margins for both drafters against plain decoding: 3.06 and 2.50 divergences per 1,000 tokens, all at exact ties or within one BF16 spacing on the plain side;
    • the P6 support screen: an oracle bound of 10.14 against 6.20 tokens per cycle, so the screen does not kill P6.
  • G and H.

    • One evidence register: 45 entries, each claim mapped to its files and generator, with every path checked on main.
    • A status table for H1-H7 and P1-P6, which replaces the falsification table and the claim ledger.
    • 35 pending entries, with no PR numbers or owners.
    • Reproduction, pins and attribution.
    • A glossary printed from terminology.tex.
  • Cut:

    • the report's list of corrections to the earlier revision;
    • the claim ledger, now merged into G;
    • the "carried over from the earlier revision" framing;
    • the compiler-interface and GPU-execution-families paragraphs, which were proposals without results;
    • the RNG test wish list.
  • Restored. The appendices carry the findings and prior-work comparisons that the condensed main text no longer does. Examples: int4 and cascade candidate sets, centring, DFlash rows after a rejection, SpecTr and block verification, the union model, the DFlash card's reported speedups, and the depth-policy literature.

Figures

All figures are TikZ or PGFPlots. Each is readable at print size and distinguishes its series by line style and marker as well as colour.

  • Figure 1, the certified head (schematic, widened and relabelled from Editorial revision: organize the paper around the certified head and the stock-kernel contract #49).
  • Figure 2.
    • (a) Measured CCDF of candidate rows per decision, from selfevidence_plain4b_ccdf.csv.
    • (b) The derived share of batches that need a whole-batch fallback, 1-(1-p)^B, with the measured per-row shares. The measured step shares are plotted at the capture's mean of 8.0 rows per step. They sit on the curve (2.8% and 10.9% measured against 2.8% and 10.7% from the model), and the curve reaches 36-84% at B = 128.
  • Figure 3.
    • (a) The median DFlash-4B head inputs drawn to scale: norm 50.6 against 159, cosine 0.41. The ball in which transport would beat int8 is drawn at the same scale, with radius 0.85% of the target norm.
    • (b) The CDF of the drift ratio on 40,000 DFlash-4B pairs, from rho_dflash4b_quantiles.csv, with the MTP-4B p10, median and p90 from transport_mtp4b.json, against the per-row thresholds.
  • No runtime figure. The head-path runtime (Certified int8 LM head: exact stock-head decisions, seeded sampling, kernels and evidence #45) is unmerged, so no figure or placeholder is shown; the text marks it pending.

Contradictions and corrections found

  • DFlash-4B transport certification ran on 4,020 pairs, not 4,000. That is the value of pairs_evaluated and of every n in transport_dflash4b.{json,csv}. The evidence README and Editorial revision: organize the paper around the certified head and the stock-kernel contract #49 say 4,000; the paper now says 4,020.

  • The capture's "batches of up to 16" were not what the batch shares counted. analyze_rstock.py counts only each step's held-out rows: 750 steps, with 8.0 held-out rows per step on average. The shares 2.8% and 10.9% are stated that way now.

  • The "batch 1 against 32" divergence pair is concurrency 1 against 32 on servers capped at 16 running requests (run_meta.json). The appendix editor found this.

  • "Refinements change the mean candidate count by at most 7% for 1-12% more bytes" is imprecise. The CSV gives 3-7% fewer candidates for 1-7% more pass bytes (outlier columns, 64-dimensional rotation). Centring the head makes it 10% worse, and a 256-dimensional rotation gives 9% fewer candidates for 20% more bytes. The main text states the measured ranges.

  • Editorial revision: organize the paper around the certified head and the stock-kernel contract #49 omitted a committed result. On DFlash-4B verify rows, over all verify rows including those after a rejection, the gap rule leaves 5.7% (Hopper model) to 8.6% (conservative) of rows to the stock kernel, against 2.2-3.0% on plain decoding (selfevidence_dflash4b.json). The interval form was not evaluated there. This now appears as a limitation.

  • Not cited because unmerged (Certified int8 LM head: exact stock-head decisions, seeded sampling, kernels and evidence #45):

    • The fallback rate depends on the population: 2.24% and 0.45% on the first 20,000 rows in capture order, and 1.46% and 0.28% on the 60,000-row GPU replay.
    • The kernel workstream reports that fixed-noise verification in the engine needs --enable-deterministic-inference, which would change the stock kernel it is compared with. This is now confirmed at the pin and stated in the main text (review item B3): the seeded sampler exists only in that mode, and its head is SGLang's batch-invariant Triton mm.

    The population-dependent rates must be reconciled with the main text when Certified int8 LM head: exact stock-head decisions, seeded sampling, kernels and evidence #45 merges.

  • The appendices were audited. A number-by-number audit of the appendices against evidence/ found 13 mismatches and 3 wrong citations, all fixed in e65baed. Examples:

    • the MTP profiler overhead is 25/19/11%, not 5-19%;
    • the H1 row compared the MTP time share with the plain step's byte share;
    • a cold-L2 claim held only up to M = 128;
    • three numbers had the wrong denominator.
  • The evidence file has a unit error, and the paper does not use the bad field. In evidence/profiles/head_microbench.json, roofline_floor_us_at_measured_peak reads 3.35e14 instead of 335 us. The paper's 335 us is correct. The file belongs to the profile workstream.

Pending

When #45 merges, its runtime table goes into Section 4.5 and a runtime figure is added.

Validation

  • latexmk -pdf from a clean tree: the main text and appendices build with no LaTeX, BibTeX, overfull or underfull warnings and no undefined references. Before the fix above, BibTeX did not run under latexmk.
  • I looked at every page as PNG, at 50-130 dpi.
  • The main text ends on page 10.
  • Numbers: each number in the main text was checked against its committed file. Where Editorial revision: organize the paper around the certified head and the stock-kernel contract #49's number differed from the file, the file wins (see above).
  • python scripts/check_paper_references.py passes: every cited key has an entry, every entry is cited and identical to sources/references_full.bib, that file matches the source manifest, and all 129 register paths exist on origin/main.
  • codespell passes on the paper sources; the repo's hooks exclude paper/. pre-commit passes on README.md, RUNBOOK.md and .gitignore. shellcheck passes on the fetch script.

The venue paper uses the official MLSys author kit. mlsys2025.sty carries no
licence, so it is fetched and hash-checked at build time (template/README.md);
the LPPL bst and fancyhdr and the LGPL algorithms files are vendored. macros.tex
and terminology.tex are shared with the appendices. The main-text section files
are stubs with their labels; the report's text stays in git history.
…port

Sections 1-8 of the MLSys version: the stock-kernel contract with a terminology
table and a numerical-assumptions table, the evaluation setup, the certified
head with its candidate and fallback measurements, transport and why it fails,
related work, limitations and conclusion. New figures read the committed CSVs:
candidate CCDF with the derived whole-batch fallback curve, and the drift
distribution against the per-row thresholds with a to-scale drawing of the
median DFlash-4B head inputs. The report's setting, exactness and sampling
sections are removed; their secondary material moves to the appendices.
latexmkrc stops TeX from wrapping log lines, which hid the missing .bbl from
latexmk.
The refinement sentence now gives the measured ranges (3-7% fewer candidates
for 1-7% more pass bytes; centring 10% worse) instead of the report's rounded
'at most 7% for 1-12%'. raggedbottom replaces the style's flushbottom, which
reported underfull columns next to large floats; template/README.md records
this and the other preamble settings.
Appendices A-H for the MLSys version of the paper, harvested from the
report on main and reorganized: proofs for the contract and the certified
head, further sampling analysis, transport details (bound families, drift
by group, batch unions, drift scaling), the exactness contracts and the
stock engine's divergences, the serving stack with the merged profile
evidence, drafting and repair hypotheses, one evidence register with the
claims each entry supports, a status table for H1-H7 and P1-P6, a pending
list without pull-request numbers or owners, reproduction, pins and
disclosure, and a glossary printed from terminology.tex.

The report's section files these appendices replace are removed.
Transport's radius is Euclidean in the main text, so Appendix C now
proves Theorem crossover in that form and states the Hoelder variant as a
separate proposition; the static-screen comparison holds for both
pairings. DFlash-4B transport counts are 4,020 pairs. The measured
attribution is labelled app:profile, the divergence appendix also answers
to app:engine, and the stock sampler's point-mass default is described
where the appendix relies on it.
The main text now summarizes several findings in a sentence and has a
condensed related-work section. The appendices keep the detail where it
bears on their content: the int4 and cascade candidate sets, the centring
result, the DFlash rows after a rejection, the independent-mask union
model, the DFlash card's speedups, and the prior work on draft heads,
depth policies, recurrent-state rollback, screening and fused sampling.
One author name in references.bib is written with a LaTeX accent so that
mlsys2025.bst abbreviates it without splitting a UTF-8 sequence.
Register and pending entries now put files on their own line so paths
do not break mid-name; register group headings stay with their first
entry; the pins table flows as a longtable. Microseconds use an upright
micro sign, the divergence figure's first legend label no longer touches
its marker, the explicit R-bf16 witness is stated in Appendix D, and the
Lean Hoelder lemma and the rational transport tests are tied to the
Hoelder form of transport.
mlsys2025.bst prints every author, and the MLSys call asks for full
author lists; the HumanEval entry now carries the list from arXiv
2107.03374 instead of 'and others'. Appendix A adds the share of DFlash-4B
verify steps the gap condition leaves to the stock kernel, from the
committed self-evidence file.
The paper uses one marker for pending results; the frontier plot is now
part of the bench-frontier entry rather than an empty figure frame.
paper/references.bib held all 223 verified sources of the literature
review, 99 of which the venue paper does not cite. The full verified
bibliography moves to sources/references_full.bib, where the review and
the manifest (same 223 keys) point, and the paper's file keeps the 124
cited entries, each identical to its entry there. The new
scripts/check_paper_references.py checks that every cited key has an
entry, every entry is cited, the two files and the manifest agree, and
every path in the appendix's evidence register exists on origin/main.
Profiler overhead on the MTP cycle (25/19/11%), the H1 row's byte share,
the outward-rounding witness count, the plain profiler overhead (2.3%),
the idle and verify-state rows of the ranked table, cold L2 at M = 256,
DFlash draft agreement at position 1 (99.3%), reached draft rows, the
first-rejection denominator, the first-divergence median's population,
capture-step wording, the served c = 1 rate (280 tokens/s) and the Python
versions; citations moved to the files that hold each number; the
disclosure no longer narrates process.
@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-01T00:20:53.192358Z a08c037 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.

The card-reproduction gate (5.73 per request, 95% interval 5.36-6.13,
against the card's 5.93), the second panel's DFlash and MTP acceptance,
one-sided output-equality margins for both drafters, and the P6 support
screen (oracle bound 10.14 against 6.20 tokens per cycle) become register
entries; the pending list keeps the cycle split, two-sided margins with a
kernel trace, and the matched-objective comparison.
@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: REQUEST CHANGES

Reviewed head 6c943a4, which includes the appendix editor's #51 integration (210fd5b) and the PDF rebuild. Its merge base with main is 0f0c025, which predates #51 (see the first suggestion). The paper is in good shape on structure:

  • one pending marker;
  • no PR numbers or revision narration in the main text;
  • every main-text number I checked matches its committed evidence;
  • the template's licences are handled correctly;
  • a clean clone builds through latexmkrc and fetch_mlsys_kit.sh (66 pages, 0 warnings, style digest verified).

Seven items block. Four are in the main text (the page limit, the numerical-assumptions table, the fixed-noise reference and the abstract's scope) and three are in the appendices (one caption number, one untraced mechanism stated as fact, one wrong path).

Blocking: main text

B1. The main body runs onto page 11. The last 11 lines of the Conclusion ("the real-arithmetic winner ... will decide.") sit at the top of page 11's left column, above the References heading. This holds in the committed paper.pdf and in my clean build. The PR body says "the main text ends on page 10". MLSys allows 10 pages of content with unlimited references. Fix: trim about 11 lines from Sections 1-8.

B2. Table 2 (numerical assumptions) omits the underflow assumption, and its first row is not true as stated (sections/contract.tex, Table tab:assumptions and the G_i model).

  • Row 1 is false for subnormal operands. It says "every product w_ij h_j, and every product of an int8 code with a BF16 input, is exact in FP32". A product of two subnormal BF16 values can underflow FP32: 2^-133 x 2^-133 is not representable, the case Round underflowing leaves in the precision reference instead of raising #43 fixed in the reference. Tensor cores may also flush subnormal inputs or outputs to zero.
  • The error models are relative only. The stock model in row 3 and the G_i definition in Section 2.2 (G_i = gamma sum_j |w_ij h_j|) have no absolute term. Lemma 4.1 and Theorem 4.2 carry an absolute per-node term eta for the pass, but nothing in the table or in Theorem 2.3's model covers the stock kernel's underflow or flush to zero. The implementation under review adds an absolute 2^-100 to both the pass envelope and the re-scoring radius for exactly this.
  • Fix.
    1. Row 1: products are exact in FP32 above the normal range, and below it underflow and flush to zero are charged as an absolute term.
    2. Add the absolute term to the stock error model and to G_i, as gamma sum|w h| + eta_stock, with its value. Or state as an explicit assumption that no product or partial sum underflows. That is not guaranteed, but it is harmless at these logit magnitudes.
    3. Add a row for the re-scoring arithmetic: exact BF16 products summed in FP64 under IEEE rounding on CUDA cores, error at most gamma_D(2^-53) sum|w h|. The certified decision depends on it, and the table currently lists only the replay's FP64.

B3. The fixed-noise statement does not name the engine configuration its reference needs (Section 4.3, after Theorem 4.5; Table 2's seeded-noise row).

  • What the text says. "With a seed every committed token is the stock seeded sampler's token for the verify pass's own R-stock logits."
  • What the engine needs. At the pin, SGLang builds sampling_seed only when deterministic inference is on. sampling_batch_info.py:143-156 gives ... if enable_deterministic else None, so a request is seeded, and the seeded race of Section 2.1 runs, only under --enable-deterministic-inference. That mode installs batch-invariant Triton implementations of aten::mm, addmm and bmm (model_runner.py:771-775 calls enable_batch_invariant_mode(); batch_invariant_ops.py:1004 onward), so the head GEMM behind the seeded sampler is the batch-invariant kernel, not the default cuBLAS GEMM that Sections 2 and 4 describe and that the error models were stated for. The kernel workstream's fixed-noise arm (Certified LM head in SGLang: greedy decode, verify, drafting and fixed-noise sampled verify #52) runs in this mode, and I have asked it to name the kernel in its README so that the paper can cite it.
  • Fix.
    1. Say in Section 2.1 and Table 2's seeded-noise row that the seeded sampler exists only in deterministic-inference mode, and that its head kernel is the batch-invariant mm.
    2. Name that reference wherever fixed-noise token identity is claimed: after Theorem 4.5 and in contribution 2.
    3. State whether the two error models cover the batch-invariant kernel. The conservative model covers any reduction order with FP32 partials, so it covers that kernel if the kernel accumulates in FP32 and rounds its output to nearest-even. The Hopper model was characterised for wgmma; Triton's tl.dot also lowers to wgmma on sm_90, but nobody has checked that its accumulation matches the model. Mark the engine-level claim pending until it is measured.

B4. The abstract states the transport result without its scope. It says transport "fails on both public drafters ... so its certificates skip at most 0.65% of the vocabulary". The body scopes this correctly to the tested bound families and tilings (Section 5, "The verdict"; Section 7, "Scope"). The abstract should say "for every bound family and tiling tested", as the report's abstract did. Otherwise 0.65% reads as a bound on transport in general.

Checked and correct: main text, template and sources

  • Template (check 1).
    • mlsys2025.sty is not committed: it is gitignored, then fetched and hash-checked. I confirmed the digest 05a98429... on a fresh fetch.
    • mlsys2025.bst and fancyhdr.sty carry LPPL headers.
    • algorithm.sty and algorithmic.sty are LGPL-2.1+, with COPYING-algorithms-LGPL-2.1.
    • A fresh git clone of paper/venue builds through latexmkrc and the fetch script with no warnings.
  • Venue checks.
    • The main text names no PR, workstream, queue status or revision history.
    • Every pending result uses \pend{...}, rendered as [pending Dn], which links to the appendix list. The two plain-prose uses ("the head-path runtime is pending" in the abstract, "the pending runtime measurements" in the Conclusion) are acceptable as prose.
  • No numbers from unmerged branches (check 3).
  • Main-text numbers I verified against the files.
    • Head time shares 10.3%, 6.1% and 17.2%, and the 1.11x bound.
    • Tie rate 1.0% (alignment_plain4b.json).
    • Table 4 and the shares derived from it (2.8% and 10.7% at 8.0 rows; 36% and 84% at 128), with 6,005 / 750 = 8.0 held-out rows per step.
    • Candidate counts 1.55 and 1.34; 75.4% decided without re-scoring; median gap 7.3.
    • The 3-7% and 1-7% refinement ranges.
    • The batch-union rows 9.5-12.5 (int8_g128 mean_union for 5-8 and 9-16 held-out rows).
    • The DFlash verify gap-rule shares 5.7% and 8.6% (selfevidence_dflash4b.json).
    • The divergence summary: 167/320 and 3.42 per 1,000 at concurrency 1 vs 32, with batches up to 16.
    • The transport numbers: 4,020 pairs, 92% and 95%, 0.65%.
  • Sources (check 4).
    • sources/references_full.bib is main's 223-entry paper/references.bib with three consistency fixes: a comment line, an escaped Ş, and HumanEval's full author list. No source is dropped.
    • paper/references.bib holds the 124 cited entries.
    • check_paper_references.py passes: no cited key is missing, nothing uncited, entries identical, keys equal to the manifest, and all register paths are on main.
    • The citation_audit.md and literature_review.md edits only repoint to the new file.
  • Known evidence fixes outside this PR (check 5). The paper cites 335 us and 4,020, as required.
  • Codex. It finished with no findings (👍).

Blocking: appendices

I audited the appendices against the committed evidence (about 285 numbers, rounded to the stated precision). Three items fail.

B5. The caption of Table tab:drafter-tau overstates the survival-form agreement (sections/app_drafting.tex:38).

  • The caption says the survival form 1 + Σ S(k) "agrees with the pooled τ to within 0.01".

  • From acceptance_by_position.csv (survival summed per domain) against acceptance_summary.csv (tau_pooled), the block-16 gaps are:

    Domain Gap
    All 0.009
    Chat 0.004
    Math 0.009
    Code 0.013 (7.639 vs 7.626)
    MATH-500 0.012 (7.562 vs 7.550)
  • At block 8 every gap is at most 0.005.

  • Fix: say "to within 0.013", or restrict the 0.01 to the pooled row.

B6. The DFlash divergence mechanism is stated as fact but was never traced (sections/app_transport.tex:99; sections/app_exactness.tex:93).

  • app_transport.tex says "speculation computes the target at different batch shapes from plain decoding, and near ties then diverge (Appendix app:divergence)". app_exactness.tex says "The DFlash capture shows the same effect at the level of whole outputs".
  • The only tensor-level trace is MTP against plain decoding (evidence/state_safety/mechanism_plain_c1_vs_mtp_s3_c1.json). It finds different GDN recurrence kernels at layer 0, not batch shape in general.
  • The DFlash divergences have not been traced. app_drafting.tex says as much and lists drafter-mechanism as pending.
  • The 39% identical-output figure (alignment_dflash4b.json) is consistent with that mechanism but does not show it. The near-tie part does have DFlash support: 47 exact ties and 28 within one BF16 spacing among 77 one-sided cases in panel_v2/equality_zlab_b16.json.
  • Fix. In app_transport.tex, say that the verify pass runs different kernels at different shapes from plain decoding, that the divergences seen are near ties, and that the DFlash trace is \pend{drafter-mechanism}. In app_exactness.tex, write "is consistent with the same effect".

B7. The reproduction appendix points to a file that does not exist (sections/app_register.tex:163).

  • It says the patches are "under engine/sglang/patches/, whose README.md gives the commands". There is no engine/sglang/patches/README.md on the branch or on main.
  • The apply commands are in engine/sglang/README.md.
  • Fix: point to that file.

Checked in the appendices.

  • No PR numbers, workstream names, vp-coord/vp-data or home paths.
  • No figure from Certified int8 LM head: exact stock-head decisions, seeded sampling, kernels and evidence #45 or Certified LM head in SGLang: greedy decode, verify, drafting and fixed-noise sampled verify #52: nothing from the 60,000-row replay, engine_v1 or the certified-head runtimes. Every kernel-* item is pending.
  • None of the 35 pending (\devitem) entries has committed evidence on main.
  • The deterministic-mode figures (2 of 8; 28 of 96 at 1.55 per 1,000) come from evidence/state_safety/, which is on main.
  • The derived numbers recompute: 352 MB per cycle, 805 MB per DFlash block, 8.41 GB and 30%, 4.5 GB and 54%, 5.71 GiB, the 72% miss rate, and the 1.26x/1.71x/1.18x ceilings.
  • Transport, exactness, stack, drafting, proofs and register numbers match their files. Two examples: position-1 draft agreement is 0.99346, so the paper's 99.3% is right, while evidence/head_geometry/README.md:94 on main says 99.4. The register's hypothesis table also matches.

Suggestions (not blocking)

  • Merge main into paper/venue. The branch's merge base with main is 0f0c025, which predates Drafter: card gate, P6 support screen, panel-v2 baselines and output equality #51. Appendix F's register entries at app_register.tex:58-61 therefore cite files that exist only on main:

    • card_gate_mtbench.json
    • launch/zlab_b16_card_gate.json
    • launch/panel_v2_*.json
    • panel_v2/*
    • support/*

    They resolve once this merges, and check_paper_references.py checks against main, so nothing breaks. But a merge would make the branch consistent on its own, and the rebuilt PDF would then come from the tree it cites.

  • Out of scope. evidence/head_geometry/README.md:94 should say 99.3%, not 99.4%, for position 1. Its owner can fix this in a later change.

B5: the survival form agrees with the pooled tau to within 0.013, not
0.01 (code and MATH-500 at block 16). B6: the DFlash divergences from
plain decoding are near ties but have not been traced to a kernel, so the
appendices no longer state the batch-shape mechanism as fact for DFlash
and mark the trace pending. B7: the patch apply commands are in
engine/sglang/README.md.
The 3.83 TB/s read is the best of nine launch configurations (3.59-3.83
TB/s), and 3.79 TB/s is that configuration over the head's footprint.
Two of the 77 fall outside the plain run's top two, so 'near ties'
applies to 75 of them (review nit on #53).
B1: trim Sections 1, 3, 4.5, 6, 7 and 8 so the main text ends on page 10.
B2: the stock error model and G_i gain an absolute floor eta = 2D 2^-126 for
underflow and flush to zero of products and partial sums; Table 2's first row
is scoped to the normal range with normal operands assumed, the replay's
omission of eta is stated, and a row covers FP64 re-scoring (gamma_D(2^-53)).
B3: the seeded sampler exists only in deterministic-inference mode, whose head
is SGLang's batch-invariant Triton mm; Section 2.1, Table 2, the text after
Theorem 4.5 and contribution 2 name that reference and the error models'
coverage (conservative covers it; Hopper unchecked), measurement pending.
B4: the abstract scopes the transport result to the bound families and
tilings tested.
The trimmed Related Work no longer cites the Gumbel top-k form or
FastMTP; Appendix B's truncated sampling and Appendix E's draft-vocabulary
levers now do, so both entries stay cited.
@SamMausberg

Copy link
Copy Markdown
Owner Author

Main-text items B1-B4 are fixed in aeeffea, and the PDF is rebuilt at fc55896. The appendix editor's B5-B7 fixes and the merge of main are in 2f10297, 98fe2ba and 787d7c0.

  • B1 (page limit). I trimmed Sections 1, 3, 4.5, 6, 7 and 8; no claim, number or qualification is dropped, and the prior-work detail cut from Section 6 is in the appendices. In a clean build the Conclusion ends in the right column of page 10 and the References start at the top of page 11 (pdftotext -f 11 -l 11 shows the References heading first).
  • B2 (absolute term).
    • Section 2.2 now writes G_i = gamma sum_j |w_ij h_j| + eta with eta = 2D 2^-126 < 2^-113, for underflow and flush to zero of products and partial sums.
    • In Table 2:
      • Row 1 is now exact in the normal range, with normal (or zero) BF16 operands stated as an assumption.
      • The stock-accumulation row carries eta and states that the replay omitted it, which can change a decision only if an endpoint lies within 2^-113 of a BF16 rounding boundary. Its status cites the implementation's 2^-100 floor as pending (kernel-impl) until Certified int8 LM head: exact stock-head decisions, seeded sampling, kernels and evidence #45 merges, as the coordinator asked.
      • A new row covers the certified re-scoring: exact BF16 products summed in FP64 under IEEE rounding, with error at most gamma_D(2^-53) sum|w h| < 3e-13 sum|w h|, which widens the enclosure before Proposition 2.4 decides.
  • B3 (seeded reference).
    • Section 2.1: the seeded sampler exists only with --enable-deterministic-inference, which replaces aten::mm with SGLang's batch-invariant Triton kernel (FP32 accumulation, BF16 output). With a seed, the stock head is therefore that kernel, not cuBLAS. I checked this against sampling_batch_info.py and model_runner.py at the pin.
    • After Theorem 4.5: the reference is the engine in deterministic-inference mode, so R-stock means its batch-invariant head kernel. The conservative model covers that kernel; the Hopper model has not been checked for it.
    • Contribution 2: seeded sampling and fixed-noise verification are stated against the deterministic-inference mode.
    • Table 2's seeded row says all of this and cites the kernel's error and the rounding slack as pending. The abstract now says "the engine's own head kernel", without "cuBLAS", so it covers both the greedy and the seeded reference.
  • B4. The abstract now reads "so for every bound family and tiling tested its certificates skip at most 0.65% of the vocabulary".

Checks: a clean latexmk gives 66 pages with 0 warnings and 0 undefined references, and scripts/check_paper_references.py passes. I looked at every page again.

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: REQUEST CHANGES

Re-reviewed head fc55896. It contains aeeffea (main-text fixes B1-B4), 2f10297, 98fe2ba, 787d7c0 and 358c298 (appendix fixes B5-B7 and the merge of main), and the rebuilt PDF. Six of the seven blocking items are fixed. B3 is fixed in structure but names the wrong kernel, and the page-limit cuts left one contribution item in fragments.

Earlier items

  • B1 (fixed). In the committed paper.pdf and in my build, page 11 starts with the References heading, and the Conclusion ends on page 10. Page 10's right column ends about 42 pt above the left one, which leaves roughly four lines of slack. The build has 66 pages and no warnings. check_paper_references.py passes (nothing uncited, no keys differ, all register paths on main).
  • B2 (fixed). Row 1 is scoped to normal operands. G_i and the stock-model row carry eta = 2D 2^-126 < 2^-113; with 2D = 5,120, that is 2^-113.68. The table says the replay omitted eta and when that could matter. The new re-scoring row, gamma_D(2^-53) < 3e-13, is right: 2,560 x 2^-53 = 2.84e-13, and BF16 x BF16 products are exact in FP64.
  • B3 (structure fixed, kernel named wrongly; see N1). Section 2.1, the seeded row of Table 2, the paragraph after Theorem 4.5 and contribution 2 now name the deterministic-inference reference and the model coverage. The pending marker is in place.
  • B4 (fixed). The abstract says "for every bound family and tiling tested".
  • B5-B7 (fixed). I checked these at 02084f7 and 358c298.

Blocking

N1. The deterministic-mode head kernel at the pin is DeepGEMM, not Triton (sections/contract.tex:13, Section 2.1; contract.tex:82, Table 2's seeded row; sections/head.tex:41, after Theorem 4.5; and, for the appendix editor, sections/app_exactness.tex:89, "a persistent batch-invariant Triton kernel").

  • The dispatch chain. At bd66ce343e, mm_batch_invariant calls matmul_persistent (batch_invariant_ops.py:601-602). That function takes DeepGEMM's bf16_gemm_nn, with use_deterministic_algorithms(True), whenever all of these hold (lines 301-331):
    • SGLANG_BATCH_INVARIANT_OPS_ENABLE_MM_DEEPGEMM is set (default "1");
    • ENABLE_JIT_DEEPGEMM is true, which needs SM >= 90, SGLANG_ENABLE_JIT_DEEPGEMM (default True, environ.py:1168) and an importable deep_gemm;
    • both operands are BF16;
    • a is contiguous and b.T is contiguous;
    • N >= 16 and the dimensions are TMA-aligned.
  • Why it applies here. The GH200 is SM 90, and deep_gemm 0.2.0 imports in ~/sglang/.venv. SGLang's head is torch.matmul(h, W.T) with BF16 operands, and W.T.T = W is contiguous. Nothing in deterministic mode disables DeepGEMM. The Triton persistent kernel is used only when DeepGEMM is off or a shape fails those checks.
  • What DeepGEMM does. Its SM90 BF16 kernel (deep_gemm/include/deep_gemm/impls/sm90_bf16_gemm.cuh) accumulates every K step in one FP32 wgmma accumulator (lines 231-272). It writes BF16 through __float22bfloat162_rn (lines 345-346), so the output is round-to-nearest and there is no split-K.
  • Consequence. The conservative model still covers the kernel. But "SGLang's batch-invariant Triton kernel" is not the kernel that runs at the pin's defaults on this GPU, and the paper's own rule is to name the reference exactly.
  • Fix.
    1. Write "SGLang's batch-invariant mm, which at the pin's defaults on this GPU is DeepGEMM's deterministic BF16 GEMM (one FP32 wgmma accumulator over K, round-to-nearest BF16 output)", or keep the backend-neutral "batch-invariant mm (FP32 accumulation, no split-K, BF16 round-to-nearest output)".
    2. Make Section 2.1 and the paragraph after Theorem 4.5 agree with Table 2 on the model coverage. The table says the conservative model covers the kernel "if its BF16 cast rounds to nearest", while the paragraph says it covers it unconditionally. With the DeepGEMM source above, the unconditional form is supported.
    3. I have asked Certified LM head in SGLang: greedy decode, verify, drafting and fixed-noise sampled verify #52 to confirm the kernel with a kernel-name trace. Cite that README once it lands; until then the measurement stays \pend{kernel-seeded}.

N2. Contribution 3 is now a list of fragments (sections/intro.tex:25).

  • It reads: "1.3--1.6 candidate rows per decision; 0.35% of rows left to the stock kernel ...; no certified token different from the engine's."
  • The subject and verb are gone, and so is what was measured (an int8 copy on 6,005 captured plain-decode head inputs). writing.md asks for prioritization, not compressed fragments, under a length limit.
  • Fix: restore one sentence, for example: "On 6,005 captured plain-decode head inputs an int8 copy re-scores 1.3--1.6 rows per decision and leaves 0.35% of rows to the stock kernel under the Hopper model and 1.40% under the conservative one; no certified token differed from the engine's." It costs about one line, and page 10 has about four lines of slack.

Suggestions (not blocking)

  • The floor eta. Absolute errors also pass through the later relative roundings, so strictly eta <= 2D 2^-126 (1+gamma). That is still below 2^-113. Defining eta = 2^-113 would make the stated bound exact without changing any conclusion.
  • When omitting eta can matter. The Table 2 note says omitting eta can change a decision only near a BF16 rounding boundary. That is the interval form. For the gap rule, the condition is a gap within 2 eta of its threshold, so say "within 2^-112 of a rounding boundary or of a gap threshold".
  • Scope. "with text-only prompts" was cut from the Scope paragraph. It is three words, and it is a real limit for a model that also takes images.
  • Same-sentence wording in head.tex. "cover 9.5--12.5 distinct head rows, tens of kilobytes beside a 636 MB int8 pass" reads as an appositive fragment. "so the gather reads tens of kilobytes beside ..." restores the link at the cost of three words.

Codex

There are no Codex comments on the new commits.

At bd66ce343e, batch-invariant mm dispatches to DeepGEMM's deterministic
BF16 GEMM when DeepGEMM is enabled, as it is by default on this GH200;
the persistent Triton kernel is the fallback (review item N1 on #53).
… N1, N2)

N1: at the pin's defaults on this GH200, deterministic inference's
batch-invariant mm runs DeepGEMM's deterministic BF16 GEMM (one FP32 wgmma
accumulator, no split-K, round-to-nearest output), not the Triton fallback;
Section 2.1, Table 2 and the text after Theorem 4.5 say so and agree that the
conservative model covers it and the Hopper model is unchecked.
N2: contribution 3 is one sentence again. Suggestions taken: eta = 2^-113
(covers 2D 2^-126 (1+gamma)); the replay note names gap thresholds; Scope says
text-only prompts; the gather sentence has its verb. Small trims elsewhere keep
the main text on ten pages.
@SamMausberg

Copy link
Copy Markdown
Owner Author

N1 and N2 are fixed in 9bbf6cb, and the PDF is rebuilt at 88cad7b. The appendix wording for N1 is in f106cba.

  • N1.
    • Section 2.1. It now says the seeded sampler exists only with --enable-deterministic-inference. That mode's batch-invariant mm runs, at the pin's defaults on this GPU, DeepGEMM's deterministic BF16 GEMM: one FP32 wgmma accumulator, no split-K, round-to-nearest output. With a seed, the stock head is that kernel. I checked the dispatch at batch_invariant_ops.py:301-331 at the pin.
    • Table 2's seeded row and the paragraph after Theorem 4.5. Both now say the same thing: the conservative model covers the kernel unconditionally, and the Hopper model has not been checked for it.
    • Pending. The measurement stays \pend{kernel-seeded}. I will cite Certified LM head in SGLang: greedy decode, verify, drafting and fixed-noise sampled verify #52's README once it lands.
  • N2. Contribution 3 is one sentence again, in the wording you proposed.
  • Suggestions taken.
    • eta = 2^-113, which covers 2D 2^-126 (1+gamma).
    • The replay note now reads "within 2^-112 of a BF16 rounding boundary or a gap within 2^-112 of its threshold".
    • Scope says "with text-only prompts".
    • The gather sentence reads "so the gather reads tens of kilobytes".
  • Trims. To keep ten pages I tightened the conclusion, the 2.1 and 4.3 sentences, one refinement sentence in 4.4, and one alignment sentence in 3; no claim is dropped.
  • Checks. In a clean build, page 11 starts with the References heading. The build has 66 pages and 0 warnings, and check_paper_references.py passes.

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE

Re-reviewed head 88cad7b. Since fc55896 it adds f106cba (the appendix N1 sentence), 9bbf6cb (main-text N1, N2 and the four suggestions) and the PDF rebuild. Every blocking item from both rounds is fixed, and the PR is mergeable.

Round two

  • N1 (fixed). Section 2.1, Table 2's seeded row, the paragraph after Theorem 4.5 and Appendix D (app_exactness.tex:89) now say the same thing: at the pin's defaults on this GPU, the batch-invariant mm is DeepGEMM's deterministic BF16 GEMM, with one FP32 wgmma accumulator, no split-K and round-to-nearest output; Triton is the fallback. That matches batch_invariant_ops.py:301-331 and sm90_bf16_gemm.cuh at the pin. All three places state the coverage the same way: the conservative model covers the kernel, and the Hopper model is unchecked for it. The measurement stays \pend{kernel-error,kernel-seeded}.
  • N2 (fixed). Contribution 3 is one sentence again, with its subject (an int8 copy on 6,005 captured plain-decode head inputs).
  • Suggestions (all taken).
    • eta = 2^-113, with the bound 2D 2^-126 (1+gamma) stated.
    • The replay note covers both endpoints within 2^-112 of a rounding boundary and gaps within 2^-112 of a threshold. That is correct for G_a + G_b, which grows by 2 eta.
    • "with text-only prompts" is restored.
    • The gather sentence has its verb back.

Whole PR at this head

  • Build. I rebuilt from source: 66 pages, no warnings. The text of the committed paper.pdf is identical to my build. Page 11 starts with the References, so the main body fits in 10 pages.
  • References. check_paper_references.py passes: nothing uncited, the bibliography equals sources/references_full.bib, keys match the manifest, and all register paths exist on main.
  • Venue checks.
  • Hygiene. There are no Codex comments. No commit message or the PR body credits an AI co-author.

One later dependency, not blocking: the DeepGEMM identification rests on the pinned source. #52 is confirming it with a kernel trace. When that merges, its README can be added to the evidence register entry for kernel-seeded.

@SamMausberg
SamMausberg merged commit c488fc2 into main Oct 1, 2026
SamMausberg added a commit that referenced this pull request Oct 1, 2026
…eded-rank items

Bounded-range sampling is the paper's Proposition "Bounded logit error"
(app_sampling.tex), so the theory item is done (PR #21, #49, #53; Codex and
the integrator's review). New active items from the integrator: round the
Hopper accumulation constant up to cover its derived value and rerun what used
it, and state that seeded top-k/top-p at the pin keys noise by sorted rank. M1
and P4 record #123's explanation of the 127-request plateau as the status of
an open PR.
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