From 4eddec5052f5274ba8bee31b90a8eedaa05a3f9d Mon Sep 17 00:00:00 2001 From: scrimshawlife-ctrl Date: Mon, 12 Oct 2026 02:28:15 -0700 Subject: [PATCH 1/2] docs: eval-set hygiene (feedback/dev/held-out mapping, guard verification, known gaps) --- docs/eval-set-hygiene.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 docs/eval-set-hygiene.md diff --git a/docs/eval-set-hygiene.md b/docs/eval-set-hygiene.md new file mode 100644 index 00000000..a4855997 --- /dev/null +++ b/docs/eval-set-hygiene.md @@ -0,0 +1,26 @@ +# Eval-set hygiene: feedback / dev / held-out (2026-10-12) + +Docs only. No training, prereg, or guard behavior changes. Prompted by arXiv 2609.35738 ("Harness Learning Enables Generalizable Test-Time Adaptation", §4.1), which keeps three disjoint question sets: Q_fb (feedback the learner sees), Q_score (selects candidates), Q_eval (held out, reported only). + +## How Hyperlex maps to the three sets + +| Paper set | Hyperlex set | Where it is enforced | +|---|---|---| +| Q_fb (feedback) | `classify_train`, `unbind_train` | training loop only | +| Q_score (dev selection) | `classify_val`, `unbind_val`; checkpoint picked by `HLX_SELECT_METRIC` on val (strict `>`) | rc4 prereg: "never picked by held-out score" | +| Q_eval (held out) | sealed holdout manifests (classify-v1, v1b; v2 is SCORED_SPENT, non-gating) | `scripts/shadow/hyperlexical/holdout_guard.py` (PR #120): drops holdout rows by row id and by sha256 of `normalize_group_text`, from all four train/val keys, before training and selection; `require_holdout_for_training` fails closed unless `HLX_ALLOW_NO_HOLDOUT` | + +## Verified 2026-10-12 PT (archived scrimshawlife-ctrl/Hyperlex, origin/main ad4075b) + +- `tests/shadow/test_hyperlexical_holdout_disjoint.py`, `tests/shadow/test_hyperlexical_holdout_guard.py`, `tests/heldout/`: 41 passed. +- Held-out sets are frozen and read-only; comparisons are made only on held-out sets, never on val (rc4 prereg). + +## Known gaps (not fixed here) + +0. **This repo (Zero-State-LLC/Hyperlex @ 7721220) does not contain the holdout guard.** `holdout_guard.py`, `holdout_eligibility.py`, `heldout_census.py` and their tests exist only in the archived scrimshawlife-ctrl/Hyperlex (PR #120). Any training run from this repo has no automated holdout filter. Porting the guard is a separate decision. + +1. Train vs val near-duplicates are not blocked by a guard. rc4 handles this with a one-off hygiene split (`HLX_CLASSIFY_SPLIT_FILE`, cluster-to-val), and `force_train_overlap` counts and logs only. Measured on rc3: 0.6% exact and 9.1% near-dup (char 3-5 J >= 0.7) of val rows. +2. The holdout guard matches exact normalized text, not near-duplicates of holdout rows. rc4 removed 10 train rows near holdout text by a separate pass. +3. Spending a holdout (UNSCORED_SEALED -> SCORED_SPENT) is the only thing stopping repeated peeking; any auto-tuning loop must score candidates on val only and touch a sealed holdout once per prereg. + +Rule (unchanged): the holdout is never trained on and never used for selection. From ccdf5600f6fd19e61fe6ddcd5aaa021ae64c8232 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sat, 17 Oct 2026 18:20:25 +0000 Subject: [PATCH 2/2] =?UTF-8?q?docs:=20correct=20eval-set=20hygiene=20agai?= =?UTF-8?q?nst=20arXiv=202609.35738=20=C2=A74.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Q_eval is the set that must stay disjoint; Q_fb and Q_score may coincide. Final reported comparisons use the holdout, while HLX_SELECT_METRIC still compares checkpoints on val. Co-authored-by: Daniel Meyer --- docs/eval-set-hygiene.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/eval-set-hygiene.md b/docs/eval-set-hygiene.md index a4855997..7162d215 100644 --- a/docs/eval-set-hygiene.md +++ b/docs/eval-set-hygiene.md @@ -1,6 +1,6 @@ # Eval-set hygiene: feedback / dev / held-out (2026-10-12) -Docs only. No training, prereg, or guard behavior changes. Prompted by arXiv 2609.35738 ("Harness Learning Enables Generalizable Test-Time Adaptation", §4.1), which keeps three disjoint question sets: Q_fb (feedback the learner sees), Q_score (selects candidates), Q_eval (held out, reported only). +Docs only. No training, prereg, or guard behavior changes. Prompted by arXiv 2609.35738 ("Harness Learning Enables Generalizable Test-Time Adaptation", §4.1 Question sets). That section uses three question sets: Q_fb (feedback the learner sees), Q_score (selects candidates), and Q_eval (held-out performance). Evaluation questions are disjoint from questions used for feedback or candidate selection. Feedback and scoring sets may coincide. Hyperlex still keeps train, val, and sealed holdout separate; that split is this repo's protocol, not a requirement that all three paper sets be disjoint. ## How Hyperlex maps to the three sets @@ -13,7 +13,7 @@ Docs only. No training, prereg, or guard behavior changes. Prompted by arXiv 260 ## Verified 2026-10-12 PT (archived scrimshawlife-ctrl/Hyperlex, origin/main ad4075b) - `tests/shadow/test_hyperlexical_holdout_disjoint.py`, `tests/shadow/test_hyperlexical_holdout_guard.py`, `tests/heldout/`: 41 passed. -- Held-out sets are frozen and read-only; comparisons are made only on held-out sets, never on val (rc4 prereg). +- Held-out sets are frozen and read-only. Final reported comparisons use held-out sets. Validation still compares candidates: `HLX_SELECT_METRIC` picks a checkpoint on val (strict `>`), and a checkpoint is "never picked by held-out score" (rc4 prereg). ## Known gaps (not fixed here)