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.
This commit is contained in:
2 files changed
+96
-3
No files matched your search
@@ -0,0 +1,93 @@
|
|||||||
|
# Per-entity memory pays, and the state is what pays
|
||||||
|
|
||||||
|
The first positive result on the memory line, with the control that killed the equivalent
|
||||||
|
claim in the particles domain.
|
||||||
|
|
||||||
|
**The readout was the bottleneck.** Swapping MSE-on-the-mean for cross-entropy over the legal
|
||||||
|
destinations — same target, same chance level, same conditioning — lifts accuracy from 0.40 to
|
||||||
|
0.47, and flips every memory comparison from negative to positive.
|
||||||
|
|
||||||
|
## Results
|
||||||
|
|
||||||
|
400 games, 28 067 plies, 8 seeds, split by game. Type in `e_ij`. Affect neutral, kappa 0.
|
||||||
|
|
||||||
|
```
|
||||||
|
arm params loss acc chance
|
||||||
|
constant 225 --- 0.3454 0.3618
|
||||||
|
rp 9121 1.2453 0.4685 0.3618
|
||||||
|
rp_oracle 9313 1.2449 0.4705 0.3618
|
||||||
|
rp_wide 13393 1.2422 0.4722 0.3618
|
||||||
|
grp_nostate 13281 1.2497 0.4616 0.3618
|
||||||
|
grp 13281 1.2362 0.4780 0.3618
|
||||||
|
|
||||||
|
grp - rp_wide: +0.0058 +/- 0.0019 7/8 seeds
|
||||||
|
grp - grp_nostate: +0.0164 +/- 0.0025 8/8 seeds
|
||||||
|
grp_nostate - rp_wide: -0.0106 +/- 0.0017 0/8 seeds
|
||||||
|
rp_oracle - rp: +0.0020 +/- 0.0015 5/8 seeds ambiguous
|
||||||
|
```
|
||||||
|
|
||||||
|
`grp - grp_nostate`, per seed — the whole result in one column:
|
||||||
|
|
||||||
|
```
|
||||||
|
seed 0 1 2 3 4 5 6 7
|
||||||
|
+0.0155 +0.0206 +0.0197 +0.0125 +0.0216 +0.0271 +0.0052 +0.0091
|
||||||
|
```
|
||||||
|
|
||||||
|
## Why the control is the result
|
||||||
|
|
||||||
|
`grp_nostate` is the same architecture with the same 13 281 parameters and the same gate,
|
||||||
|
handed an **empty memory every ply**. The only difference from `grp` is whether the state is
|
||||||
|
carried. It gains +0.0164 on 8/8 seeds, 6.6 paired standard errors.
|
||||||
|
|
||||||
|
This is the control that inverted the equivalent claim in particles, where the RP/GRP margin
|
||||||
|
turned out to be the gated post-RP nonlinearity rather than the state (`frozen.md` §1d). Here
|
||||||
|
it goes the other way, and further than that: **the gated architecture with an empty memory is
|
||||||
|
worse than the plain memoryless one** (-0.0106, 0/8 seeds). The gate is a cost that the state
|
||||||
|
more than repays. The +0.0058 over `rp_wide` is a net of those two.
|
||||||
|
|
||||||
|
## The oracle under-measured its own ceiling
|
||||||
|
|
||||||
|
`rp_oracle` hands the memoryless model each piece's previous three squares as relative
|
||||||
|
displacements — six input dimensions. It reads +0.0020 on 5/8 seeds, ambiguous, while the
|
||||||
|
learned state gains three times that on 8/8.
|
||||||
|
|
||||||
|
The state finds more than the encoding we handed over. Three squares as displacements is a
|
||||||
|
narrow guess at what a piece's past contains; the state is 32 dimensions accumulated across a
|
||||||
|
whole game. **The oracle read ambiguous in four configurations of this task, and this is the
|
||||||
|
first evidence that the ambiguity was the oracle's encoding rather than the domain's
|
||||||
|
information.** That is a caution about the oracle-first method as practised here, not a
|
||||||
|
refutation of it: an oracle bounds what its own encoding can supply, and nothing more.
|
||||||
|
|
||||||
|
## Where it sits in the arc
|
||||||
|
|
||||||
|
- `chess_history.md` — the domain has per-entity past that predicts the future. Property of the
|
||||||
|
domain, no organism involved.
|
||||||
|
- `credit.md` — the state update can hold per-entity properties (entity type at 0.738 against
|
||||||
|
chance 0.333) and cannot hold a global one.
|
||||||
|
- `chess_reach.md` — the kernel must see the piece type or it learns one average movement
|
||||||
|
shape; the knight's L is exactly zero without it.
|
||||||
|
- `chess_move.md` — with an MSE readout the objective and the question move in opposite
|
||||||
|
directions, and no memory number there is readable.
|
||||||
|
- **this file** — with a readout that matches the target's shape, the carried state pays.
|
||||||
|
|
||||||
|
## Limits, stated rather than discovered later
|
||||||
|
|
||||||
|
- **What the state holds is not identified.** This measures that carrying it helps, not what is
|
||||||
|
in it. The decode probe that `credit.md` ran on particles has not been run here.
|
||||||
|
- 400 games and 8 seeds. The effect is 6.6 se on its own control and 3.1 se on the
|
||||||
|
width-matched arm; the second of those would not survive much less data.
|
||||||
|
- Affect is neutral throughout, so **A1 and A2 are untested here**. Chess has no regime switch
|
||||||
|
and A1 has no analogue; A2 would need the CPPN's context to vary, which it does not.
|
||||||
|
- Legality is handed to the model at readout: the candidate set is the legal destinations. The
|
||||||
|
loss never sees a rule.
|
||||||
|
- Move quality is uncontrolled — blitz games across a wide rating range.
|
||||||
|
- `grp_nostate` is the state control, not a capacity control; `rp_wide` is the capacity control.
|
||||||
|
Both are reported because neither answers the other's question.
|
||||||
|
|
||||||
|
Reproduce with:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
uv run --with chess python chess_dist.py --games 400 --seeds 0,1,2,3,4,5,6,7
|
||||||
|
uv run --with chess python chess_dist.py --games 400 --seeds 0,1,2,3,4,5,6,7 \
|
||||||
|
--arms grp,grp_nostate,rp_wide
|
||||||
|
```
|
||||||
@@ -88,9 +88,9 @@ in every configuration.
|
|||||||
not on this one. Representability here is inferred, not measured.
|
not on this one. Representability here is inferred, not measured.
|
||||||
- Move quality is uncontrolled: blitz games across a wide rating range.
|
- 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.
|
- Accuracy hands legality to the model at readout time; the loss never sees it.
|
||||||
- No cross-entropy readout was tried. That is the change the mismatch points at, and it is the
|
- No cross-entropy readout was tried here. That change was made in `chess_dist.py` and it
|
||||||
sanctioned move under this repo's own rule — when a metric cannot tell your mechanism apart
|
reverses the conclusion: accuracy 0.40 -> 0.47 and every memory comparison flips positive.
|
||||||
from a cheaper one, change the metric, not the baseline.
|
See `chess_dist.md`. The nulls in this file are facts about an MSE readout and nothing more.
|
||||||
|
|
||||||
Reproduce with:
|
Reproduce with:
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user