Files
ailed-experiments-rp/results/rp_properties.md
T
chrnxandClaude Opus 5 6c545fd035 feat: unseen relations -- the one property that separates the RP from a GNN
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
2026-09-07 17:02:46 -05:00

8.6 KiB
Raw Blame History

What the RP is: a property card

Every experiment so far has moved a limit to see whether something worked. This file asks the prior question: what does the RP do that a fixed-weight perceptron does not, and what is that good for? It is a map, not a result. Each row is a property with its evidence, and the point of the exercise is that three of the five rows need no experiment at all — they are properties of the construction, and writing them down is what shows which two rows are actually open.

How the perceptron comparison is read here

AGENTS.md forbids a standard MLP or perceptron baseline. That prohibition is on the error race — tuning two architectures until one lands lower — and it stands. This file makes a different comparison: what class of function each one can express. In the regime that matters the baseline cannot be run at all, and that is the finding rather than an obstacle to it. Where it can be run (fixed N, fixed entity ordering) is exactly where the distinction it would measure has already been assumed away. No MLP is trained anywhere in this file.

The card

# Property Status Evidence
1 One parameter set, any N Defined: asserted. Generalises: untested test_rp_same_parameters_any_n. ~9k params served N=2..32 throughout the chess arc
2 Permutation equivariance Asserted, sabotage-verified test_rp_permutation_equivariance, test_organism_permutation_equivariance_with_memory
3 Weights generated from the relation Measured. Real, and smaller than assumed unseen.md
4 Translation invariance Asserted, and its cost measured test_rp_translation_invariance; chess_rules.md
5 Kernel conditioned by identity Measured, discontinuous chess_reach.md, chess_rules.md

1. One parameter set, any N

The CPPN generates m_ij from [r_ij ‖ onehot(e_ij) ‖ context], so the parameter count depends on the coordinate, edge-type and hidden dimensions and not on how many entities there are. The same ~9k parameters ran boards of 2 and of 32 pieces across the whole chess arc.

A fixed-weight layer over N entities is not worse at this; it is undefined. Its input dimension is N·d (or N²·d for pairs) and has to be chosen before training. Changing N is a different model, not a different input. That is the cleanest statement of what the RP buys, and it is structural — no run establishes it and no run can refute it.

What is open is a separate claim that the wording invites confusion with: that the RP still works at an N it never trained on. Defined ≠ competent. Untested (≤16 → 17-32).

2. Permutation equivariance

h_i does not depend on the order the entities are listed in. An MLP over a flattened board has to learn this from data, and learns it approximately at best.

Asserted at two levels because there are two places order could leak: the RP's positional tensors, and the Organism's memory dict keyed by entity id. Per the repo's rule, both were run against a deliberately broken RP (an index-dependent term added to the pooled message) and both failed there; no other test in the suite did.

3. Weights generated from the relation — measured, and it does not carry what it was asked to

This is the property that separates the RP from a GNN, not merely from a perceptron, and it is the only one on this card with 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 an answer for a relation it has never seen — an offset absent from training — where a lookup has no entry to read.

Measured in unseen.md, and the answer is three-sided.

The property is real: on a random hold-out the CPPN's error on displacements it never saw is indistinguishable from its error on trained ones (1.28x, lower on 3 of 8 seeds), at 0.6% of the floor. The kernel is defined between its training points.

It is worth less than the framing assumed. The bare table fails by construction — its held entries never see gradient — so beating it is arithmetic. Against a table plus iterated neighbour averaging, the obvious smoothing, the CPPN wins interpolation by 2x on 6/8 seeds and loses extrapolation on 8/8. Smoothness is what answers for an unseen relation, and a table can be smoothed.

And it is absent at the bandwidth every chess run used. At omega=10 the held-out error is 17x worse than at omega=1 (8/8 seeds), below the smoothed table even on interpolation. The setting that makes the property visible was chosen for this file without measuring it.

Where it could still be load-bearing is a continuous relation space, where no table exists to smooth. Chess is not that: 225 integer offsets are enumerable. Particles are. Not run.

4. Translation invariance, and what it costs

The kernel sees only r_ij, so the representation is translation-invariant by construction rather than by training. The symmetry is free and exact.

The same sentence is a limit, and this is the one row where the card is not flattering. Absolute position is unanswerable by construction, and a chess board has edges: a knight on the rim has 2.96 destinations against 6.85 in the middle, and 43% of knights sit on the rim. Handing absolute position and own_rank in through attrs was worth +0.020 and closed the gap to the rule-knowing control from 0.034 to 0.014 (chess_rules.md). A domain whose law is anchored to absolute location has to be told, and the telling goes through the features, not the kernel.

5. The kernel must be conditioned by identity, not scaled by it

The measured row, and it is a statement about relational architectures rather than about chess. With the piece type only in attrs, it meets the kernel as an elementwise product: one geometry function scaled per type. Put it into the CPPN's own input (e_ij) and the kernel becomes genuinely type-conditional.

knight precision@k, per seed (chess_reach.md)
rp        0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000     8961 params
rp_type   0.742 0.755 0.749 0.768 0.750 0.768 0.766 0.763     9121 params

Exactly zero on 8/8 seeds, to 0.758, for 160 extra parameters — 1.8%. Not capacity. A knight's L is not a scaling of the average movement shape, and one shared geometry function cannot be both. The rook (second least average-like pattern) shows the second largest gain, 0.19 → 0.58.

Refinement, from chess_rules.md: the conditioning must cover whatever the law actually varies over. Type alone put a white and a black pawn on one kernel with mirrored moves and cost 0.13 on pawns; type × colour (12 kernels) recovered it, pawn 0.7835 → 0.8689, aggregate 0.8353 against the rule-knowing control's 0.8305, 4 seeds.

What this says about uses

The RP earns its cost where at least one of these is load-bearing:

  • The entity count varies, or is unknown at training time (row 1). Not "handles it better" — the alternative is not defined.
  • Entity order carries no meaning (row 2).
  • The relation space is continuous, or too large to enumerate (row 3). Narrowed by measurement: where relations are few and discrete, a lookup plus smoothing is a serious competitor. This is the one reason to prefer the RP over a plain GNN, and it is bounded.
  • The law varies by identity (row 5) — and then identity must enter the kernel, not the features.

And it is the wrong tool where the law is anchored to absolute position (row 4), which has to be patched in through attributes.

What is open, in order

  1. Unseen N (row 1, second half). Train ≤16 entities, evaluate 17-32. Now the first item: after unseen.md, row 1 is the RP's least qualified distinguishing property.
  2. Unseen relations in a CONTINUOUS space (row 3, second half). The measured result is bounded by the relation space having been enumerable. Where it is not, the table control cannot be built and the comparison changes shape.
  3. omega. Raised by unseen.md and not on this card before: the bandwidth is a free knob that moved a result 17x, and every chess number was produced at one unexamined value.
  4. Kernel capacity and interference. How many distinct kernels fit before they collide, and which pairs collide first. The pawn/colour result is one measured point of this curve; the sweep makes similarity an independent variable instead of an accident of chess. Deliberately last: how far a mechanism stretches is only worth measuring once it is known what it is for.

Nothing here touches the GRP line, which stays parked at chess_dist.md per AGENTS.md.