mirror of
https://github.com/wassname/weight-steering.git
synced 2026-07-24 13:30:05 +08:00
v8: rank-honest pct_oracle metric (energy_frac / oracle@r_eff in [0,1])
Replaces v7's post-hoc 'pct_w_oracle = R_w / R_w_ceiling' (a ratio of two concentration ratios) with a per-row pct_oracle: candidate's energy_frac divided by the optimal rank-r_eff subspace's energy_frac on the same target. Rank-honest: chars_clusters (r_eff=7) is graded against rank-7 oracle, not rank-8. Activation oracle = PCA of L2-normalized hs_diff_B (matches existing energy_frac_act formula). Result: every non-oracle candidate lands at pct_oracle in [0.02, 0.11] on both axes. Best joint = WNR_union_TaskDiff at 0.089 (rank 16; all others rank 8). chars_clusters and layer_clean_resid_pca tied at ~0.085. This is a clean negative result: LoRA's task-specific delta is far from any of our hand-built linear primitives' spans.
This commit is contained in: