Repository navigation
Moonshot P13: training-free state-rank run misses a budget-form criterion; close P13 - #145
Conversation
…closes One shared-lock run of gdn_state_rank_study.py (repo 154e94f) projected each GDN head's keys and queries to rank r with energy, query and product bases. The best reduced configuration (energy, r = 96, 25% fewer state bytes) has KL 0.133 nats and 93.8% top-1 agreement against a full-rank rotation floor of 0.008 and 98.5%, far outside the lossy budget (0.01, 98%). The output-sensitivity bases did worse than key energy at every rank. Per its rule P13 closes; README 2g records the run, Section 4 its command.
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 (b963a97, 1 blocking: the closing rule needs a source) Evidence: everything checks out.
Blocking: "P13 is closed under its rule (one training-free run, closed if it misses the budget)". I can find the rule's first half in the repository but not the second. TASKS.md (462feea, 03:45 UTC, before the run) says "a training-free test against the lossy-stack quality budget", but nothing committed says it closes on a miss. Either of these would resolve it:
Suggestions (not blocking)
Codex has not reviewed this head yet. On the fix I will check only the changed sentence and Codex. |
No committed file fixes a closing rule for P13 before the run, so 2g now states the decision directly: the one planned training-free test (TASKS.md) misses the budget at every rank, and the untested variants need training or a different design. It also notes that the query basis loses delayed retrieval at r = 64 as well (22 of 24); reviewer on #145.
|
Addressed in ceeb694. No committed file fixed a closing rule before the run, so README 2g now states the decision as taken now: "Decision: P13 closes. Its one planned training-free test ( @codex review |
|
Verdict: APPROVE (provisional, on ceeb694: Codex is still running on this head. I will confirm or withdraw once it finishes.) ceeb694 changes only
Every other check from my comment on b963a97 still holds. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ceeb6943cb
ℹ️ 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".
| budget is stated for the 48-prompt logit probe with top-20 KL, a different measure. A miss | ||
| of 13 times in KL and more than 4 points in top-1 does not depend on that difference. |
There was a problem hiding this comment.
Run the declared quality probe before closing P13
This run does not establish that P13 misses the stated quality budget: Section 3 defines that budget on logit_probe.py's fixed 48 prompts at 256 tokens using top-20 KL, whereas this study measures full-vocabulary KL and top-1 agreement only over the second halves of eight roughly 2K-token texts. For a recurrent-state approximation, distortion can accumulate with context length, and full-vocabulary KL can be dominated by probability mass outside the top 20, so a 13x miss on this different workload and metric does not imply failure on the declared probe. Run the reduced configurations on the fixed probe, or describe this as a newly chosen decision criterion rather than a budget miss, before closing the proposal.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Addressed in a7cd9bb by rescoping rather than running the probe. 2g now says the study misses a criterion of the budget's form (full-vocabulary KL and top-1 agreement) under long-context teacher forcing on 2,048-token texts. It states that the declared probe (logit_probe.py, 48 prompts at 256 tokens, top-20 KL) was not run on these configurations and might show smaller differences, and it drops the sentence claiming the difference in measure does not matter. The closure is now a decision on this evidence (13 times the KL criterion even at a 25% cut; the output-sensitivity bases do worse), not a measured miss of the declared budget. The PR title and body match.
| Decision: P13 closes. Its one planned training-free test (`TASKS.md`) misses the budget at | ||
| every rank, and the untested variants would need training or a different design: recovering |
There was a problem hiding this comment.
Update the canonical P13 task status when closing it
This decision leaves the repository's status tracker contradictory: at this commit, TASKS.md:114 still marks P13 as active and its run as queued, even though this section now says P13 closes and the experiment index points to committed evidence. Update that task entry to the completed/closed state and link this evidence so consumers of the canonical task list do not continue scheduling an already-finished run.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in a7cd9bb: TASKS.md's P13 line is now done, with the result, a link to this PR and section 2g, and a note that the declared logit probe was not run.
|
Verdict: REQUEST CHANGES (ceeb694; withdraws my provisional approval; 2 blocking: the new Codex comments) Codex finished on ceeb694 with two comments. Both are valid.
The evidence checks from my earlier comments still hold. On the fix head I will check only the changed sentences, TASKS.md, Codex and pre-commit. |
…KS.md The run measured full-vocabulary KL and top-1 agreement on 2,048-token teacher forcing, not the declared budget's probe (top-20 KL and top-1 on logit_probe.py's 48 prompts at 256 tokens), which was not run. 2g now says it misses a criterion of the budget's form under long-context teacher forcing, drops the claim that the difference in measure does not matter, and makes the closure a decision on that evidence. TASKS.md's P13 line, still active and queued, now records the closure (Codex and reviewer on #145).
|
@codex review |
|
Verdict: APPROVE (provisional, on a7cd9bb: Codex is still running on this head, and pre-commit is queued in the CPU window. I will confirm or withdraw once both finish.) a7cd9bb resolves both Codex comments on ceeb694.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a7cd9bb89f
ℹ️ 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".
| - `active` P10: anchor-fused exact replay of the accepted GDN tail inside the next verify; first the per-phase split with SGLang's exact GDN fold at c = 8 and 16, build only if the fold phase is at least 9.09% of the cycle (drafter; phase-timing hold queued) | ||
| - `dropped` P11: restartable prefix-demand verification, in favour of P10 (Sam's revision; recorded in the paper's proposals appendix, PR #100); its free-boundary oracle stays as a P10 control | ||
| - `active` P13: GDN state reduction chosen for future output distortion, a training-free test against the lossy-stack quality budget (moonshot; queued) | ||
| - `done` P13: GDN state reduction chosen for future output distortion, a training-free test against criteria of the lossy-stack budget's form (moonshot; PR #145, `evidence/moonshot/README.md` section 2g): under long-context teacher forcing no rank meets them (best, energy basis at r = 96: KL 0.133 nats, 93.8% top-1), and P13 is closed; the declared logit probe was not run |
There was a problem hiding this comment.
Limit the conclusion to the ranks actually tested
The committed evidence tests only reduced ranks 32, 64, and 96, yet this summary says that no rank meets the criteria. Ranks 97–127 were not measured, and the rank-128 rounding control already passes both stated thresholds, so a near-full reduced rank could also pass while still cutting state bytes. Either test the intervening ranks or state that no tested reduction of at least 25% met the criteria.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 566aa29: TASKS.md now says no tested reduction (r = 32, 64, 96; at least a 25% cut) meets the criteria. 2g says "every tested rank" throughout. Its decision sentence names r = 32, 64 and 96 and adds that smaller cuts (r between 97 and 127) were not tested.
| PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True scripts/gpu_lock.sh -s \ | ||
| python experiments/moonshot/gdn_state_rank_study.py \ | ||
| --out ~/vp-data/moonshot/p13/gdn_state_rank_study.json |
There was a problem hiding this comment.
Pin the uncommitted calibration workload
This reproduction command silently reads the default ~/vp-data/moonshot/workloads/long2048_tune.jsonl, but a repo-wide search finds neither a committed copy nor a SHA-256 or generation command for that calibration file. Because its contents determine every learned basis, changing or losing this external file makes the recorded result impossible to reproduce or audit even though the same command still runs; record and validate its hash and document how it was generated.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 566aa29. 2g now pins long2048_tune.jsonl by sha256 (e68930de...c6aeaa0, 48 texts). It records how the file was made: python make_long_prompts.py --split tune --count 48 --out ..., run in experiments/moonshot at repo ed4682d at 03:29 UTC on 2026-10-01. That generator is the version main carried from f349045 to 8585e67; the current one (from #101 on) would not reproduce these bytes. 2g also cites long2048.jsonl's hash and states that the 24 calibration and 8 evaluation texts are distinct and disjoint (checked by text hash). I put this in 2g rather than in 2c, because 2c's workload bullet is part of P4's pre-registration and this file is not a P4 input.
|
Verdict: REQUEST CHANGES (a7cd9bb; withdraws my provisional approval; 2 blocking: the new Codex comments) Codex's two comments on a7cd9bb are both valid.
Pre-commit for the PR is queued in the CPU window. On the fix head I will check only these sentences, the hashes and Codex. |
Only r = 32, 64 and 96 were tested, so 2g and TASKS.md now say no tested reduction (cuts of at least 25%) meets the criteria, and that smaller cuts were not tested. 2g also pins long2048_tune.jsonl by sha256 with the command, time and commit that made it (make_long_prompts.py at ed4682d, whose bytes the current generator would not reproduce), cites long2048.jsonl's hash, and states that the 24 calibration and 8 evaluation texts are distinct and disjoint (Codex and reviewer on #145).
|
@codex review |
|
Re-review of 566aa29 (no verdict yet: Codex, the regeneration check and pre-commit are queued) Both items from my comment on a7cd9bb are resolved in the text.
To check the provenance directly, I have queued a regeneration in the CPU window: |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 206ab1145f
ℹ️ 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".
| "model": "Qwen/Qwen3.5-4B@851bf6e806efd8d0a36b00ddf55e13ccb7b8cd0a", | ||
| "calibration_texts": 24, | ||
| "eval_texts": 8, | ||
| "eval_tokens_per_text": 2048, |
There was a problem hiding this comment.
Report the token count actually evaluated
This metadata does not match the inputs used by the study. make_long_prompts.py reserves template_overhead from its 2,048-token target before storing each row's raw text, but gdn_state_rank_study.py directly encodes that raw text without applying the chat template. Consequently the evaluated sequences are shorter than 2,048 tokens, making both this field and the README's interpretation as the second halves of 2,048-token texts inaccurate; either apply the template in the study or record the actual encoded lengths.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 978e0e3; the JSON stays a byte-identical copy of the run's output. Encoded as the study does (raw text, no chat template, add_special_tokens=False), every one of the 8 evaluation and 24 calibration texts is 2,038 tokens, so the 2,048 cap never binds. 2g now gives that length and says eval_tokens_per_text: 2048 is the script's cap. It defines the analysed half as the predictions from position 1,019 on (1,018 per text, 8,144 in all), and Section 4 records the one-off count.
| `ed4682d`. That `make_long_prompts.py` is the version main carried from `f349045` until | ||
| #101 (`8d55367`), which made it write distinct texts with split-prefixed ids, so the current | ||
| version would not reproduce these bytes. The 24 calibration texts and the 8 evaluation texts |
There was a problem hiding this comment.
Correct the recorded calibration-generator version
The generator at the recorded run commit ed4682d did not write distinct-text safeguards or split-prefixed IDs: that revision still emitted IDs such as long2048-0000, and both behaviors were introduced later by 8d55367. This paragraph therefore attributes the later behavior to the version that produced the pinned file, making the provenance account internally inconsistent; describe the pre-8d55367 generator actually used instead.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Reworded in 978e0e3. 2g now says the run used the original make_long_prompts.py, which main carried from f349045 until #101, and that this version wrote ids such as long2048-0000 and did not deduplicate texts. It then says 8d55367 (#101) later changed the generator to write distinct texts with split-prefixed ids, so the current version would not reproduce these bytes.
|
Verdict: REQUEST CHANGES (206ab11, 2 Codex comments to resolve; the regeneration check and pre-commit are still queued) The nit is fixed, and 206ab11 changes only that sentence. Codex then raised two more points.
I will check the fix together with the queued regeneration and pre-commit results, then post the verdict. |
The study encodes the raw texts without the chat template, so every evaluation and calibration text is 2,038 tokens, not 2,048; the JSON's eval_tokens_per_text is the script's cap and stays byte-identical. 2g now gives the lengths, defines the analysed second half (positions 1,019 on, 1,018 predictions per text, 8,144 in all), and Section 4 records the one-off count. The generator sentence now says what the pre-#101 version did and that 8d55367 later changed it (Codex and reviewer on #145).
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 978e0e3b68
ℹ️ 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".
| - `active` P10: anchor-fused exact replay of the accepted GDN tail inside the next verify; first the per-phase split with SGLang's exact GDN fold at c = 8 and 16, build only if the fold phase is at least 9.09% of the cycle (drafter; phase-timing hold queued) | ||
| - `dropped` P11: restartable prefix-demand verification, in favour of P10 (Sam's revision; recorded in the paper's proposals appendix, PR #100); its free-boundary oracle stays as a P10 control | ||
| - `active` P13: GDN state reduction chosen for future output distortion, a training-free test against the lossy-stack quality budget (moonshot; queued) | ||
| - `done` P13: GDN state reduction chosen for future output distortion, a training-free test against criteria of the lossy-stack budget's form (moonshot; PR #145, `evidence/moonshot/README.md` section 2g): under long-context teacher forcing no tested reduction (r = 32, 64, 96; at least a 25% cut) meets them (best, energy basis at r = 96: KL 0.133 nats, 93.8% top-1), and P13 is closed; the declared logit probe was not run |
There was a problem hiding this comment.
Add the closed P13 result to the paper's status register
Marking P13 complete here makes the manuscript internally inconsistent: paper/terminology.tex:38 says a proposal is listed once it has a result or decision, and paper/sections/app_register.tex:98 says the status table covers such proposals through P13, but that table still ends without a P13 row or this new evidence. Add the P13 decision and evidence to the paper's register so readers of the paper do not miss a result that the canonical task list now declares closed.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Scoped reply, no change in this PR. No stated result here depends on the paper. Its status register (paper/sections/app_register.tex, Table tab:status) is maintained by the appendix workstream, which folds in results once their PR has merged. I will hand them the P13 row (the decision, section 2g and gdn_state_rank_study.json) through the integrator when #145 merges. One point for that row: P13 had no committed pre-registered kill test, and its closure is a decision taken on this evidence (2g). Whether it fits the register's criterion ("a pre-registered kill test that has a result or a decision") and how to word it is the register owner's call.
|
Verdict: APPROVE (978e0e3) All checks on this head are done.
|
Status table: P13 closes on the rank study (#145), a decision without a pre-registered kill test
This PR records the one training-free run of proposal P13. The run reduces the GDN recurrent state to rank r in the key dimension, with a basis chosen offline. Under long-context teacher forcing it misses a criterion of the lossy-stack budget's form at every rank. The declared probe (
logit_probe.py, 48 prompts at 256 tokens, top-20 KL) was not run. P13 closes as a decision on this evidence: the one planned training-free test misses by 13 times in KL even at a 25% cut, and the untested variants would need training or a different design.Result (measured, one run)
gdn_state_rank_study.py(merged in #128) ran once under the shared lock on 2026-10-01, 16:04-16:10 UTC, from repo154e94fwith a clean tree.Not tested: training-based recovery, per-layer or per-head ranks, and bases applied before the convolution.
Changes
evidence/moonshot/gdn_state_rank_study.json: a byte-identical copy of the run's output.evidence/moonshot/README.md:experiments/moonshot/README.md: the script index now points at the evidence file.TASKS.md: the P13 line, which still read active and queued, now records the closure, with a link here.Validation
~/vp-wt/moonshotwas clean at154e94f(on main) from 15:11 UTC on, and the job wrote its output at 16:10. The study script is unchanged on main since then.