17 KiB
Headroom check for the regime setup
Task 7. This file is the audit trail for the paper's setup section: it records what was measured, which of the three requirements held, every knob that was moved with its before/after, and the conclusion.
Verdict: requirement 2 holds but is substantially an artefact of an under-tuned learning rate; requirements 1 and 3 fail. The regime oracle is neutral — it is read, and it changes nothing. The error every condition converges to is set by tracking a target that switches every 40-80 steps, not by missing information.
Environment: experiments/, ailed/ unmodified. All runs uv run from
experiments/. Noise floor for every table below is noise² = 4.0e-06.
Section 3's fits are reproducible with uv run python ceilings.py.
1. The table
uv run python regime.py --conditions rp_only,grp_k0,grp_regime,rp_flag --seeds 0,1,2 --steps 8000 --out results/headroom.json
Means over seeds 0,1,2. (sd) is the across-seed standard deviation of steady.
condition steady (sd) rec@0 rec@2 rec@5 rec@10 a@switch
---------------------------------------------------------------------------------------------
rp_only 0.000061 0.000020 0.000070 0.000080 0.000103 0.000090 0.130
grp_k0 0.000021 0.000004 0.000028 0.000031 0.000045 0.000043 0.127
grp_regime 0.000029 0.000006 0.000052 0.000054 0.000067 0.000057 0.203
rp_flag 0.000060 0.000024 0.000280 0.000110 0.000120 0.000095 0.422
Per-seed steady, because the across-seed spread is comparable to the effects being
claimed and the paired comparison is what carries the result:
condition seed 0 seed 1 seed 2 grp_k0 beaten?
rp_only 8.09e-05 6.17e-05 4.17e-05 no (0/3)
grp_k0 2.39e-05 1.67e-05 2.11e-05 --
grp_regime 3.51e-05 2.38e-05 2.77e-05 no (0/3, worse on every seed)
rp_flag 6.13e-05 3.65e-05 8.36e-05 no (0/3)
2. The three requirements
Requirement 1 — FAILS
grp_regimesteady error must sit near the noise floor4e-6(within ~3x).
grp_regime steady is 2.9e-05, 7x the floor, and it is worse than grp_k0
(2.1e-05) on all three seeds. Longer training does not rescue it: at 40 000 steps it
is still worse on all three seeds (1.7e-05 vs 1.5e-05).
The condition is not reached at any setting tried here, and §3 shows the regime is not where the missing information is. But this is a measured failure, not an impossibility result — with the regime frozen the same architecture reaches 5.08e-06, 1.27x the noise floor (§5). What blocks requirement 1 is the switching, not the oracle.
Requirement 2 — HOLDS at the default, but the margin is largely an lr artefact
grp_k0must beatrp_onlyonsteadyand onrec@10.
At the default lr=1e-3, 8000 steps: grp_k0 beats rp_only 2.9x on steady and
2.1x on rec@10, on every seed. It still wins on all three seeds at 40 000 steps.
But the margin decays monotonically with learning rate and is gone by lr=1e-2
(seeds 0,1,2, 8000 steps, mean steady):
lr rp_only grp_k0 grp_regime memory advantage
1e-3 6.141e-05 2.055e-05 2.888e-05 2.99x
3e-3 3.189e-05 1.627e-05 1.840e-05 1.96x
1e-2 1.681e-05 1.584e-05 1.534e-05 1.06x
rp_only improves 3.7x with lr; grp_k0 improves 1.3x. Memory is substantially
compensating for an optimiser that is stepping too slowly, and A1 cannot quote the
2.99x without saying it is measured at a learning rate at which the memoryless
baseline is not converged. (At lr=1e-2 grp_regime is nominally best at 1.534e-05,
but the three conditions are within 3% of each other and of the 40 000-step plateau;
that ordering is noise, not an oracle effect.)
The same caveat applies to omega, more weakly: the advantage is 2.99x at omega=10
and 1.5x at omega=5, because omega strongly affects rp_only and not grp_k0.
Requirement 2 holds as written. It should not be reported without both ablations.
Requirement 3 — FAILS
rp_flagmust equalrp_onlywithin seed noise on every column.
It does not. rp_flag matches rp_only on steady (6.0e-05 vs 6.1e-05) but is 4x
worse at rec@0 (2.8e-04 vs 7.0e-05), on every seed.
It is not an information leak. Diagnostic, holding attr_dim at 4 in all three
flag rows so parameter count and init draw are identical and only the column's
contents change:
variant steady rec@0 rec@2 rec@5
----------------------------------------------------------------------
rp_only (attr_dim=3) 0.000061 0.000070 0.000080 0.000103
rp_flag flag fires 0.000060 0.000280 0.000110 0.000120
rp_flag flag always 0 0.000071 0.000071 0.000076 0.000096
rp_flag flag always 1 0.000133 0.000134 0.000166 0.000179
With the column present but never firing, rp_flag reproduces rp_only; the extra
column is harmless. With it pinned on, everything degrades uniformly. The rec@0
spike is caused by the column changing value, at the exact step rec@0 measures.
Mechanism. attrs enters the RP only through f_j = W_feat attrs_j, the message
from j, and the flag column is the same value on every particle, so firing it
shifts every message by a fixed (Σ_j m_ij) ⊙ w_flag. The flag column is not
under-trained relative to the type columns — measured, attr_dim=4, seed 0:
type cols flag col
W_feat init norm 1.831 1.607 1.461 1.893
drift over 8000 0.152 0.119 0.157 0.134
and with bptt=20 the flag falls within 32% of optimiser steps even though it is
on for only 1.6% of individual steps. The operative fact is the other one: its random
init has norm 1.89, comparable to a type embedding, and it fires too rarely for the
rest of the network to have absorbed it. So when it fires it injects a
type-embedding-sized perturbation into every message, precisely where rec@0 looks.
This matters beyond the control: grp_flag is an A1 condition with the same
defect. As encoded it does not test "does knowing a change occurred help"; it tests
"does memory absorb an input spike". §6(a) fixes it.
3. Where the information sits — a linearised bound, not a bound on the model
Reproduce with uv run python ceilings.py. The script fits, by least squares over a
rolled-out world, the best predictor of the form
d_i = a[offset(i)] + Σ_j c[key(i,j)] · dt · kern(r_ij) · r_ij, handing the fit the
radial kernel exactly. Means over seeds 0,1,2, 1200 world steps:
information set MSE(det part) MSE(vs target)
-----------------------------------------------------------------------
A perfect: (regime, t_i, t_j) 1.262e-19 4.011e-06
B regime-blind, pair-aware (t_i, t_j) 1.298e-05 1.694e-05
C regime oracle (regime, t_j) 7.684e-06 1.166e-05
D no oracle (t_j) 1.427e-05 1.820e-05
oracle prize D->C: 1.86x on the deterministic part, 1.56x against the noisy target
Row A is the self-check, and the script asserts it: given (regime, t_i, t_j) the
family spans the dynamics exactly (residual 1.3e-19) and lands on 4.011e-06, the noise
floor. (An earlier version of this table read 4.52e-06 for row A. That was a bug: the
fit captured world.regime before step(), but step() switches the regime before
computing the delta, so ~1.7% of rows carried a stale regime. Fixed in ceilings.py;
the corrected row A landing on the floor is what confirms it.)
Scope — this is not a bound on the trained architecture. The fitted family is
linear in the messages. The real RP applies tanh to the aggregate, which turns the
t_i-carrying self-term (j = i at r = 0, since the default mask includes the
diagonal) into a gain modulation on the whole sum rather than a bare additive
offset, and the GRP adds per-entity state on top. An earlier draft of this file said
the receiver's own type "can never modulate the per-neighbour message" and concluded
requirement 1 was unreachable in principle. That was an overclaim: true of the linear
family, false of the composed model. Every "cannot" of that kind is withdrawn.
Read the table as a map of where the information sits, not as a statement about what
the architecture can reach.
(For the record, the frozen-regime runs do not by themselves demonstrate a violation
of rows C and D: memoryless rp_only frozen reaches 4.964e-06 on seed 0, but C and D
were fit on a switching world, where regime-blindness costs something, so that is
not a like-for-like comparison. Refitting the t_i-blind ceiling on a frozen world
gives 4.571e-06, and 4.964e-06 sits above it. The reframing above rests on the
linearity of the family, which is reason enough.)
What the table does support:
- The oracle prize is small. No oracle (D, 1.820e-05) to regime oracle
(C, 1.166e-05) is worth 1.56x, and
grp_k0already measures 1.5e-05 at 40 000 steps — already inside that band. Memory recovers most of what the regime oracle could say, which is why saying it adds nothing. - The regime is not the scarce information. B (1.694e-05, knows
t_i,t_j, not the regime) and C (1.166e-05, knows the regime, nott_i) bracket each other and neither approaches A. A regime oracle cannot supplyt_i.
4. Knobs changed
One thing at a time; same seeds (0,1,2) before and after; every change re-ran the affected conditions.
| knob | before | after | evidence | kept? |
|---|---|---|---|---|
run(omega=...) in regime.py |
not a parameter (hard-coded 10.0) | parameter, default 10.0 | plumbing only; default unchanged so all prior runs reproduce | yes |
omega value |
10.0 | tried 5, 20 | see below | no — kept 10.0 |
lr |
1e-3 | tried 3e-3, 1e-2 | §2 requirement 2 | no — kept 1e-3 |
noise |
0.002 | tried 0.0005 | see below | no — kept 0.002 |
sigma |
0.2 | tried 0.3 | see below | no — kept 0.2 |
steps |
8000 | also 40000 | §2, §5 | diagnostic only |
t_min/t_max |
40/80 | frozen (10⁹) | §5 | diagnostic only |
edge_types |
None (1 type) |
tried type-pair (9) | see below | no |
No default in particles.py or regime.py was changed. The only source changes
are the omega parameter, whose default reproduces previous behaviour exactly, and
the new ceilings.py. Tasks 8 and 9 run against the same parameters Task 6 was
reviewed under. ../ailed is untouched.
omega — ruled out
grp_k0 and grp_regime are insensitive; only rp_only moves, and the ordering
never flips.
omega rp_only grp_k0 grp_regime
5 3.0e-05 2.0e-05 2.6e-05
10 6.1e-05 2.1e-05 2.9e-05 <- kept
20 7.7e-05 2.2e-05 3.3e-05
noise and sigma — ruled out, decisively
Cutting noise 4x lowers the irreducible floor 16x (4.0e-06 → 2.5e-07) and barely
moves any measured error:
noise sigma floor rp_only grp_k0 grp_regime
0.002 0.2 4.0e-06 6.1e-05 2.1e-05 2.9e-05
0.0005 0.2 2.5e-07 5.9e-05 1.8e-05 2.9e-05
0.002 0.3 4.0e-06 7.8e-05 4.3e-05 5.5e-05
0.0005 0.3 2.5e-07 7.1e-05 4.1e-05 5.3e-05
At noise=0.0005 the models sit ~70x above the floor. The residual is model error,
not noise. grp_regime is worse than grp_k0 in all four cells.
edge_types — helps, does not change the verdict
regime.py passes edge_types=None, so every pair is edge type 0 and the CPPN never
sees the type pair. Opening it (t_i * n_types + t_j, 9 edge types), both arms
measured by the same script:
steps edge types rp_only grp_k0 grp_regime
8000 single (1) 6.1e-05 2.1e-05 2.9e-05
8000 pair (9) 3.0e-05 1.9e-05 2.2e-05
40000 single (1) 2.3e-05 1.5e-05 1.7e-05
40000 pair (9) 1.7e-05 1.5e-05 1.6e-05
5. The control that isolates the cause: freeze the regime
Nothing changed but t_min/t_max, set beyond the run length so the regime is drawn
once and never switches. 40 000 steps, seeds 0,1,2:
regime condition steady per-seed
------------------------------------------------------------------
switching rp_only 2.271e-05 1.390e-05 3.372e-05 2.051e-05
switching grp_k0 1.516e-05 1.113e-05 1.457e-05 1.977e-05
switching grp_regime 1.716e-05 1.256e-05 1.632e-05 2.260e-05
frozen rp_only 3.891e-05 4.964e-06 4.604e-05 6.573e-05
frozen grp_k0 5.119e-06 5.199e-06 4.628e-06 5.529e-06
frozen grp_regime 5.080e-06 5.126e-06 4.679e-06 5.435e-06
This is the cleanest result in the file. It separates "the model must infer the regime" from "the target is non-stationary", which the 40 000-step and edge-type tables cannot.
grp_k0goes 1.516e-05 → 5.119e-06 andgrp_regime1.716e-05 → 5.080e-06 — 1.27x the noise floor. The architecture can essentially solve this domain. The entire remaining gap in the switching world is caused by regime switching: not by noise (§4), not by capacity, not by the missing pair channel.- The oracle is neutral here too, as it must be: frozen,
grp_regime(5.080e-06) andgrp_k0(5.119e-06) are identical. With the regime frozen the one-hot is a constant carrying zero information, so this is the expected result, and it confirms the oracle plumbing is inert rather than harmful once the encoding artefact of §6(a) is out of the way. - Memory's job in the frozen world is reliability, not mean error.
rp_onlyfrozen ranges over 13x across three seeds (4.964e-06 to 6.573e-05) whilegrp_k0is 5.1e-06 ± 0.4e-06. Memoryless can reach the floor and often does not; memory reaches it every time. This is a different and better-founded case for requirement 2 than the mean-error margin that thelrablation undercuts.
6. Conclusion and recommendations
The regime oracle is neutral in this setup, and requirement 1 is not reached at any
setting tried. The oracle is read; the information it carries is worth 1.56x within
the linearised family; and the trained models never get close enough to any ceiling
for that to matter, because their error is dominated by tracking a target that
switches every 40-80 steps. Freezing the regime drops grp_regime from 2.9e-05 to
5.08e-06, 1.27x the noise floor, with nothing else changed — the switching is the
whole story. grp_regime should be reported as a measured null, not carried into A1
as a ceiling.
Requirement 2 holds at the default on every seed and at both budgets, but the 2.99x
margin is substantially an artefact of an under-tuned learning rate: at lr=1e-2 it
is 1.06x. The defensible version of the memory claim is the frozen-regime one —
memory reaches the noise floor reliably where memoryless does so on one seed in three
— not the mean-error margin at lr=1e-3.
(a) Zero-initialise the oracle columns of W_feat. One line in regime.py after
Organism is built (ailed should not need to know which columns are oracle
columns):
with torch.no_grad():
org.rp.feat.weight[:, wcfg.n_types:] = 0.0 # oracle columns start as a no-op
An oracle column then starts as an exact no-op and can only act once gradient has earned it a weight. Measured, seeds 0,1,2, 8000 steps:
init condition steady rec@0 rec@2 rec@5
--------------------------------------------------------------------
default rp_only 0.000061 0.000070 0.000080 0.000103
default rp_flag 0.000060 0.000280 0.000110 0.000120
default grp_regime 0.000029 0.000052 0.000054 0.000067
zero-init oracle cols rp_only 0.000061 0.000070 0.000080 0.000103
zero-init oracle cols rp_flag 0.000076 0.000077 0.000085 0.000105
zero-init oracle cols grp_regime 0.000021 0.000029 0.000034 0.000049
rp_only is unchanged, but that is a tautology rather than evidence — rp_only has
no oracle columns, so the line is a no-op for it by construction. The measured results
are the other two rows: rp_flag's 4x rec@0 spike disappears and it tracks
rp_only, so requirement 3 holds under this fix; and grp_regime drops from
2.9e-05 to 2.1e-05, exactly equal to grp_k0. With the artefact removed, the regime
oracle is precisely neutral — not "the oracle hurts", but "the oracle changes
nothing". Not adopted: it moves every oracle condition off what Task 6 was reviewed
under, and A1's condition list may change in response to this file.
(b) Restate requirement 1 against something measurable. noise² = 4e-06 is the
floor for a model that knows (regime, t_i, t_j). Either compare grp_regime to the
regime oracle's linearised ceiling (1.166e-05), or — better, since §5 shows the
architecture reaches 5.08e-06 once the regime stops moving — state requirement 1 as a
recovery requirement rather than a steady-state one. Steady-state error in this
domain is a tracking measurement, and requirement 1 currently reads as if it were a
capacity measurement.
(c) If A1 needs an oracle with real headroom, the domain must change. The prize
(1.56x) is smaller than what the optimiser is losing to tracking (3x, from §5). Widen
the contrast between regimes, slow the switching, or raise lr so tracking stops
dominating — and measure the headroom again before building on any of them, since §2
shows lr alone reorders the conditions.