Repository navigation
Reorganize the paper around the evidence and the stock-kernel contract - #21
Conversation
The manuscript was a research design centred on transport, with CPU evidence only. This revision keeps the question (what work does a verifier need?) and reorganizes the paper around what the team is testing on SGLang, Qwen3.5-4B and one GH200. - Structure: one file per section under paper/sections/. Transport is presented as the tested hypothesis and self-evidence (a certified low-precision head) as the alternative, followed by exact sampling and speculative decisions, drafting, repair, the stack on every axis and the serving frontiers. The compiler, selector, scheduling and GPU tiling material is condensed into an appendix of untested mechanisms. - Exactness: the contract is the stock head kernel's decision at the same batch shape, certified through the gap condition with fallback to that kernel. R-bf16 is shown not to be the contract with the witness from tests/test_precision.py. Adds the three contracts, the commit rule, the directional margin and the dead/deferred/enclosed accounting (P1), and what an exact recurrent state must retain (P4). - Theory from PR #7 with proofs: accumulation trees, the envelope, the integer pass, outward rounding, the refinement ladder, candidate counts, certified races, fixed-noise verification, guards with enclosures, residual races, and the transport-versus-self-evidence crossover with the drift ratio defined exactly. New with proofs: the common-mass characterization, the bounded-range sampler, and the KL and sequence total-variation bounds for the approximate mode. - Citations: natbib with paper/references.bib from PR #6, the audit's text corrections applied (DSpark and D-cut for the sampled-depth counterexample, prior art for the certified greedy head, CSV-Decode, NanoSpec, the public DFlash-4B drafter), and a narrowed novelty claim. Long code paths in the bibliography may now break across lines. - Evidence status: \pending, \underreview and \pendingfigure macros; every GPU result is a marked pending item; a hypothesis table and a claim ledger list each claim with its status and evidence path. - Figures: TikZ diagrams for the two evidence sources and the contract; PGFPlots for the synthetic drift work counts (read from data/synthetic_drift.csv), the candidate-count bound, derived bytes per step and the batch-union model. - README and RUNBOOK rewritten to match the paper and the commands on main; SETUP no longer quotes a page count.
…witnesses PR #20 is merged, so the state-structure witnesses are cited as committed evidence. The Amdahl example for state write avoidance no longer quotes the unmerged 42% time share; it gives the formula, a byte-derived share labelled as such, and leaves the measured share pending. The sampling section states the adopted contract: fixed-noise verification with the stock seeded sampler's keyed noise, which keeps point-mass acceptance equal to stock and seeded outputs token-identical to non-speculative decoding. Top-p falls back, and the partition-bracket guards are marked as analysis rather than built.
3e6a27b to
45f3fef
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3e6a27b8ab
ℹ️ 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".
| ```sh | ||
| bash scripts/check_lean.sh | ||
| python tests/test_precision.py # certified-head reference (about 35 s) | ||
| python -m pytest tests/ # every CPU test |
There was a problem hiding this comment.
Install pytest before invoking the full suite
On a clean machine following this setup verbatim, the new virtual environment receives only requirements-cpu.txt, which contains NumPy but not pytest; consequently python -m pytest tests/ fails with No module named pytest. Install requirements-dev.txt as well, add pytest to the documented setup, or use a test command supported by the CPU requirements.
Useful? React with 👍 / 👎.
| $\delta^\ast$ against int4 per-row & 12.2\% & 15.5\% & 20.8\%\\ | ||
| Hölder-family threshold on $\norm\Delta_1/\norm h_1$ against int8 per-row & 0.23\% & 0.30\% & 0.40\%\\\bottomrule | ||
| \end{tabular} | ||
| \caption{Weight-only constants of the Qwen3.5-4B head (float64 on CPU; quantiles over a one-million-row sample; no hidden states). $\delta^\ast_i=\norm{e_i}_2/r^{(2)}_c(i)$ is the drift ratio $\rho$ below which transport's Euclidean envelope for row $i$ is narrower than the Euclidean int8 envelope, with 64-row tiles of contiguous token indices and $\mu_c$ the tile mean (Theorem~\ref{thm:crossover}); the last row is the analogous threshold for the $\ell_\infty$/$\ell_1$ pairing, $s_i\norm h_1/2$ against $r_c\norm\Delta_1$. Widths are compared, not certification rates or runtime. Derived; \nolinkurl{evidence/precision/head_constants.json}.} |
There was a problem hiding this comment.
Report the actual quantile population
The caption says these quantiles use a one-million-row sample, but head_constants.py::summary receives one value per vocabulary row and slices randperm(x.numel())[:1_000_000]; for this 248,320-row head that selects all 248,320 rows exactly once. The paper therefore overstates the evidence population by roughly fourfold; describe it as quantiles over all 248,320 rows (and correct the matching evidence scope), or change the experiment to produce the claimed sample.
Useful? React with 👍 / 👎.
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. |
|
Verdict: REQUEST CHANGES Reviewed at The reorganization works. Most proofs are correct, the narrowed novelty claim is stated consistently, and no number rests on an open PR. Six things block the merge:
What I ran and checked
Blocking1. Private paths appear in the PDF.
2. Lemma 6.4 (
3. The R-stock procedure does not guarantee R-stock.
4. Proposition 3.7 (
5. The fixed-noise contract claims more than Theorem 7.6 gives.
6. P1 is not stated as rejected.
Suggestions (non-blocking)
|
- Remove private coordination paths from pending items and comments. - Computed norms: the N2 proof now counts the rounding of the squares, and N1 is stated for summation depth 2^13 (the margin is negative at 2^14), as in PR #7's reference. - R-stock: a competitor is excluded only when hi_j < lo_a - delta_aj, with delta_aj from enclosures; the level-0 filter is widened by delta_max so that dropped rows meet the gap; Figure 2 shows both. - Minimal state: the bound uses the span of differences of reachable states and needs the reachable set to contain a relatively open subset of its affine hull; the one-state counterexample is noted. Storage is d_v r per request when the key subspace is shared. - Fixed-noise verification: equal in law, drafter-invariant, and token-identical to the seeded sampler on the verify pass's own logits; equality with plain seeded decoding needs verify and plain logits to agree, which the engine does not guarantee. - P1 is stated as rejected by its kill test, with the evidence pending in the geometry pull request. - Define the repair gate's symbols, note that the directional margin is followed by the gap condition, say that SGLang logs the reset to 48, and scope the independent-review statement to the cited work.
|
Verdict: APPROVE Re-reviewed at
The optional items are done too: repair symbols defined, the gap applied on top of the directional margin, the RUNBOOK wording on the 48-request cap, and the attribution scoped to the cited work. A clean rebuild gives 50 pages with no LaTeX or BibTeX warnings and no overfull boxes, and Figure 2 renders correctly. The branch merges into |
…nel contract The paper now argues in dependency order: setting and what the stock engine computes, the five contracts and the R-stock gap and interval theorems, the certified low-precision head with its measured candidate sets and fallback shares, sampled decisions, transport and its measured failure, exactness under speculation, the stack, drafting and repair hypotheses, the serving protocol, related work, and a discussion that merges the hypothesis and failure tables. Secondary derivations, untested mechanisms, engine notes, CPU evidence, reproduction and attribution move to appendices. Evidence paths, pull request numbers and pending work move to an evidence register and a development record (Appendix A); the text cites [En] for committed evidence and [pending Dn] for designed work, with the scientific status in the prose. Integrates merged evidence: H2 on DFlash-4B (#35) and MTP-4B (#47), the overlapped roofline (#44), the frontend diagnosis (#46), the fifth contract witness (#41) and the precision counts after #43. Folds in the Codex items on #21 (quantiles over all rows), #32 (pooled tau, GSM8K series) and #36. Typography: Charter text, a plain title block with the repository URL, greyscale-safe figures, a new mechanism figure (Figure 1) replacing three overlapping flowcharts, a drift figure and transport table, two-panel candidate and acceptance figures, and tables reorganized instead of shrunk.
…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.
Milestone 1 of the paper revision. The manuscript was a research design centred on transport, with CPU evidence only. It is now reorganized around the evidence the team is gathering on SGLang, Qwen3.5-4B and one GH200.
It keeps the question (what work does a verifier actually need?). It states exactness against the stock kernel and integrates the merged theory (PR #7) with written proofs. It switches to the merged BibTeX bibliography (PR #6) and applies the citation audit. Every GPU result that has not merged appears as a marked pending item, not a number.
Structure
paper/paper.texholds the preamble and front matter. Each section is its own file underpaper/sections/, so workstream drafts can be integrated one section at a time.The appendices hold:
Section 3 (exactness) contains:
test_bf16_contract_is_not_stockwitness. The split-K caveat comes from PR Certified low-precision head: exact reference, envelope, contracts and Lean lemmas #7's final text;Theory added with proofs
These are new here, beyond PR #7 and the earlier revision:
TV <= 1 - alpha;KL <= eps^2/2, and sequenceTV <= (1/2) sqrt(sum eps_t^2);prop:minimal-state(what an exact state must retain);Known principles are attributed in the text: Gumbel-max, A* Sampling, lazy Gumbels, maximal coupling, and Daliri et al. for fixed-noise verification. I checked each proof by hand. They are not machine-checked beyond what
formal/covers.Citations
plainnat, usingpaper/references.bibfrom PR Literature review, citation audit and verified bibliography #6. The existing keys are unchanged.\allowbreakwas added inside five long\textttcode paths, which previously ran up to 108 pt into the margin.ptxisasupports the Hopper and Blackwell statements;Evidence discipline
\pending{what; evidence path}marks a result that is not yet committed;\underreview{PR #N}follows a number whose evidence is in an open PR;\pendingfigure{...}{data file}draws a placeholder for a figure whose data does not exist yet.mainor proved in the text.Figures
TikZ:
PGFPlots:
data/synthetic_drift.csv;min(V, e^{4 beta/T});Placeholders name the CSVs that bench, profile, geometry, kernel, drafter and moonshot will commit.
README, RUNBOOK, SETUP
main: environments, the GPU lock, the baseline launch flags, and an index of evidence directories with their PR status.Validation
latexmk -pdf -interaction=nonstopmode -halt-on-error paper.texbuilds with no LaTeX or BibTeX warnings and no overfull boxes. The PDF is 49 pages.pre-commit run --filespasses on the changed files. The hooks excludepaper/.config.json(read directly);evidence/precision/head_constants.json;evidence/*_tests.json;logits_processor.py,sampler.py,qwen3_5_mtp.py).Not done in this milestone