feat: vary kernel sharpness and hold-out structure -- both readings change

Four teacher families on one axis (how predictable the kernel is from its
neighbours): smooth, high-frequency, a rule-generated sparse knight, and iid
noise as the negative control, which is asserted to have neighbour correlation
below 0.2 where the smooth teacher's is above 0.8.

The knight teacher forced a new hold-out: most of its cells are exactly zero, so
withholding uniformly asks nothing and the floor collapses. --holdout support
withholds cells the kernel uses, closed under negation since a pair contributes
r and -r.

Under it the CPPN beats a lookup plus blur 4.4x on smooth and 3.0x on
high-frequency, 6/6 seeds, reversing the earlier headline. And on the knight
nothing generalises at all -- both arms at or above the floor.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HCydQraDSoZ9WoTm2v23Eb
This commit is contained in:
chrnxandClaude Opus 5 committed 2026-09-07 18:42:15 -05:00
1 parent ac10bbca4e
commit 3feba1baac
7 files changed
+279 -34

No files matched your search

+9 -1
View File
@@ -51,7 +51,7 @@ from unseen import ATTR, CELLS, D, G, R, cell_of
# other half is trained, so the entry it reads has seen data. Only B>=4 withholds it honestly.
# Stated here rather than corrected for: correcting it would mean a different box per arm, and
# then the arms would no longer be answering the same question.
HELD = (0.0, 0.5)
HELD = (0.0, 0.5) # overridden by --held; see main()
def psi_offsets() -> torch.Tensor:
@@ -236,8 +236,16 @@ def main():
ap.add_argument("--omega", type=float, default=2.0)
ap.add_argument("--steps", type=int, default=2500)
ap.add_argument("--seeds", default="0,1,2,3,4,5")
ap.add_argument("--held", default="0.0,0.5",
help="the withheld psi box. The interior default is the easy case: every "
"bin around it is trained. A corner box (0.5,1.0) leaves neighbours "
"on two sides only, which is what sharp.md showed the offset axis was "
"sensitive to -- the earlier conclusion there flipped with the "
"hold-out structure, so this axis gets the same check.")
ap.add_argument("--out", default="results/psi.json")
args = ap.parse_args()
global HELD
HELD = tuple(float(x) for x in args.held.split(","))
rows = []
for arm in args.arms.split(","):