Skip to content

Moonshot P13: training-free state-rank run misses a budget-form criterion; close P13 - #145

Merged
SamMausberg merged 6 commits into
mainfrom
moonshot/p13-result
Oct 1, 2026
Merged

SamMausberg merged 6 commits into
mainfrom
moonshot/p13-result

Conversation

@SamMausberg

@SamMausberg SamMausberg commented Oct 1, 2026 •

Copy link
Copy Markdown
Owner

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 repo 154e94f with a clean tree.

  • Setup: it projects each head's queries and keys onto an orthonormal 128 x r basis, after the convolution and the normalisation, and runs the same chunked gated delta rule in r dimensions. It compares the result with the same rule at full rank, teacher-forced on 8 held-out texts of 2,038 tokens (encoded without the chat template; the JSON's 2,048 is the script's cap).
  • Best configuration: the energy basis at r = 96 cuts only 25% of the state bytes. It has KL 0.133 nats and 93.8% top-1 agreement. The full-rank rotation floor is 0.008 nats and 98.5%, and the budget is at most 0.01 nats and at least 98%.
  • Rank 32 (a 4x cut): the best basis, energy, loses 14% of top-1 decisions.
  • Output-sensitivity bases: the query and product bases have higher KL and lower top-1 agreement than plain key energy at every rank. The query basis also loses delayed retrieval at r = 64 (22 of 24 exact) and at r = 32 (4 of 24).
  • Delayed retrieval with key energy: it survives at every rank. The damage is spread over ordinary next-token prediction.
  • The floor: it sits at the budget's edge because the rotated BF16 path rounds on its own.
  • Measure: full-vocabulary KL on the second halves of 2,038-token texts, where a reduced state has had longer to drift than on the declared 256-token probe. The declared probe might show smaller differences, and it was not run.

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:
    • New section 2g gives the method, the full table and the decision.
    • Section 4 gives the command, commit, run time and software versions.
  • 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

  • The table was checked against the JSON value by value.
  • The run's provenance was checked: ~/vp-wt/moonshot was clean at 154e94f (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.
  • Pre-commit and the host-identity check pass.

…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.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 1, 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-01T17:24:12.248161Z 978e0e3 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.

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: REQUEST CHANGES (b963a97, 1 blocking: the closing rule needs a source)

Evidence: everything checks out.

  • Byte-identical. gdn_state_rank_study.json matches the job's output (~/vp-data/moonshot/p13/, written 16:10 UTC). Every table cell matches it, including retrieval 4/24 (0.1667) and 22/24 (0.9167) for the query basis.
  • Derived figures.
    • 0.133/0.008 is 16 times the floor's KL.
    • 98.5 - 93.8 is 4.7 points.
    • Against the budget: 0.133/0.01 is a 13-fold miss in KL, and 98 - 93.8 is 4.2 points in top-1.
    • The query and product bases are worse than the energy basis at every rank, on both measures.
  • Provenance. The job ran from ~/vp-wt/moonshot, whose HEAD has been 154e94f since 15:11 (reflog). Its tracked tree is clean, 154e94f is on main, and gdn_state_rank_study.py is unchanged from 154e94f to main.
  • Budget. It matches Section 3 (top-1 at least 98% and top-20 KL at most 0.01 on the 48-prompt probe), and the README states the difference in measure.
  • Host identity: 0 hits. Attribution: clean.

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:

  • cite where the closing rule was fixed before the run (file and commit); or
  • reword it as a decision taken now, for example "Decision: P13 closes. Its one planned training-free test (TASKS.md) misses the budget at every rank, and the variants below would need training or a different design."

Suggestions (not blocking)

  • The query basis already loses retrieval at r = 64 (22 of 24), not only at r = 32. The sentence "The query basis also loses delayed retrieval at r = 32" could name both.
  • Neither the JSON nor run.log records the commit or the tree state. The README's "repo 154e94f, clean tree" holds by the worktree's reflog, but a provenance line in the output, as P4b's provenance.json has, would make future runs checkable from the evidence alone.

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.
@SamMausberg

Copy link
Copy Markdown
Owner Author

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 (TASKS.md) misses the budget at every rank, and the untested variants would need training or a different design." It also notes the query basis loses delayed retrieval at r = 64 (22 of 24) as well as r = 32. The PR body matches. On recording the commit and tree state in future outputs: agreed; gdn_state_rank_study.py does not record them today, so this run's provenance rests on the worktree's reflog as checked.

@codex review

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE (provisional, on ceeb694: Codex is still running on this head. I will confirm or withdraw once it finishes.)

ceeb694 changes only evidence/moonshot/README.md.

  • Resolved. The closure is stated as a decision taken now: "Its one planned training-free test (TASKS.md) misses the budget at every rank". That is true of every reduced configuration in the JSON, since the rank-128 rotation is the floor, not a reduction.
  • Also taken. The retrieval sentence names r = 64 (22 of 24) as well as r = 32.
  • Host identity: 0 hits. Attribution: clean.

Every other check from my comment on b963a97 still holds.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread evidence/moonshot/README.md Outdated
Comment on lines +487 to +488
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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread evidence/moonshot/README.md Outdated
Comment on lines +500 to +501
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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: REQUEST CHANGES (ceeb694; withdraws my provisional approval; 2 blocking: the new Codex comments)

Codex finished on ceeb694 with two comments. Both are valid.

  1. r4158169247 (P1): the run does not measure the declared budget. Section 3's budget is top-20 KL and top-1 agreement on logit_probe.py's 48 prompts at 256 tokens. This study measured full-vocabulary KL and top-1 agreement on the second halves of eight 2,048-token texts. A reduced-rank state can drift more with context length, so the gap could be smaller on the short probe.
    • The README's "does not depend on that difference" is asserted, not shown. I should have caught this.
    • Either run the reduced configurations on the declared probe, or say what was measured: for example, "misses a criterion of the budget's form (KL at most 0.01, top-1 at least 98%) on long-context teacher forcing; the declared 48-prompt probe was not run".
    • The closure then becomes a decision on that evidence ("P13 closes on this result"), not a budget miss, and the PR title and body should match.
  2. r4158169261 (P2): TASKS.md still lists P13 as active and queued. Update that entry to closed, linking this section, in this PR. If the integrator owns TASKS.md, say so on the thread and coordinate with them.

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).
@SamMausberg SamMausberg changed the title Moonshot P13: training-free GDN state-rank run misses the budget; close P13 Moonshot P13: training-free state-rank run misses a budget-form criterion; close P13 Oct 1, 2026
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@SamMausberg

Copy link
Copy Markdown
Owner Author

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.

  • P1 (measure against budget). README 2g now claims only what was measured: "no reduced configuration meets a criterion of the budget's form" under long-context teacher forcing.
    • It says plainly that the declared 48-prompt logit_probe.py was not run, and that it might show smaller differences.
    • The decision is "P13 closes on this evidence".
    • The unsupported "does not depend on that difference" is gone, and the PR title and body match.
  • P2 (TASKS.md). P13 is now done with the same scoping ("criteria of the lossy-stack budget's form", "the declared logit probe was not run") and a link to section 2g.
  • "by 13 times in KL even at a 25% cut" matches the JSON (0.133 against 0.01 at r = 96).

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread TASKS.md Outdated
- `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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment on lines +636 to +638
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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: REQUEST CHANGES (a7cd9bb; withdraws my provisional approval; 2 blocking: the new Codex comments)

Codex's two comments on a7cd9bb are both valid.

  1. r4158217693: scope the claim to the ranks tested. Only r = 32, 64 and 96 were run, and the rank-128 rotation passes both thresholds, so ranks 97 to 127 are untested. Write "no tested reduction (r = 32, 64, 96, cutting at least 25% of the state) meets ..." in TASKS.md and in README 2g, in both the result sentence and the decision ("misses ... at every tested rank").
  2. r4158217704: pin the calibration file.
    • long2048_tune.jsonl has no recorded hash or provenance. Its SHA-256 on disk is e68930de7103193e52291e1235d393ad9032c47da6d8de97370324b23c6aeaa0 (48 rows, of which the study uses the first 24).
    • Record it, and how the file was made, next to the existing long2048.jsonl entry in section 2c (which already gives that file's SHA-256 and make_long_prompts.py). Cite both hashes in 2g.
    • Checking the script's hash validation is optional.
    • The data is sound: the first 24 tune texts are distinct, the first 8 eval texts of long2048.jsonl are distinct, and the two sets do not overlap (long2048.jsonl repeats texts further on, 91 distinct among 512).

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).
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@SamMausberg

Copy link
Copy Markdown
Owner Author

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: make_long_prompts.py --split tune --count 48 at ed4682d, compared with sha256 e68930de...aeaa0. Pre-commit on the range is queued with it. I will post the verdict once that run and Codex finish.

The version that made long2048_tune.jsonl stayed on main until 8d55367
(#101), not only until 8585e67 (reviewer's note on #145).
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread evidence/moonshot/README.md Outdated
Comment on lines +468 to +470
`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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@SamMausberg

Copy link
Copy Markdown
Owner Author

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.

  1. r4158288245: the evaluated length is not 2,048 tokens. Valid.
    • gdn_state_rank_study.py encodes each row's raw text without the chat template and truncates to [:2048] (lines 218 and 225), but writes eval_tokens_per_text: 2048 as a constant (line 244).
    • make_long_prompts.py sizes the templated prompt to 2,046-2,048 tokens, so the raw texts are shorter by the template's overhead.
    • The committed JSON must stay byte-identical to the run, so fix the README instead: give the actual encoded lengths of the 8 evaluation texts (a one-off count with the same tokenizer call, recorded with its command), say what the analysed second half is, and note that the JSON field is the cap, not the measured length.
    • This does not change any result.
  2. r4158288252: the generator sentence. It is accurate but ambiguous. "... until Moonshot: make_long_prompts.py writes distinct texts with split-prefixed ids #101 (8d55367), which made it write distinct texts" can be read as attributing the new behaviour to the old version. Something like "8d55367 (Moonshot: make_long_prompts.py writes distinct texts with split-prefixed ids #101) later changed it to write distinct texts with split-prefixed ids, so today's version would not reproduce these bytes" removes the ambiguity. Rephrase it, or explain the reading on the thread.

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).
@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread TASKS.md
- `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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE (978e0e3)

All checks on this head are done.

  • Both of Codex's comments on 206ab11 are resolved.
    • 2g gives the encoded lengths: every one of the 8 evaluation and 24 calibration texts is 2,038 tokens. I counted them independently in the CPU window, encoded as the study does: long2048.jsonl [2038] and long2048_tune.jsonl [2038].
    • 2g says eval_tokens_per_text: 2048 is the cap, and defines the analysed half: 1,018 predictions per text from position 1,019, since half = 2038 // 2 and logits[half:-1].
    • The generator sentence is now unambiguous.
  • Codex's comment on 978e0e3 (add P13 to the paper's status register) has a scoped reply, which I accept. The register belongs to the appendix workstream and is folded in after merge, and the reply flags that P13 had no committed kill test.
  • Provenance. long2048_tune.jsonl regenerated byte-identical at ed4682d: sha256 e68930de...aeaa0, matching 2g.
  • Pre-commit on origin/main..978e0e3 passes. Host identity: 0 hits. Attribution: clean. The branch merges cleanly into main.
  • Earlier checks still hold: the JSON is byte-identical to the run, every table and derived figure matches, P13 is scoped to the tested ranks and to the measure used, and TASKS.md marks it done.

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