Files
ailed-experiments-rp/results/rp_properties.md
T
chrnxandClaude Opus 5 d95383f8a2 feat: omega curve and unseen-N, the two steps before psi
omega.md: a plateau at [1,4] that does not track the domain across a 4.7x range,
so the bandwidth is a knob that was set wrong rather than a defect to design
around. omega=8 is an optimisation cliff, not a mis-tune. The project default of
10 is outside the plateau.

scale.md: one parameter set works at an entity count it never trained on --
trained on N<=16 it beats the oracle at N=32 -- and a lookup table does it too.
Read against an oracle because the mse/floor ratio is not comparable across N,
which is asserted as a test rather than claimed in prose. The cost runs
large->small only, at 2.28x, which makes it the pooling's 1/deg dilution rather
than a degree-distribution shift.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HCydQraDSoZ9WoTm2v23Eb
2026-09-07 17:45:41 -05:00

156 lines
9.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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 now 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,
generating weights from geometry, is real but bounded: where relations are few and discrete, a
table plus a blur competes (`unseen.md`).
So the RP's remaining distinguishing claim is **parameter compression in a relation space that
cannot be enumerated** — and in this architecture the one genuinely continuous axis is **ψ**. A
table over (offset × type × valence × arousal) has no cells to interpolate between on the last
two. That makes ψ the deciding experiment rather than a later chapter, and it is claim A2 of the
paper arriving from the front.
## What is open, in order
1. **ψ as a continuous kernel axis** (A2). The one place a lookup cannot be built. Decisive.
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`.