Skip to content

Repair: give the R_i denominator (43 of 921 defined positions) - #72

Merged
SamMausberg merged 1 commit into
mainfrom
repair/r-denominator
Oct 1, 2026
Merged

SamMausberg merged 1 commit into
mainfrom
repair/r-denominator

Conversation

@SamMausberg

Copy link
Copy Markdown
Owner

Follow-up to #58 from the review of #67. The README said R_i < 1 at "4.7% of positions (43 of 962)"; the committed rate 0.04669 is 43/921: 41 of the 962 replayed positions are exact top-two ties of the exact logits (margin 0), where R_i = 2 ||z~ - z||_inf / m_i is undefined.

  • experiments/repair/summarize_residual.py records, per rank and replay, ratio_defined_positions, ratio_below_1_count, tied_positions_ratio_undefined, margin_median_all_positions, margin_median_ratio_below_1 and ratio_below_1_same_positions_at_every_rank, so the README's statements about those positions (median margin 12 against 1.3 logits, the same 43 positions at every rank) are now in the committed JSON.
  • evidence/repair/residual_eval_b16.json is regenerated from the same raw data; no existing value changes.
  • evidence/repair/README.md gives the count against the 921 defined positions and says which positions are excluded.

41 of the 962 replayed positions are exact top-two ties of the exact logits,
where R_i is undefined. summarize_residual.py now records the defined count,
the ties, the median margins and whether the R_i < 1 positions are the same at
every rank.
@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-01T03:54:39.389501Z 1c0cb48 PR opened
ℹ️ 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: APPROVE

Reviewed head 1c0cb48, one commit on main.

  • The fix. The README now gives R_i < 1 as 43 of the 921 positions where R_i is defined. The other 41 of the 962 changed positions are exact top-two ties (margin 0, R_i undefined). That reconciles the 4.669% in the JSON, which is 43/921.
  • New JSON fields. summarize_residual.py now writes ratio_defined_positions, ratio_below_1_count, tied_positions_ratio_undefined, the two median margins and ratio_below_1_same_positions_at_every_rank, so every README statement has a field behind it.
    • At rank 128, replay 1: 921 defined, 43 below 1, 41 tied, median margin 1.3125 over all 962 positions (ties included), 12.0 where R_i < 1, and the same positions at every rank (true).
  • Reproduction. Rerunning summarize_residual.py on ~/vp-data/repair/residual/b16 gives the committed residual_eval_b16.json exactly. Against main, no existing value changed or was removed; 84 fields were added.
  • Checks. Pre-commit is clean.

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