Repository navigation
Paper: fix what the cold read found (consistent ranges, scoped claims, definitions, page numbers) - #227
Conversation
Consistency and overclaims: the served losses are attributed by arm (DFlash 1.0-3.0%, MTP 3.3% at c = 64; 28-64 positions over both DFlash arms, 30-64 on the envelope arms), the abstract and contributions use the envelope framing and name 16-token DFlash as the fastest configuration at c = 1, check mode is defined and the served 592,433 count stands beside the engine check's 196,734, "drop-in" gives way to the deployment costs in Section 4.5 (graph memory, the pinned DFlash cache, the gated-off cost, the stock verify for log-probability, penalty and grammar requests), the 8.9-nat result is an observation with its conditions, "exact up to rounding" says its rule was fixed after the first comparisons, the one-session host-work sentence leaves the abstract, and P_? is defined in Section 5. Notes: H4's envelope sits beside its verdict; H3 and the levers row attribute the losses by arm and give the per-position head-alone ratio. Definitions before use: the hybrid GDN model and attention backend in 4.1, session, gated off and each Table 1 row in 4.5, glossary entries; the tile index becomes g (c stays concurrency), interval ends are set as words. Layout: page numbers in the running head, the D.4 list boxed, Proposition C.3 displayed, Figure 6's circle in the key, the notes' duplicate register heading removed and the glossary heading kept with its table. Main text trimmed to stay within ten pages.
|
@codex review |
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 08c200ed9c
ℹ️ 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".
| \paragraph{Why the drift is large} Two properties of the DFlash drafter set its $\rho$ (Figure~\ref{fig:rho}a) \ev{stats-dflash}. Its final RMSNorm has unit gain, so its head input always has norm $\sqrt D\approx50.6$, about a third of the target's median of 159; the triangle inequality alone then gives $\rho\ge0.68$. The angle between the two is large as well: even the best rescaling of $h^d$ leaves $\rho$ near 0.91, and the drafter is trained to rank the right token first under $Wh^d$, not to reproduce the target's head input. Nor does the drift hide in directions the head ignores: with each position's mean logit removed, $\norm{W\Delta}_2/\norm{Wh^t}_2$ has a median of 0.85 \ev{rho}. MTP-4B's head input is slightly longer than the target's, so its drift is mainly in direction \ev{transport-mtp}. | ||
| \paragraph{What certification achieves} Over every bound family and tiling tested, and their elementwise minimum (Table~\ref{tab:transport}), the best certified bound lets a greedy verifier skip at most 0.59\% of the vocabulary for DFlash-4B and 0.64\% for MTP-4B, about as much as the static screen, which ignores the draft \ev{transport,transport-mtp}. A variant with one radius per entry, not per tile, reaches 0.65\% for MTP-4B (not in the table). A sampled draft fares no better: the test that decides its acceptance from the transported bounds almost always stays undecided ($P_?$). On the same DFlash-4B positions the int8 copy needs about 1.6 candidates per decision (Appendix~\ref{app:candidates}). | ||
| \paragraph{Why the drift is large} Two properties of the DFlash drafter set its $\rho$ (Figure~\ref{fig:rho}a) \ev{stats-dflash}. Its final RMSNorm has unit gain, so its head input always has norm $\sqrt D\approx50.6$, about a third of the target's median of 159, which alone gives $\rho\ge0.68$. The angle is large as well: even the best rescaling of $h^d$ leaves $\rho$ near 0.91, since the drafter is trained to rank the right token first under $Wh^d$, not to reproduce the target's head input, and the head's own metric does not hide the drift (Appendix~\ref{app:transport-drift}) \ev{rho}. MTP-4B's head input is slightly longer than the target's, so its drift is mainly in direction \ev{transport-mtp}. | ||
| \paragraph{What certification achieves} Over every bound family and tiling tested, and their elementwise minimum (Table~\ref{tab:transport}), the best certified bound lets a greedy verifier skip at most 0.59\% of the vocabulary for DFlash-4B and 0.64\% for MTP-4B (0.65\% with one radius per entry, Appendix~\ref{app:transport-families}), about as much as the static screen, which ignores the draft \ev{transport,transport-mtp}, while the int8 copy needs about 1.6 candidates per decision on the same DFlash-4B positions (Appendix~\ref{app:candidates}). A sampled draft fares no better: the interval tests that would decide its acceptance from the transported bounds leave it undecided with probability $P_?$ of at least 0.96 (Appendix~\ref{app:guards}). |
There was a problem hiding this comment.
Lower the stated minimum undecided probability
This lower bound is contradicted by the detailed results in paper/sections/app_transport.tex:233: for DFlash-4B with the best certified family on 64-entry k-means tiles, the reported mean
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 3e1af7e and corrected in 8cc60ad (review 1): "at least 0.92" was no lower bound either. The sentence now gives the range transported bounds alone leave, 0.92-1.00: every certified family and tiling, draft token or proposals, T = 1 or 0.7, smallest 0.9189 (DFlash-4B, 64-entry k-means tiles, T = 0.7; MTP-4B at least 0.997). It points to App C.7, which also reports 0.58 at the draft token once 64 entries are recomputed exactly. 0.96 was only Table 12's T = 1 proposal average.
…ex on #227) App C.7 reports means of 0.92-0.96 on 64-entry k-means tiles for DFlash-4B across draft token or proposals and T = 1 or 0.7; 0.96 was only Table 12's T = 1 proposal average. The sentence now points to App C.7.
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! 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". |
|
Verdict: REQUEST CHANGES at 3e1af7e Full review of both commits against the merge base c63c296. The paper is identical between c63c296 and main 7a394a6. Codex is clean on 3e1af7e, and its P2 at 08c200e was answered, but see item 1. Blocking
The main text has no line to spare. Items 1, 3 and 4 have same-length wordings above, and item 2 fits in the abstract's last line. Please rebuild and confirm that the Conclusion still ends on p10. Optional
Verified (no change needed)
On the next head I will check only the delta (items 1-4, plus any optional items taken), rebuild for the page fit, run the checker and check Codex. |
|
CPU-window result at 3e1af7e: pre-commit passed on every file the PR changes (exit 0). The |
…ms, row-level variant) Blocking items of the review at 3e1af7e: - §5: transported bounds alone leave the sampled acceptance test undecided with mean probability 0.92-1.00. "At least 0.92" was no lower bound: 0.92 is the smallest pure-transport mean (0.9189, DFlash-4B, k-means 64-entry tiles, T = 0.7), and App C.7 gives 0.58 once 64 entries are recomputed exactly. - Abstract and contribution 1: stock BF16 decoding puts the 8.9-nat token first at batch 1 (other stock runs committed other tokens there). - §4.5: both DFlash comparisons pinned the attention cache at 60,000 tokens, as the served README's "Pool pin (both arms)" column records. - §5 and App C.6: the 0.65% variant bounds each entry from its own draft score with its tile's radius (row-level in analyze_transport.py), not with one radius per entry. Optional items taken: the gated-off cost says that both 8-token DFlash intervals include 1; "exact up to rounding" adds that no output differs in length; "configuration" replaces "arm" before §4.5 defines it (§4.1, Figure 1); FlashSampling is exact in distribution; replayed GDN decoding's 8.1% is one run pair; App C.7's retained set is the 64 largest draft logits of the whole vocabulary at each position (torch.topk over the vocabulary), not 64 per tile. Abstract: the head's share of a batch-1 plain step and the free-head ceiling sit beside the served gains; "the fastest configuration at each of 2 to 8 requests"; the 8.9-nat sentence leads with why FP32 is the wrong reference. Paid for inside the abstract and the same paragraphs (the §5 sampled-draft sentence is shorter), with no claim or condition dropped: the main text still ends at the foot of p10.
|
@codex review |
|
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". |
|
Verdict: APPROVE at 8cc60ad This is a delta review from 3e1af7e. One commit, 12 lines changed across 6 files. BlockersAll four are fixed:
Optionals 5-11All are taken:
Does the new abstract claim anything beyond the evidence?No.
The BF16 positionThe main text (§1-§8 and the abstract) mentions neither ill-conditioning nor prompt 579ae7ce / position 439. The only reading of 439 as ill-conditioned is App E.5's sentence labelled "As an interpretation", which is left for the fold PR as planned. BuildI built 8cc60ad fresh.
Codex is clean on 8cc60ad (00:40 UTC). Optional
|
…es and the upstream patches BF16 (#222, evidence/bf16_paths): the served benchmark read both gross positions as ill-conditioned in BF16. #222 supports that for a4db11ff/333 only. At 579ae7ce/439, the paper's 8.9-nat position, transformers in BF16 keeps FP32's top token in all 16 readings, FP32 under one-rounding noise moves 1756 by at most 0.52 nats, and no single SGLang kernel swap removes the miss: an SGLang outlier at a selected position, whose frequency the unselected positions cannot compare with transformers'. The abstract and §4.5 add "unlike transformers'"; App E.5, the served README (two places) and a new notes subsection give the reading; register entry bf16-paths in both registers. Low-concurrency probes (#220, evidence/speed_lowc): one notes paragraph (split-KV verify dropped by its rule; FA4's head-dim-256 compile failure and backport; one-session served FA4 probes, exactness not classified; fused GDN chain passed its rule but not built), H6, "What did not work", register entry speed-lowc, and the missing index rows. Upstream (#226): one notes paragraph and register entry upstream-patches (the FA4 test as a comment on sgl-project/sglang#35757; the sgl-kernel sm_90a build fix open as sgl-project/sglang#42263). The two FP8 lines say the CUTLASS GEMM "fails" rather than "aborts", consistent with the engine README. Reviewer's optional item from #227: "calls of up to 30-64 positions" in the abstract and §4.5 (largest certified calls at each point). Paid for in §4.5's paragraph with no claim dropped; the main text still ends at the foot of p10.
Fixes what the cold read of the PDFs on main found (a newcomer's read as an inference engineer evaluating the take-home): inconsistent ranges between the abstract and the body, overclaims, terms used before they are defined, and layout defects. No new evidence; every number touched was rechecked against the committed files named below.
Consistency and overclaims
evidence/certified_head/served/ratios.csv: DFlash loses 1.0-3.0% (block 16 at c = 2, 4; block 8 at c = 4, 8) and MTP 3.3% at c = 64. Both counts of positions are right for their scope (served/README.md, "Where the head loses"): 28-64 over both DFlash arms, 30-64 on the envelope arms (block 16 at c = 2 and 4: 32/30 and 64/60 rows; block 8 at c = 8: 64/56). §4.5 now states both with their scope; the abstract and contribution 3 give the loss of "the fastest configuration at each of 2 to 8 requests" (block 16 at c = 2 and 4, block 8 at c = 8), and the abstract says that DFlash, at +1.2%, is the fastest configuration at c = 1 (the envelope's only gain).served/check.csv, stepcheck2;kernel-engine).served/README.md, Memory), the DFlash attention cache pinned in both arms and the start-up out-of-memory without the pin, 0.6-1.2% gated off (point estimates; both 8-token DFlash intervals include 1), and the stock verify for batches that request log-probabilities, penalties or a grammar.evidence/certified_head/README.md, head-path table).evidence/head_geometry/transport_dflash4b.csv), and App C.7 reports 0.58 once 64 entries are recomputed exactly (review 1).Definitions before use
§4.1 says the model is a hybrid with GDN layers and which attention backend applies; §4.3 defines check mode; §4.5 defines session, exact up to rounding, gated off and each Table 1 row (host-gap patches, backbone GEMM routing, replayed GDN decoding, fold verify), and Table 1's caption points there. The glossary gains these terms. The tile index in §5 and App C is now g (c stays concurrency; App C's coordinate-group index becomes p), App D.2's committed token is a, the glossary's noise field is g_{t,i} as in Theorem B.3, and interval ends are set as words (\lo, \hi).
Layout
Page numbers at the right of the running head (
paper.tex; the style is unmodified andtemplate/README.mdrecords the setting); the D.4 list boxed so Table 16 cannot split it; Proposition C.3's condition displayed; the circle marker added to Figure 6's key; the notes' duplicate "Evidence register" subsection removed and the glossary heading kept with its table.Page budget
The definitions and costs above added about 40 lines to a main text that had 5 to spare, so the PR also trims, keeping every claim and condition:
Review 1 (REQUEST CHANGES at 3e1af7e), fixed at 8cc60ad
Blocking:
evidence/head_geometry/transport_dflash4b.csvandtransport_mtp4b.csv, every certified family and tiling, draft token or proposals, T = 1 or 0.7: DFlash-4B 0.9189-1.00 (smallest: k-means 64-entry tiles, T = 0.7), MTP-4B 0.9972-1.00. App C.7 keeps the 0.58 (0.81 for MTP-4B) with 64 entries recomputed exactly. The sentence is shorter than before, which pays for item 4. The Codex reply and this body no longer say "smallest on the tested variants".analyze_transport.py:278,row_upper = zd + (a + eps)[:, tile_of_row]: 0.6508% for MTP-4B, 0.594% for DFlash-4B). §5: "(0.65% bounding each entry from its own draft score, Appendix C.6)"; C.6: "A row-level variant, which bounds each entry from its own draft score with its tile's radius, skips 0.65% ...".Optional, all taken:
5. Gated off: "costs 0.6-1.2% (8-token DFlash's intervals include 1)".
served/ratios.csv, role "gate overhead": plain decoding at 128 0.994 (0.9925-0.9956), block 16 at 8 0.988 (0.9766-0.9998), block 8 at 16 and 32 0.988 (0.962-1.015) and 0.994 (0.945-1.046).6. "Exact up to rounding" in §4.5 adds "and no output differs in length", as E.3 and the glossary.
7. "Unless a configuration names another" in §4.1, and "the tuned configuration with 16-token blocks" in Figure 1's caption.
8. Abstract and contribution 3: "the fastest configuration at each of 2 to 8 requests loses 1.0-3.0%".
9. FlashSampling "fuses Gumbel-max sampling, exact in distribution, into the head over every tile".
10. Replayed GDN decoding "gains 8.1% at c = 128 (one run pair)".
11. App C.7: "the 64 entries of the whole vocabulary with the largest draft logits at each position (R_g being those in tile g)", as
analyze_transport.py:204(torch.topk(zd, RETAIN, dim=1)) computes them.Main's abstract notes, within the same 17 lines: the head's share and the ceiling ("whose head is 10.3% of a batch-1 plain decode step", and "(about 11% with a free head)" beside plain decoding's 2.5%; derived, 1/(1 - 0.103) = 1.115, as the introduction states); item 8; and the 8.9-nat sentence now leads with its reason, "FP32 is the wrong reference:". Paid for inside the abstract: "itself", "entries" (in "the few that could still win"), "the one the engine's head returns" (now "match the engine's head"), "the method" ("this"), "the certified head" ("it"), "head" before "calls", "FP32 places ... its top" ("8.9 nats below FP32's top"). Items 3 and 5 are paid in §4.5's paragraph ("it keeps" to "keeps", "calls of these sizes" to "such calls", "in text after" to "after"); item 9 in related work ("differs from it only" to "differs only", "changing" to "but change") plus the line §5 frees.
Build
Paper 54 pp, notes 55 pp, 0 LaTeX warnings in either (the notes' levers table was 4 pt too tall after its cell changed and was shortened). Main text ends at the foot of p10R (y = 706, no line spare; unchanged by review 1), References at the top of p11; the abstract is 17 lines, and §2 still starts at the foot of p2R.
scripts/check_paper_references.py --rev HEAD: every check "none". Pages checked by eye at 70-150 dpi: 1-2, 7-10 (main text), 27 (Prop. C.3), 35 (D.4 list), 37 (Figure 6), notes 49-50 (glossary heading). Rebuilt from 8cc60ad itself: the same (54 and 55 pp, 0 warnings, Conclusion at the foot of p10R, References p11, checker "none" throughout); pages 1, 2, 9 and 10 checked again at 70 dpi.pre-commit run --files $(git diff --name-only c63c296 HEAD)at 8cc60ad: passes (8cc60ad was committed with--no-verifywhile a timed hold ran, after a manual host-identity check of the diff).Note for the speed fold: the main text has no line spare on p10R, and §2 starts at the foot of p2R only while the introduction stays this short; one more intro line sends §2 to p3 and costs about seven lines.
Not done: a separate main-text table of the served certified head across concurrency, which the cold read suggested, does not fit the page budget; Table 1 keeps its certified-head rows and App E.5 its full table.