A GNN holds fixed weights per edge type: a lookup with one entry per discrete relation. The CPPN computes weights from geometry, so it has something to say about a displacement absent from training. Every chess run trained and evaluated on the same offset grid, so this had never been tested. Student-teacher with an analytic Gabor kernel; held-out cells masked out of training via the RP's own mask argument; evaluation always on pairs so seen and unseen measure the same object. Eight seeds, two hold-out structures. The property is real -- held-out error 1.28x seen error, lower on 3/8 seeds -- and smaller than the framing assumed. The bare table fails by construction and is labelled as scale, not evidence. Against a table plus neighbour diffusion the CPPN wins interpolation 2x on 6/8 seeds and loses extrapolation on 8/8. At omega=10, the default every chess run used, it is 17x worse and below the smoothed table even on interpolation. The boundary is the useful part: the diffusion control exists only because the relation space was enumerable. Chess is exactly such a domain. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HCydQraDSoZ9WoTm2v23Eb
9.0 KiB
Can the kernel answer for a relation it never saw?
The property that separates the RP from a GNN rather than from a perceptron, and the one
row of rp_properties.md that had no evidence at all. A GNN holds fixed weights per edge type
— a lookup with one entry per discrete relation. The CPPN computes weights from continuous
geometry, so it has something to say about a displacement absent from training, where a lookup
has no entry to read. Every chess run trained and evaluated on the same offset grid, so nothing
in this project had tested it.
The short version: the property is real, it is worth far less than the framing assumed, and it disappears at the bandwidth setting the whole chess arc ran at.
Setup
Student-teacher on a 15×15 grid of integer displacements (225 cells). The teacher is the same RP with an analytic Gabor kernel in place of the CPPN, so the target is exactly representable and the ceiling is 0 by construction. 2–5 entities per configuration, 2500 steps, 8 seeds.
Held-out cells are masked out of training — the RP's own mask argument — so they
contribute no message and receive no gradient. The first design rejected whole configurations
instead; it was abandoned before any run because finding a 5-entity placement whose 20 ordered
displacements all avoid a scattered 25% of cells has probability ~0.3%, which would have skewed
training towards small N silently, and that skew would have been read afterwards as a property
of the kernel.
Evaluation is always on pairs, both cells of the pair wholly seen or wholly held, so seen
and unseen measure the same object. The floor is a predictor that ignores the relation and
returns the mean target.
Arms, all sharing RelationalPerceptron's exact forward with the kernel swapped in place:
rp— the CPPN. 720 kernel parameters.table— one weight vector per discrete displacement: a GNN with one edge type per relation. 3600 kernel parameters, 5× more than the CPPN.table+interp— the same table, with its held-out entries filled after training by iterated neighbour averaging from trained cells.rp w=10— the CPPN atomega=10, the project default, which every chess run used.
Results
MSE on held-out relations. Lower is better.
RANDOM hold-out (interpolation), 56/225 cells
seed rp table tbl+interp rp w=10 floor
0 0.00006 0.00352 0.00029 0.00055 0.01429
1 0.00007 0.00420 0.00025 0.00260 0.01305
2 0.00008 0.00371 0.00010 0.00012 0.01029
3 0.00011 0.00400 0.00023 0.00288 0.01333
4 0.00007 0.00096 0.00003 0.00181 0.00580
5 0.00013 0.00258 0.00013 0.00129 0.01880
6 0.00009 0.00558 0.00017 0.00052 0.02043
7 0.00006 0.00252 0.00009 0.00149 0.00848
mean 0.00008 0.00338 0.00016 0.00141 0.01306
table - rp: +0.00330 +/- 0.00049 8/8 seeds
table+interp - rp: +0.00008 +/- 0.00003 6/8 seeds
omega=10 - rp: +0.00132 +/- 0.00035 8/8 seeds
rp unseen/seen mean 1.28 per seed 0.90 1.13 1.23 1.74 2.39 1.03 0.91 0.90
BAND hold-out (extrapolation), 44/225 cells
seed rp table tbl+interp rp w=10 floor
0 0.00010 0.00176 0.00008 0.00053 0.01516
1 0.00012 0.00109 0.00007 0.00071 0.01032
2 0.00008 0.00119 0.00005 0.00014 0.00803
3 0.00017 0.00117 0.00004 0.00054 0.01101
4 0.00017 0.00116 0.00006 0.00060 0.00666
5 0.00020 0.00136 0.00007 0.00086 0.01933
6 0.00016 0.00123 0.00006 0.00036 0.01589
7 0.00011 0.00133 0.00005 0.00166 0.00856
mean 0.00014 0.00129 0.00006 0.00068 0.01187
table - rp: +0.00115 +/- 0.00008 8/8 seeds
table+interp - rp: -0.00008 +/- 0.00002 0/8 seeds *** rp WORSE ***
omega=10 - rp: +0.00053 +/- 0.00016 8/8 seeds
rp unseen/seen mean 2.38 per seed 1.83 1.84 1.66 2.62 4.51 2.40 2.54 1.66
What this establishes
1. The property is real. On the random hold-out the CPPN's error on cells it never saw is indistinguishable from its error on cells it trained on — 1.28× on average, and on three seeds of eight the held-out error is lower. It sits at 0.6% of the floor. The kernel is a function of the relation, and the function is defined between the training points.
2. The bare table is not the comparison, and never was. Its held-out entries never receive gradient and stay at initialisation, so its failure (0.00338, 42× the CPPN) is arithmetic, not evidence. It is reported for scale and was labelled as such before the runs.
3. Against a table plus the obvious smoothing, the advantage is small or absent.
table+interp is a lookup with its gaps filled by iterated neighbour averaging — the first
thing anyone would try. On interpolation the CPPN still wins, but by 2× and on 6/8 seeds rather
than the order of magnitude the framing had assumed. On the band it loses on 8 seeds out of
8. Generating the kernel from geometry is not, on this evidence, what buys the answer for an
unseen relation. Smoothness does, and a table can be smoothed.
4. It disappears at the project's own default. omega sets the CPPN's bandwidth. This file
ran at omega=1; every chess run used omega=10, and at 10 the held-out error is 17× worse on
the random hold-out (0.00141 vs 0.00008, 8/8 seeds) and worse than table+interp even there. A
wide-band kernel fits the training cells with structure that says nothing about the gaps between
them. The bandwidth was picked here without measuring it, and it turned out to be the only
regime in which the property is visible at all. That is a knob the chess results were never
examined against.
What it does not establish, stated rather than buried
The band hold-out is confounded by target magnitude. Mean |W*| is 0.040 inside the band against 0.172 in the seen cells — the Gabor envelope has already decayed there, so predicting near-zero is nearly correct and both arms have an easier target. The 0/8 loss is real but its magnitude is not comparable with the random hold-out's. The random hold-out is not confounded this way (0.164 held against 0.141 seen), which is why the interpolation result carries the weight here. A clean extrapolation test needs a radius-matched hold-out or a flat envelope, and has not been run.
The teacher kernel is smooth and band-limited by design. Low spatial frequencies, σ=3. The claim earned is that the CPPN interpolates a smooth kernel. Whether it interpolates a sharp one — a knight's L is eight isolated cells, which is the opposite of smooth — is untested and is exactly what the deferred capacity sweep would ask.
The diffusion control only exists because the relation space was enumerable. 225 cells on an integer lattice. This is the finding's real boundary, and it points somewhere concrete: in a domain whose relations are few and discrete, a table plus smoothing is a serious competitor and the generated kernel buys little. Chess is exactly such a domain — board offsets are integers and there are 225 of them. The particles domain is not: displacements there are real valued and there is no table to smooth.
Consequence for the property card
Row 3 of rp_properties.md moves from untested to measured, and it does not carry the
weight it was being asked to carry. Rows 1 and 2 — one parameter set at any N, permutation
equivariance — are what distinguish the RP, and a plain GNN has both. What the CPPN adds over a
GNN is now bounded: a 2× interpolation edge at a bandwidth the project was not using, on a
relation space small enough that its competitor is a lookup and a blur.
The place the property could still be load-bearing is a continuous relation space, where no table exists. That is a different experiment and it has not been run.
Reproduce
uv run python unseen.py --holdout random --steps 2500 --seeds 0,1,2,3,4,5,6,7 --out results/unseen_random.json
uv run python unseen.py --holdout band --steps 2500 --seeds 0,1,2,3,4,5,6,7 --out results/unseen_band.json
uv run python unseen.py --holdout random --arms table_interp --steps 2500 --seeds 0,1,2,3,4,5,6,7 --out results/unseen_random_interp.json
uv run python unseen.py --holdout band --arms table_interp --steps 2500 --seeds 0,1,2,3,4,5,6,7 --out results/unseen_band_interp.json
uv run python unseen.py --holdout random --arms rp --omega 10 --steps 2500 --seeds 0,1,2,3,4,5,6,7 --out results/unseen_random_w10.json
uv run python unseen.py --holdout band --arms rp --omega 10 --steps 2500 --seeds 0,1,2,3,4,5,6,7 --out results/unseen_band_w10.json
uv run python analyse_unseen.py
Tests: tests/test_unseen.py. The held-out mask is the experiment, and a leak would be silent —
every arm still trains and every number still prints. Both the mask and the diffusion fill were
run against deliberately broken versions and the defending tests failed there; no others did.