Skip to content
Cortical computationExperiments

Verace Plasticity

Energy-descent Hebbian learning: prediction-error outer-product rules for attention-free language models, associative memory and cortical columns.

Verace Research·June 7 to June 8, 2026
  1. Energy-descent Hebbian rule: Prediction error times presynaptic activity
  2. Coupled energy: The objective the local rule descends
  3. Predictable rotating signal: Recovered by prediction, not by variance
  4. Autograd reference: Same energy, same signal R2 of 0.790
Figure 1. Local Hebbian learning as descent on one energy in Verace Plasticity. Schematic: a local Hebbian update read as descent on a coupled energy. In Verace Plasticity, prediction error replaces postsynaptic activity, so each local step follows the gradient of that energy.
Open the simulator on its own pageDescent on an energy surface: an interactive toy model of the principle. You can also try it below

Overview

Verace Plasticity is the lab's research line on local, Hebbian-style learning. The lab's papers and code call it EDHL. It addresses one question: can Hebbian learning be made intelligent? The lab's answer is that locality and the Hebbian outer-product form were never the barrier. The missing ingredient was an objective. The work has two parts. The research implementation carries the energy-descent rule from a toy world to language models, memory and multi-step reasoning. The cortical-architecture codebase adds local and dopamine-gated rules to the Verace Neocortex column design, whose V11 architecture document still trains the production column and embedding with global next-token gradients and only proposes removing them.

The core idea changes one term. A bare Hebbian update multiplies postsynaptic activity by presynaptic activity. The energy-descent rule uses postsynaptic prediction error instead, ΔW=η εh⊤\Delta W = \eta\, \varepsilon h^\top, which is the gradient of a coupled energy. Applied block by block to an attention-free causal dilated-convolution language model, the per-block error terms form a chain of one-block vector-Jacobian products. This chain reproduces the backprop gradient exactly without a global backward pass. A fixed-size associative memory written by the same delta rule adds recall by content. Iterated reads of that memory perform multi-hop reasoning, and a fixed-point test decides when to stop.

In the lab's experiments, bare Hebb recovered a rotating signal with R2R^2 of -0.001, while the energy-descent rule and autograd both reached 0.790. On TinyStories, widening the receptive field from 29 to 509 tokens cut validation perplexity from 8.82 to 6.93. An 18.2M-parameter model on WikiText-103 reached 37.66. At matched size, a transformer scored 6.26 against 6.93. The convolution failed induction and recall until the delta-rule memory raised recall to 0.987. On a shifting stream, online local learning and online backprop both reached 16.9 perplexity.

The research implementation is built and evaluated, with recorded runs for every claim above. Its exact local trainer is mathematically identical to backprop. True iterative predictive-coding relaxation aligns with the backprop gradient only weakly. The cortical-architecture codebase runs, but several of its parts are stubs: the developmental phases, the preference critic and one basal ganglia update. The V11 documents report a Verace Neocortex V11 validation perplexity of 54.02 after 5,000 steps on WikiText-2, with no baselines or ablations run; it is not a result of this line of work. The batched Hebbian theorems exist as proof sketches and research specifications. The work has not been evaluated by anyone outside the lab.

Status

Experiments. The research implementation has code and results records for each step, from the toy ablation to WikiText-103, continual learning and memory tests, while the cortical-architecture part is partly stubbed and records no evaluation of its own.

Simulator

A point rolls downhill on a made-up energy surface with one deep valley and two shallower ones. Set the step size and the momentum, and drag the start.

  • rings: lines of equal energy · dots: the floors of the three valleys
Comes to rest in
The deepest valley
Energy at the start
0.05
Energy at the end
-0.99
Overshot on the way
No

Drag the ring, or tap the surface, to move the start. Raise the step size until the point overshoots, or the momentum until it rolls through a shallow valley.

This simulator is an illustration of the principle, with made-up numbers. It does not run the lab's code or show the lab's data, and nothing in it is a measurement.

Architecture

  1. Energy-descent Hebbian rule

    A local outer-product update that multiplies prediction error by presynaptic activity rather than postsynaptic activity. It is equivalent to descending a coupled energy.

  2. Attention-free convolutional language model

    ConvLM stacks causal dilated depthwise convolutions with GLU-MLP blocks and has no attention. It is written as a chain of blocks so that each block can be trained locally.

  3. Local gradient trainer

    Trainer computes gradients in four modes: predictive-coding relaxation, exact per-block local adjoint, global backprop and a bare-Hebb floor. Every mode writes the same gradient buffers, so one optimizer serves all four.

  4. Delta-rule associative memory

    DeltaMemory is a fixed-size matrix memory written by the error-correcting delta rule and read linearly. It gives the convolutional model recall by content in linear time, without softmax.

  5. Sparse top-k key coding

    Keys are expanded and passed through a winner-take-all code, in the style of the dentate gyrus and CA3, so that stored items interfere less.

  6. Iterated-read reasoner with halting

    Repeated reads of a Hebbian memory follow edges of a stored graph. A convergence test on the state decides per example how many reads to take.

  7. Continual-learning harness

    A prequential test on a non-stationary TinyStories stream compares frozen and online agents, each trained by a different rule.

  8. Transformer baselines

    These are minimal causal pre-LN transformer language models, used as frozen baselines and as a size-matched comparison of about 8.94M parameters.

  9. Cortical column stack

    The second part builds a network of 12 CorticalColumn blocks: thalamic relay, L4, L2/3 windowed Hebbian association, working memory and a gated L5. A predictive-coding settle loop runs over the stack.

  10. Production column

    ProductionColumn replaces the linear LM head and accumulates token evidence over settle steps; the code includes a dopamine-gated update similar to REINFORCE. The V11 architecture document still trains the production column and the embedding with global next-token gradients and only proposes removing them.

  11. Basal ganglia critic

    A temporal-difference critic turns reward prediction error into a dopamine signal. That signal sets the sign and size of local cortical updates.

  12. Population plasticity cluster

    PopulationPlasticityCluster treats each batch index as an independent reading stream. It runs delayed-binding learning, a sleep-pressure cycle and checkpointing.

Implementation

Mechanisms as they are implemented in the source code, with the constants the code uses.

Explicit energy-descent update without autograd
In learner_edhebb.py the predictor learns by ΔW2=η ε s⊤\Delta W_2 = \eta\, \varepsilon\, s^\top. The encoder learns by ΔW1=η (W2⊤ε) x⊤\Delta W_1 = \eta\, (W_2^\top \varepsilon)\, x^\top, back-projected through the same forward weights. The error ε\varepsilon is a slow exponential-moving-average teacher target minus the prediction, with defaults η=10−2\eta = 10^{-2} and τ=10−2\tau = 10^{-2}.
Analytic variance-floor penalty
Collapse is prevented by P=meanj relu(0.5−stdj)P = \mathrm{mean}_j\, \mathrm{relu}(0.5 - \mathrm{std}_j) with weight λ=1\lambda = 1. Its gradient is written out by hand, so the learner stays free of autograd. The ablation script audits this gradient.
Sanger rule as the bare-Hebb baseline
Bare correlational Hebb is stabilised by lower-triangular decorrelation, ΔW=η (sx⊤−tril(ss⊤)W)\Delta W = \eta\,(s x^\top - \mathrm{tril}(s s^\top) W). This converges to top-d PCA and serves as the 'Hebbian is decay' control.
Rotating signal under orthogonal noise
The toy world embeds a low-variance, predictable rotating signal with θ=0.35\theta = 0.35 orthogonally to high-variance unpredictable noise, with σ=1.4\sigma = 1.4 in the experiment. PCA therefore picks the noise, which separates variance-seeking learning from prediction-seeking learning.
Exact per-block local adjoint
In pc_trainer.py backprop is decomposed into one-block vector-Jacobian products over detached feed-forward activations, gl=Jl+1⊤gl+1g_l = J_{l+1}^\top g_{l+1}. The result is identical to the backprop gradient, but no global graph is kept.
Predictive-coding value-node relaxation
The energy is E=∑l12∥vl−fl(vl−1)∥2+CE(head(vL))E = \sum_l \frac{1}{2}\lVert v_l - f_l(v_{l-1})\rVert^2 + \mathrm{CE}(\mathrm{head}(v_L)). Value nodes take K gradient steps with step size γ\gamma, then each block updates locally with ΔW∝εl ∂fl/∂W\Delta W \propto \varepsilon_l\, \partial f_l / \partial W.
Contraction construction for relaxation
A proximal term ρ (v−aff)\rho\,(v - a_{ff}) adds strong convexity, and the bottom-up feedback J⊤εJ^\top \varepsilon is scaled by a gain below 1, which makes relaxation a contraction mapping. train_pc_verify.py compares naive relaxation (ρ=0\rho = 0, gain 1) with the stabilised form (ρ=0.5\rho = 0.5, gain 0.5).
Causal dilated depthwise convolution
Mixing over time uses left-padded depthwise convolutions with kernel 5 and dilation 2i2^i, in the style of WaveNet and TCN. The receptive field is 1+4∑idi1 + 4\sum_i d_i, and because the kernels encode position, no positional table is needed (use_pos=False).
Delta-rule fast-weight write and read
DeltaMemory writes S←S+βt kt(vt−S⊤kt)⊤S \leftarrow S + \beta_t\, k_t (v_t - S^\top k_t)^\top with βt=sigmoid(Wβht)\beta_t = \mathrm{sigmoid}(W_\beta h_t) and reads S⊤qtS^\top q_t. The state has a fixed size and the cost is linear in sequence length.
Sparse expanded winner-take-all keys
Keys are expanded from d to 2d, passed through ReLU, cut to the top 1/16 of units and normalised. The near-orthogonal codes reduce interference, and code comments report 16-pair recall rising from 0.083 to 0.851.
Iterated reads as graph hops
In think_reason.py one read q⊤Sq^\top S through an outer-product memory performs one hop on a random permutation graph with M=48. Chaining K reads computes succK(start)\mathrm{succ}^K(\mathrm{start}), so test-time compute scales with problem depth.
Fixed-point halting
think_halt.py repeats memory reads and halts per example when 1−cos⁡(zt,zt−1)<0.051 - \cos(z_t, z_{t-1}) < 0.05, capped at KMAX = 14. A fixed-point training loss keeps the convergence stable.
Prequential test under token permutation
continual_delta.py measures loss on each block before updating. Blocks alternate between normal text and text with the top 64 tokens permuted, which tests online adaptation without retraining.
Dopamine-gated REINFORCE-style rule
The production column updates by ΔWprod∝(DA−0.5) L5⊤(y−p)\Delta W_{prod} \propto (\mathrm{DA} - 0.5)\, L5^\top (y - p), averaged over batch and time. Tonic dopamine of 0.5 therefore produces no plasticity.
Temporal-difference dopamine
Phasic dopamine is the reward prediction error δ=r+γV(s′)−V(s)\delta = r + \gamma V(s') - V(s) with γ=0.99\gamma = 0.99. Learning for step t-1 is bound when the token at step t arrives, pairing the stored trace and probabilities with the new target.
Convex conservation blend
L2/3 and working memory update by z=λ clamp(xprev,±4)+(1−λ) uz = \lambda\, \mathrm{clamp}(x_{prev}, \pm 4) + (1-\lambda)\, u with λ=sigmoid(τfloor+flex+g(x))\lambda = \mathrm{sigmoid}(\tau_{floor} + \mathrm{flex} + g(x)). Because the combination is convex, the recurrence stays bounded. A BCM-style metaplastic term shifts flex, clamped to ±3\pm 3.
Windowed softplus association
L2/3 scores a 16-step window per head with distance weights, clamped to ±15\pm 15. Weights are normalised softplus values, and the context is the weighted sum of past states, at linear cost and with no softmax.
Settle loop and short-term depression
network.py runs three settle iterations, nudging each inner column toward thalamic input with gain 0.05. L5 output is scaled by a vesicle variable with depletion rate 0.5 and recovery rate 0.17. As written, the loop returns before its history-window shift, so that window stays at zeros.

Results

From the lab's own experiments and records. They have not been independently replicated.

  1. Prediction error turns Hebb into gradient learning

    In the lab's toy ablation, signal R2R^2 was -0.001 for bare Hebb, 0.790 for energy-descent Hebb and 0.790 for the autograd reference with the same energy.

  2. Wider receptive field lowered TinyStories perplexity

    Going from 3 to 7 dilated layers raised the receptive field from 29 to 509 tokens and cut validation perplexity from 8.82 to 6.93, with exact local training.

  3. WikiText-103 run at long context

    An 18.2M-parameter convolutional model with 14 layers, receptive field 65,533 and T=1024 reached validation perplexity 37.66 after 22k steps. Probes showed it uses context only up to about 256 tokens.

  4. Transformer leads at matched size

    At about 9M parameters, T=256 and 8,000 steps, the transformer reached validation perplexity 6.26 against 6.93 for the convolution, about 10% better.

  5. Knowledge without in-context ability

    The lab's intelligence battery found grammar gains of 65% and semantics at 3 of 5. Induction gained only 1.2%, and long-range recall was absent.

  6. Synthetic recall test was inconclusive

    The transformer control stayed near chance on the associative-recall task, so the experiment could not separate receptive field from content addressing.

  7. Softmax memory rejected as hidden attention

    The first memory fix used a softmax over query-key products, which the lab judged to be quadratic attention in disguise. It was deleted.

  8. Delta-rule memory restores recall and induction

    With the delta-rule memory, recall reached 0.987 and induction improved by 26.2%. Sparse top-k keys raised 16-pair recall from 0.083 to 0.851, the only imported hypothesis that survived ablation.

  9. Iterated reads extrapolate to deeper problems

    Trained on 1 to 3 hops, the reasoner solved 4 to 6 hops at accuracy 1.00 when given as many reads as hops, while one pass stayed at chance. With fixed-point halting, steps used equalled depth plus one at 100% accuracy, including unseen depths.

  10. Online local learning matches online backprop

    On the shifting stream, online energy-descent learning and online backprop both reached perplexity 16.9. The frozen transformer and frozen convolution reached 11,410 and 17,231.

Concepts

Hebbian learning
A synapse strengthens in proportion to the product of presynaptic and postsynaptic activity, written as an outer product. It is local because each weight uses only the signals at its own two ends.
Bare Hebb is decay
The lab's records state that pure Hebb with no objective either diverges or, once stabilised, settles to variance-maximising PCA. It then keeps unpredictable noise instead of the predictable signal.
Prediction error as postsynaptic term
The one-term change at the core of the method: the rule uses εh⊤\varepsilon h^\top in place of activity times activity. This makes the update the gradient of an energy.
Exact local recursion equals backprop
Per-block error outer products, chained through one-block Jacobians, give exactly the backprop gradient (cosine 1.000000 in the lab's audit). The equality is mathematical: the computation is local, but it is not a different gradient. The records cite equilibrium propagation, by Scellier and Bengio 2017, as prior art for local learning equivalent to backprop.
Iterative predictive coding
Predictive coding relaxes internal value nodes to lower a prediction-error energy, then updates weights locally; the records credit the result that it approximates backprop to Whittington and Bogacz 2017. On the residual RMSNorm network, the lab measured only weak alignment with backprop, cosine about 0.4 to 0.5.
Receptive field
The span of past tokens a causal convolution can see. With dilations it grows exponentially in depth, from 29 to 509 to 65,533 tokens in the lab's models.
Length-agnostic convolution
Without a learned positional table, the model runs at any sequence length. The lab recorded perplexity 34.2 at 1024 tokens and 34.1 at 2048.
Content addressing
Retrieving an item by matching its content rather than its position. The lab's records identify its absence as the reason convolution fails induction and recall.
Delta rule memory
A matrix memory that writes only the part of a value it does not already predict. This error-correcting write fixes recall at fixed capacity and linear cost.
Induction
The ability to continue a sequence that repeated earlier in the context, measured as the drop in loss on a repeated random block.
Associative recall task
A synthetic test in which the sequence lists key-value token pairs, then queries one key. Chance is one over the number of values.
Multi-hop reasoning by iteration
Each memory read follows one edge, so K reads answer K-hop questions. Test-time compute grows with depth instead of being fixed by the number of layers.
Prequential evaluation
Each block of a stream is scored before the model learns from it. This measures how quickly a learner adapts online.
Online learning is standard
The lab's own note states that a per-batch backward pass plus an optimizer step is textbook online learning. It disclaims novelty for that part.
Improvement ledger with cut rule
Candidate ideas imported from the lab's memory and biology work were kept only if they gave a measured gain. Metaplastic decay, multi-head memory and a VICReg term were cut.
Dopamine-gated policy gradient
In the cortical-architecture part, the production column's dopamine-gated local update, which the code includes, multiplies a policy error by dopamine above baseline. The lab's design documents argue (Theorem 98, a proof sketch) that this matches REINFORCE as cited from Williams 1992.
B-decoupling
The specification for running Hebbian updates at batch size above 1 without mixing unrelated sequences. Batched per-slice products are meant to equal B independent single-stream updates, with zero cross-stream derivative.
Cross-sample smearing
A defect described in the design specification: flattening batch and time into one outer product mixes activations from unrelated sequences into one correlation matrix.
Sleep consolidation
An offline phase in the design. Top episodes from each stream are merged into a shared hippocampal buffer and replayed on shared weights, and pressure-based scheduling triggers it.
BCM threshold and metaplasticity
A sliding activity threshold and a plasticity-history-adaptive learning rate. Together they stabilise the cortical columns' local updates.

About this page

Written from the lab's own documents and source code. Figures and results are the lab's measurements as it recorded them at the time, and have not been independently replicated.

Published under the PolyForm Noncommercial License 1.0.0: free for noncommercial use.