Files
ailed-experiments-rp/results/psi.md
T
chrnxandClaude Opus 5 3feba1baac 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
2026-09-07 18:42:15 -05:00

6.6 KiB
Raw Blame History

psi as a continuous kernel axis — the deciding test, and it decided against

SUPERSEDED IN PART by sharp.md. The withheld box here is interior, with trained bins on all four sides, which is the easy case. Re-run with a corner box the CPPN goes from losing to beating the same-resolution table on 5/6 seeds and tying the one with 320x its parameters.

After unseen.md and scale.md the RP's distinguishing claim against a lookup had narrowed to one thing: parameter compression where the relation space cannot be enumerated. psi is the only genuinely continuous axis this architecture has — a table over (offset × valence × arousal) must bin the last two — so this was the experiment that would settle whether the CPPN is a capability or a parameterisation.

It is a parameterisation. A binned table plus interpolation along psi matches the CPPN's accuracy on withheld psi, on 6 seeds out of 6, using 80× to 320× more parameters. What the CPPN buys is size, not answers.

The negative branch was written into psi.py before the run: "if a coarse table plus interpolation matches the CPPN, then psi-continuity buys nothing either, and the RP has no distinguishing claim left against a GNN." It is recorded here as it was predicted.

Setup

Teacher kernel changes shape with psi, not gain: valence rotates the spatial frequency, arousal widens the envelope. A psi that only scaled the kernel would be satisfiable by any model with a gain on its output — the failure mode chess_reach.md measured for piece type — and is guarded by test_teacher_kernel_changes_shape_with_psi_not_only_gain, which was checked against a teacher deliberately reduced to a gain.

Withheld: the box psi ∈ [0, 0.5]², aligned to the bin grid. omega=2, the measured optimum from omega.md. 6 seeds. Arms share RelationalPerceptron's forward with the kernel swapped.

Results

arm               steps      seen    unseen     u/s   vs rp   kernel params
rp                 2500   0.00032   0.00038    1.18    1.00x         720
table_1            2500   0.00091   0.00081    0.89    2.11x        3600
table_2            2500   0.00042   0.00070    1.64    1.81x       14400
table_4            2500   0.00022   0.00733   32.87   19.12x       57600
table_4_interp     2500   0.00022   0.00034    1.54    0.90x       57600
table_8            2500   0.00025   0.00746   29.52   19.47x      230400
table_8           10000   0.00009   0.00691   80.75   18.04x      230400
table_8_interp     2500   0.00025   0.00033    1.32    0.87x      230400
floor 0.00656

table_4_interp - rp:  -0.00004 +/- 0.00002   table better on 6/6 seeds
table_8_interp - rp:  -0.00005 +/- 0.00003   table better on 5/6 seeds

What this establishes

1. The CPPN does answer for psi it never saw. 0.00038 against 0.00032 on trained psi — a 1.18x cost, at 6% of the floor, from 720 parameters. The property is real.

2. And a binned table with the gaps filled does it at least as well. table_4_interp reads 0.00034 and beats the CPPN on 6 seeds of 6. The margin is small in absolute terms and outside one paired se, so it is readable, but the direction is what matters: there is no accuracy advantage to generating the kernel from a continuous psi.

3. The bare tables' failure is arithmetic, and was labelled so before the run. table_4 and table_8 read ~19x the CPPN on withheld psi because the bin covering the box never received gradient and sat at its initialisation. Reporting that as evidence would have been the same tautology unseen.md avoided, and it is the reason the interpolation arms exist.

4. It is not a sample-budget artefact. table_8 at 4x the steps fits trained psi three times better (0.00025 → 0.00009) and generalises not at all better (0.00746 → 0.00691, floor 0.00656). More training buys memorisation and nothing else. Under-training a baseline is the mirror image of tuning one until it catches up, and this rules it out.

5. Resolution in psi and generalisation over psi are opposed in a table. The arms that generalise without help (table_1, table_2) do so by being blind to psi or by having half their bin trained; the arms that can actually resolve psi are the ones that fail. Only the explicit fill breaks the trade-off. The CPPN has no such trade-off, which is a structural difference — it just is not an accuracy one.

What is left of the claim

Parameters. 720 against 57,600 and 230,400 — 80x and 320x — at equal accuracy. That is a real engineering property and it is now quantified rather than asserted, and its shape matters more than its size here: the table's cost is B^(number of continuous axes) × cells × channels, and the CPPN's is constant. At two psi axes and B=8 that is already 320x. At four it would be 4096 bins. The compression advantage grows exponentially in the number of continuous inputs and the CPPN's does not grow at all.

That is the honest form of what the RP buys, and it is smaller than "a capability a lookup does not have". Nothing measured in this project distinguishes the RP from a lookup in what it can represent. What distinguishes it is what that representation costs.

What this does not establish

Two continuous axes, one teacher family, a smooth dependence on psi by construction (a rotation and an envelope width, both continuous and monotone). A psi dependence that was not smooth — discontinuous, or high frequency in psi — is the case where interpolation between bins should fail and the CPPN should not, and it has not been run. That is the sharpest remaining version of this question and it is the natural sibling of the deferred capacity sweep, which asks the same thing along the offset axis.

The interpolation control also needs to know which bins are untrained. That is realistic — a system knows which regions it has seen — but it is an extra piece of machinery the CPPN does not require, and at higher axis counts building it is the exponential above.

Reproduce

uv run python psi.py --arms rp,table_1,table_2,table_4,table_8 --omega 2 --steps 2500 --seeds 0,1,2,3,4,5 --out results/psi.json
uv run python psi.py --arms table_8 --omega 2 --steps 10000 --seeds 0,1,2,3,4,5 --out results/psi_table8_long.json
uv run python psi.py --arms table_4_interp,table_8_interp --omega 2 --steps 2500 --seeds 0,1,2,3,4,5 --out results/psi_interp.json

Tests: tests/test_psi.py. Both silent-failure risks are defended and both defences were checked against deliberately broken versions: a teacher reduced to a psi-gain fails the shape test, and the bin bookkeeping (untrained_bins) is asserted exactly rather than approximately, because an interp arm quietly filling bins that had data would look like a result.