Files
ailed-docs-rp/.sdd/task-11-brief.md
T
chrnx 7c27f30c29 docs: task 11 checkpoint — hypothesis (a) is not supported either
The measuring agent died to machine sleep before committing; its work survived and is saved
as experiments 6e2e251. Records the two corrections this task makes to earlier results
files: the gate's weights did move, and the fifth-of-the-signal figure is linear-probe only.
2026-09-02 17:01:19 -05:00

102 lines
5.8 KiB
Markdown

# 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.