exp: correct the headroom ceilings, add lr and frozen-regime ablations

This commit is contained in:
chrnx committed 2026-09-02 08:39:34 -05:00
1 parent 17c13af1db
commit 55a57d8924
2 files changed
+314 -178

No files matched your search

+123
View File
@@ -0,0 +1,123 @@
"""Information ceilings for the particles domain. Task 7.
Fits, by least squares over a rolled-out world, the best predictor of the form
d_i = a[offset(i)] + sum_j c[key(i,j)] * dt * kern(r_ij) * r_ij
under several information sets. The radial kernel is handed to the fit exactly, so
each row is the best a predictor with that information can do *within this family*.
SCOPE. The family is linear in the messages. The real RP applies tanh on top of the
aggregate and the GRP adds per-entity state, so these numbers are NOT a bound on what
the trained architecture can reach -- a memoryless rp_only run with the regime frozen
gets below rows C and D. Read the table as a map of where the information sits, not
as a proof about the model.
Row A is the self-check: given (regime, t_i, t_j) the family spans the dynamics
exactly, so its deterministic residual must be ~0 and its residual against the noisy
target must equal noise**2.
uv run python ceilings.py [steps] [seeds]
"""
from __future__ import annotations
import statistics
import sys
import torch
from particles import ParticleConfig, ParticleWorld, wrapped_diff
def collect(cfg: ParticleConfig, steps: int) -> list[tuple]:
"""Roll the world out, recovering the deterministic part of each step's target."""
w, rows = ParticleWorld(cfg), []
for _ in range(steps):
coords, types = w.coords.clone(), w.types.clone()
obs = w.step()
# obs.regime, not w.regime read before step(): step() switches the regime
# *before* computing the delta, so the pre-step value is stale on switch steps.
r = wrapped_diff(coords)
kern = torch.exp(-(r ** 2).sum(-1) / cfg.sigma ** 2)
kern.fill_diagonal_(0.0)
K = w.regimes[obs.regime][types[:, None], types[None, :]]
det = cfg.dt * ((K * kern)[:, :, None] * r).sum(1)
rows.append((r, kern, types, obs.regime, det, obs.target))
return rows
def design(rows: list[tuple], cfg: ParticleConfig, key, offset) -> tuple[torch.Tensor, ...]:
"""key(types, regime) -> (N,N) coefficient index; offset(types, regime) -> (N,) index."""
n_key = max(key(t, g).max().item() for _, _, t, g, _, _ in rows) + 1
n_off = max(offset(t, g).max().item() for _, _, t, g, _, _ in rows) + 1
X, Y, Yn = [], [], []
for r, kern, types, regime, det, target in rows:
w = cfg.dt * kern[:, :, None] * r # (N,N,2)
idx = key(types, regime)
cols = [(w * (idx == c)[:, :, None]).sum(1) for c in range(n_key)] # each (N,2)
oid = offset(types, regime)
for c in range(n_off): # a free 2-vector offset per class
sel = (oid == c).float()
zero = torch.zeros_like(sel)
cols += [torch.stack([sel, zero], -1), torch.stack([zero, sel], -1)]
X.append(torch.stack(cols, -1).reshape(-1, len(cols)))
Y.append(det.reshape(-1))
Yn.append(target.reshape(-1))
return torch.cat(X).double(), torch.cat(Y).double(), torch.cat(Yn).double()
T = ParticleConfig().n_types
CEILINGS = [
("A perfect: (regime, t_i, t_j)",
lambda t, g: (g * T * T + t[:, None] * T + t[None, :]).long(),
lambda t, g: torch.zeros_like(t).long()),
("B regime-blind, pair-aware (t_i, t_j)",
lambda t, g: (t[:, None] * T + t[None, :]).long(),
lambda t, g: t.long()),
("C regime oracle (regime, t_j)",
lambda t, g: (g * T + t[None, :]).expand(len(t), len(t)).long(),
lambda t, g: (g * T + t).long()),
("D no oracle (t_j)",
lambda t, g: t[None, :].expand(len(t), len(t)).long(),
lambda t, g: t.long()),
]
def ceilings(steps: int = 1200, seeds: tuple[int, ...] = (0, 1, 2)) -> dict[str, tuple[float, float]]:
out = {}
for label, key, off in CEILINGS:
dets, obss = [], []
for seed in seeds:
cfg = ParticleConfig(seed=seed)
X, Y, Yn = design(collect(cfg, steps), cfg, key, off)
pred = (X @ torch.linalg.lstsq(X, Y.unsqueeze(1)).solution).squeeze(1)
dets.append(((pred - Y) ** 2).mean().item())
obss.append(((pred - Yn) ** 2).mean().item())
out[label] = (statistics.fmean(dets), statistics.fmean(obss))
return out
def main() -> None:
steps = int(sys.argv[1]) if len(sys.argv) > 1 else 1200
seeds = tuple(int(s) for s in sys.argv[2].split(",")) if len(sys.argv) > 2 else (0, 1, 2)
cfg = ParticleConfig()
res = ceilings(steps, seeds)
print(f"steps={steps} seeds={','.join(map(str, seeds))} noise^2 = {cfg.noise ** 2:.3e}\n")
print(f"{'information set':<40}{'MSE(det part)':>15}{'MSE(vs target)':>16}")
print("-" * 71)
for label, (d, o) in res.items():
print(f"{label:<40}{d:>15.3e}{o:>16.3e}")
c, d = res["C regime oracle (regime, t_j)"], res["D no oracle (t_j)"]
print(f"\noracle prize D->C: {d[0] / c[0]:.2f}x on the deterministic part, "
f"{d[1] / c[1]:.2f}x against the noisy target")
a = res["A perfect: (regime, t_i, t_j)"]
assert a[0] < 1e-15, f"row A must span the dynamics exactly, got {a[0]:.3e}"
assert abs(a[1] - cfg.noise ** 2) < 0.02 * cfg.noise ** 2, \
f"row A vs target must equal noise^2={cfg.noise ** 2:.3e}, got {a[1]:.3e}"
print("self-check: row A spans the dynamics and lands on the noise floor.")
if __name__ == "__main__":
main()
+191 -178
View File
@@ -4,14 +4,14 @@ Task 7. This file is the audit trail for the paper's setup section: it records w
was measured, which of the three requirements held, every knob that was moved with was measured, which of the three requirements held, every knob that was moved with
its before/after, and the conclusion. its before/after, and the conclusion.
**Verdict up front: requirement 2 holds; requirements 1 and 3 fail. Requirement 1 **Verdict: requirement 2 holds but is substantially an artefact of an under-tuned
fails for a structural reason that no tuning fixes — the regime oracle cannot reach learning rate; requirements 1 and 3 fail. The regime oracle is neutral — it is read,
the noise floor on this domain because the architecture's bottleneck is not the and it changes nothing. The error every condition converges to is set by tracking a
regime. Requirement 3 fails because the change flag is an untrained input spike, not target that switches every 40-80 steps, not by missing information.**
an information leak. Both failures are properties of the setup, not of claim A1.**
Environment: `experiments/` at 164810a, `ailed/` unmodified. All runs `uv run` from Environment: `experiments/`, `ailed/` unmodified. All runs `uv run` from
`experiments/`. Noise floor for every table below is `noise² = 4.0e-06`. `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 ## 1. The table
@@ -41,38 +41,47 @@ rp_flag 6.13e-05 3.65e-05 8.36e-05 no (0/3)
## 2. The three requirements ## 2. The three requirements
### Requirement 1 — FAILS, and is unreachable as written ### Requirement 1 — FAILS
> `grp_regime` steady error must sit near the noise floor `4e-6` (within ~3x). > `grp_regime` steady error must sit near the noise floor `4e-6` (within ~3x).
`grp_regime` steady is 2.9e-05, which is 7x the floor, and it is *worse* than `grp_regime` steady is 2.9e-05, 7x the floor, and it is *worse* than `grp_k0`
`grp_k0` (2.1e-05) on all three seeds. Longer training does not rescue it: at 40 000 (2.1e-05) on all three seeds. Longer training does not rescue it: at 40 000 steps it
steps `grp_regime` is still worse than `grp_k0` on all three seeds (1.7e-05 vs is still worse on all three seeds (1.7e-05 vs 1.5e-05).
1.5e-05). The oracle does not merely fail to help — it costs a consistent ~13-35%.
The reason is not tuning. It is that **the regime is not the information the model is The condition is not reached at any setting tried here, and §3 shows the regime is not
missing.** Section 3 measures this. 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 ### Requirement 2 — HOLDS at the default, but the margin is largely an `lr` artefact
> `grp_k0` must beat `rp_only` on `steady` and on `rec@10`. > `grp_k0` must beat `rp_only` on `steady` and on `rec@10`.
At 8000 steps `grp_k0` beats `rp_only` 2.9x on steady (2.1e-05 vs 6.1e-05) and 2.1x At the default `lr=1e-3`, 8000 steps: `grp_k0` beats `rp_only` 2.9x on steady and
on `rec@10` (4.3e-05 vs 9.0e-05), on every seed. Memory has a job. 2.1x on `rec@10`, on every seed. It still wins on all three seeds at 40 000 steps.
**Caveat that Tasks 8 and 9 must carry:** the margin is substantially a **But the margin decays monotonically with learning rate and is gone by `lr=1e-2`**
training-speed effect, not a capability ceiling. At 40 000 steps the memoryless (seeds 0,1,2, 8000 steps, mean `steady`):
baseline largely catches up:
``` ```
steps rp_only grp_k0 ratio lr rp_only grp_k0 grp_regime memory advantage
8000 6.1e-05 2.1e-05 2.9x 1e-3 6.141e-05 2.055e-05 2.888e-05 2.99x
40000 2.3e-05 1.5e-05 1.5x 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
``` ```
`grp_k0` still wins on all three seeds at 40 000 steps, so requirement 2 holds at both `rp_only` improves 3.7x with `lr`; `grp_k0` improves 1.3x. **Memory is substantially
budgets. But a 2.9x headline quoted from an 8000-step run is a claim about how fast compensating for an optimiser that is stepping too slowly**, and A1 cannot quote the
memory learns, not about what it can represent. A1 should say which it means. 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 ### Requirement 3 — FAILS
@@ -81,9 +90,9 @@ memory learns, not about what it can represent. A1 should say which it means.
It does not. `rp_flag` matches `rp_only` on `steady` (6.0e-05 vs 6.1e-05) but is 4x 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. worse at `rec@0` (2.8e-04 vs 7.0e-05), on every seed.
The brief says to investigate before A1 if this happens. It is **not** an information It is **not** an information leak. Diagnostic, holding `attr_dim` at 4 in all three
leak. Diagnostic (`attr_dim` held at 4 in all three flag rows, so parameter count and flag rows so parameter count and init draw are identical and only the column's
init draw are identical; only the column's *contents* change): *contents* change:
``` ```
variant steady rec@0 rec@2 rec@5 variant steady rec@0 rec@2 rec@5
@@ -94,74 +103,83 @@ 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 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 With the column present but never firing, `rp_flag` reproduces `rp_only`; the extra
column is harmless. With the column pinned on, everything degrades uniformly. So the column is harmless. With it pinned on, everything degrades uniformly. The `rec@0`
`rec@0` spike is caused by the column *changing value*, at the exact step `rec@0` spike is caused by the column *changing value*, at the exact step `rec@0` measures.
measures.
Mechanism. `attrs` enters the RP only through `f_j = W_feat attrs_j`, the message Mechanism. `attrs` enters the RP only through `f_j = W_feat attrs_j`, the message
*from* `j`. The flag column is the same value on every particle, so firing it adds a *from* `j`, and the flag column is the same value on every particle, so firing it
fixed vector `w_flag` to every `f_j`, shifting every message by shifts every message by a fixed `(Σ_j m_ij) ⊙ w_flag`. The flag column is **not**
`(Σ_j m_ij) ⊙ w_flag`. Because the flag is on for ~1.5% of steps, `W_feat`'s flag under-trained relative to the type columns — measured, `attr_dim=4`, seed 0:
column receives gradient on ~1.5% of steps and stays near its random init. The flag
therefore delivers an *untrained perturbation* precisely when it fires. `rec@0` is
measuring the model being kicked, not the model being informed.
This matters beyond the control: **`grp_flag` is an A1 condition and has the same
defect.** As encoded, `grp_flag` does not test "does knowing a change occurred help";
it tests "does memory absorb an input spike". A1 should not use the change flag in
this encoding.
## 3. Why the oracle cannot help: measured information ceilings
The governing rule is to measure the ceiling before building the mechanism, so I
measured it directly rather than tuning against it.
The RP computes `pred_i = (1/N) Σ_j G(r_ij, t_j, ctx) + b`. The sum includes `j = i`
at `r = 0` (the default `mask` is all-ones including the diagonal), so the receiver's
own type enters **only as an additive offset** — it can never modulate the
per-neighbour message. The world's dynamics are
`d_i = dt Σ_j K[t_i, t_j] · kern(r_ij) · r_ij`, whose entire content is the
*multiplicative pairing* `K[t_i, t_j]`.
So I fitted, by least squares over the run, the best predictor of the form
`d_i = a[·] + Σ_j c[key(i,j)] · dt · kern(r_ij) · r_ij` under several information
sets. This is an optimistic bound: it assumes the model nails the radial kernel
exactly, so a trained model can only do worse. Means over seeds 0,1,2:
``` ```
ceiling MSE(det part) MSE(vs target) type cols flag col
------------------------------------------------------------------------- W_feat init norm 1.831 1.607 1.461 1.893
A perfect: (regime, t_i, t_j) 1.35e-19 4.52e-06 drift over 8000 0.152 0.119 0.157 0.134
B regime-blind, pair-aware (t_i, t_j) 1.13e-05 1.56e-05
C REGIME ORACLE ceiling (regime, t_j) 7.95e-06 1.24e-05
D no-oracle ceiling (t_j) 1.32e-05 1.75e-05
``` ```
Row A recovers the deterministic dynamics to 1e-19 and lands at 4.5e-06 against the and with `bptt=20` the flag falls within **32%** of optimiser steps even though it is
noisy target, which is the noise floor — the construction is correct. 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.
Three things follow, and together they answer the question: 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.
1. **Requirement 1 is unreachable in practice.** It asks `grp_regime` to reach ## 3. Where the information sits — a linearised bound, not a bound on the model
1.2e-05 (3x the floor). The ceiling for *any* model given the regime but
restricted to this architecture's information flow is **C = 1.18e-05** — sitting
exactly on requirement 1's tolerance boundary, and that bound already assumes a
perfect radial kernel. Every real trained model is strictly worse than C, so no
amount of tuning satisfies requirement 1. It was written expecting the regime
oracle to close the gap to the noise floor; measurement says it cannot.
2. **The oracle prize is small.** Going from no oracle (D, 1.82e-05) to the regime Reproduce with `uv run python ceilings.py`. The script fits, by least squares over a
oracle (C, 1.18e-05) is worth **1.54x**. Meanwhile `grp_k0` already measures rolled-out world, the best predictor of the form
1.5e-05 at 40 000 steps — i.e. `grp_k0` is *already between* D and C. Memory is `d_i = a[offset(i)] + Σ_j c[key(i,j)] · dt · kern(r_ij) · r_ij`, handing the fit the
recovering most of what the regime oracle could tell it, which is exactly why radial kernel exactly. Means over seeds 0,1,2, 1200 world steps:
telling the model the regime adds nothing.
3. **The real bottleneck is the type pair, not the regime.** Compare B (1.69e-05, ```
knows `t_i,t_j` but not the regime) with C (1.18e-05, knows the regime but not information set MSE(det part) MSE(vs target)
`t_i`) against A (4.47e-06). Knowing the pair is worth about as much as knowing -----------------------------------------------------------------------
the regime, and neither alone gets near the floor. The regime oracle cannot supply A perfect: (regime, t_i, t_j) 1.262e-19 4.011e-06
`t_i`, so it cannot close the gap. 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:
1. **The oracle prize is small.** No oracle (D, 1.820e-05) to regime oracle
(C, 1.166e-05) is worth **1.56x**, and `grp_k0` already 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.
2. **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, not `t_i`) bracket each other and
neither approaches A. A regime oracle cannot supply `t_i`.
## 4. Knobs changed ## 4. Knobs changed
@@ -170,21 +188,24 @@ affected conditions.
| knob | before | after | evidence | kept? | | knob | before | after | evidence | kept? |
|---|---|---|---|---| |---|---|---|---|---|
| `run(omega=...)` in `regime.py` | not a parameter (hard-coded 10.0 inside `Organism`) | parameter, **default 10.0** | plumbing only; default unchanged so all prior runs reproduce byte-identically | **yes** | | `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 and 20 | see below | **no — kept 10.0** | | `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** | | `noise` | 0.002 | tried 0.0005 | see below | **no — kept 0.002** |
| `sigma` | 0.2 | tried 0.3 | see below | **no — kept 0.2** | | `sigma` | 0.2 | tried 0.3 | see below | **no — kept 0.2** |
| `steps` | 8000 | also ran 40000 | see §2 requirement 2 | diagnostic only | | `steps` | 8000 | also 40000 | §2, §5 | diagnostic only |
| `edge_types` | `None` (1 edge type) | tried type-pair (9 edge types) | see below | **no — not adopted; recommended for Task 8** | | `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 change is **No default in `particles.py` or `regime.py` was changed.** The only source changes
the `omega` parameter, whose default reproduces the previous behaviour exactly. are the `omega` parameter, whose default reproduces previous behaviour exactly, and
Tasks 8 and 9 run against the same parameters Task 6 was reviewed under. the new `ceilings.py`. Tasks 8 and 9 run against the same parameters Task 6 was
reviewed under. `../ailed` is untouched.
### omega (hypothesis: the CPPN cannot represent the domain's length scale) ### omega — ruled out
Ruled out. `omega` matters a lot for `rp_only` and not at all for the memory `grp_k0` and `grp_regime` are insensitive; only `rp_only` moves, and the ordering
conditions, and it never changes the `grp_regime` vs `grp_k0` ordering. never flips.
``` ```
omega rp_only grp_k0 grp_regime omega rp_only grp_k0 grp_regime
@@ -193,15 +214,10 @@ omega rp_only grp_k0 grp_regime
20 7.7e-05 2.2e-05 3.3e-05 20 7.7e-05 2.2e-05 3.3e-05
``` ```
`omega=5` would *improve* the memoryless baseline 2x and so shrink requirement 2's ### noise and sigma — ruled out, decisively
margin from 2.9x to 1.5x. It is kept at 10.0 because nothing justifies moving it, but
this is worth flagging: **the size of A1's memory effect at 8000 steps is partly an
`omega` artefact.** `grp_k0` is insensitive to `omega`; `rp_only` is not.
### noise and sigma (hypothesis: too noise-dominated to have headroom) Cutting `noise` 4x lowers the irreducible floor 16x (4.0e-06 → 2.5e-07) and barely
moves any measured error:
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 noise sigma floor rp_only grp_k0 grp_regime
@@ -212,20 +228,13 @@ noise sigma floor rp_only grp_k0 grp_regime
``` ```
At `noise=0.0005` the models sit ~70x above the floor. The residual is model error, At `noise=0.0005` the models sit ~70x above the floor. The residual is model error,
not noise. Raising `sigma` to 0.3 makes every condition worse and does not change any not noise. `grp_regime` is worse than `grp_k0` in all four cells.
ordering. `grp_regime` is worse than `grp_k0` in all four cells.
This is the clearest single result in the file: **the models are not ### edge_types — helps, does not change the verdict
information-limited, they are optimisation-limited.** An oracle cannot help a model
that is not yet using the information it already has, which is why adding four
columns costs ~13-35% instead of paying.
### edge_types (hypothesis: the pair coupling has no channel) `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
`regime.py` passes `edge_types=None`, so every pair is edge type 0 and the CPPN measured by the same script:
never sees the type pair. Opening that channel (`edge_types = t_i * n_types + t_j`,
9 edge types) is the only wiring that could reach ceiling A. It helps, but it does
not change the verdict:
``` ```
steps edge types rp_only grp_k0 grp_regime steps edge types rp_only grp_k0 grp_regime
@@ -235,56 +244,62 @@ steps edge types rp_only grp_k0 grp_regime
40000 pair (9) 1.7e-05 1.5e-05 1.6e-05 40000 pair (9) 1.7e-05 1.5e-05 1.6e-05
``` ```
With the pair channel open the model *could* represent the dynamics exactly ## 5. The control that isolates the cause: freeze the regime
(ceiling A = 4.47e-06). It plateaus at 1.5e-05 instead — 3.4x short. Not adopted;
see the recommendation in §6.
## 5. The result underneath all of this 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:
Read the last table by column rather than by row. At 40 000 steps with the pair ```
channel open, `rp_only`, `grp_k0` and `grp_regime` measure 1.7e-05, 1.5e-05 and regime condition steady per-seed
1.6e-05 — indistinguishable. **Every condition converges to roughly the same error ------------------------------------------------------------------
regardless of what information it is given, and that error is 3-4x above the switching rp_only 2.271e-05 1.390e-05 3.372e-05 2.051e-05
architecture's own information ceiling.** 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
That number is set by the optimiser, not by information. The target is frozen rp_only 3.891e-05 4.964e-06 4.604e-05 6.573e-05
non-stationary by construction: the regime switches every 40-80 steps, and an online frozen grp_k0 5.119e-06 5.199e-06 4.628e-06 5.529e-06
learner with `lr=1e-3` and truncated BPTT is permanently chasing it. The steady error frozen grp_regime 5.080e-06 5.126e-06 4.679e-06 5.435e-06
reported by `_metrics` is dominated by **weight-tracking lag**, not by representational ```
capacity or by noise.
This explains every result in this file at once: 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.
- The regime oracle enters through `W_feat`, i.e. through *weights*. It therefore - **`grp_k0` goes 1.516e-05 → 5.119e-06 and `grp_regime` 1.716e-05 → 5.080e-06 —
inherits exactly the tracking lag that is causing the error, and cannot reduce it. 1.27x the noise floor.** The architecture *can* essentially solve this domain. The
Worse, it adds columns that must themselves be learned, which is why it *costs* entire remaining gap in the switching world is caused by regime switching: not by
35% at 8000 steps and 13% at 40 000 — a tax that shrinks as those columns get fit. noise (§4), not by capacity, not by the missing pair channel.
- Memory (`grp_k0`) helps because `M` is *state*, and state can move faster than - **The oracle is neutral here too, as it must be**: frozen, `grp_regime`
weights. That is a real mechanism and it is the one A1 is about. (5.080e-06) and `grp_k0` (5.119e-06) are identical. With the regime frozen the
- The memory advantage shrinks with training (2.9x → 1.5x) because weights slowly one-hot is a constant carrying zero information, so this is the expected result, and
catch up to what state was providing early. 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_only`
frozen ranges over 13x across three seeds (4.964e-06 to 6.573e-05) while `grp_k0`
is 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 the `lr` ablation undercuts.
## 6. Conclusion and recommendations ## 6. Conclusion and recommendations
**This setup has no headroom for the regime oracle, and requirement 1 cannot be **The regime oracle is neutral in this setup, and requirement 1 is not reached at any
satisfied by tuning.** The regime oracle's own information ceiling on this domain is setting tried.** The oracle is read; the information it carries is worth 1.56x within
1.18e-05, which sits on requirement 1's tolerance boundary before any training loss is the linearised family; and the trained models never get close enough to any ceiling
accounted for; and the trained models never get within 3x of even that, because their for that to matter, because their error is dominated by tracking a target that
error is dominated by optimiser tracking lag rather than by missing information. An switches every 40-80 steps. Freezing the regime drops `grp_regime` from 2.9e-05 to
oracle cannot help a model that is not yet using the information it already has. The 5.08e-06, 1.27x the noise floor, with nothing else changed — the switching is the
`grp_regime` condition as currently constituted measures nothing about A1 — it is a whole story. `grp_regime` should be reported as a measured null, not carried into A1
neutral-to-negative control, and the negative part is an encoding artefact. as a ceiling.
Requirement 2 holds at both 8000 and 40 000 steps, so memory does have a job. But the Requirement 2 holds at the default on every seed and at both budgets, but the 2.99x
job is *faster adaptation*, not *better asymptotic fit*, and the headline ratio margin is substantially an artefact of an under-tuned learning rate: at `lr=1e-2` it
depends on the training budget (2.9x at 8000, 1.5x at 40 000) and on `omega` is 1.06x. The defensible version of the memory claim is the frozen-regime one —
(2.9x at 10, 1.5x at 5). A1 must state the budget and the knob it quotes. memory reaches the noise floor reliably where memoryless does so on one seed in three
— not the mean-error margin at `lr=1e-3`.
Three concrete recommendations, none of them adopted here: **(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
**(a) Zero-initialise the oracle columns of `W_feat`.** One line, applied in columns):
`regime.py` after `Organism` is constructed (`ailed` should not need to know which
columns are oracle columns):
```python ```python
with torch.no_grad(): with torch.no_grad():
@@ -306,27 +321,25 @@ 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 zero-init oracle cols grp_regime 0.000021 0.000029 0.000034 0.000049
``` ```
`rp_only` is unchanged to every digit — the change is a no-op for non-oracle `rp_only` is unchanged, but that is a tautology rather than evidence — `rp_only` has
conditions, so spec §7's byte-identical requirement is preserved. `rp_flag`'s 4x no oracle columns, so the line is a no-op for it by construction. The measured results
`rec@0` spike disappears and it now tracks `rp_only`: **requirement 3 holds under are the other two rows: `rp_flag`'s 4x `rec@0` spike disappears and it tracks
this fix.** And `grp_regime` drops from 2.9e-05 to 2.1e-05, exactly equal to `rp_only`, so **requirement 3 holds under this fix**; and `grp_regime` drops from
`grp_k0` — with the artefact removed, **the regime oracle is precisely neutral.** 2.9e-05 to 2.1e-05, exactly equal to `grp_k0`. With the artefact removed, **the regime
That is the honest null this task was built to find: not "the oracle hurts", but oracle is precisely neutral** — not "the oracle hurts", but "the oracle changes
"the oracle changes nothing." 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.
This is not adopted because it changes every oracle condition's numbers relative to **(b) Restate requirement 1 against something measurable.** `noise² = 4e-06` is the
what Task 6 was reviewed under, and because A1's condition list may itself change in floor for a model that knows `(regime, t_i, t_j)`. Either compare `grp_regime` to the
response to this file. It is a one-line change whenever it is wanted. 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.
**(b) Rewrite requirement 1 against the measured ceiling, not the noise floor.** **(c) If A1 needs an oracle with real headroom, the domain must change.** The prize
`noise² = 4e-06` is the ceiling for a model that knows `(regime, t_i, t_j)`. The (1.56x) is smaller than what the optimiser is losing to tracking (3x, from §5). Widen
regime oracle's ceiling is 1.18e-05. Requirement 1 should compare `grp_regime` to the contrast between regimes, slow the switching, or raise `lr` so tracking stops
1.18e-05, or the domain should change so that the two coincide. dominating — and measure the headroom again before building on any of them, since §2
shows `lr` alone reorders the conditions.
**(c) If A1 needs an oracle with real headroom, the domain must change.** The gap the
oracle can win (1.54x) is smaller than the gap the optimiser is currently losing
(3-4x). Any of these would open it, and each needs its own measurement before being
built on: give the type pair a channel *and* train long enough to use it (§4); widen
the contrast between regimes so D and C separate further; or slow the switching so
weight-tracking lag stops dominating. Absent one of those, `grp_regime` should be
reported as a measured null rather than carried into A1 as a ceiling.