Skip to content

Head geometry README: reached-row tables use the minimum envelope - #77

Merged
SamMausberg merged 1 commit into
mainfrom
geometry/envelope-labels
Oct 1, 2026
Merged

SamMausberg merged 1 commit into
mainfrom
geometry/envelope-labels

Conversation

@SamMausberg

Copy link
Copy Markdown
Owner

Codex P2 on #62 (README:309): analyze_selfevidence.py writes by_reached only when env == 'min', the elementwise minimum of the per-row envelopes, with the conservative tensor-core gamma. The DFlash-4B and MTP-4B reached-row tables labelled their rows "row CS" and "blockwise"; this relabels them "minimum envelope" and adds a note pointing to the per-envelope counts in the CSVs. No numbers change, and the paper never attributes these counts to a single envelope. The sentence "the envelope scales with ||h||" still holds, because every envelope in the minimum scales with the input norm or its block norms.

…elope

analyze_selfevidence.py writes the split by reached rows only for the
elementwise minimum of the per-row envelopes (Codex P2 on #62), so the rows
labelled row CS and blockwise in the DFlash-4B and MTP-4B tables were the
minimum envelope. Numbers unchanged.
@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-01T04:04:49.242805Z 6f4ad9d 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 (provisional: Codex is still running on 6f4ad9d, and I'll re-check its comments before merge)

Reviewed head 6f4ad9d: one commit that changes only evidence/head_geometry/README.md.

  • The relabel matches the code.
    • In analyze_selfevidence.py, line 289 builds quant['min'] as the elementwise minimum of the envelopes.
    • by_reached is written only when env == 'min' and gamma == 'tensor_core', for int8_row and int8_g128 (lines 493-501).
    • The DFlash-4B rows (1.57 / 1.35 / 4.03 / 1.28 / 1.17) and the MTP-4B rows (1.51 / 1.33 / 2.44 / 2.44 / 1.80) are therefore correctly relabelled "minimum envelope", with the conservative gamma of 6.11e-4. No number changed.
  • No other table uses these counts.
    • The other envelope labels in the README are in the plain-decode table (lines 251-256), and those match the single-envelope rows in selfevidence_plain4b.csv.
      • int8 per-row "row Cauchy-Schwarz" 1.55 is row_cs 1.5535; the minimum envelope would give 1.537.
      • int8 g128 "blockwise L2" 1.34 is block_l2 1.335, which here equals the minimum.
      • FP8 "blockwise L2" 4.89 is block_l2 4.892.
    • So that table is correctly labelled and does not use by_reached.

A note for the paper (not this PR). Section 4.4 sets plain decoding's 1.55 (row CS) beside 1.57 for DFlash-4B and 1.51 for MTP-4B, which use the minimum envelope. Under the minimum envelope, plain would be 1.54. The difference is cosmetic, but a later pass could name one envelope for all three.

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