rp_learn_K learns K linear maps on the displacement and averages the CPPN over them, so a set closed under the domain's group makes the kernel invariant to it without anyone naming the group. orbit_consistency measures that invariance from the kernel's behaviour rather than its parameters, validated against the two kernels whose answers are known exactly. Both false-positive modes are instrumented: fit-versus-held-out separates extra capacity from discovery, and the spread of the learned maps catches a collapse to K=1. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HCydQraDSoZ9WoTm2v23Eb
196 lines
13 KiB
Markdown
196 lines
13 KiB
Markdown
# 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** | **Measured. Holds — and a GNN has it too** | `scale.md`, `test_rp_same_parameters_any_n` |
|
||
| 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 the wording invites confusion with is a separate claim: that the RP still **works** at an N
|
||
it never trained on. Measured in `scale.md`, and it holds strongly — a model trained on N ≤ 16
|
||
scores 0.84 of the oracle's error at N=32, i.e. *better* than the model that trained there.
|
||
|
||
Two qualifications, both from that file. **A lookup table does the same** (0.86-0.90): neither
|
||
has a parameter tied to entity count, so this separates the RP from a perceptron and from
|
||
nothing else. And the cost that does exist runs the other way — training on N ∈ [17,32] and
|
||
evaluating at N=2 costs 2.28x, because mean pooling dilutes each pair's contribution by 1/deg
|
||
and the kernel is learned less sharply at large N. **The RP's pooling is a low-pass filter on
|
||
the learning signal, strength 1/N**; the cheap curriculum is to train small and deploy large.
|
||
|
||
### 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.
|
||
|
||
## Where the argument stands
|
||
|
||
Rows 1 and 2 are **shared with any GNN** — measured, not assumed (`scale.md`). Row 5, identity in
|
||
the kernel, is the same statement as indexing a lookup by type as well as by offset.
|
||
|
||
Row 3 went through a full reversal and the reversal is the interesting part. Measured against
|
||
hold-outs that withheld cells uniformly (`unseen.md`) or a psi box with trained bins on all four
|
||
sides (`psi.md`), a lookup plus a neighbour average matched the CPPN and the conclusion was that
|
||
nothing distinguishes the RP in what it can *represent*. `sharp.md` withheld cells the kernel
|
||
actually **uses**, and the CPPN wins 4.4x on a smooth teacher and 3.0x on a high-frequency one,
|
||
6 seeds out of 6 in both; on a corner psi box it goes from losing to winning 5/6. One sentence
|
||
covers every hold-out tried: **a blur wins where the kernel is near zero, the CPPN wins where the
|
||
kernel carries signal.**
|
||
|
||
So the RP does have a representational advantage over a lookup, it is not large, and it lives
|
||
exactly where interpolation is hard — high-frequency content, and withheld regions that carry
|
||
signal or sit at a boundary. On top of that sits the cost argument, which is unaffected: the
|
||
table scales as B^(continuous axes) × cells × channels and the CPPN is constant, 80-320× at two
|
||
continuous axes.
|
||
|
||
**And the null that looked like a verdict was an input.** `sharp.md` found that shown six of a
|
||
knight's eight L-squares nothing infers the other two. `invariance.md` gives the CPPN D4
|
||
invariants of the displacement instead of the raw vector — the eight squares become one input —
|
||
and the same architecture recovers them exactly: 0.02395 → 0.00009, 0.4% of the floor, 6/6 seeds,
|
||
and 48× better on the training cells too. Two controls make it mean something: where the eight
|
||
squares share a support but not a rule the invariance is *worse* than nothing, and on a domain
|
||
without that symmetry it costs 31×. **An invariance is a commitment, not a free lunch.**
|
||
|
||
That is the fifth time in this project that a null turned out to be what was expressible in the
|
||
input rather than what the mechanism could do. It also bounds `chess_reach.md` differently than
|
||
`sharp.md` did: the type-conditioned kernel represents a knight's L, and a D4-conditioned one
|
||
would generalise it — a prediction for the parked chess arc, not a result.
|
||
|
||
**The model is GIVEN the group, and `discovery.md` measured that it cannot find one.** A learned
|
||
frame — K linear maps on the displacement, averaged — leaves the 266x band between floor and
|
||
oracle essentially untravelled, and **training to convergence makes it worse**: `seen` improves
|
||
5x while `unseen` doubles and the invariance metric moves away from zero. At K=8 the invariant
|
||
solution exists in the parameter space, so this is neither capacity nor optimiser strength.
|
||
|
||
The reason is the objective. The loss scores fit on cells the model was shown; invariance only
|
||
pays on cells it was not, and those are by construction absent from the loss. An unconstrained
|
||
kernel fits the shown cells better than one tied to an orbit, so gradient descent walks away from
|
||
the answer, correctly by its own lights. **The five earlier nulls were about what the input could
|
||
express. This one is about what the objective could reward.**
|
||
|
||
One thing the learned frame does buy: on a domain without the symmetry it costs nothing, where
|
||
the hardcoded invariance costs 31x. Discovering beats committing — it just does no discovering.
|
||
|
||
## What is open, in order
|
||
|
||
1. **An objective that can reward invariance at all.** `discovery.md` located the obstacle
|
||
precisely: a loss over shown relations has no term that invariance improves, whatever the
|
||
parameterisation. Gradient descent is not the thing to fix. The candidates are objectives, not
|
||
architectures — selection on held-out relations (which is what evolutionary search does by
|
||
construction, and is where this project already said it goes next), or a family of domains
|
||
sharing a group so that transfer is in the loss.
|
||
2. **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`.
|