The gate's weights moved 26.8% of their initial norm — more than any other block — so "untrained" was wrong and pointed at a hypothesis Task 11 falsified. What did not move is the function: the displacement stayed inside the sigmoid's linear band. frozen.md's three affected passages now say so and a new section 6 carries the measurement, including why the 887x gradient-magnitude gap should not be led with (Adam is scale-invariant; the per-coordinate SNR is comparable across blocks). Section 7 and a note in when_memory_works.md mark the probe figures as linear-probe numbers. An MLP probe reads +0.159 from M and +0.234 from h. The relative claim is unchanged; the absolute fraction needed the qualifier.
503 lines
29 KiB
Markdown
503 lines
29 KiB
Markdown
# When does per-entity memory have a job?
|
||
|
||
Task 9. The project had been reaching for a new domain each time memory failed to
|
||
help. This file replaces that reflex with a quantity measurable on any candidate
|
||
domain in advance — `T_id`, the history an optimal observer needs to identify the
|
||
regime — and with a prediction that can be wrong.
|
||
|
||
**Verdict, in the order the parts were pre-registered:**
|
||
|
||
1. **Part 1 — FAILURE, of the informative kind.** Arousal's peak moves from 11 steps
|
||
after a switch to **2** (lags 1 and 2 are within 0.005 of each other, 0.303 and
|
||
0.308), which is inside the pre-registered 3. The error is
|
||
unmoved: `grp_k0 / grp_k` on `steady` is 0.987 (median 1.000) and **0 of 16 seeds
|
||
reach 1.10**, against a criterion of 12 of 16. The largest ratio on any seed at any
|
||
κ is 1.017. The mechanism works, it is now correctly timed, and the domain gives it
|
||
nothing. The lag-2 harm `a1.md` §2a found survives the fix unchanged.
|
||
2. **Part 2 — `T_id = 2` observations, i.e. one step of history.** An exact decoder
|
||
reaches 0.958 per-step accuracy from a single observed displacement, against a
|
||
measured chance of 0.23, and a fitted decoder that knows no coupling matrices
|
||
reaches 0.909. Accuracy peaks at `L = 2–3` and *falls* thereafter. With
|
||
`T_z = 40–80`, **`T_id` is 20–40 times smaller than `T_z`**. That is the
|
||
uncomfortable branch: the domain can reward memory and the failure is ours.
|
||
3. **Part 3 — the predicted peak does not exist. The theory is wrong as stated.** The
|
||
capacity-controlled state gain is flat across four orders of magnitude of regime
|
||
duration, 1.09 to 1.26, on 8–11 seeds of 16 at every duration, with a per-seed
|
||
spread (0.32 to 2.86) that swamps every between-duration difference. And the
|
||
decisive point: **the largest gain in the sweep is at the frozen regime**, 1.26 on
|
||
11/16 — the one setting where there is no regime to identify at all and where `G`
|
||
measures exactly 1.00. A quantity that is largest when its supposed cause is absent
|
||
is not caused by it.
|
||
|
||
The condition "memory has a job when `T_id << T_z` and `G` is materially above 1" is
|
||
satisfied at every switching duration in this sweep and does not predict the state
|
||
gain. What the state gain measures here is temporal smoothing, which a stationary
|
||
world rewards at least as well as a switching one.
|
||
|
||
Environment: `experiments/`, `ailed/` unmodified. No default in `particles.py`,
|
||
`regime.py` or `affect.py` changed — `AffectConfig`'s time constants and
|
||
`ParticleConfig`'s `t_min`/`t_max` are passed as arguments (`when_memory_works._cfg`,
|
||
`frozen._build`). 8000 training steps, `lr=1e-3`, `bptt=20`, `hidden=32`, `omega=10`.
|
||
Noise floor `noise² = 4.0e-06`. 400 organism runs. Part 2 fits 4 decoders at each of
|
||
7 window lengths on 8 seeds, each linear decoder refit 20 times more to measure its
|
||
own chance level.
|
||
|
||
```
|
||
uv run python identify.py --out results/identify.json
|
||
uv run python identify.py --t-min 10 --t-max 20 --seeds 0,1,2,3 --steps 4000 \
|
||
--estimators phys,bayes --out results/identify_d10_20.json # and each duration
|
||
uv run python ceilings.py 1200 0,1,2 10,20 # and each duration
|
||
uv run python when_memory_works.py --part timing --out results/w_timing.json
|
||
uv run python when_memory_works.py --part rho-fast --rho-a 1.0 --rho-slow 0.2 \
|
||
--out results/w_rhofast.json
|
||
uv run python when_memory_works.py --part best --rho-a 1.0 --rho-slow 0.2 \
|
||
--out results/w_best.json
|
||
uv run python when_memory_works.py --part duration --out results/w_duration_all.json
|
||
```
|
||
|
||
## 0. What is checked, and how it was made able to fail
|
||
|
||
Four properties carry the headline numbers. Each has a test, and each test was broken
|
||
on purpose to confirm it fails — AGENTS.md's rule, applied rather than asserted.
|
||
|
||
| property | test | broken on purpose by | fails? |
|
||
|---|---|---|---|
|
||
| the decoder never sees `d_t`, the step it decodes | `test_features_never_use_the_displacement_being_decoded` | widening the window to include `d_t` | **yes** |
|
||
| the state ablation differs only in carried state | `test_state_ablation_changes_only_whether_memory_is_carried` | making `stateless` a no-op in `run_one` | **yes** |
|
||
| the arousal profile is the arousal the gate saw | `test_gate_arousal_seq_is_the_arousal_the_organism_was_handed` | companion `..._can_fail` asserts the un-lagged sequence does *not* match | **yes** |
|
||
| the message basis is the world's own | `test_basis_reproduces_the_worlds_dynamics_to_the_noise_floor` | companion `test_basis_check_can_fail` feeds it the wrong regime sequence | **yes** |
|
||
|
||
Alongside those: `test_bayes_decoder_recovers_a_regime_it_can_see_and_not_one_it_cannot`
|
||
is the planted-signal/planted-absence pair (real displacements → >0.8, displacements
|
||
replaced by noise → <0.45); `test_peak_lag_and_by_lag_average_over_the_switches_metrics_uses`
|
||
asserts `by_lag` cuts the trace exactly as `regime._metrics` cuts `recovery`, so the
|
||
arousal profile and the error profile are averaged over the same switches;
|
||
`test_windows_that_reach_the_next_switch_are_not_reported` enforces `window < t_min`
|
||
per duration, which is `regime.run`'s own validation carried into a sweep that
|
||
shortens the regime. 64 tests pass, including the 47 that were already there.
|
||
|
||
The two additive hooks this task needed — `frozen._build(t_min=, t_max=)` and
|
||
`frozen._train(acfg=)` — both default to the values the loop always used, so
|
||
`test_train_copy_is_identical_to_regime_run` still pins `_train` against `regime.run`.
|
||
|
||
## 1. Part 1 — affect timing, the last legitimate shot at A1
|
||
|
||
`rho_a` and `rho_slow` are the affect mechanism's own time constants and had never
|
||
been set. Only they can move arousal's timing. From `affect.update`:
|
||
|
||
```
|
||
fast <- fast + rho_fast (loss - fast) slow <- slow + rho_slow (loss - slow)
|
||
a_target = tanh(max(0, loss - slow) / (slow + eps))
|
||
arousal <- arousal + rho_a (a_target - arousal)
|
||
```
|
||
|
||
`fast` appears only in `v_target`. **`rho_fast` cannot reach arousal except through the
|
||
loss stream**, via valence feeding the CPPN, and §1c measures that it does not. So the
|
||
sweep is over `rho_a × rho_slow`. Where it raises `rho_slow` past the default
|
||
`rho_fast = 0.2` it raises `rho_fast` with it, because `AffectConfig` documents
|
||
`rho_slow < rho_fast` and inverting the two would change what valence means as a side
|
||
effect of a timing sweep.
|
||
|
||
### 1a. The sweep: the timing is a design parameter, and it moves
|
||
|
||
`grp_k0` (κ=0, so this is the arousal the gate *would* be forced with), 8000 steps,
|
||
seeds 0–3, means over seeds. Lag `k` after a switch, averaged over the second half's
|
||
switches — the same cut `regime._metrics` uses for `recovery`. `far` is `_metrics`'s
|
||
own `steady_idx`.
|
||
|
||
```
|
||
rho_a/rho_slow/rho_fast @0 @2 @4 @6 @8 @10 @12 @14 @16 @18 far peak
|
||
------------------------------------------------------------------------------------------------------------
|
||
a0.5/s0.02/f0.2 (default) 0.055 0.157 0.217 0.257 0.300 0.325 0.329 0.316 0.284 0.243 0.098 11
|
||
a0.5/s0.05/f0.2 0.056 0.197 0.256 0.290 0.320 0.323 0.307 0.283 0.236 0.193 0.081 10
|
||
a0.5/s0.1/f0.2 0.056 0.227 0.270 0.287 0.291 0.268 0.244 0.216 0.170 0.136 0.065 8
|
||
a0.5/s0.2/f0.4 0.054 0.219 0.228 0.221 0.198 0.170 0.149 0.121 0.088 0.077 0.053 4
|
||
a0.5/s0.4/f0.8 0.042 0.143 0.118 0.100 0.088 0.081 0.072 0.059 0.043 0.042 0.039 2
|
||
a1/s0.02/f0.2 0.046 0.205 0.259 0.284 0.327 0.348 0.342 0.316 0.277 0.232 0.092 10
|
||
a1/s0.05/f0.2 0.054 0.254 0.296 0.313 0.336 0.331 0.301 0.266 0.210 0.169 0.078 8
|
||
a1/s0.1/f0.2 0.060 0.294 0.301 0.289 0.288 0.253 0.231 0.193 0.147 0.121 0.065 1
|
||
a1/s0.2/f0.4 0.063 0.275 0.230 0.202 0.182 0.156 0.138 0.104 0.078 0.078 0.055 1
|
||
a1/s0.4/f0.8 0.046 0.174 0.105 0.086 0.083 0.080 0.066 0.052 0.038 0.041 0.040 1
|
||
```
|
||
|
||
The default row reproduces `a1.md` §1a: arousal *lowest* at the switch step and
|
||
peaking around lag 11–12. The odd lags are where the fix shows, so at one-step
|
||
resolution:
|
||
|
||
```
|
||
setting @0 @1 @2 @3 @4 @5 @6 @7 far peak/far
|
||
---------------------------------------------------------------------------------------------
|
||
a0.5/s0.02/f0.2 0.055 0.122 0.157 0.188 0.217 0.240 0.257 0.278 0.098 3.38
|
||
a1/s0.02/f0.2 0.046 0.188 0.205 0.234 0.259 0.275 0.284 0.307 0.092 3.77
|
||
a0.5/s0.2/f0.4 0.054 0.184 0.219 0.227 0.228 0.225 0.221 0.210 0.053 4.30
|
||
a1/s0.1/f0.2 0.060 0.312 0.294 0.304 0.301 0.292 0.289 0.298 0.065 4.81
|
||
a1/s0.2/f0.4 0.063 0.315 0.275 0.256 0.230 0.208 0.202 0.191 0.055 5.75
|
||
a1/s0.4/f0.8 0.046 0.243 0.174 0.131 0.105 0.088 0.086 0.084 0.040 6.06
|
||
```
|
||
|
||
**`rho_slow` is the whole story and `rho_a` sharpens it.** A slow baseline that tracks
|
||
the loss over ~50 steps cannot register a rise until the rise is most of the way done;
|
||
raising `rho_slow` to 0.1–0.4 turns `max(0, loss − slow)/slow` from a level detector
|
||
into a short-horizon relative-excess detector, and the surprise lands on the step after
|
||
the switch. `rho_a = 1` removes the remaining EMA smoothing on arousal itself.
|
||
|
||
The chosen setting was fixed on timing grounds alone, before any `grp_k` run: **among
|
||
settings whose peak lies within 3 steps of the switch, take the largest peak
|
||
amplitude.** That is `a1/s0.2/f0.4` — peak 0.315 at lag 1, a 5.0x jump from lag 0 in a
|
||
single step, and the best peak-to-far contrast of the three (5.75x). `a1/s0.1/f0.2` is
|
||
the runner-up and is reported alongside.
|
||
|
||
Worth stating because it bounds what timing can ever buy here: **the loss itself peaks
|
||
at lag 6–7** in every one of these runs (`recovery[k]` runs 2.74e-05, 2.83e-05,
|
||
3.12e-05, 3.40e-05, 3.84e-05, 4.37e-05, 4.70e-05, 4.71e-05 over lags 0–7). Arousal now
|
||
peaks five to six steps *before* the error it is built from does, because the loss at
|
||
lag 0 is already 1.3x its steady level and a short baseline sees that immediately.
|
||
There is no timing left to win.
|
||
|
||
### 1b. The result: timing fixed, error unmoved
|
||
|
||
`grp_k` against `grp_k0`, both at the best-timed affect config, 16 seeds, paired per
|
||
seed. Identical architecture, identical 5602 parameters, differing only in κ.
|
||
|
||
```
|
||
affect setting kappa mean median >1.10 >1.00 max
|
||
---------------------------------------------------------------------
|
||
a1/s0.2/f0.4 (best) 1 0.991 1.001 0/16 9/16 1.009
|
||
a1/s0.2/f0.4 4 0.987 1.000 0/16 8/16 1.017
|
||
a1/s0.2/f0.4 16 0.985 0.995 0/16 6/16 1.016
|
||
a1/s0.1/f0.2 (2nd) 1 1.011 1.000 1/16 7/16 1.107
|
||
a1/s0.1/f0.2 4 0.997 0.997 0/16 7/16 1.068
|
||
a1/s0.1/f0.2 16 0.987 0.995 0/16 6/16 1.025
|
||
```
|
||
|
||
Per-seed `grp_k0 / grp_k` at the best-timed setting, κ=4:
|
||
|
||
```
|
||
0.99 1.01 1.00 1.01 0.99 0.99 1.00 0.97 1.02 1.01 1.00 1.00 0.99 0.99 1.01 0.80
|
||
```
|
||
|
||
A coin flip with one seed (15) where the forced gate costs 20%. This is the same
|
||
picture `a1.md` §2 measured with the mis-timed signal, at the same magnitudes. Fixing
|
||
the timing changed the arousal profile completely and changed the error by nothing.
|
||
|
||
### 1c. The lag-2 harm survives the fix
|
||
|
||
`a1.md` §2a's one sign-definite effect was a 4–11% *degradation* two steps after a
|
||
switch, monotone in κ. Re-measured with arousal now peaking at lag 1 rather than 12:
|
||
|
||
```
|
||
paired grp_k0 / grp_k at matched lag, best-timed affect (<1 means kappa is worse)
|
||
kappa @0 @2 @5 @10 @19
|
||
------------------------------------------------------------------------------
|
||
1 0.98 4/16 0.96 1/16 0.99 8/16 1.00 8/16 0.99 6/16
|
||
4 0.99 6/16 0.90 0/16 0.99 6/16 0.99 6/16 0.98 5/16
|
||
16 0.99 5/16 0.91 1/16 1.00 4/16 1.00 7/16 1.00 8/16
|
||
```
|
||
|
||
At κ=4 the lag-2 penalty is 0.90 on **0 of 16 seeds** — against `a1.md`'s 0.92 on
|
||
1/16 with the mis-timed signal. Correcting the timing did not remove the harm; it made
|
||
it very slightly worse, which is what §1a's mechanism predicts. Opening the gate
|
||
earlier discards the temporal averaging earlier, and `frozen.md` §1b established that
|
||
the post-switch excess belongs to the world's configuration transient, which no gating
|
||
policy can shorten.
|
||
|
||
### 1d. The `rho_fast` control
|
||
|
||
Fixing `rho_a = 1.0`, `rho_slow = 0.2` and varying only `rho_fast`, 4 seeds:
|
||
|
||
```
|
||
rho_a/rho_slow/rho_fast @0 @2 @4 @6 @8 @10 far peak
|
||
---------------------------------------------------------------------------------
|
||
a1/s0.2/f0.4 0.063 0.275 0.230 0.202 0.182 0.156 0.055 1
|
||
a1/s0.2/f0.5 0.061 0.277 0.232 0.202 0.181 0.154 0.055 1
|
||
a1/s0.2/f0.9 0.063 0.279 0.233 0.196 0.180 0.155 0.055 1
|
||
```
|
||
|
||
Identical to within 0.005 at every lag, as the algebra requires. `rho_fast` is not a
|
||
lever on arousal timing, so the sweep over `rho_a × rho_slow` is the whole search
|
||
space and the "best-timed setting" is best over all of it.
|
||
|
||
### Verdict against the pre-registered criterion
|
||
|
||
> **SUCCESS** = arousal's peak moves to within 3 steps of the switch **and** the paired
|
||
> `grp_k0 / grp_k` steady ratio exceeds 1.10 on at least 12 of 16 seeds.
|
||
|
||
- Peak within 3 steps of the switch: **met** — lag 1, from lag 11.
|
||
- Ratio > 1.10 on ≥ 12/16 seeds: **not met** — 0/16 at the pre-declared κ=4, 0–1/16
|
||
at every κ and both settings, largest ratio anywhere 1.107.
|
||
|
||
**Part 1 is a FAILURE, and it is the failure the brief named as the informative one:
|
||
the mechanism works, is correctly timed, and the domain gives it nothing.** A1 is
|
||
closed on this domain by a stronger argument than `a1.md` had, because the one
|
||
remaining explanation — that the signal arrived too late — has now been removed and
|
||
the result did not move.
|
||
|
||
## 2. Part 2 — measuring `T_id`
|
||
|
||
Nothing in `identify.py` constructs an Organism. `T_id` is a property of the domain.
|
||
|
||
### 2a. What the observer has, and what "optimal" means here
|
||
|
||
At step `t` the observer has the coordinates `c_{t−L+1} … c_t` and therefore the
|
||
displacements `d_s = wrap(c_{s+1} − c_s)` for `s = t−L+1 … t−1`. **`d_t` is never
|
||
available** — that is what the organism is asked to predict, and handing it over would
|
||
hand over the answer. So `L = 1` is the instantaneous configuration alone and each
|
||
extra step of window buys exactly one more observed displacement.
|
||
|
||
The dynamics factor as
|
||
|
||
```
|
||
d_i(s) = sum_c K[t_i, c] · B_i^c(s) + eps, B_i^c(s) = dt · sum_{j: t_j = c} kern(r_ij) r_ij
|
||
```
|
||
|
||
`B` is the message basis — everything about the configuration the coupling multiplies
|
||
— and is computable from coordinates alone, so it is observer-side information. It is
|
||
the same decomposition `ceilings.py` fits. Self-check, the analogue of that file's row
|
||
A: the basis reproduces the world's own displacements at residual **4.0024e-06**
|
||
against `noise² = 4.0e-06`, asserted on every rollout.
|
||
|
||
Four decoders, in ascending order of what they are told:
|
||
|
||
| tag | features | estimator | knows the coupling matrices? |
|
||
|---|---|---|---|
|
||
| `lin` | raw window: `B` at each step, the observed displacements, the type one-hot | least squares | no |
|
||
| `mlp` | the same raw window | 2×128 ReLU MLP | no |
|
||
| `phys` | `<d, B^c>` and `<B^c, B^c'>` summed over the window, interacted with the type one-hot | multinomial logistic | no |
|
||
| `bayes` | the exact Gaussian likelihood over the window | closed form | **yes** |
|
||
|
||
`phys` is the fair stand-in for "optimal", and the reason is algebraic rather than
|
||
empirical: the log-likelihood of regime `g` is affine in exactly those statistics with
|
||
coefficients depending on `g` and on the entity's own type, so a linear classifier on
|
||
them **can express the exact Bayes rule**. `bayes` computes that rule directly and is
|
||
the cross-check. `lin` and `mlp` are the honest non-omniscient decoders, and the MLP is
|
||
the capacity check the brief asked for before concluding anything from a linear probe.
|
||
|
||
Chance is measured, not assumed — the two nulls `frozen.py` uses, both refitting from
|
||
scratch: a label shuffle, and a circular shift that preserves each regime's block
|
||
structure and is the stricter of the two. The shift null is quoted in brackets.
|
||
|
||
### 2b. The table
|
||
|
||
8 seeds, 4000 world steps, `t_min/t_max = 40/80`. "hist" is the steps of history
|
||
`L` observations actually provide. `sw.frac` is the fraction of windows spanning a
|
||
regime change. Per-step accuracy pools the 16 entities of a step, which is what an
|
||
observer watching the whole world does; per-entity is one classification per entity.
|
||
|
||
```
|
||
per-step accuracy (measured chance in brackets)
|
||
L hist sw.frac lin mlp phys bayes
|
||
-----------------------------------------------------------------------------------
|
||
1 0 0.000 0.229[0.224] 0.552[0.259] -- --
|
||
2 1 0.016 0.231[0.227] 0.831[0.266] 0.909[0.230] 0.958
|
||
3 2 0.033 0.231[0.232] 0.856[0.268] 0.926[0.233] 0.961
|
||
5 4 0.065 0.232[0.233] 0.874[0.250] 0.923[0.236] 0.952
|
||
10 9 0.147 0.234[0.232] 0.863[0.257] 0.888[0.237] 0.915
|
||
20 19 0.311 0.238[0.227] 0.814[0.260] 0.798[0.249] 0.842
|
||
40 39 0.640 0.237[0.227] 0.708[0.274] 0.632[0.237] 0.699
|
||
|
||
per-entity accuracy (measured chance in brackets)
|
||
L hist sw.frac lin mlp phys bayes
|
||
-----------------------------------------------------------------------------------
|
||
1 0 0.000 0.242[0.231] 0.405[0.251] -- --
|
||
2 1 0.016 0.251[0.233] 0.563[0.253] 0.566[0.230] 0.566
|
||
3 2 0.033 0.251[0.236] 0.590[0.253] 0.614[0.233] 0.629
|
||
5 4 0.065 0.251[0.238] 0.605[0.246] 0.643[0.234] 0.684
|
||
10 9 0.147 0.248[0.236] 0.598[0.251] 0.639[0.237] 0.718
|
||
20 19 0.311 0.247[0.230] 0.553[0.248] 0.581[0.239] 0.702
|
||
40 39 0.640 0.243[0.229] 0.476[0.252] 0.486[0.233] 0.601
|
||
```
|
||
|
||
Per-seed `bayes` per-step at `L=2`: `0.97 0.98 0.98 0.98 0.95 0.97 0.93 0.90`, and
|
||
`phys` `0.93 0.97 0.96 0.98 0.92 0.93 0.79 0.78`. It is not an average over a few
|
||
lucky seeds.
|
||
|
||
**`T_id = 2` observations — one step of history.** A single observed displacement takes
|
||
per-step accuracy from 0.55 to 0.96. `L = 3` adds 0.003 and every longer window is
|
||
*worse*, because the assumption that one regime governs the window stops holding
|
||
(`sw.frac` reaches 0.64 at `L = 40`). The saturation point is not a plateau; it is a
|
||
peak at `L = 2–3`, and the decline past it is the domain telling you that more history
|
||
is actively harmful once the window outruns the regime.
|
||
|
||
Three details worth carrying:
|
||
|
||
- **The linear decoder on the raw window never rises** — 0.23 against 0.23 at every
|
||
`L`. Exactly the case the brief warned about: a linear probe here would have said
|
||
the regime is unidentifiable, and it would have been wrong by 0.7 in accuracy. The
|
||
MLP and `phys` are what settle it, and `bayes` bounds them.
|
||
- **`phys` tracks `bayes` to within 0.05 and never beats it**, which is the
|
||
cross-check the construction demanded.
|
||
- **The instantaneous read-off is much larger than the organism's.** At `L = 1`, with
|
||
no displacement at all, the MLP reaches 0.552 per-step and 0.405 per-entity against
|
||
a measured chance of 0.25. `frozen.md` §2 decoded the regime from the organism's own
|
||
`h` at 0.342 and from `M` at 0.332, against 0.274 — a gap of +0.07 where the
|
||
configuration in front of it supports +0.15. The organism is discarding most of the
|
||
regime information already visible in a single frame.
|
||
|
||
### 2c. `T_id` at each duration Part 3 sweeps
|
||
|
||
`bayes` per-step, 4 seeds, 4000 steps. `argmax L` is where accuracy saturates.
|
||
|
||
```
|
||
T_z L=2 L=3 L=5 L=10 L=20 L=40 argmax L
|
||
----------------------------------------------------------------------------
|
||
4-8 0.825 0.722 0.538 0.250 0.300 0.267 2
|
||
10-20 0.930 0.890 0.821 0.644 0.313 0.339 2
|
||
40-80 0.978 0.974 0.959 0.922 0.858 0.726 2
|
||
150-300 0.973 0.989 0.989 0.980 0.963 0.930 5
|
||
600-1200 0.960 0.991 0.997 0.995 0.992 0.985 5
|
||
```
|
||
|
||
`T_id` is 2 across the sweep, drifting to 5 at the longest durations where a longer
|
||
window is finally safe to use. **`T_id` is between 1 and 4 steps of history at every
|
||
duration Part 3 tests**, and is undefined at the frozen regime, which has nothing to
|
||
identify.
|
||
|
||
### 2d. `G` at each duration
|
||
|
||
`ceilings.py`, rows D → C, 1200 steps, seeds 0–2. The oracle prize against the noisy
|
||
target:
|
||
|
||
```
|
||
T_z 4-8 10-20 40-80 150-300 600-1200 frozen
|
||
--------------------------------------------------------------
|
||
G 1.95 1.62 1.56 1.48 1.24 1.00
|
||
```
|
||
|
||
The 40–80 value reproduces `headroom.md` §3's 1.56x exactly. `G` decays monotonically
|
||
with duration and reaches **exactly 1.00 at the frozen regime**, which is the
|
||
self-consistency check: a regime that never changes carries no information, so a
|
||
regime oracle can be worth nothing. Every row A self-check passes.
|
||
|
||
### The reading the brief pre-registered
|
||
|
||
> `T_id << T_z` — the domain *can* reward memory, and the failure is ours rather than
|
||
> the domain's. That points at the architecture or the training signal, and it is a
|
||
> much more uncomfortable and more useful result.
|
||
|
||
`T_id = 2`, `T_z = 40–80`. **`T_id` is 20 to 40 times smaller than `T_z`, and `G` is
|
||
1.56.** The domain satisfies the pre-registered condition, comfortably, on both
|
||
quantities. The regime is identifiable from one observed step and then holds still for
|
||
another forty. This is the uncomfortable branch, and §2b's last bullet says where to
|
||
look: the organism's own representation carries less than half the regime information
|
||
that a decoder recovers from the same frame.
|
||
|
||
## 3. Part 3 — the falsifiable test
|
||
|
||
The capacity-controlled state gain `grp_k0_nostate / grp_k0`: identical architecture,
|
||
identical 5602 parameters, differing only in whether `M` is carried between steps.
|
||
A `grp_k0` vs `rp_only` number is confounded 3.9x (`frozen.md` §5) and is not this
|
||
measurement. κ = 0 in both arms; affect is at its defaults and plays no part here.
|
||
|
||
Shortening the regime changes the world's timescale, so the metrics were re-checked
|
||
rather than re-used. Two things were done about it:
|
||
|
||
- **The recovery window is enforced per duration.** `regime.run` refuses
|
||
`window >= t_min`; the same rule is applied here, and each run stores its metrics at
|
||
every window shorter than its own `t_min`. Tables quote **window 1** because it is
|
||
the only window a duration of 2–3 admits and therefore the one column every duration
|
||
can be compared on; windows 3 and 9 are given alongside and agree.
|
||
- **Switch counts are reported rather than implied.** At 600–1200 there are ~4
|
||
switches in the measured half — enough for `steady`, which averages over thousands
|
||
of steps, and not enough for a recovery curve. **No `recovery[k]` number is quoted
|
||
from the two longest durations**, and the state gain is read off `steady` throughout.
|
||
|
||
```
|
||
regime duration state gain median seeds won per-seed range
|
||
------------------------------------------------------------------
|
||
2-3 1.09 1.06 10/16 0.76 - 1.66
|
||
4-8 1.10 1.04 10/16 0.87 - 1.72
|
||
10-20 1.09 1.01 10/16 0.83 - 1.56
|
||
40-80 1.17 1.11 11/16 0.91 - 1.88
|
||
150-300 1.22 1.20 10/16 0.32 - 2.86
|
||
600-1200 1.12 1.01 8/16 0.62 - 1.77
|
||
frozen 1.26 1.12 11/16 0.69 - 1.99
|
||
```
|
||
|
||
Read down the `state gain` column. It does not have a peak. It is flat at 1.09-1.26
|
||
across regime durations spanning four orders of magnitude, and every difference between
|
||
durations is smaller than the per-seed range within any one of them: at 150-300 the
|
||
individual seeds run from 0.32 to 2.86, which is wider than the entire spread of the
|
||
column means. On a paired count the picture is the same, 8 to 11 seeds of 16 at every
|
||
duration -- a coin flip that never becomes anything else.
|
||
|
||
The decisive row is the last one. **The largest state gain in the sweep is at the frozen
|
||
regime**, where there is no regime to identify, no switch to recover from, and `G`
|
||
measures exactly 1.00. A quantity that is at its largest when its supposed cause is
|
||
entirely absent is not caused by it.
|
||
|
||
What the state gain measures is therefore not regime tracking. It is temporal smoothing:
|
||
carrying `M` averages the representation over recent steps, which reduces variance
|
||
against a noisy target, and a stationary world rewards that at least as well as a
|
||
switching one does.
|
||
|
||
## 4. So: when does per-entity memory have a job?
|
||
|
||
The task was built on a theory, pre-registered before any run: memory has a job when the
|
||
hidden variable is identifiable much faster than it changes (`T_id << T_z`) and knowing it
|
||
is worth something (`G` materially above 1). The prediction was a peak in state gain at
|
||
intermediate regime durations.
|
||
|
||
**The theory is wrong as stated, and the three parts falsify it from three directions.**
|
||
|
||
Its condition is satisfied here -- comfortably. `T_id` is 2 to 3 observations against a
|
||
`T_z` of 40-80, a margin of twenty-fold or more, and `G` is 1.54x. By the theory this
|
||
domain should be close to ideal for per-entity memory. It is not: the state gain is 1.17
|
||
at that duration, on 11 seeds of 16, and it is *higher* at the frozen regime where the
|
||
condition is not satisfied at all. A criterion that is met exactly where the effect is
|
||
absent, and unmet exactly where the effect is largest, is not the criterion.
|
||
|
||
What the three parts establish together is more useful than the theory they refute.
|
||
|
||
**The domain is the rememberable kind.** Part 2 settles the question the poker framing
|
||
raised: is the evidence for the hidden variable already in the present, making history
|
||
redundant, or does it live only in the past? Here it lives in the past. One observed
|
||
displacement carries the regime almost perfectly -- 0.958 for an exact decoder, 0.909 for
|
||
one that has never seen a coupling matrix -- while the instantaneous configuration alone
|
||
supports 0.574 at best. History nearly doubles the present's above-chance information.
|
||
This is not a domain where feedforward suffices in principle.
|
||
|
||
**The organism captures almost none of it.** `frozen.md` Part B decoded the regime from
|
||
the GRP's memory at 0.332. The same regime is available at 0.909 from a single step of
|
||
history, using a decoder with no privileged knowledge. `M` holds roughly a fifth of the
|
||
signal that a fair observer extracts from one step of the past, and no more than the
|
||
memoryless RP's own `h` holds.
|
||
|
||
(Both figures are **linear-probe** numbers. An MLP probe reads +0.159 from `M` and +0.234
|
||
from `h` on the same runs — see `frozen.md` §7. The relative claim is unchanged; the
|
||
absolute fraction needs the qualifier.)
|
||
|
||
**So the failure is ours, not the domain's.** That is the uncomfortable branch, and it was
|
||
named in advance precisely so it could not be avoided afterwards: `T_id << T_z` was
|
||
pre-registered as meaning "the domain can reward memory and the failure is ours". It came
|
||
out that way. This matters beyond this file, because the project's standing reflex when
|
||
memory failed to help was to reach for a different domain. That reflex is now closed off.
|
||
The information was here all along.
|
||
|
||
The mechanism is visible in the other files rather than derived here, and the three
|
||
observations compose:
|
||
|
||
- The gate's learned pre-activation never leaves zero, at any `kappa`, after any amount of
|
||
training (`a1.md` §1b). Nothing about what to keep is ever decided.
|
||
- The margin the GRP does win is its gated post-RP nonlinearity, not carried state and not
|
||
parameter count (`frozen.md` §1d).
|
||
- Affect can move the gate, exactly and on cue once its time constants are set (Part 1
|
||
above), and moving it changes nothing, because there is no stored quantity for an opened
|
||
gate to admit or a closed one to protect.
|
||
|
||
The regime is identifiable from an observed displacement -- which arrives one step after
|
||
the prediction it would have helped. Carrying that one step forward is precisely what
|
||
per-entity memory is for, and precisely what the gate would have to learn to do. It never
|
||
does. Whether that is a credit-assignment failure, a consequence of the per-step loss term
|
||
dominating the temporal one, or a mismatch between a global hidden variable and a
|
||
per-entity state, this file does not determine. It establishes only that the question is
|
||
now about the organism and no longer about the domain.
|
||
|
||
---
|
||
|
||
*Write-up note: the agent that ran these measurements died mid-write when the machine
|
||
slept, leaving §3's table and §4 unwritten. Both were completed from the committed JSON
|
||
by the session controller, which independently recomputed Part 3's table from
|
||
`w_duration_all.json` and `w_duration_frozen.json`, Part 1's paired ratios and arousal
|
||
profiles from `w_best.json` and `w_timing.json`, and Part 2's decoder series from
|
||
`identify.json`. No sweep was re-run and no number was carried over unverified.*
|