Skip to content

Research notes: P4's served test rejects the 1.10x claim (fold #191) - #202

Merged
SamMausberg merged 1 commit into
mainfrom
paper/p4b-fold
Oct 2, 2026
Merged

SamMausberg merged 1 commit into
mainfrom
paper/p4b-fold

Conversation

@SamMausberg

Copy link
Copy Markdown
Owner

The research notes still listed P4's served test as pending (\pend{moonshot-p4}) and said "That preflight is queued. No served result exists." #191 committed the result. This PR folds it into the notes. It touches only paper/notes/ and changes no paper section.

The result, as committed (evidence/moonshot/README.md section 2c, p4_ab_verdict.json)

  • The served A/B at exactly 128 running requests, four dense/replay pairs at ring length 4, passed every declared validity check. Replay decoded 1.0042x dense decoding (95% t interval 1.0026-1.0058). The upper end is below the pre-registered 1.10x, so the claim is rejected. Client throughput was 1.0014x.
  • The output probe at concurrency 1 (48 prompts, 256 greedy tokens, with a second dense server as control) found no difference. That does not establish end-to-end exactness; bit-exactness stays a kernel-level result.
  • Measured against derived: the kernel is 1.22x at batch 128, and the derived per-step expectation was about 1.07-1.08x. The step saved 0.045 ms against the 0.69 ms the one-layer timing predicts over 24 layers, so about 6.5% of the kernel's saving reached the server (derived). The proposed cause is a host synchronization in SGLang's ring-cursor bookkeeping outside the CUDA graph. It comes from reading the code and is stated as untested.

Changes

  • notes/stack.tex:
    • The P4 paragraph is retitled "(P4, rejected)", and its last sentences now say that the amended preflight showed 128 running requests and the served test then ran.
    • A new paragraph, "P4 served: rejected", states the result with its conditions.
    • The kernel-level paragraph loses its pending clause.
    • The levers-table row states the served decode rate and "rejected".
    • The lever-classes paragraph notes that P4 served at only 1.0042x.
    • "What did not work" now lists P4 with P5 and P1 among the proposals rejected by their pre-registered tests.
  • notes/status.tex: the P4 row reads "Rejected", with the interval and the probe's limit, ahead of the kernel-level facts.
  • notes/register.tex: moonshot-p4 moves from a pending entry to an evidence entry (README, p4_ab_verdict.json, p4_ab_arms.csv, p4_output_probe.csv; produced by run_p4b.sh, validate_p4_ab.py, output_probe.py, check_admission.py). p4-declared also names the passing amended preflight.

Build (local, not committed)

Check Result
LaTeX warnings, paper / notes 0 / 0
Pages, paper / notes 50 / 54
Paper main text unchanged (no paper section touched; References heading on p10)
scripts/check_paper_references.py --rev HEAD clean
Numbers No number is removed. Every added number is in evidence/moonshot/README.md section 2c or p4_ab_verdict.json. numdiff, which counts the paper's numbers, shows no change, as expected for a notes-only diff.
pre-commit, host-identity check passed
Ledger rows
id where change source
P4b-1 notes 3.x, P4 paragraph retitled rejected; preflight passed, test ran README 2c "Running-limit preflight passed"
P4b-2 notes, new "P4 served: rejected" 1.0042 (1.0026-1.0058), validity, client 1.0014, probe and its limit, 6.5%, untested cause p4_ab_verdict.json, p4_ab_arms.csv, p4_output_probe.csv, README 2c
P4b-3 levers table, What did not work, lever classes P4 rejected, 1.0042x as above
P4b-4 status table P4 row Rejected, interval, probe limit as above
P4b-5 notes register moonshot-p4 devitem to evitem; p4-declared names the preflight files above

The served A/B at exactly 128 running requests gave replay at ring length 4 a decode rate
of 1.0042x dense decoding (95% t interval 1.0026-1.0058), so the declared rule rejects the
claim. The output probe at concurrency 1 found no difference, which does not establish
end-to-end exactness; bit-exactness stays a kernel-level result. About 6.5% of the
one-layer kernel's saving reached the server (derived); the host-synchronization cause is
a hypothesis from reading the engine code, untested. P4 joins the rejected proposals in
"What did not work", the status table and the levers table; moonshot-p4 becomes an
evidence entry (evidence/moonshot/README.md section 2c, p4_ab_verdict.json,
p4_ab_arms.csv, p4_output_probe.csv).
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 2, 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-02T10:07:05.852326Z 8f69c20 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 8f69c20bd8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE at 8f69c20

I checked every changed passage against evidence/moonshot/README.md 2c, as merged in #191 (cf43f14), and built the documents from a fresh worktree.

  1. "P4 served: rejected" (stack.tex). It matches 2c:
    • pools 129 / 655,360 / 132, 256 of 256 requests on the declared prompts, and 24 windows at exactly 128 running;
    • 1.0042 (1.0026-1.0058) against 1.10, every pair favouring replay by 0.31-0.55%, and rejected under the declared rule;
    • client throughput 1.0014;
    • the probe: c = 1, 48 prompts of 256 greedy tokens, identical in every token and top-20 log-probability, and the second dense server identical too. Its limits are stated: emitted tokens and the top 20 only, no end-to-end exactness, bit-exactness only at kernel level;
    • the controls as greedy-token matches: "kept the dense server's tokens in only 22, 20 and 17 of the 48 sequences" makes no top-20 claim;
    • 10.77 against 10.73 ms, 0.045 ms saved against 0.69 ms derived over 24 layers, about 6.5%;
    • the host-sync cause stated as untested and from reading the code ("Reading the engine code suggests a cause, untested ... A trace of both arms would test this");
    • "even the whole kernel saving would give only about 1.07 times".
  2. The P4 paragraph is retitled "(P4, rejected)", and "the served test then ran (below)" replaces the queued wording. The p4-declared entry adds the preflight that showed 128 running, which is recorded in 2c.
  3. The levers table row ("served decode rate 1.0042x at 128 running requests, rejected"), the "What did not work" list ("Three proposals", with P4 at 1.0042 against 1.10) and the status-table row ("Rejected ... 1.0042x ... (95% interval 1.0026-1.0058) ... found no difference, which does not establish end-to-end exactness") all match 2c.
  4. The moonshot-p4 entry has moved from pending to evidence. p4_ab_verdict.json, p4_ab_arms.csv, p4_output_probe.csv and the README all exist at origin/main. No \pend{moonshot-p4} remains anywhere in paper/.
  5. Build: from paper/, latexmk -pdf paper.tex then latexmk -pdf notes/research_notes.tex, both exit 0. The notes are 54 pages and the paper 50 pages, each with 0 LaTeX, package or class warnings, 0 overfull boxes and nothing undefined. The rendered paragraph reads as above, citing [N-E44]. scripts/check_paper_references.py is clean, with and without --rev 8f69c20.

Optional:

  • In the control sentence, adding "and all three changed the top-20 log-probabilities" would match 2c and make the probe's sensitivity explicit.
  • The moonshot-p4 producer list could add experiments/moonshot/summarise.py, which writes p4_ab_arms.csv and p4_output_probe.csv.

Codex found no major issues at 8f69c20. The diff contains no host identity, and the commit has no attribution lines.

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