Repository navigation
Appendix D: cache-level checks of the stock divergences (tap v4, #118) - #121
Conversation
Fold in the cache-hashing tap's results from evidence/state_safety (cachecheck_v4_*, history_v4_*, repeats_v4_h44_*): - plain vs MTP with three steps (40 prompts): every cache entering every forward is identical up to layer 0's GDN recurrence at output index 1, and the first cache to differ is the recurrent state that kernel writes; - the two history pairs: KV of all 8 attention layers entering decode step 2 differs only at the shared positions 3-5 and 3-21, confirming the repoint at cache level; - a second history route through the recurrent prefill (humaneval-0044 repeats with and without a flush; prefix cache on vs off differs from prompt position 1 for the 6 prompts longer than 64 tokens); - the cache-hashing tap changes the same five prompts as the earlier one. New register entry state-cache. D11 (state-mech) narrows to the concurrency pair, the four tap-changed prompts the history test does not reproduce, the pools after the first plain-vs-MTP difference, the MTP prefix-cache-off history control and the remaining pinned pairs. D13 (state-firstcycle) now names first_cycle_fresh.json and the declared void rule; D.5 notes that the state handed to the first verify forward was already checked for three steps at batch 1.
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: APPROVE (provisional: I still have to rebuild the PDF in place and run Review of the exact head 73b2960: two commits, the Appendix D and register changes (14355e5) and the rebuilt PDF (73b2960). Main text unchanged. Every new number checked against the committed evidence (#118)
Main text. Suggestions (non-blocking)
|
…ix-off claim to the 6 prompts tested Reviewer suggestions on #121: give the cache-hashing rerun's pools (159,324 vs 166,481 tokens) beside the first analysis's; say that all 6 prompts over 64 tokens tested differed from the first output token rather than stating it for every such prompt; list the 127 plain-vs-MTP prompts not rerun with the cache-hashing tap under D11.
|
Verdict: APPROVE (provisional, on 90f5fd1: Codex's last review is of 73b2960. I've requested a review of this head and will confirm or withdraw once it finishes.) Re-review on 90f5fd1: 4ff5bc0 (source) plus the rebuilt PDF.
|
|
@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". |
Folds the cache-level checks merged in #118 into Appendix D and narrows the pending entries they settle. Every number is from the committed
evidence/state_safety/files (cachecheck_v4_*.json,history_v4_*.json,repeats_v4_h44_*.json,pools.json) or the merged README section "Cache-level checks (tap v4)".What the appendix now says
Method (D.4, "Locating the first difference"). A later tap version also hashes the caches each forward reads: the attention KV at every cached position, and the GDN convolution window and recurrent state. The comparison skips a prefill with no cached prefix, because the engine clears a fresh slot inside the forward after the tap has hashed the previous owner's leftover state. The checks were run at batch 1 for four comparisons: plain vs MTP, the two history pairs, prefix cache on vs off, and one prompt's same-server repeats. For the concurrency pair the check stays pending. The cache-hashing tap matches untapped runs on 35 of 40 prompts, and the five it changes are the same five as before. The untapped server's pools still differ (159,324 vs 97,672 tokens), so the tap is still not blamed.
Plain vs MTP-3 (D.4 findings, Figure 5 caption). On 40 of the 167 prompts:
So the decode and target-verify kernels produce different bits from identical inputs and state. The concurrency pair keeps "first differing module outputs only; caches pending".
History pairs at KV level (D.4).
mt_bench-0056andhumaneval-0008were each served alone and after their predecessor, on fresh servers whose pools are within 30 tokens of each other.This confirms the repoint at cache level for these two prompts. The other four tap-changed prompts keep their pending cache check.
Second history route (new paragraph, D.4).
humaneval-0044, served five times on one server: with a flush between requests, 4 of 4 repeats are bitwise identical. Without a flush, the second request (a full 128-token prefill) differs from prompt position 1 at layer 0's GDN recurrence, with the same tokens. The third to fifth reuse a 64-token prefix, differ from position 64 and change tokens (tokens_equalis false inrepeats_v4_h44_noflush.json).Pinned same-server repeats (D.4). The untested working explanation now names both routes: a different copy of a shared prefix, or a recurrent prefill that depends on what the cache holds. It stays labelled as not checked.
D.5 (first-cycle test).
Register.
state-cache(E26) lists the six summaries and the README. Its producer ismechanism.pyfrom the sessions ofrun_tap_v4.sh; the README records that the run used a copy of that script.state-mechnarrows to: the concurrency pair's caches, the four tap-changed prompts the history test does not reproduce, whether the pools contributed after the first plain-vs-MTP difference, the MTP prefix-cache-off control, and the remaining pinned pairs.state-firstcyclenamesevidence/state_safety/first_cycle_fresh.json, the filefirst_cycle.pywrites, and mentions the void outcome. Its marker stays pending, since the runs are still queued.Not changed
The main text.
contract.tex(Section 2.5) still says "Whether the caches entering those kernels agree is [pending D11]", which is now settled for the plain-vs-MTP recurrence. I tried narrowing it here, but the main text then ran four lines onto p11 (p10 has no slack), so the change needs a compensating cut. I've left it to the author and flagged it to main.Checks
latexmk -pdf: 0 warnings, 79 pages (78 before), main text ends on p10 and References start on p11.scripts/check_paper_references.py: clean (all register paths exist at origin/main).