Eight seeds reported the wrong sign here and flipped only at sixteen. And a null needs a positive control, or it cannot be told apart from an instrument that sees nothing.
5.1 KiB
experiments — measurement rules
The domain and the runs. This repo produces every number the paper reports, so its rules are
about not fooling ourselves rather than about code style. The library is the sibling ailed
repo, installed editable; the design is AILED_General_Specification.md in the parent
directory.
What is in here
| file | responsibility |
|---|---|
particles.py |
the domain: particles on a torus whose type-by-type coupling switches unannounced |
regime.py |
the conditions, the training loop, and _metrics |
frozen.py |
frozen-weights probe, the state ablation, the representation probes |
ceilings.py |
least-squares information ceilings under four information sets |
identify.py |
how much of the hidden variable lives in the past rather than the present |
when_memory_works.py |
the pre-registered test of when per-entity state has a job |
results/*.md |
the audit trail the paper cites. Committed. The .json files are not. |
The rules that matter
- The gain is knowledge, not performance. These experiments exist to establish what is missing, not to make a mechanism work. Optimising the GRP is a grave error, not a goal. Before running anything, apply the test: is the negative result as informative as the positive one? If the experiment only makes sense when it comes out positive, it is a performance experiment wearing a diagnostic costume — redesign it. Write verdicts so both branches carry equal weight, and describe no outcome as good or bad news.
- Report a null plainly. Every substantive result in this repo so far is a null, and each one turned out more informative than the positive it replaced. Do not soften a negative, do not hunt for a configuration that rescues it, and do not defer it by proposing a new domain.
- Do not open a new domain to make a mechanism work. That is p-hacking with extra steps
and it generalises to nothing. If a mechanism does not help, measure why on the domain you
have.
results/when_memory_works.mdexists because of this rule. - Do not tune a baseline until it catches up. Raising the learning rate until the
memoryless model matches the gated one changes the question instead of answering it.
Tuning a mechanism's own parameters is different and legitimate —
rho_a/rho_slowbelong to affect, so setting them is fair;lrbelongs to the comparison, so it is not. - Every comparison is capacity-controlled.
rp_onlyhas 1442 parameters andgrp_k0has 5602. A number comparing them is confounded 3.9x and is not a memory result. Seeresults/frozen.md§1d, which also records why "capacity" was the wrong word for that margin in the first place. - Pre-register when the result could be argued either way. State the success criterion,
the seed count, and what counts as failure, in
.sdd/progress.md, before the run. Then accept what comes back. No re-running with adjusted criteria. - Oracles are opt-in and free. Enabling one may only add columns to
attrs. The trajectory, regime schedule, switch times and noise draws stay byte-identical to the non-oracle run at the same seed, or a measured difference could come from a different world rather than from the extra information. - Seeds. Across-seed spread here is comparable to the effects being claimed, and worse: in Task 10 eight seeds reported the wrong sign, flipping only at sixteen. Report per-seed values, the count of seeds won, and a paired standard error. If the effect sits inside one se of zero, say it is ambiguous rather than reading its sign.
- A null needs a positive control. Task 10's null means something only because the same probe, on a synthetic where the signal genuinely was distributed, recovered it at thirteen times the measured effect. Without that, "we found nothing" is indistinguishable from "our instrument cannot see anything".
- Anything a results file quotes must be re-runnable from this repo. An uncommitted
throwaway driver is not reproducible.
ceilings.pyexists because of this rule; there is a standing debt wherefrozen.md§1d's width-matched rows still are not.
Metrics, and what they do not mean
recovery[k] does not measure adaptation. Under frozen weights a stateless model
reproduces its shape at every lag, because it tracks the world's own post-switch
configuration transient (frozen.md §1b). Report it if useful, but never build a claim on
it; the honest observable is a difference between conditions at matched lag.
run() refuses window >= t_min, because a recovery window that reaches the next switch
silently blends two events into one curve.
Tests
uv run pytest -q. Same rule as the library: a test that cannot fail is worse than no test.
When you add a control, verify it can detect the thing it controls for — the freeze assertion
in frozen.py has a test that nudges a weight to prove the assertion fires.
Conventions
Python ≥3.11, uv, PyTorch, pytest. pythonpath = ["."], so modules sit at the repo root.
Runs are cheap — 8000 steps takes seconds. Spend the budget on more seeds, not longer runs.
Commit inside this repo only.