Task 11. Both parts of the brief, 16 seeds each, plus a positive control. One control is incomplete and is marked as such in results/credit.md and in .sdd/task-11-report.md. Part A falsifies hypothesis (a). The gradient reaching grp.gate.weight is coherent above its own measured sign-flip null on 14/16 seeds (0.202 against 0.163, paired se 0.009), and 0.587 of it arrives through the truncated-BPTT window rather than from the current step -- the temporal term is 1.187x the per-step one, where (a) predicted it negligible. Every window is replayed twice at the same parameters from the same recorded observations, carried and detached, and pinned bit-identical against the gradient Adam actually used (max relative difference exactly 0.0, 6400 windows). The gate's gradient is 887x smaller than the identically-shaped candidate layer's, and that is not the explanation: Adam is scale invariant, the per-coordinate SNR is 0.066 against cand's 0.070, and gate.weight travelled 26.8% of its initial norm over training -- further than any other block measured. "The weights did not move", which frozen.md §3 and a1.md both lean on, is false. What did not move is the function: on the same inputs, trained weights give g = 0.5008 +- 0.0270 where the initial weights give 0.5009 +- 0.0203. The displacement stayed inside the sigmoid's linear band. Part B gives the brief's third outcome: M cannot hold the regime even under direct supervision. The auxiliary head never leaves chance at any lambda from 1e-5 to 1.0, with no trend over 8000 steps; the frozen-phase decode moves by -0.001 +- 0.019. The positive control -- the same head, optimiser, seeds and probe, supervising the entity's own type instead -- installs it and raises the regime decode by +0.073 +- 0.022 on 14/16 seeds in passing. The control that had no business moving that number is the only one that moved it. Incomplete: the non-linear control (2x128 head and probe) reached 10 of 16 seeds per shard and was stopped. Its section reports no numbers and the verdict states the limitation it carries. frozen.py gains two _train keywords (aux, extra_params), both defaulting to off so test_train_copy_is_identical_to_regime_run still pins the loop, and one line in _scores so an estimator may be a callable. results/*.json and the partial sweep logs are committed past .gitignore as checkpoint data.
35 KiB
Credit assignment: is there a signal, and is there a ceiling?
Task 11. results/pooled.md measured hypothesis (b) dead — the regime is not distributed
across the sixteen per-entity states, it is absent from them. Hypothesis (a) was what
remained:
Nothing in the training signal rewards carrying the regime forward, so the state never learns to hold it.
This file measures the ceiling on (a) before anything is built, following the standing methodology: a mechanism ships with an oracle that is given what the mechanism is supposed to infer, and if the oracle does not pay, the mechanism has no job. Direct supervision is used here as a measuring instrument, an oracle on the state. It is not a proposed architecture and nothing below recommends one.
Verdict: hypothesis (a) is not supported, and what replaces it is narrower and harder.
Part A finds the gate is neither starved of gradient nor cancelling it: the temporal path
supplies 59% of the gradient the gate receives, and after 8000 steps gate.weight has
travelled further from its initialisation than any other block measured — 27% of its own
norm, against out.weight's 15%. Part B gives the brief's third outcome. Supervised
directly, at every weight from 1e-5 to 1.0, M does not come to hold the regime: the
auxiliary head never leaves chance, and the frozen-phase decode moves by −0.001 ± 0.019.
The same head, at the same weights, installs the entity's own type into M (0.738 against
a chance of 0.333) and — the control that matters — raises the regime decode by
+0.073 ± 0.022 while doing it. The instrument can move the number being read. Regime
supervision does not move it.
The credit does reach the gate and does flow through time. What it cannot do is put this hidden variable into this state.
Environment: experiments/, ailed/ unmodified, no default in particles.py or
regime.py changed. grp_k0, 16 seeds (0-15), 8000 training steps then 4000 frozen steps,
lr=1e-3, bptt=20, hidden=32, omega=10, kappa=0. Test split is the last 30% of the
frozen phase, taken as a suffix in time. Part A: 16 runs, 400 optimiser steps each, three
gradients per step. Part B: 296 training runs.
uv run python credit.py --part grad --seeds 0,...,15 --out results/credit_grad.json
uv run python credit.py --part aux --target regime --seeds 0,...,15 \
--out results/credit_aux_regime.json
uv run python credit.py --part aux --target type --seeds 0,...,15 \
--out results/credit_aux_type.json # positive control
uv run python credit.py --part aux --target regime --head mlp --mlp-probe \
--lambdas 0.0,0.01,0.1,1.0 --seeds 0,...,15 # non-linear control
uv run python credit.py --part traj --seeds 0,1,2,3 --lambdas 1.0 \
--out results/credit_traj.json
credit.py adds no training loop. _build, _train, _frozen, _metrics and probe are
imported from frozen.py and regime.py and called unchanged. Two keywords were added to
_train — aux, which adds a scalar to the loss that goes into pending, and
extra_params, which puts the head in the optimiser — both defaulting to off, so
test_train_copy_is_identical_to_regime_run still pins the loop against regime.run.
frozen._scores was extended by one line to accept a callable estimator, which is what
lets the non-linear control use the published probe rather than a fork of it.
0. The pins, and how each was made able to fail
Four properties carry the numbers below. Each is asserted in code on every run, and each assertion has a test that breaks it on purpose.
| check | how | result |
|---|---|---|
| the replay is the real training step | every window is replayed at the same parameters from the recorded observations, and the replayed M is torch.equal to the M the organism computed |
bit-identical, 400/400 windows on 16/16 seeds |
| the replayed gradient is the one Adam used | a per-parameter hook reads the real backward and compares it against the replay's | max relative difference exactly 0.0, on all 6400 windows |
| detaching changed only the graph | the carried and detached window losses must be torch.equal |
holds on every window |
lambda = 0 is the published baseline |
part_b(seed, 0.0) against frozen.run_one("grp_k0", seed) |
steady, recovery, probe accuracy and chance level all bit-identical |
test_the_replay_pin_can_fail perturbs the replay's starting M by 1e-3 and the pin
raises, as required. test_the_readout_block_has_no_temporal_path is the structural
control on the carried/detached split with a known answer: out.weight multiplies M at
the current step and nothing else, so its temporal term must be exactly zero — it is —
while the gate's, applied at every step of the window, must not be. If both had come out
zero the split would have been measuring nothing.
test_coherence_is_one_for_a_constant_gradient_and_at_the_null_for_noise pins the ratio at
both ends. Full suite: 78 passed (70 existing, 8 new); no existing test was modified.
1. Part A — is there a gradient signal at all, or is it cancelling?
Two failures look identical from "the weights did not move": the gradient reaching the gate
is ~0 (absent), or it is substantial per step and averages to nothing (cancelling). The
ratio of ‖mean gradient‖ to mean ‖gradient‖ is what separates them, and it is the whole
of this part.
gate and cand are grp.gate.weight and grp.cand.weight; feat and out are
rp.feat.weight and out.weight, the reference blocks. Both gate and cand take [h ‖ M],
so their column halves are reported separately — [M] is the only place a temporal path
can enter them. 16 seeds, 400 optimiser steps each.
1a. The ratio, against each block's own measured null
The coherence floor is not zero: averaging n directions that agree about nothing still
leaves ~1/sqrt(n), and how much it leaves depends on how unevenly that block's gradient
magnitude is spread over the run. So the floor is measured the way every other chance level
in this repo is — by destroying the effect and keeping everything else. Each optimiser
step's gradient vector is multiplied by a random sign, which removes any consistent
direction and leaves every magnitude exactly as it was; 40 draws.
adam snr is the same ratio taken per coordinate, |mean_t g|/rms_t(g), which is what
Adam's m/(sqrt(v)+eps) actually consumes.
block coherence null excess paired se >null adam snr null excess se
------------------------------------------------------------------------------------------
gate 0.202 0.163 +0.039 0.009 14/16 0.066 0.042 +0.024 0.003
cand 0.173 0.108 +0.066 0.016 16/16 0.070 0.041 +0.030 0.004
feat 0.193 0.119 +0.075 0.007 16/16 0.082 0.041 +0.040 0.003
out 0.193 0.101 +0.091 0.022 15/16 0.079 0.040 +0.039 0.007
gate[h] 0.220 0.189 +0.031 0.007 15/16 0.063 0.042 +0.021 0.003
gate[M] 0.191 0.141 +0.050 0.012 14/16 0.069 0.042 +0.027 0.004
cand[h] 0.146 0.110 +0.036 0.008 14/16 0.062 0.041 +0.021 0.002
cand[M] 0.189 0.106 +0.083 0.020 15/16 0.078 0.040 +0.038 0.006
Per-seed coherence, gate then the three others:
block s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15
-----------------------------------------------------------------------------------------------------------------------------------------
gate 0.259 0.160 0.258 0.196 0.221 0.234 0.176 0.279 0.184 0.150 0.124 0.226 0.190 0.240 0.163 0.173
cand 0.210 0.134 0.206 0.179 0.102 0.295 0.251 0.210 0.154 0.123 0.085 0.133 0.115 0.167 0.095 0.316
feat 0.203 0.228 0.248 0.191 0.146 0.180 0.204 0.279 0.157 0.202 0.157 0.208 0.146 0.194 0.199 0.153
out 0.252 0.107 0.236 0.206 0.088 0.334 0.321 0.216 0.161 0.147 0.063 0.127 0.136 0.178 0.113 0.393
The signal at the gate does not cancel. Its coherence is 0.202 against its own measured
floor of 0.163, above that floor on 14 seeds of 16, with a paired standard error of 0.009 —
and 0.202 is the highest raw coherence of the four blocks. Read as an excess over its own
null it is the smallest, +0.039 against out's +0.091 and cand's +0.066, so the gate's
signal is somewhat less consistent than the rest of the network's; but it is a signal, on
the same order as the blocks that certainly train, not a quantity averaging to nothing.
Every block in this network is mostly-cancelling — coherence 0.15-0.26 against nulls of
0.10-0.19 — which is what 400 minibatch gradients look like, and the gate is not an
exception to it.
1b. And "negligible" is a thousandfold — which turns out not to matter
block n_par mean ‖g‖ per-par x gate x gate/par |dW|/|W|
----------------------------------------------------------------------
gate 2048 3.412e-06 7.539e-08 1.0 1.0 0.2682
cand 2048 3.026e-03 6.686e-05 886.9 886.9 0.1904
feat 96 3.670e-04 3.746e-05 107.6 496.8 0.0443
out 64 4.353e-03 5.441e-04 1275.8 7217.3 0.1529
gate[h] 1024 2.287e-06 7.148e-08 0.7 0.9 0.2408
gate[M] 1024 2.472e-06 7.724e-08 0.7 1.0 0.2921
cand[h] 1024 1.815e-03 5.672e-05 532.0 752.4 0.1792
cand[M] 1024 2.390e-03 7.468e-05 700.5 990.6 0.1996
gate and cand have identical shapes and read identical inputs, so their ratio is the
like-for-like one: the gate's gradient is 887 times smaller than the candidate layer's
sitting beside it, and 1276 times smaller than the readout's. The mechanism is in the
architecture — ∂L/∂(gate pre-activation) = (∂L/∂M) · (M − M̃) · g(1−g), and with g
pinned near 0.5 the update is a fixed 50/50 blend under which M and M̃ stay close, so
the factor the gate's gradient carries is a difference that the gate's own inaction keeps
small.
But a magnitude on its own says nothing here, and the last column is why. Adam's step
is lr · m/(sqrt(v)+eps), which is invariant to a uniform rescaling of the gradient: what
survives is consistency, not size. Measured per coordinate, the gate's signal-to-noise is
0.066 against cand's 0.070 and out's 0.079 — the same order. And the consequence is
visible in the weights: over 8000 steps gate.weight moved 26.8% of its initial norm,
more than any other block measured, against cand's 19.0%, out's 15.3% and feat's
4.4%.
This retires the premise both of Part A's two failure modes were built to explain. It is not true that the gate's weights did not move. They moved the furthest.
1c. What moved, and what did not
The gradient measurement says how much signal arrived; this says what arriving changed. The
gate's pre-activation W_g[h‖M] + b_g − κa is evaluated on the same inputs — the ones the
trained organism actually produces, the last 500 training steps — under the trained weights
and under the weights at initialisation. 16 seeds, 256 000 gate evaluations each.
quantity trained at init
------------------------------------------
pre-activation mean 0.0030 0.0038
pre-activation sd 0.1083 0.0811
g mean 0.5008 0.5009
g sd 0.0270 0.0203
rms change in pre 0.0787
corr(trained, init) 0.7001
The trained row reproduces frozen.md §3's g = 0.500 ± 0.029 on 16 seeds. The point is
the column beside it. After a 27% displacement of its weight matrix, the gate computes a
function whose output distribution is where it started: g mean 0.5008 against 0.5009,
and an sd of 0.0270 against 0.0203. The pre-activations did change — they correlate at 0.70
across the displacement, with an rms change of 0.079 that is as large as the sd itself — but
they changed within a band of ±0.1 around zero, which is where the sigmoid is linear and
the update M ← (1−g)M̃ + gM is a fixed blend regardless.
The gate is not stuck because nothing pushed it. It is stuck because the pushing moved it sideways: 8000 steps of a real, temporally-informed, Adam-rescaled gradient rearranged 2048 weights without once taking the pre-activation out of the neighbourhood of zero where the gate does not gate.
1d. The temporal path
Paired inside a single run. At every optimiser step the same window is replayed twice at the
same parameters from the same recorded observations — once with M carried across the
window, once with M detached at every step. Detaching changes the graph and nothing else:
every forward value is bit-identical, asserted against the M the organism computed, and
the two window losses are torch.equal. The difference is the credit that flows through
time.
block ‖carried‖ ‖per-step‖ ‖temporal‖ temporal/per-step se temporal/carried
---------------------------------------------------------------------------------------
gate 3.412e-06 1.682e-06 2.033e-06 1.187 0.036 0.587
cand 3.026e-03 1.510e-03 1.753e-03 1.142 0.028 0.572
feat 3.670e-04 1.871e-04 2.116e-04 1.136 0.043 0.576
out 4.353e-03 4.353e-03 0.000e+00 0.000 0.000 0.000
gate[h] 2.287e-06 1.126e-06 1.362e-06 1.189 0.037 0.586
gate[M] 2.472e-06 1.221e-06 1.473e-06 1.184 0.036 0.587
cand[h] 1.815e-03 9.081e-04 1.053e-03 1.141 0.028 0.572
cand[M] 2.390e-03 1.191e-03 1.384e-03 1.142 0.028 0.572
Per-seed temporal/per-step for the gate:
s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15
1.395 1.204 1.162 1.252 1.009 1.226 1.268 1.521 1.284 1.153 1.122 1.095 1.103 0.994 0.973 1.227
Hypothesis (a) predicted the temporal term would be negligible next to the per-step one.
It is 1.187 times larger, on 14 seeds of 16, with a paired standard error of 0.036. Just
under three-fifths of the gradient the gate receives — 0.587 of it — arrives through the
carried state rather than from the current step. The out.weight row is the structural
control: it multiplies M at the current step and nothing else, and its temporal term is
exactly 0.000e+00 on every seed, so the split is not manufacturing a difference where there
is none.
The temporal path is also no less coherent than the per-step one: the gate's temporal gradient has coherence 0.201 against a null of 0.171, essentially the whole block's 0.202 against 0.163. Credit through time arrives, and it arrives with the same directional consistency as the rest.
1e. Part A's answer
Neither absent nor cancelling. The gradient reaching the gate is a thousandfold smaller
than its neighbours' in magnitude, but Adam does not care about magnitude; it is
directionally consistent above its own measured floor on 14/16 seeds, at a per-coordinate
signal-to-noise of 0.066 against cand's 0.070 and out's 0.079 — the lowest of the four
and measurably so, but the same order and not a different regime; a majority of it
comes through the truncated-BPTT window rather than from the current step; and it moved
gate.weight further than it moved any other block in the network. The training signal
that hypothesis (a) says is missing is there.
What is missing is any consequence. The displacement leaves the gate's output where it began.
2. Part B — the ceiling: if the state were told, could it hold it?
A linear head from M_i to the current regime id, trained jointly with the task at a weight
lambda. Seven weights, 16 seeds each. At lambda = 0 no head is built and the loop is
literally the one that produced Task 7b's baseline, pinned bit-identical.
aux(train) is the head's own accuracy over the second half of training, which is the
direct "can it" number: the head is linear on M, so its accuracy tracks the linear
separability of the regime in M — running rather than exact, since the head is chasing a
representation that is still moving, which is why the independent frozen-phase probe is
reported beside it and why §2a traces the curve rather than only its mean. probe acc is the independent least-squares probe on the
frozen phase, the number comparable with frozen.md Part B's 0.332 and pooled.md's 0.312.
2a. Reading 1 — can it?
lambda aux(train) probe acc shuffle shift gap sd >chance M_type (perm)
------------------------------------------------------------------------------------------
0e+00 nan 0.312 0.270 0.268 +0.044 0.053 13/16 0.634 0.479
1e-05 0.251 0.311 0.270 0.268 +0.043 0.053 13/16 0.634 0.479
1e-04 0.251 0.311 0.270 0.268 +0.043 0.053 13/16 0.634 0.479
1e-03 0.252 0.314 0.270 0.269 +0.045 0.053 13/16 0.635 0.480
1e-02 0.250 0.306 0.273 0.266 +0.040 0.071 13/16 0.641 0.482
1e-01 0.253 0.301 0.275 0.268 +0.033 0.029 15/16 0.661 0.486
1e+00 0.259 0.307 0.271 0.264 +0.043 0.047 12/16 0.672 0.485
The auxiliary head never leaves chance. Against 1/4, it reads 0.250 to 0.259 at every
weight over five orders of magnitude — including lambda = 1.0, where the auxiliary term at chance
is 5.8x10^4 times the main loss and demonstrably dominates the run (§2b: the task degrades
5.9x). And the independent frozen-phase decode is flat: +0.044 above the
shift null at lambda = 0, +0.043 at lambda = 1.0.
The M_type column is the same probe on the entity's own type, a signal that is in attrs
and therefore certainly in reach. Note that both of probe's time-based nulls are
degenerate for a target that is constant in time — permuting or circularly shifting the step
axis of a label array whose rows are all identical returns that same array, and they report
the accuracy back as its own chance level — so the type's chance level is measured by
permuting the assignment across entities instead, which breaks the association and keeps the
marginal. That is the (perm) column.
"Cannot" and "has not yet" are different claims, so the head's accuracy was traced over
training rather than summarised. Four seeds, lambda = 1.0, bucketed by 1000 steps:
target chance seed @1k @2k @3k @4k @5k @6k @7k @8k
--------------------------------------------------------------------------------------
regime 0.250 0 0.268 0.284 0.210 0.420 0.270 0.197 0.200 0.224
regime 0.250 1 0.202 0.380 0.239 0.279 0.248 0.291 0.403 0.222
regime 0.250 2 0.337 0.169 0.346 0.300 0.140 0.342 0.220 0.244
regime 0.250 3 0.222 0.167 0.234 0.293 0.173 0.328 0.318 0.372
type 0.333 0 0.438 0.558 0.544 0.655 0.695 0.682 0.733 0.746
type 0.333 1 0.438 0.608 0.651 0.623 0.649 0.689 0.737 0.768
type 0.333 2 0.418 0.463 0.553 0.626 0.588 0.676 0.724 0.762
type 0.333 3 0.419 0.486 0.663 0.685 0.731 0.720 0.754 0.820
The regime curve wanders around chance on all four seeds with no trend across 8000 steps. The type curve climbs monotonically on all four. This is not a budget problem.
2b. Reading 2 — does the task improve?
Main-task steady, paired per seed against lambda = 0. The log-ratio is positive when the
error fell.
lambda steady ratio l0/l won log-ratio paired se reading
-------------------------------------------------------------------------
0e+00 2.399e-05 -- -- -- -- --
1e-05 2.397e-05 1.001 9/16 +0.0008 0.0012 ambiguous
1e-04 2.396e-05 1.002 9/16 +0.0018 0.0015 lower err
1e-03 2.408e-05 0.997 4/16 -0.0028 0.0032 ambiguous
1e-02 2.956e-05 0.809 0/16 -0.2118 0.0443 higher err
1e-01 7.760e-05 0.341 0/16 -1.0759 0.1238 higher err
1e+00 1.416e-04 0.171 0/16 -1.7671 0.1040 higher err
Per-seed trained steady:
lambda s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
0e+00 2.39e-05 1.67e-05 2.11e-05 2.72e-05 1.68e-05 2.49e-05 3.53e-05 1.68e-05 2.10e-05 2.06e-05 6.20e-05 1.23e-05 2.51e-05 1.60e-05 2.73e-05 1.70e-05
1e-04 2.39e-05 1.67e-05 2.11e-05 2.71e-05 1.68e-05 2.49e-05 3.51e-05 1.68e-05 2.10e-05 2.01e-05 6.20e-05 1.23e-05 2.51e-05 1.60e-05 2.73e-05 1.70e-05
1e-02 2.42e-05 2.27e-05 2.62e-05 5.15e-05 1.99e-05 2.67e-05 3.89e-05 1.95e-05 3.37e-05 2.18e-05 6.28e-05 1.75e-05 2.88e-05 1.79e-05 4.02e-05 2.08e-05
1e-01 2.98e-04 5.67e-05 6.20e-05 6.59e-05 3.96e-05 6.05e-05 9.43e-05 5.19e-05 1.07e-04 4.76e-05 9.74e-05 3.66e-05 4.98e-05 2.58e-05 7.40e-05 7.48e-05
1e+00 1.61e-04 1.09e-04 1.22e-04 1.97e-04 1.05e-04 2.28e-04 3.13e-04 1.64e-04 1.36e-04 5.06e-05 1.36e-04 7.97e-05 1.40e-04 9.01e-05 1.16e-04 1.17e-04
Below lambda = 1e-3 the auxiliary term is too small to change anything and the reading is
ambiguous or a fourth-decimal improvement — the 1e-4 row's +0.0018 ± 0.0015 is a 0.2%
effect on 9/16 seeds and is not worth a sentence. Above it, the auxiliary term is large
enough to matter and the task gets monotonically worse, on 0 seeds of 16 at every weight
from 1e-2 up. That is what an auxiliary loss competing with the task does when it buys
nothing; the frozen phase agrees at every row.
This column is reported because the brief asked for it, not because it is informative on its own. Reading 2 only means something conditional on reading 1, and reading 1 says the state never held the regime at any weight, so there was never anything for the task to benefit from.
2c. Reading 3 — the joint reading, and the control that carries it
Both columns are paired changes against lambda = 0, per seed. The absolute gap is not the
question: the lambda = 0 row already sits +0.044 above its null, which is the
instantaneous read-off frozen.md §2 and pooled.md §4 both identified and neither
attributed to memory. The question is whether being told the regime raises it.
Regime target — the measurement:
lambda gap d(gap) vs l=0 se won task log-ratio se won
------------------------------------------------------------------------------
0e+00 +0.044 -- -- -- -- -- --
1e-05 +0.043 -0.001 0.001 6/16 +0.0008 0.0012 9/16
1e-04 +0.043 -0.001 0.001 10/16 +0.0018 0.0015 9/16
1e-03 +0.045 +0.001 0.003 8/16 -0.0028 0.0032 4/16
1e-02 +0.040 -0.004 0.014 8/16 -0.2118 0.0443 0/16
1e-01 +0.033 -0.011 0.011 5/16 -1.0759 0.1238 0/16
1e+00 +0.043 -0.001 0.019 9/16 -1.7671 0.1040 0/16
Type target — the positive control, run identically:
lambda gap d(gap) vs l=0 se won task log-ratio se won
------------------------------------------------------------------------------
0e+00 +0.044 -- -- -- -- -- --
1e-05 +0.044 -0.000 0.000 5/16 +0.0001 0.0002 5/16
1e-04 +0.043 -0.001 0.001 4/16 -0.0025 0.0014 3/16
1e-03 +0.054 +0.010 0.008 9/16 -0.0892 0.0374 3/16
1e-02 +0.115 +0.071 0.027 11/16 -1.5275 0.1440 0/16
1e-01 +0.120 +0.076 0.024 12/16 -3.0582 0.1603 0/16
1e+00 +0.117 +0.073 0.022 14/16 -3.6922 0.2028 0/16
with the type itself, in M, going from 0.634 at lambda = 0 to 0.789 at lambda = 1.0
against an entity-permutation chance of 0.48-0.51, and the head's own accuracy from 0.472 to
0.738 against 0.333.
This is the pair the verdict rests on. The same head, the same optimiser, the same
weights, the same 16 seeds, the same probe — the only difference is what the head is told to
put in M. Told the entity's type, it installs it, and it raises the regime decode as a
side effect by +0.073 ± 0.022 on 14 seeds of 16. Told the regime, it moves the regime
decode by −0.001 ± 0.019 on 9 of 16 — a change this measurement cannot tell apart from
zero. The control that had no business moving the number is the only one that moved it.
A null that survives that is not a broken instrument.
(Why type supervision lifts the regime decode is not established here and no claim is made
about it. The obvious guess is the one frozen.md §2's entity-centred variant was probing —
M is dominated by stable per-entity structure, and sharpening it changes the geometry the
regime probe fits in. It is a side effect of the control, not a result.)
2d. The linear head is not the binding constraint — MEASUREMENT INCOMPLETE
when_memory_works.md §2b is explicit that a linear decoder is the wrong instrument for
this target: on the raw observation window a linear decoder reads 0.23 at every history
length while an MLP on the same features reads 0.83, so a linear probe there "would have
said the regime is unidentifiable, and it would have been wrong by 0.7 in accuracy". A null
from a linear head on M inherits exactly that objection.
This control was run and did not finish. No numbers from it are reported here. Part B
was re-run with the auxiliary head replaced by a 2×128 ReLU network and the frozen-phase
decode taken by a second one, at lambda ∈ {0, 0.01, 0.1, 1.0} and the same 16 seeds; the
sweep reached 10 of 16 runs per shard before it was stopped. .sdd/task-11-report.md
records exactly what completed and the one command that finishes it.
What was observed in the incomplete run, recorded so it is not lost and not relied on
below: the MLP head's own training accuracy sat at 0.21-0.31 against a chance of 0.25 at
lambda = 0.01 and lambda = 0.1, the same flat reading the linear head gave. Separately,
a single full-budget seed at lambda = 0 decoded the regime from M at a gap of +0.159
above the shift null with the MLP probe where the linear probe read +0.064 on the same run,
and from the memoryless h at +0.234. §3's verdict is stated on the linear head alone
and carries that limitation explicitly.
3. Verdict
Part A: the signal exists, reaches the gate, and flows through time. Hypothesis (a) as
stated — that nothing in the training signal rewards carrying the regime forward — is not
supported. The gate's gradient is coherent above its own measured null on 14/16 seeds
(0.202 against 0.163, paired se 0.009), 59% of it arrives through the truncated-BPTT window
rather than from the current step, its per-coordinate signal-to-noise is 0.066 where the
blocks that certainly train read 0.070 to 0.082, and it moved gate.weight 27% of its norm — further than any
other block in the network. It is 887x smaller in magnitude than the identically-shaped
candidate layer's, which is worth knowing and is not the explanation, because Adam is scale
invariant. What the displacement did not do is change the gate's output: on the same inputs,
trained weights give g = 0.5008 ± 0.0270 where the initial weights give 0.5009 ± 0.0203.
Part B gives the brief's third outcome: M cannot hold the regime even under direct
supervision. The head never leaves chance at any weight over five orders of magnitude,
with no trend across 8000 steps; the frozen-phase decode moves by −0.001 ± 0.019; and the
same head at the same weights installs the entity's type into M and raises the regime
decode by +0.073 ± 0.022 in passing. The brief's reading of that outcome — "the state update
is not expressive enough; a different problem from credit assignment" — is what the numbers
give, and Part A independently rules out the credit-assignment alternative from the other
direction.
The limitation this verdict carries. It is stated on a linear head and a least-squares
probe. §2d's non-linear control was run and did not finish, so the possibility that M
holds the regime non-linearly and a linear head could not install it is not closed here.
Two things bear against it and neither settles it: the head's failure is not a readout
failure but a training-signal one — the same linear head installs the entity's type and
moves the regime decode while doing so — and the incomplete MLP-head run showed the same
flat chance reading at the two weights it reached. A reader acting on this file should
treat outcome 3 as established for a linear readout of M and open for a non-linear one,
and should finish §2d before spending anything on the consequence.
Neither part is good or bad news, and the second is the more useful of the two. A credit-assignment failure would have been repairable by an auxiliary signal, a longer BPTT window, or a different optimiser, and the natural next month would have been spent trying them. The measurement says that month would have bought nothing: the state was told, at weights that destroyed the task to make room, and it still did not hold the regime.
One paragraph of argument, flagged as argument. The following is not measured here;
it is offered because §4's second bullet turns on it and it should be visible enough to
be attacked. What the state update would have to do to hold this variable is legible in
identify.py. The regime is identifiable from one observed displacement,
but only through the statistics ⟨d, B^c⟩ and ⟨B^c, B^c'⟩ — inner products of the current
message basis with the previous step's, which are quadratic in a pair of consecutive
frames. M ← (1−g)·tanh(W_c[h‖M]) + g·M has one tanh between h_t and M_{t−1} and no
product of the two. With the gate pinned at 0.5 it is an exponential moving average of
tanh of a linear map, and an EMA of a nonlinearity is not where a cross-frame inner product
lives. If that is right it is a statement about this update rule and not about memory, and
the way to find out is to measure the ceiling on a rule that does carry such a product —
which §4 says how to do and does not do here.
4. What each outcome would have meant for keeping per-entity memory
This file is the last measurement on the memory line, so the consequence of each of the brief's three outcomes is written out rather than left to be inferred. The decision to keep or drop the GRP is not made here.
| outcome | what it would say about keeping per-entity memory |
|---|---|
M holds the regime and the task improves |
credit assignment is the blocker and the prize is measured. Keep the GRP; the work is to get the signal to it, and the size of the win is known in advance. |
M holds the regime and the task does not improve |
the regime is not useful to this architecture's prediction. That is an argument the GRP has no job on this domain regardless of how credit reaches it, and no amount of pushing from the unbuilt modules changes it. |
M cannot hold it even under direct supervision — what the numbers give |
the update rule cannot represent the variable. This says nothing about whether per-entity memory is worth keeping in general, and everything about (1−g)·tanh(W_c[h‖M]) + g·M. Giving the GRP more push from metabolism, reflexes or the policy readout would be pushing on a state that has been shown not to hold the thing they would be pushing it to hold. Replacing the update rule is a different move from dropping memory, and this file distinguishes them without choosing between them. |
5. What this does and does not bear on
Measured, across four files. frozen.md, when_memory_works.md, pooled.md and this
one measure claim A1 — that per-entity gated memory helps on a domain with an unannounced
hidden regime — and every mechanism they attach to it: the state's contribution over the
gated head (frozen.md §1a, §1d), affect on the gate (a1.md, when_memory_works.md
Part 1), the shape of the memory (pooled.md), the domain's suitability
(when_memory_works.md Parts 2-3), and now the training signal and the ceiling on the
state itself.
Not measured, and untouched by any of it. Claim A2 — the CPPN kernel taking ψ as
input — does not route through memory. Nothing in this file, pooled.md, frozen.md or
when_memory_works.md bears on it in either direction; the grp_k_noctx and
grp_k_regimectx conditions exist in regime.py and have not been run against it. A
decision to drop the GRP would not cost A2, and this file should not be read as evidence
for or against it. Spec §6's other organism modules — metabolism, reflexes S1/S2, the
instinct/EQ policy readout — are likewise unbuilt and unmeasured; §4's third row is a
statement about what pushing them into this state update could achieve, not an
evaluation of the modules.
6. Consequences
- Do not build a mechanism to fix credit assignment on this domain. An auxiliary
regime loss, a longer BPTT window, a gate-specific learning rate, or a gradient-boosting
reparameterisation of the gate are all motivated by (a), and (a) is measured dead here in
both directions: the credit arrives (§1) and being handed the answer changes nothing (§2).
The oracle did not pay, so the mechanism has no job — the same test
headroom.mdandwhen_memory_works.mdapplied, reaching the same kind of answer. - The remaining question is about the update rule, and it is a design question rather
than a training one. Nothing here says a per-entity state cannot hold this regime;
it says
(1−g)·tanh(W_c[h‖M]) + g·Mdoes not, and §3 gives the algebraic reason to expect that. A state update carrying an explicit product of the current frame with the previous one is the shape the domain asks for. That is a hypothesis, and it comes with the same obligation as every other in this repo: measure the ceiling before building it. The ceiling measurement is the one in §2 — supervise a candidate state to hold the regime and decode it back out — andcredit.py --part auxruns it against any update rule thatailedexposes, with the type target already in place as its positive control. frozen.md§3's "the gate is untrained" needs one word changed. The gate's pre-activation is at its initialisation, which is what that section measured and it is correct. Its weights are not: they travel further than any other block's. "Untrained" should read "trained without effect", and the distinction matters, because the first invites a fix to the training and the second does not.- A magnitude is not a diagnosis under an adaptive optimiser. The gate's 887-fold gradient deficit is the kind of number that would have carried a claim, and it would have been the wrong claim: the block with the smallest gradient in this network is the one that moved the furthest. Any future gradient argument in this project needs the displacement beside it.