spec: fold external-review into pair-routing plan; default teacher_off_step=30

External review (Claude + deepseek-v4-pro) converged on the threshold being
circular (c_rej>c_cho holds by construction since vec=mean(g_rej-g_cho)) plus
scale-mismatched to live rollouts. Decisions added: leave-one-pair-out as the
real vec-generalizes diagnostic; quantile-tau to match flagged fraction in the
real-vs-random control; route the vec-component (erase-style) not the whole
rollout; degeneracy diagnostic (hkgap collapse); pre-register the science UAT
(n>=3 seeds, effect>random-baseline std).

teacher_off_step now defaults to 30 on the base Config so every arm runs pure
on-policy past step 30 (apples-to-apples deploy numbers; job 87 showed hacking
self-sustains after the cut).

Co-Authored-By: Claudypoo <288921227+claudypoo@users.noreply.github.com>
This commit is contained in:
wassname
2026-06-06 01:03:13 +00:00
co-authored by Claudypoo
parent dfdc538428
commit 53d88bc9ee
3 changed files with 84 additions and 5 deletions
@@ -0,0 +1,37 @@
```
## Scientist Review
### Central assumption
The pair-derived gradient difference `vec` captures a universal hack-ward direction that separates hack from clean rollouts for unseen hack B.
**holds when:** the hack behavior shares a low-dimensional gradient signature across hack variants, and the pairs (A) faithfully sample that signature.
**fails when:** the vec overfits to superficial pair artifacts (e.g., phrasing, sequence length) that do not transfer to B; or the live cos separation is so weak that the random baseline produces similar suppression due to chance, yielding a falsenull (underpowered comparison).
### Confounds
1. **Overfitted threshold** τ is computed as the midpoint of `cos` on the *same* pairs used to extract `vec`. This inflates the pair separation (`c_rej c_cho`) and may not reflect live distributions, causing the gate to flag an inappropriate fraction of rollouts.
→ **Control:** leaveonepairout τ (or use a separate calibration set), and ablate τ sensitivity via a sweep.
2. **Differential flagged fraction** Real and random `vec` may produce different fractions of flagged rollouts (due to distribution shapes), and the suppression difference might be driven by the amount of quarantined gradient updates, not directional accuracy.
→ **Control:** match the flagged fraction between real and random conditions (adjust threshold quantile), or compute suppression as a function of fraction.
3. **Pair gradient drift / degenerate `vec`** As the model is updated by routing, the hackcompletion gradients may weaken, making the refreshed `vec` degenerate or misleading.
→ **Control:** monitor `c_rej c_cho` over time; if it collapses, freeze a prerouting snapshot for `vec` extraction or use an auxiliary model.
### Algorithm issues
- **`What we do INSTEAD`/paircalibrated τ:** using the same data (`g_rej[p]`, `g_cho[p]`) both to build `vec` and to calibrate τ yields an optimistic threshold; this breaks the assumption that τ separates live rollouts (overfitting). The correction is to at least apply a holdout within pairs or crossvalidate.
- **Gradient direction computation:** `vec = unit(mean_p Δ[p])` if `Δ[p]` stems from fullparameter gradients, SVD topk is called but not specified in the pseudocode. Ensure that the shape after SVD reduction matches the perrollout `g_b` (the gate hook gradient) to avoid silent misalignment.
- **No missing stopgradients** the discrete `cos_b > τ` branch does not bleed gradients; routing is sound.
### Experimental design
- **Falsifiable:** Yes the realvec > randomvec suppression claim on B is testable.
- **n needed:** At least 510 independent seeds per condition (real/random) to detect a practical difference; singlerun comparisons are insufficient due to variance in hackrate metrics.
- **UAT gap:** The science UAT (“randomvec does NOT suppress B as well as realvec”) lacks a statistical criterion preregistration of an effectsize threshold (e.g., difference in mean Bsolve rate > 2σ of the random baseline distribution) is necessary to avoid posthoc interpretation.
### Section verdicts
- **What we do INSTEAD (pairrouted):** sound in concept, but τ calibration introduces overfitting that must be mitigated.
- **Fork to decide (gradients vs activations):** reasonable investigation; gradients preserve the intervention thesis despite noise.
- **Calibration risk to smoketest first:** essential sanity check, but not a full control—leaveonepairout or external calibration needed.
- **Smoke + UAT:** insufficiently specified for the science UAT; needs precommitted statistical success criterion and number of runs.
### Single most important fix
Replace the overfitted pairmidpoint τ with a calibration procedure that does not reuse the exact pair data used to build `vec` (e.g., leaveonepairout τ, or a quantile on a heldout fraction of pairs, or calibrate on a set of clean/hack rollouts from a model variant not used for vec extraction). Without this, the thresholds validity for live rollouts is unproven, and the realvsrandom comparison remains confounded by miscalibration.
```