Files
ailed-experiments-rp/results/chess_move.md
T
chrnx 70ddc7a856 exp: per-entity memory pays, and grp_nostate says the state is what pays
grp - grp_nostate is +0.0164 +/- 0.0025 on 8/8 seeds: same architecture, same 13281
parameters, same gate, handed an empty memory every ply. The state is the difference.

The gated architecture with empty memory is WORSE than the plain memoryless one (-0.0106,
0/8), inverting the particles finding where the margin was the gate rather than the state.

The history oracle reads +0.0020 on 5/8 while the learned state gains three times that, so
the oracle's six-dimensional encoding was bounding its own ceiling, not the domain's.
2026-09-02 18:37:14 -05:00

105 lines
5.4 KiB
Markdown

# Move prediction under contract A: three configurations, one null, and a measured mismatch
Predicting where the moving piece goes, given the board and which piece moves. Three
configurations of the same task. The per-entity history oracle does not pay in any of them,
and the reason is visible in the numbers rather than argued: **the objective and the question
move in opposite directions.**
## Setup
Target: the mover's displacement, MSE, loss masked to the mover. Chess moves one piece per
ply, so the spec's literal per-entity default is 31/32 zeros and the constant predictor wins;
masking is what leaves the mechanism a job, at the cost of telling the model which piece moves.
Accuracy snaps the prediction to the nearest legal destination, so legality is given for free
and chance is 0.3618 (uniform among legal), not 1/64.
400 games, 28 067 plies, 8 seeds, split by game. Affect neutral, kappa 0.
`rp_oracle` is the gate: the memoryless model is *handed* each piece's previous three squares,
which is exactly what memory would have to learn to carry. If that does not pay, memory has no
job in this setup and any GRP number here is not a memory result.
## Results
```
config arm params mse acc
all-ones mask, type-blind constant 2 0.05564 0.3325
rp 1602 0.03885 0.4148
grp 5762 0.03889 0.4088
rp_wide 5782 0.03888 0.4144
rp_oracle 6544 0.03881 0.4159
attack mask, type-blind rp 1602 0.04063 0.3828
grp 5762 0.04015 0.3832
rp_wide 5782 0.04024 0.3809
rp_oracle 6544 0.03980 0.3805
all-ones mask, type in e_ij rp 1762 0.03547 0.4029
grp 5922 0.03547 0.3933
rp_wide 5942 0.03548 0.3998
rp_oracle 6704 0.03545 0.3992
chance (uniform among legal destinations) 0.3618
```
The oracle, in all three:
```
all-ones, type-blind rp_oracle - rp_wide +0.0014 +/- 0.0011 4/8 seeds ambiguous
attack mask rp_oracle - rp_wide -0.0003 +/- 0.0019 4/8 seeds ambiguous
type in e_ij rp_oracle - rp_wide -0.0006 +/- 0.0031 5/8 seeds ambiguous
```
## The mismatch, which is the finding
Putting the piece's type into the CPPN improves the trained objective substantially — MSE
0.03888 -> 0.03547 — and makes the answer to the actual question **worse**: accuracy
0.4144 -> 0.3998. The same change that helps the model fit helps it less often name the right
square. Compare `chess_reach.md`, where the identical change moved the knight's L from exactly
zero to 0.758 on 8/8 seeds; the kernel is not the problem here.
MSE on a displacement vector fits the **conditional mean** of the destinations. A knight with
five legal squares has a mean displacement pointing at none of them, and history shifts the
*distribution* over destinations — which is what `chess_history.md` measured, +0.034 with a
non-linear decoder over 64 squares — while barely moving the mean. The readout discards the
shape of information the history carries. Improving the fit to the mean therefore costs
accuracy, which is what the two configurations show.
The attack-mask configuration is a separate measured null: mean degree falls 30 -> 3.3 and
accuracy falls with it, 0.414 -> 0.381 across all arms. The dilution hypothesis — that an
entity's own attributes are drowned by 1/deg in the mean-pooled message — predicted the
opposite and is not supported.
## Verdict
**Per-entity history does not pay under contract A with an MSE readout**, in three
configurations, 8 paired seeds each, with a measured floor (0.0556 / 0.3325) confirming the
models do learn from the board. This is a fact about this readout and not about chess: the
domain measurement in `chess_history.md` stands, and the mismatch above says why the two
disagree.
The GRP numbers here (-0.0057, +0.0023, -0.0065 against the width-matched memoryless arm)
should not be read as memory results. The oracle gates them, and the oracle is ambiguous
in every configuration.
## Limits
- The type-conditional kernel was verified to learn piece movement on the *reachability* task,
not on this one. Representability here is inferred, not measured.
- Move quality is uncontrolled: blitz games across a wide rating range.
- Accuracy hands legality to the model at readout time; the loss never sees it.
- No cross-entropy readout was tried here. That change was made in `chess_dist.py` and it
reverses the conclusion: accuracy 0.40 -> 0.47 and every memory comparison flips positive.
See `chess_dist.md`. The nulls in this file are facts about an MSE readout and nothing more.
Reproduce with:
```bash
uv run --with chess python chess_domain.py --games 400 --seeds 0,1,2,3,4,5,6,7 \
--arms constant,rp,grp,rp_wide,rp_oracle # all-ones, type-blind
uv run --with chess python chess_domain.py --games 400 --seeds 0,1,2,3,4,5,6,7 --mask attack \
--arms rp,grp,rp_wide,rp_oracle # attack mask
uv run --with chess python chess_domain.py --games 400 --seeds 0,1,2,3,4,5,6,7 --edges type \
--arms constant,rp,grp,rp_wide,rp_oracle # type in e_ij
```