Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cf6b0e6a0b | ||
|
|
a394fe70ed | ||
|
|
7c27f30c29 | ||
|
|
77fed7d631 | ||
|
|
ceed1af5b8 |
No files matched your search
@@ -495,3 +495,101 @@ DECISION (Diego, 2026-09-02): no co-authoring trailer on commits. Applied retroa
|
|||||||
Deliberately NOT stripped: the task *reports* and this ledger. They are a record of what
|
Deliberately NOT stripped: the task *reports* and this ledger. They are a record of what
|
||||||
happened, and the trailer disagreement between subagents is part of that record — editing
|
happened, and the trailer disagreement between subagents is part of that record — editing
|
||||||
them would falsify it. Only forward-looking instructions were changed.
|
them would falsify it. Only forward-looking instructions were changed.
|
||||||
|
|
||||||
|
NEXT (Diego, 2026-09-02): run test 1 (pooled-M probe) and see if it resolves the open
|
||||||
|
question; if not, go deeper. Noted for later, his words: "hacen falta tambien los demas
|
||||||
|
modulos pero eso lo vemos despues de estos pasos" — spec §6 lists Metabolism, Reflexes
|
||||||
|
S1/S2, and the Instinct/EQ policy readout as "defined, not built". They are deferred until
|
||||||
|
the memory question is settled, not forgotten.
|
||||||
|
|
||||||
|
Task 10 (pooled-M probe) design note: the decisive control is pooling h the SAME way. If
|
||||||
|
pooling improves decoding from both M and h, pooling is just averaging away noise and says
|
||||||
|
nothing about memory holding a global variable. The result only means something if pooled M
|
||||||
|
gains what pooled h does not.
|
||||||
|
|
||||||
|
Task 10 (pooled-M probe): DONE, commit b9b7929. CLEAN NULL — hypothesis (b) is DEAD.
|
||||||
|
gain = gap(pooled) - gap(single), gap = acc - measured shift null, per seed then averaged.
|
||||||
|
16 seeds, least squares:
|
||||||
|
mean-pooled M +0.045 (sd 0.043) h +0.048 (sd 0.060) M-h = -0.003 M ahead 8/16
|
||||||
|
concatenated M -0.010 (sd 0.053) h -0.009 (sd 0.063) M-h = -0.001 M ahead 8/16
|
||||||
|
Paired across-seed se on M-h is 0.015, so both sit inside one se of zero. Logistic flips the
|
||||||
|
sign of M-h to +0.005. Pooling ITSELF is real (positive on 14/16 for M, 13/16 for h) and is
|
||||||
|
entirely noise-averaging.
|
||||||
|
Controller verification on seeds 16-19, which the task did not use: M +0.035, h +0.052,
|
||||||
|
M-h = -0.017. Same picture, and if anything further against (b).
|
||||||
|
WHY THE NULL IS TRUSTWORTHY: a positive control. A synthetic where the regime's two bits are
|
||||||
|
genuinely split across entities (0-7 hold bit 0, 8-15 hold bit 1, no entity holds both) gains
|
||||||
|
+0.589 through the same pooling and the same probe — 13x the measured effect. A "redundant"
|
||||||
|
synthetic (whole code in every entity plus noise) gains +0.283 and lifts everything. The real
|
||||||
|
data carries the REDUNDANT signature, not the distributed one. A test breaks the pooling on
|
||||||
|
purpose and confirms the control notices.
|
||||||
|
Concat was sample-starved at 513 params on 2800 samples; re-run at 16000 frozen steps it
|
||||||
|
recovers to parity, not past it. Same null, tighter.
|
||||||
|
METHODOLOGY FINDING that corrects our own rule: EIGHT SEEDS REPORTED THE WRONG SIGN.
|
||||||
|
Seeds 0-7 alone read +0.010 in M's favour on 5/8 — faint support for (b). Seeds 8-15 flip it
|
||||||
|
to -0.003. Nothing changed but the seed count. Both AGENTS.md files updated: eight seeds does
|
||||||
|
not reliably support a direction, and a null needs a positive control or it is
|
||||||
|
indistinguishable from a blind instrument.
|
||||||
|
STATE: (b) dead. Any global read-out head, cross-entity aggregation, or shared regime slot
|
||||||
|
would have been motivated by (b) and is now unmotivated. (a) credit assignment is the only
|
||||||
|
remaining suspect, and frozen.md already supplies its mechanism (gate at 0.500 +/- 0.029,
|
||||||
|
untrained) and why it had no job (post-switch error is the world's configuration transient).
|
||||||
|
|
||||||
|
PUSH PENDING (2026-09-02): Diego is away from home, so the Gitea host is unreachable — it is
|
||||||
|
on his home network. Do NOT attempt pushes or any tea command until he says so.
|
||||||
|
Unpushed at this point: docs 2 commits (ceed1af, 77fed7d), experiments 3 commits
|
||||||
|
(23058c6 + the Task 10 work b9b7929 + the rules commit). ailed and paper are up to date.
|
||||||
|
When he asks, from ia-stuff/:
|
||||||
|
git push origin main && git -C experiments push origin main
|
||||||
|
|
||||||
|
SCOPING DECISION (Diego, 2026-09-02): Task 11 is the LAST experiment on the memory line,
|
||||||
|
positive or negative. After it the project either gives per-entity memory more push through
|
||||||
|
the other organism modules (spec §6: Metabolism, Reflexes S1/S2, the Instinct/EQ policy
|
||||||
|
readout — all defined, none built), or drops the GRP and proceeds with the RP alone.
|
||||||
|
Task 11's write-up must therefore carry the consequence of each outcome for keeping vs
|
||||||
|
dropping memory, not only the verdict on hypothesis (a). Sent to the running task.
|
||||||
|
Worth holding on to for that decision: dropping the GRP does not drop the paper. The novel
|
||||||
|
contribution is the RP — relational structure with CPPN-generated weights from geometry
|
||||||
|
rather than a lookup. And claim A2 (the CPPN kernel taking psi as input) does NOT route
|
||||||
|
through memory at any point, so nothing measured in headroom.md, frozen.md,
|
||||||
|
when_memory_works.md, a1.md or pooled.md bears on it. A2 has never been run and is the only
|
||||||
|
spec claim untouched by the memory nulls. "Use the RP" is a different paper still standing —
|
||||||
|
relational perceptron with affective topology, no memory, plus four well-measured nulls
|
||||||
|
explaining why memory is not there.
|
||||||
|
|
||||||
|
Task 11 (credit-assignment ceiling): measured, commit 6e2e251. The agent was killed by machine
|
||||||
|
sleep before writing its report, but it DID commit first (0beba60, JSON and the four MLP
|
||||||
|
shard logs force-added past .gitignore). The controller wrote the checkpoint report and
|
||||||
|
applied the corrections. Checkpoint report at .sdd/task-11-report.md. 78 tests pass.
|
||||||
|
HYPOTHESIS (a) IS NOT SUPPORTED. Both candidate explanations are now dead.
|
||||||
|
Part A: the gradient reaching the gate is COHERENT, not cancelling — 0.202 against its own
|
||||||
|
measured sign-flip null of 0.163, above null on 14/16 seeds, paired se 0.009. And the
|
||||||
|
TEMPORAL PATH IS THE LARGER TERM: 1.187x the per-step one, 0.587 of the gate's gradient
|
||||||
|
arrives through the BPTT window, where (a) predicted negligible. out.weight's temporal term
|
||||||
|
is exactly 0.000 on every seed — the structural control that the split is real.
|
||||||
|
Part B: OUTCOME 3 — M cannot hold the regime even under direct supervision, at any lambda from
|
||||||
|
1e-5 to 1.0, including where the aux term is 5.8e4x the main loss and degrades the task 5.9x.
|
||||||
|
Positive control installs the entity TYPE at 0.738 vs chance 0.333 through the same head,
|
||||||
|
optimiser, seeds and probe. The instrument works; the state can hold per-entity properties;
|
||||||
|
it cannot hold this one. Side effect worth noting: type supervision raised the REGIME decode
|
||||||
|
by +0.073 on 14/16 seeds — the control that had no business moving that number is the only
|
||||||
|
thing that moved it.
|
||||||
|
So the conclusion is neither credit nor shape: THE STATE UPDATE CANNOT REPRESENT THIS VARIABLE.
|
||||||
|
TWO CORRECTIONS TO EARLIER FILES, not yet applied to them:
|
||||||
|
(1) "The weights did not move" is FALSE and frozen.md §3 and a1.md both lean on it. The
|
||||||
|
gate's weights moved 26.8% of their initial norm, MORE than any other block. What did
|
||||||
|
not move is the FUNCTION — the displacement stayed inside the sigmoid's linear band
|
||||||
|
(g = 0.5008 +/- 0.0270 trained vs 0.5009 +/- 0.0203 at init). Also: do not lead with the
|
||||||
|
887x gradient-magnitude gap, because Adam is scale-invariant and the per-coordinate SNR
|
||||||
|
is comparable (gate 0.066, cand 0.070, out 0.079). The agent caught itself about to
|
||||||
|
report the magnitude as the story — the best methodological moment in the task.
|
||||||
|
(2) "The organism holds a fifth of the available signal" is a LINEAR-PROBE figure. An MLP
|
||||||
|
probe reads +0.159 from M where linear reads +0.064, and +0.234 from h. The relative
|
||||||
|
claim survives (M holds less than the h it is built from) but the absolute number needs
|
||||||
|
the qualifier in when_memory_works.md and frozen.md.
|
||||||
|
INCOMPLETE: the MLP-head version of Part B reached ~10 of 16 runs per shard. §2d reports it as
|
||||||
|
incomplete and the verdict is stated on the linear head alone. Command in §2d.
|
||||||
|
Both corrections APPLIED (experiments 501d0b3): frozen.md's three affected passages reworded,
|
||||||
|
new §6 carrying the weight-displacement measurement and the Adam scale-invariance point, new §7
|
||||||
|
marking the probe figures as linear-probe, and a matching note in when_memory_works.md §4.
|
||||||
|
78 tests still pass.
|
||||||
@@ -0,0 +1,172 @@
|
|||||||
|
# Task 10 — pooled probe: is the regime distributed across the per-entity states?
|
||||||
|
|
||||||
|
**Status: complete. Clean null. Hypothesis (b) is dead; (a) is the remaining suspect.**
|
||||||
|
|
||||||
|
Commit `b9b7929` in `experiments/` — `exp: pooling the 16 states buys nothing
|
||||||
|
memory-specific -- (b) is dead`. Files: `experiments/pooled.py`,
|
||||||
|
`experiments/tests/test_pooled.py`, `experiments/results/pooled.md`.
|
||||||
|
|
||||||
|
## The headline, as asked: the two gains side by side
|
||||||
|
|
||||||
|
Gain is `gap(pooled) − gap(single)` where `gap = acc − chance_shift`, computed per seed
|
||||||
|
and then averaged. 16 seeds, least squares, `grp_k0`, 8000 train + 4000 frozen steps.
|
||||||
|
|
||||||
|
```
|
||||||
|
M gain h gain M − h M>h seeds
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
mean-pooled +0.045 (sd 0.043) +0.048 (sd 0.060) -0.003 8/16
|
||||||
|
concatenated -0.010 (sd 0.053) -0.009 (sd 0.063) -0.001 8/16
|
||||||
|
```
|
||||||
|
|
||||||
|
**Pooled `M` gains +0.045. Pooled `h` gains +0.048.** The difference is −0.003 with a
|
||||||
|
paired across-seed standard error of 0.015, and `M` beats `h` on exactly 8 seeds out of
|
||||||
|
16. Pooling is real — the gain is positive on 14/16 seeds for `M` and 13/16 for `h` —
|
||||||
|
and it is entirely a property of averaging 16 samples, not of memory. **The result
|
||||||
|
supports (a).**
|
||||||
|
|
||||||
|
## The table
|
||||||
|
|
||||||
|
```
|
||||||
|
representation feat n_tr acc shuffle shift gap sd(gap) >chance
|
||||||
|
---------------------------------------------------------------------------------
|
||||||
|
M, single 32 44800 0.312 0.270 0.268 +0.044 0.053 13/16
|
||||||
|
M, mean 32 2800 0.349 0.265 0.260 +0.089 0.066 15/16
|
||||||
|
M, concat 512 2800 0.292 0.251 0.258 +0.034 0.055 10/16
|
||||||
|
h, single 32 44800 0.313 0.272 0.268 +0.045 0.058 13/16
|
||||||
|
h, mean 32 2800 0.354 0.267 0.261 +0.093 0.065 16/16
|
||||||
|
h, concat 512 2800 0.291 0.251 0.256 +0.036 0.061 12/16
|
||||||
|
```
|
||||||
|
|
||||||
|
Both chance levels were measured, both refitting the probe from scratch: `shuffle`
|
||||||
|
permutes step labels keeping a step's 16 entities together, `shift` circularly shifts
|
||||||
|
the label sequence and preserves the 40-80 step regime blocks. Concatenation's chance
|
||||||
|
does sit lower (0.256-0.258 against 0.268), so the shift control did its job. Test
|
||||||
|
split is the last 30% of the frozen phase, a suffix in time.
|
||||||
|
|
||||||
|
## What was run
|
||||||
|
|
||||||
|
- 16 seeds (0-15) at the published settings, two estimators (least squares and
|
||||||
|
multinomial logistic), plus the synthetic positive control.
|
||||||
|
- 8 seeds at a 16000-step frozen phase, to separate a fit problem from an information
|
||||||
|
one in the concatenated view.
|
||||||
|
- 24 training runs total. `../ailed` untouched; no default in `particles.py` or
|
||||||
|
`regime.py` changed; no subagents.
|
||||||
|
|
||||||
|
## Requirements, one by one
|
||||||
|
|
||||||
|
**Reproduce the baseline.** Not reproduced — *reused*. `pooled.py` imports `_build`,
|
||||||
|
`_train`, `_frozen` and `probe` from `frozen.py` unmodified. Every seed 0-7
|
||||||
|
`M_single`/`h_single` accuracy and chance level is bit-identical to the corresponding
|
||||||
|
entry in `results/frozen.json`, checked file against file, and pinned by
|
||||||
|
`test_single_view_reproduces_the_frozen_probe_exactly`. Restricted to seeds 0-7 the
|
||||||
|
table reads `M` 0.332 / 0.273 and `h` 0.338 / 0.274 — `frozen.md` Part B exactly.
|
||||||
|
|
||||||
|
**Chance measured, both nulls.** Above. Not skipped for the concatenated view.
|
||||||
|
|
||||||
|
**Time-based split.** `frozen.probe`'s suffix split, unchanged.
|
||||||
|
|
||||||
|
**At least 8 seeds, per-seed values and win counts.** 16 seeds; per-seed gaps and gains
|
||||||
|
are tabulated in `results/pooled.md` §2. This mattered: **at seeds 0-7 alone the
|
||||||
|
measurement reads +0.010 in `M`'s favour on 5/8, which reads faintly like support for
|
||||||
|
(b). Seeds 8-15 flip it to −0.003 on 8/16.** Nothing changed but the seed count.
|
||||||
|
|
||||||
|
**Same estimator across representations; if a second, report both.** Least squares
|
||||||
|
throughout, and multinomial logistic run in full alongside it: mean-pooled gains `M`
|
||||||
|
+0.054 and `h` +0.048, difference **+0.005**, `M` ahead on 7/16. The sign of `M − h`
|
||||||
|
flips between estimators while both stay inside one standard error of zero.
|
||||||
|
|
||||||
|
## The controls that decide it
|
||||||
|
|
||||||
|
**The `h` control.** Pooled `M` and pooled `h` rise together, by amounts that differ by
|
||||||
|
less than a fifth of their own across-seed spread. Nothing memory-specific survives.
|
||||||
|
|
||||||
|
**Decision voting vs. representation pooling.** Letting 16 per-entity decoders vote —
|
||||||
|
no pooled representation at all — gives 0.327 for `M` and 0.327 for `h`, against
|
||||||
|
per-entity 0.312 and 0.313 and mean-pooled 0.349 and 0.354. Both routes to a per-step
|
||||||
|
answer are indifferent to whether the representation carries memory.
|
||||||
|
|
||||||
|
**The concatenated view was sample-starved, and fixing it does not change the answer.**
|
||||||
|
513 parameters on 2800 pooled samples came out *below* the single-entity probe with a
|
||||||
|
spread as large as the effect. Re-running 8 seeds at 16000 frozen steps (11200 samples,
|
||||||
|
22 per feature — the only change) lifts `M, concat` from +0.045 to +0.105 and `h,
|
||||||
|
concat` from +0.046 to +0.102, i.e. to parity with the single-entity probe rather than
|
||||||
|
past it. The gains there: mean-pooled `M` +0.063 vs `h` +0.060 (difference +0.003, 5/8);
|
||||||
|
concatenated `M` +0.008 vs `h` +0.012 (difference −0.003, 4/8). Same null, measured
|
||||||
|
more precisely — 8/8 seeds positive for `M`, 7/8 for `h`.
|
||||||
|
|
||||||
|
**The positive control — this measurement can detect (b).** `pooled.power_check` builds
|
||||||
|
two synthetic representations over a real 4000-step regime label sequence and runs them
|
||||||
|
through the same views and the same probe. In `distributed`, hypothesis (b) made true by
|
||||||
|
construction, the regime's two bits are split so that entities 0-7 hold bit 0 and
|
||||||
|
entities 8-15 hold bit 1 — no single entity holds more than one bit. In `redundant`,
|
||||||
|
every entity holds the whole code plus independent noise, which is the confound the `h`
|
||||||
|
control exists to catch.
|
||||||
|
|
||||||
|
```
|
||||||
|
view acc shuffle shift gap pooling gain
|
||||||
|
--------------------------------------------------------------------
|
||||||
|
distributed single 0.421 0.281 0.328 +0.093 --
|
||||||
|
distributed mean 1.000 0.266 0.318 +0.682 +0.589
|
||||||
|
distributed concat 0.963 0.252 0.267 +0.696 +0.603
|
||||||
|
redundant single 0.691 0.294 0.310 +0.381 --
|
||||||
|
redundant mean 1.000 0.283 0.336 +0.664 +0.283
|
||||||
|
redundant concat 0.999 0.261 0.280 +0.719 +0.338
|
||||||
|
```
|
||||||
|
|
||||||
|
A genuinely distributed code produces a pooling gain of **+0.589**. The measured gain on
|
||||||
|
`M` is +0.045, and `h` supplies +0.048 of it. Demonstrated sensitivity is thirteen times
|
||||||
|
the effect the measurement was asked to find, and what it found has the *redundant*
|
||||||
|
signature — present on the memoryless layer too — not the distributed one.
|
||||||
|
|
||||||
|
**The controls can fail** (`AGENTS.md`: a test that cannot fail is worse than no test).
|
||||||
|
`test_the_power_check_can_fail` replaces `views` with one whose `mean` and `concat` read
|
||||||
|
entity 0 alone — every downstream shape unchanged, only the aggregation removed — and
|
||||||
|
asserts the `distributed` control then fails its threshold. **It does; I ran it and
|
||||||
|
confirmed the broken version fails where the correct one passes.**
|
||||||
|
`test_views_preserve_the_representation` separately pins that `concat` block `i` is
|
||||||
|
always particle `i` and that `mean` is the entity average. Full suite: **70 passed**
|
||||||
|
(66 existing, 4 new); the existing `frozen.py` and `regime.py` tests are untouched.
|
||||||
|
|
||||||
|
## Verdict
|
||||||
|
|
||||||
|
**The regime information is absent from the per-entity states, not distributed across
|
||||||
|
them.** Pooling the 16 states does raise the decode — mean-pooled `M` reaches 0.349
|
||||||
|
against a measured chance of 0.260, where a single state reached 0.312 against 0.268 —
|
||||||
|
but the memoryless `h` inside the very same organism rises by the same amount at the
|
||||||
|
same time, from +0.045 to +0.093 above its own chance, and on more seeds than `M` does.
|
||||||
|
Across three settings (16 seeds at 4000 frozen steps, 8 seeds at 4000, 8 seeds at 16000)
|
||||||
|
and two estimators, the difference between `M`'s pooling gain and `h`'s ranges from
|
||||||
|
−0.003 to +0.010 with a paired standard error near 0.015 and a seed-win count that never
|
||||||
|
leaves the 4/8-to-5/8 band, while a synthetic distributed code gains +0.589 through the
|
||||||
|
same probe. The lift pooling delivers is what averaging 16 noisy samples of one
|
||||||
|
instantaneous quantity delivers, and that quantity is the particle configuration the
|
||||||
|
current coupling matrix is imposing — visible in `r` right now, in a state-free layer,
|
||||||
|
exactly as `frozen.md` §2 concluded from the state-ablated GRP. Even pooled, the decode
|
||||||
|
sits 0.089 above chance where an exact decoder given one observed displacement sits
|
||||||
|
about 0.73 above its own measured chance. **(b) is not supported: the shape of the
|
||||||
|
memory is not what is stopping it. (a) — nothing in the loss ever rewarded carrying the
|
||||||
|
regime forward — is the remaining suspect.**
|
||||||
|
|
||||||
|
## Consequences for the next month
|
||||||
|
|
||||||
|
- **Do not spend it on the shape of the memory.** A global read-out head, a cross-entity
|
||||||
|
aggregation, or a shared regime slot beside the per-entity states would all be
|
||||||
|
motivated by (b). Whatever such a change bought would have to come from somewhere
|
||||||
|
other than recovering information the 16 states already hold, because they do not
|
||||||
|
hold it.
|
||||||
|
- **(a) is testable the way this project already knows how.** `frozen.md` §3 supplies
|
||||||
|
the mechanism — the gate sits at 0.500 ± 0.029, untrained, on every seed — and §1b
|
||||||
|
supplies why it had no job: post-switch error is dominated by the world's own
|
||||||
|
configuration transient, which no state can shorten. Measure the ceiling first: an
|
||||||
|
oracle given the regime, in a setting where holding it is worth something, before any
|
||||||
|
mechanism is built to hold it.
|
||||||
|
- **Eight seeds would have reported the wrong sign here.** Worth carrying into how the
|
||||||
|
next measurement is budgeted.
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
|
||||||
|
- `results/pooled.json` and `results/pooled_long.json` are not committed —
|
||||||
|
`experiments/.gitignore` excludes `results/*.json`, per the project's convention that
|
||||||
|
only the `.md` audit trail is versioned.
|
||||||
|
- The commit carries no co-authoring or session trailer, as instructed and as the
|
||||||
|
repo's own history (`docs: drop the co-authoring trailer`) requires.
|
||||||
@@ -0,0 +1,101 @@
|
|||||||
|
# Task 11: the ceiling on hypothesis (a), credit assignment
|
||||||
|
|
||||||
|
Hypothesis (b) — the hidden variable is global and the state is per-entity — is measured dead
|
||||||
|
(`results/pooled.md`). The regime information is not distributed across the sixteen states; it
|
||||||
|
is absent from them. Hypothesis (a) is what remains:
|
||||||
|
|
||||||
|
> Nothing in the training signal rewards carrying the regime forward, so the state never learns
|
||||||
|
> to hold it.
|
||||||
|
|
||||||
|
This task measures the ceiling on that, before anything is built. It follows the project's
|
||||||
|
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.
|
||||||
|
|
||||||
|
**This is a knowledge task, not a repair task.** You are not fixing the GRP. Direct supervision
|
||||||
|
is used here as a measuring instrument — an oracle on the state — not as a proposed
|
||||||
|
architecture. Do not recommend one.
|
||||||
|
|
||||||
|
## What is already established, so you do not re-derive it
|
||||||
|
|
||||||
|
- The gate sits at `g = 0.500 ± 0.029` with zero saturation on every seed, and its *learned*
|
||||||
|
pre-activation `W_g[h‖M] + b_g` is unchanged across a 16-fold range of `kappa`
|
||||||
|
(`frozen.md` §3, `a1.md`). Gradient does not move it.
|
||||||
|
- Trained stateless, the M-halves of `gate.weight` and `cand.weight` are **bit-identical to
|
||||||
|
initialisation** — 2048 parameters that never receive gradient at all (`frozen.md` §1d).
|
||||||
|
- The regime is identifiable from one observed displacement at 0.958; `M` decodes it at 0.332,
|
||||||
|
no better than the memoryless `h` at 0.342 (`when_memory_works.md` §2, `frozen.md` Part B).
|
||||||
|
- Knowing the regime is worth 1.54x within the linearised family (`ceilings.py`, D→C).
|
||||||
|
- Post-switch error is dominated by the world's own configuration transient, which no state
|
||||||
|
can shorten (`frozen.md` §1b).
|
||||||
|
|
||||||
|
## Part A — is there a gradient signal at all, or is it cancelling?
|
||||||
|
|
||||||
|
Two very different failures look identical from "the weights did not move":
|
||||||
|
|
||||||
|
- **absent** — the gradient reaching the gate is ~0, so no signal exists
|
||||||
|
- **cancelling** — the gradient is substantial per step but averages to nothing across the
|
||||||
|
batch or across time, so signal exists but is inconsistent
|
||||||
|
|
||||||
|
Measure, over training, for `grp.gate.weight` and `grp.cand.weight`:
|
||||||
|
|
||||||
|
- the norm of the accumulated gradient at each optimiser step, against the same for
|
||||||
|
`rp.feat.weight` and `out.weight` as reference blocks
|
||||||
|
- the norm of the *mean* gradient against the mean of the *per-step norms*. If the ratio is
|
||||||
|
near 1 the signal is coherent; if it is near 0 the signal cancels. This ratio is the whole
|
||||||
|
of Part A.
|
||||||
|
- the same split for the **temporal path specifically**: compare the gradient the gate
|
||||||
|
receives when `M` is carried across the truncated-BPTT window against the gradient it
|
||||||
|
receives when `M` is detached every step. The difference is the credit that flows through
|
||||||
|
time, and hypothesis (a) predicts it is negligible next to the per-step term.
|
||||||
|
|
||||||
|
Report magnitudes, not just ratios, so a reader can see whether "negligible" means 10x or
|
||||||
|
10⁶x smaller.
|
||||||
|
|
||||||
|
## Part B — the ceiling: if the state were told, could it hold it, and would it matter?
|
||||||
|
|
||||||
|
Add an auxiliary loss that supervises `M` to predict the current regime — a linear head from
|
||||||
|
`M_i` to the regime id, trained jointly, weighted by `lambda`. Sweep `lambda` over at least
|
||||||
|
`{0, 0.01, 0.1, 1.0}`, at least 12 seeds given what Task 10 showed about seed counts.
|
||||||
|
|
||||||
|
Report three things, and treat all three as the deliverable:
|
||||||
|
|
||||||
|
1. **Can it?** The regime decoded from `M` at each `lambda`, against the measured chance level
|
||||||
|
and against the 0.958 an exact decoder gets from one observed displacement. This says
|
||||||
|
whether the state update is expressive enough to hold the regime at all.
|
||||||
|
2. **Does the task improve when it does?** Main-task `steady` at each `lambda`, paired per
|
||||||
|
seed against `lambda = 0`, with the count of seeds won and a paired standard error.
|
||||||
|
3. **The joint reading.** Cross the two.
|
||||||
|
|
||||||
|
The three outcomes and what each means — write your verdict against these:
|
||||||
|
|
||||||
|
| outcome | what it establishes |
|
||||||
|
|---|---|
|
||||||
|
| `M` holds the regime **and** the task improves | credit assignment is the blocker, and the prize is measured |
|
||||||
|
| `M` holds the regime **and** the task does not improve | the regime is not useful to this architecture's prediction — a larger finding that closes the line |
|
||||||
|
| `M` cannot hold it even under direct supervision | the state update is not expressive enough; a different problem from credit assignment |
|
||||||
|
|
||||||
|
None of these is good or bad news. Say which one the numbers give.
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
|
||||||
|
- Use `frozen.py`'s verified training loop; do not write another copy. The auxiliary head and
|
||||||
|
its loss are the only additions.
|
||||||
|
- Do not modify `../ailed`. If the auxiliary head needs access the library does not expose,
|
||||||
|
build it in the experiment from `org.grp` and `org.rp`, which are public.
|
||||||
|
- Do not change any default in `particles.py` or `regime.py`.
|
||||||
|
- Chance levels measured, never assumed — both the shuffle and the block-preserving shift, as
|
||||||
|
`frozen.py` does.
|
||||||
|
- At least 12 seeds. Report per-seed values, seeds won, and a paired standard error. If an
|
||||||
|
effect sits inside one se of zero, say it is ambiguous rather than reading its sign.
|
||||||
|
- **A null needs a positive control.** If Part B reports that `M` cannot hold the regime, show
|
||||||
|
the same head recovering a signal you *know* is in `M` — the entity's own type, say — or the
|
||||||
|
result cannot be told apart from a broken head.
|
||||||
|
|
||||||
|
## Deliverable
|
||||||
|
|
||||||
|
`experiments/results/credit.md`: Part A's coherence and temporal-path numbers, Part B's three
|
||||||
|
readings, and a plain verdict naming which of the three outcomes holds. Commit with whatever
|
||||||
|
code you added, inside `experiments/`. No co-authoring or session trailer.
|
||||||
|
|
||||||
|
**Do not push, and do not run any `tea` command.** The Gitea host is unreachable and the owner
|
||||||
|
has asked that it not be attempted. Commit locally only.
|
||||||
@@ -0,0 +1,64 @@
|
|||||||
|
# Task 11 report — CHECKPOINT, written by the controller after the agent died
|
||||||
|
|
||||||
|
The measuring agent was killed by machine sleep before it could write this file. It *did*
|
||||||
|
commit its work first — `0beba60` in `experiments/`, with the JSON and the four MLP shard
|
||||||
|
logs force-added past `.gitignore` — so nothing needs re-running except the one control
|
||||||
|
named below. The controller wrote this report and applied the two corrections in `5ecf5d1`.
|
||||||
|
|
||||||
|
## Status
|
||||||
|
|
||||||
|
| part | state |
|
||||||
|
|---|---|
|
||||||
|
| Part A — is there a gradient signal, or is it cancelling | **complete**, 16 seeds |
|
||||||
|
| Part B — the ceiling under direct supervision, linear head | **complete**, 7 lambdas x 16 seeds, plus the positive control |
|
||||||
|
| Part B — the same with an MLP head and MLP probe | **incomplete**, ~10 of 16 runs per shard |
|
||||||
|
|
||||||
|
`results/credit.md` §2d states the incomplete control honestly, reports what was observed
|
||||||
|
without relying on it, and the §3 verdict is stated on the linear head alone with that
|
||||||
|
limitation carried explicitly. There are no placeholders in the file.
|
||||||
|
|
||||||
|
## Results on disk
|
||||||
|
|
||||||
|
- `experiments/credit.py`, `experiments/tests/test_credit.py` — the measurement and its pins
|
||||||
|
- `experiments/results/credit.md` — the write-up
|
||||||
|
- `experiments/results/credit_grad.json` — Part A, 16 seeds
|
||||||
|
- `experiments/results/credit_aux_regime.json`, `credit_aux_type.json` — Part B, 112 runs each
|
||||||
|
- `experiments/results/credit_traj.json` — the per-1000-step traces on 4 seeds
|
||||||
|
|
||||||
|
78 tests pass.
|
||||||
|
|
||||||
|
## What remains
|
||||||
|
|
||||||
|
Finish the MLP control: Part B re-run with a 2x128 ReLU auxiliary head and a 2x128
|
||||||
|
frozen-phase probe, at `lambda in {0, 0.01, 0.1, 1.0}` over the same 16 seeds. `credit.md`
|
||||||
|
§2d records the command. Expected to leave the verdict standing — the MLP head's own
|
||||||
|
accuracy sat at 0.21-0.31 against a chance of 0.25 in the partial run, the same flat reading
|
||||||
|
the linear head gave — but it is not measured and must not be reported as if it were.
|
||||||
|
|
||||||
|
## Headline
|
||||||
|
|
||||||
|
**Hypothesis (a) is not supported.** The gradient reaching the gate is coherent rather than
|
||||||
|
cancelling (0.202 against a measured null of 0.163, 14/16 seeds), and the temporal path is
|
||||||
|
the larger of the two terms (1.187x the per-step one; 0.587 of the gate's gradient arrives
|
||||||
|
through the BPTT window) where (a) predicted it would be negligible.
|
||||||
|
|
||||||
|
**Part B gives outcome 3:** `M` cannot hold the regime even under direct supervision, at any
|
||||||
|
lambda from 1e-5 to 1.0, including where the auxiliary term is 5.8e4 times the main loss and
|
||||||
|
degrades the task 5.9x. The positive control installs the entity *type* through the same
|
||||||
|
head at 0.738 against chance 0.333, so the instrument works and the state can hold per-entity
|
||||||
|
properties. It cannot hold this one.
|
||||||
|
|
||||||
|
## Two corrections this task makes to earlier files
|
||||||
|
|
||||||
|
1. **"The weights did not move" is false**, and `frozen.md` §3 and `a1.md` both lean on it.
|
||||||
|
The gate's weights moved 26.8% of their initial norm, more than any other block. What did
|
||||||
|
not move is the *function*: the displacement stayed inside the sigmoid's linear band, so
|
||||||
|
`g` reads 0.5008 +/- 0.0270 trained against 0.5009 +/- 0.0203 at initialisation. Those two
|
||||||
|
files need the distinction, and the 887x gradient-magnitude gap should not be led with,
|
||||||
|
because Adam is scale-invariant and the per-coordinate SNR is comparable across blocks
|
||||||
|
(gate 0.066, cand 0.070, out 0.079).
|
||||||
|
2. **"The organism holds a fifth of the available signal" is a linear-probe figure.** An MLP
|
||||||
|
probe reads the regime from `M` at a gap of +0.159 where the linear probe reads +0.064,
|
||||||
|
and from the memoryless `h` at +0.234. The relative claim is unchanged — `M` still holds
|
||||||
|
less than the `h` it is built from — but the absolute number needs the qualifier wherever
|
||||||
|
`when_memory_works.md` and `frozen.md` state it.
|
||||||
@@ -32,13 +32,19 @@ per-entity memory let an organism *come to understand a domain* — its entities
|
|||||||
relations, and when those relations change. It is not whether some configuration reaches a
|
relations, and when those relations change. It is not whether some configuration reaches a
|
||||||
lower number.
|
lower number.
|
||||||
|
|
||||||
Two consequences, both of which have already bitten this project once:
|
Three consequences, each of which has already bitten this project once:
|
||||||
|
|
||||||
1. **RP vs GRP is the comparison.** They are two forms of the same unit and the question
|
1. **The gain is knowledge, not performance.** Experiments here exist to establish what is
|
||||||
|
missing, not to make a mechanism work. Optimising the GRP is a grave error, not a goal.
|
||||||
|
The operational test: **is the negative result as informative as the positive one?** An
|
||||||
|
experiment that only makes sense if it comes out positive is a performance experiment
|
||||||
|
wearing a diagnostic costume. Write every verdict so both branches carry equal weight,
|
||||||
|
and describe no outcome as good or bad news.
|
||||||
|
2. **RP vs GRP is the comparison.** They are two forms of the same unit and the question
|
||||||
between them is what memory buys in *understanding*, not in error. Do **not** introduce
|
between them is what memory buys in *understanding*, not in error. Do **not** introduce
|
||||||
a standard MLP or perceptron baseline — that measures mechanical performance and is not
|
a standard MLP or perceptron baseline — that measures mechanical performance and is not
|
||||||
commensurable with what is being claimed here.
|
commensurable with what is being claimed here.
|
||||||
2. **Do not tune a baseline until it catches up.** In Task 7 the memory advantage measured
|
3. **Do not tune a baseline until it catches up.** In Task 7 the memory advantage measured
|
||||||
2.99x at `lr=1e-3` and 1.06x at `lr=1e-2`. The tempting move — raise the learning rate
|
2.99x at `lr=1e-3` and 1.06x at `lr=1e-2`. The tempting move — raise the learning rate
|
||||||
so the comparison is "fair" — changes the question instead of answering it. What that
|
so the comparison is "fair" — changes the question instead of answering it. What that
|
||||||
ablation actually tells you is about the *domain*: relational particles do not
|
ablation actually tells you is about the *domain*: relational particles do not
|
||||||
@@ -71,19 +77,26 @@ result in this project or its predecessor.
|
|||||||
- **A test that cannot fail is worse than no test.** Twice now, a full suite passed against
|
- **A test that cannot fail is worse than no test.** Twice now, a full suite passed against
|
||||||
a deliberately broken implementation. When a test defends a central property, break the
|
a deliberately broken implementation. When a test defends a central property, break the
|
||||||
property on purpose and confirm the test fails. Say in your report that you did.
|
property on purpose and confirm the test fails. Say in your report that you did.
|
||||||
- **Seeds.** Across-seed spread here is comparable to the effects being claimed. Three
|
- **Seeds.** Across-seed spread here is comparable to the effects being claimed, and it is
|
||||||
seeds supports a direction; it does not support a ratio.
|
worse than that: in Task 10 eight seeds reported the **wrong sign** (+0.010 favouring one
|
||||||
|
arm on 5/8, flipping to -0.003 at sixteen). Eight seeds does not reliably support a
|
||||||
|
direction, let alone a ratio. Report per-seed values, the count of seeds won, and a paired
|
||||||
|
standard error — and if the effect sits inside one se of zero, say so instead of reading
|
||||||
|
its sign.
|
||||||
|
|
||||||
## Layout
|
## Layout
|
||||||
|
|
||||||
```
|
```
|
||||||
ia-stuff/ not a git repo — design docs and this file live here
|
ia-stuff/ git: ailed-docs-rp — design docs, this file, and .sdd/
|
||||||
├── ailed/ git: the library, src/ailed/{affect,core}.py
|
├── ailed/ git: ailed-rp — the library, src/ailed/{affect,core}.py
|
||||||
├── experiments/ git: the domain and the runs; installs ../ailed editable
|
├── experiments/ git: ailed-experiments-rp — the domain and the runs
|
||||||
└── paper/ git: the manuscript
|
└── paper/ git: ailed-paper-rp — the manuscript
|
||||||
```
|
```
|
||||||
|
|
||||||
Commit inside the repo you touched. Root is deliberately not a repo.
|
Four sibling repositories under `Ailed-AI`. The three subdirectories are git-ignored by the
|
||||||
|
root repo, so nothing is nested and each stays independent. Commit inside the repo you
|
||||||
|
touched. `experiments` installs `ailed` from `../ailed`, so the **directory** names matter
|
||||||
|
even though the repo names differ.
|
||||||
|
|
||||||
- `ailed/src/ailed/affect.py` — spec §5. Pure functions over floats, no torch.
|
- `ailed/src/ailed/affect.py` — spec §5. Pure functions over floats, no torch.
|
||||||
- `ailed/src/ailed/core.py` — spec §3–§4. `AffectiveCPPN`, `RelationalPerceptron`,
|
- `ailed/src/ailed/core.py` — spec §3–§4. `AffectiveCPPN`, `RelationalPerceptron`,
|
||||||
|
|||||||
Reference in new issue
Block a user