Repository navigation
State safety: call H5 truncation/stop results token-identical; compare logprobs too - #76
Conversation
…probs too targeted.py set 'identical' from output IDs only, so the README's 'bitwise' overstated the H5 truncation and stop-token results. Say token-identical (output IDs; logprobs and state not compared), and make targeted.py also record whether the top-5 logprobs of the truncated or stopped run equal the untruncated run's, for the runs still queued.
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: 1a3a5dcfa7
ℹ️ 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".
| # Ref prefix check: the truncated run must be the first m tokens; the | ||
| # top-5 logprobs at those positions are compared as well. | ||
| d['identical'] = rec['output_ids'] == full['output_ids'][:m] | ||
| d['logprobs_identical'] = rec['top_logprobs'] == full['top_logprobs'][:m] |
There was a problem hiding this comment.
Retain logprob-only failures in summarized evidence
When the truncated run has matching token IDs but different top-5 logprobs—the new failure mode this field is intended to expose—summarize_targeted.not_identical() still returns false because it checks only case['identical'], so the case details are omitted from evidence/state_safety/targeted.json; the stops path likewise ignores stop_logprobs_identical. The aggregate count reveals that mismatches occurred, but the affected prompt, position, and configuration are lost from the evidence artifact, so both retention predicates should include their new logprob flags.
Useful? React with 👍 / 👎.
|
Verdict: REQUEST CHANGES Reviewed head 545f4c1 (four commits on main). The token-identical wording, the scoping of the plain-only control and the new logprob comparison are right. One Codex comment and one new claim block. Checked and correct
BlockingB1. Codex P2: logprob-only failures are dropped from the evidence (
B2. The new claim that
|
…anged prompts summarize_targeted now retains truncation and stop cases whose tokens match but whose logprobs differ. mechanism.py's tap check lists the mismatched IDs, and analyze_all.sh writes evidence/state_safety/tap_check.json with the five prompts the tap changed and their first logprob difference. The evidence README cites that file for the mt_bench-0056 claim.
|
Verdict: APPROVE Re-reviewed head 9ac8be9. Both blocking items are fixed. B1 (Codex P2, logprob-only differences dropped from the evidence).
B2 (the mt_bench-0056 claim needed committed IDs).
Checks:
Suggestions (not blocking):
|
|
@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". |
Appendices A.7 and D: cite tap_check.json (#76), FP8 envelope clause
This fixes an overstatement in #59's evidence README, found by Codex. The H5 truncation and stop-token counts (157/157, 240/240, 160/160, 240/240) were called "bitwise", but
targeted.pysetidenticalfrom the output token IDs only (diff()compares tokens). The README now says token-identical (output IDs; logprobs and state not compared). The same correction applies to the warm/cold continuations.targeted.pynow also records whether the top-5 logprobs of a truncated or stopped run equal the untruncated run's at the same positions:logprobs_identicalandstop_logprobs_identicalThe runs already in the evidence predate this change, and their raw records were not kept, so their claim stays at token identity. The queued tree and plain-decode runs will record both. Separately, the tap-neutrality bullet now points to the history-dependence section instead of calling the five exceptions an unexplained open question; the KV-level link is still marked pending.
Validation: ruff and mypy are clean on
targeted.py, and the hooks pass on the changed files (mypy skipped repo-wide for the knownmainerrors).