The substrate finding

The honest result of running FEP + STDP against the LIF simulator on random 15% connectivity. Not the marketing result.

The claim

Finding Free-Energy-Principle training on the LIF simulator with random 15% connectivity does not steer output distributions above chance. The infrastructure prevents catastrophic collapse; the substrate itself does not learn.

An earlier, single-seed version of the toward-target test XPASSed on seed 29 with +0.65 signed movement. That result was updated in the moment as "the loop is steering." A 10-seed sweep with a shuffled-label null control retracted the claim.

The collapse mode

Bare STDP + reward-pulse stimulation collapses the network within tens of trials. The failure has a root cause and a proximate cause.

Root cause: reward and punishment stimulation run through the same _step() function as stimulus. STDP updates weights based on last-spike timing. When the reward pulses fire input electrodes at high amplitude for 100 ms, the resulting spikes overwrite the last_spike trace with reward-pulse timing. The next stimulus's STDP then sees reward-timing rather than stimulus-timing, and potentiates class-independent paths. Over trials the network converges to firing uniformly regardless of input.

Proximate cause: without weight normalization, LTP saturates all pathways to w_max. Everything fires on everything.

The three interventions

Three fixes, none of which change the caller-facing interface:

  1. Plasticity gate — stimulate(..., plasticity: bool = True). apply_feedback() hard-forces plasticity=False. Feedback pulses drive dynamics without writing to synapses.
  2. Trace reset per trial — Dish.reset_traces() clears last_spike. FreeEnergyTrainer.trial() calls it at trial start so THIS trial's STDP only sees THIS trial's timing.
  3. Homeostatic scaling + weight decay — homeostatic_target_row_sum=10.0 caps STDP runaway by renormalizing each row of |W| to a target; weight_decay=0.002 per stimulate() call slowly forgets. Set the homeostatic target ABOVE the initial row-sum (~6-7 for the defaults) so it acts as a stabilizing ceiling, not a shrink.

With those in place, the anti-collapse metric goes from catastrophic to survivable:

ConditionBaseline L1Trained L1Verdict
No interventions4.300.00Complete collapse
All three interventions4.302.50Survived (~40% degraded)

Survived. But: survived is not learned.

The null discriminator

Load-bearing methodology A single seed is not evidence. "Baseline L1 differs from trained L1" is not evidence. Toward-target signed movement > 0 is not evidence. Toward-target signed movement on real labels, exceeding toward-target signed movement on randomly shuffled labels, across ≥10 seeds, normalized against total activity — that is evidence.

The full test:

  1. For each of 10 seeds, build the same dish config, run FEP training with real labels.
  2. For each of the same 10 seeds, run FEP training with the labels randomly shuffled (destroys any stimulus→target correspondence but keeps all other dynamics).
  3. Measure normalized signed movement: (own_target_share − other_target_share) / total_activity — normalizing prevents "decay with bias" from disguising itself as steering.
  4. Compare medians. Real must beat null by a threshold.

The 10-seed result (Protocol 001)

Real (median)
+0.0005
normalized signed movement
Null (median)
+0.0005
shuffled-label control
Δ activity / trial
-31 spikes
median decay across seeds
Protocol 001 Provenance Manifest Protocol: 001 — Random-topology null discriminator
Canonical dataset: research/data/substrate-finding-10seed-2026-08-10.csv
Dataset SHA256: 9802d38666b0b774e12604d6dc51a018448ac43187a0d8a846964545071ac7ad
BIO commit SHA: dc9c21f26d302f33151d203b60bdb4eaec07f6c9
wetware module: ai-agents/wetware/src/wetware
Environment: Python 3.14.6 · NumPy 2.5.2 · PyTest 9.1.1
Seeds: [7, 11, 13, 17, 19, 23, 29, 31, 37, 41]
Aggregation: Median per-seed normalized signed movement (REAL: +0.0005, NULL: +0.0005, Δ: +0.0000)

Protocol 001 is frozen: on random 15% connectivity, real-label training did not exceed shuffled-label training (median real +0.0005, null +0.0005; delta +0.0000). The system’s anti-collapse interventions preserve measurable activity but do not establish learning.

Protocol Comparison: 001 vs 003

DimensionProtocol 001 (Frozen Baseline)Protocol 003 (Curated Topology)
ConnectivityRandom i.i.d. (15% density)Spatial distance-decay: $P_{ij} = \min(1, c \exp(-(d_{ij}/\sigma)^2))$
Electrode MappingRandom disjoint permutationGeographic clustering (Class A & B input/output zones)
Plasticity RuleSTDP + protected feedback gateSTDP + 3-Factor Eligibility Traces ($\Delta W = \eta M e_{ij}$)
StatusFrozen Negative ResultPre-registered Experimental Test
Success Condition$\text{median}(\text{REAL}) - \text{median}(\text{NULL}) > +0.02$ (Not met)$\text{median}(\text{REAL}) - \text{median}(\text{NULL}) > +0.02$

Protocol 003 Pre-Registered Verdict Criteria

OutcomeMetric ThresholdScientific Interpretation
Learning confirmed$\Delta_{\text{median}} > +0.02$Curated spatial topology supports label-dependent steering under declared condition.
Inconclusive$-0.02 \le \Delta_{\text{median}} \le +0.02$No learning established; investigate spatial separation and stability knobs.
Learning not supported$\Delta_{\text{median}} \le -0.02$Chosen spatial topology and FEP feedback rule do not outperform matched null.

How to read this

The FEP + STDP loop, on random topology, does not learn. That is the honest statement. It has three components:

Why this framing matters Most write-ups of the same experiment would report "baseline L1 4.3, trained L1 2.5, network survives training — early results promising, tuning ongoing." That's the marketing frame. It reads as progress. It's also structurally identical to "network decays 42% and I noticed a positive bias on one seed." The null discriminator is the difference between those two sentences.