Skip to content
Cortical computationExperiments

Verace Lamina

Attention-free cortical-column language models with local predictive-coding learning and associative memory for in-context recall.

Verace Research·June 4, 2026
  1. L2/3 token mixer: Hebbian in version one, associative memory later
  2. L4 input: An input sublayer of the version one column
  3. Cross-column coupling: Each column predicts the state of its neighbour above
  4. L5 output pathway: Follows the mixer in every column block
Figure 1. The cortical column block that replaces attention in Verace Lamina. Schematic: stacked model cortical columns with layered sublayers, the repeated unit of every Verace Lamina version. Each column mixes tokens in L2/3 without softmax attention and passes the result out through L5.
Open the simulator on its own pageA gate that passes only surprise: an interactive toy model of the principle. You can also try it below

Overview

Verace Lamina is the lab's line of small cortical-column language models. In these networks every block is a model cortical column with layered sublayers, and no softmax attention is used. The line addresses two questions. First, can a column stack learn to predict text when its token mixer is an attention-free memory and its weights may be trained by a local rule instead of global backpropagation? Second, can such a model bind a key to a value inside its context and recall it later, something a fluent model can still fail to do? Every version includes matched transformer baseline code, but recorded comparisons exist for versions one and three only.

Verace Lamina ran through three versions. Version one follows the column specification of Verace Neocortex but shares none of its code. It is a character-level model whose L2/3 sublayer, the token mixer, learns by Hebbian rules: Oja's rule, anti-Hebbian decorrelation and k-winners-take-all sparsity, held stable by homeostasis. Diffusion over a learned cellular sheaf later replaced that mixer. Version two was rederived from one free-energy objective and uses content-addressable memories as mixers. Version three has two channels. Channel A trains the columns by Local Free-Energy Descent, a form of predictive coding with no global backward pass. Channel B is a softmax-free episodic memory, which ends in the CoRe dual-read router.

In the lab's experiments, version one's Hebbian mixer plateaued at 4.41 bits per character, and a matched transformer beat its sheaf-diffusion model by 22 to 40% in bits per character. Version two's first run used 3.80M parameters on byte-level TinyStories. It reached 0.951 validation bits per character and wrote fluent stories, but it recalled 0 of 20 bound nonces because sheaf diffusion smooths and does not look up. A fast-weight memory then reached 70% onset retrieval against 5% chance. In version three, Local Free-Energy Descent took a 1.26M-parameter model from 7.93 to 3.32 bits per character, against 1.74 for backprop. The CoRe mixer reached 3.04 after 20k steps, against 3.17 for the transformer.

All three versions are implemented and trained, with numerical certificates for the theory lemmas and a ledger of 18 recorded failed architecture variants. Local learning trains a language model but loses to backprop and degraded after step 500. Attention-free recall passes synthetic gates but erodes with longer training, settling near 0.86. A variant of version three adds a Clifford-algebra column prototype and a multigrid design, and the lab later falsified its single-pass credit rule. A separate theory document, with no code, argues that backprop is irreducible, which conflicts with version three's local-credit thesis. Runs are small, and long-range credit for language is untested.

Status

Experiments. Three implemented versions have recorded training runs and recall evaluations, with recorded transformer or backprop controls for versions one and three only, while the Clifford multigrid design and the energy-conditioning architecture exist only as documents.

Simulator

A made-up signal jumps a few times. A running prediction follows it, and a gate passes the prediction error upwards only when it is large for the precision it is given.

  • signal (white) and prediction (colour), synthetic data
  • prediction error: passed upwards (colour) or held (faint)
Steps passed upwards
26%
Gate stays open after a jump for
10.5 steps
Mean size of the error
0.29
Jumps in the signal
4

Raise the precision and small errors pass as well. Lower the learning rate and the prediction takes longer to catch up after a jump.

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. Cortical column block

    The repeated unit of every version: an L2/3 token mixer followed by an L5 output pathway, with other cortical sublayers (L4 input, L1 top-down, L6 feedback, interneurons) in version one. It stands in for the transformer block.

  2. Hebbian L2/3 mixer

    Version one's token mixer, trained by Oja's rule, anti-Hebbian decorrelation and 5% k-winners-take-all sparsity instead of backprop. BCM thresholds and synaptic scaling keep the weights stable.

  3. Causal sheaf diffusion mixer

    A mixer that refines token states by a few gradient steps on a Dirichlet energy over a learned cellular sheaf on a causal window, building on the K-step sheaf diffusion of Bodnar et al. 2022. Version one used it to replace the Hebbian mixer, and version two used it in its first run.

  4. Fast-weight associative memory

    Version two's softmax-free matrix memory that accumulates key and value outer products over all past tokens. It replaced diffusion and gave the line its first measured in-context retrieval.

  5. Cross-column predictive coupling

    Each column predicts the state of its neighbour above, with a bounded cosine loss. The design documents treat this as the novelty that separates the architecture from state-space models.

  6. Free-energy master equation

    A single objective summing precision-weighted local prediction errors, a cross-column sheaf term and an anti-collapse term. States relax fast and weights descend slowly on the same objective.

  7. Channel A: Local Free-Energy Descent

    Version three's learning rule. It relaxes column states to a fixed point of the free energy, then updates each column's weights from its own local error, with no global backward pass.

  8. Channel B: episodic memory

    Version three's softmax-free causal associative store, read out as state and not as self-attention. A short depthwise causal convolution binds adjacent key and value tokens.

  9. DPOG sparse memory

    A Channel B mixer that expands keys into a 512-dimensional sparse code per head with hard k-winners-take-all. Stored keys become near-orthogonal, so retrieval is sharp.

  10. CoRe Coherence-Recall Router

    The final version three mixer, with a smooth read and a sharp k-winners-take-all read over one shared value store. A per-token confidence gate chooses between them.

  11. Matched transformer baseline

    A causal-softmax transformer of matched size and identical interface, serving as the control for bits per character and recall. Every version has its code, but recorded comparisons exist for versions one and three only.

  12. Energy-conditioning design

    A theory-only architecture that treats the model as one energy minimised over states and implicitly differentiated over weights. Every guarantee rests on a bounded condition number of the state Hessian.

Implementation

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

Local Free-Energy Descent training loop
Version three first initialises the column states v1,…,vLv_1, \dots, v_L with a feedforward pass. It then runs 8 relaxation sweeps v←v−0.5 ∂F/∂vv \leftarrow v - 0.5\,\partial F / \partial v, and finally updates θ←θ−η ∂F/∂θ\theta \leftarrow \theta - \eta\,\partial F / \partial \theta at fixed, detached states, so each column's credit uses only its own error and a detached input. The optimizer is AdamW with lr 3e-4, betas (0.9, 0.95) and weight decay 0.1.
Precision-weighted predictive-coding energy
Each column has a learned variance σl2\sigma_l^2 (softplus plus 1e-3) that weights its local squared prediction error by 1/σl21/\sigma_l^2. A penalty 12log⁡σl2\frac{1}{2}\log \sigma_l^2 stops the variance from inflating to make errors vanish. The output cross-entropy is added to the summed local errors.
DPOG k-WTA orthogonal gate
Keys and queries are expanded to ds=512 per head, and hard k-winners-take-all keeps kw=8 winners. The stored keys are then near-orthogonal, so the normalised linear read is close to one-hot and gives sharp recall without softmax.
CoRe confidence-gated router
The output is o=(1−g) os+g oho = (1-g)\,o_{s} + g\,o_{h}, with smooth read oso_s, sharp read oho_h and gate g=σ(Wrx+s c)g = \sigma(W_{r} x + s\,c) per head and token, where cc is the largest sharp read weight. The route weight starts at 0 with bias −2, so g≈0.12g \approx 0.12, and conf_scale starts at 4.0. The core_gate=False ablation simply sums the two reads.
Delta-rule memory write
An error-correcting associative write S←S+β k(v−Sk)⊤S \leftarrow S + \beta\, k (v - S k)^\top with normalised keys and a per-head sigmoid β\beta. It orthogonalises the store for sharp retrieval and is computed as a sequential scan.
Two-timescale sharp-key schedule
The sharp-route key parameters dgq and dgk get their own parameter group with a 100-step warmup and a cosine decay to 0, so the keys freeze late while dense parameters keep a flat rate. A probe logs the fraction of top-kw winner indices that flip between evaluations. This is the key-churn signal that the recall-erosion hypothesis predicts.
SIGReg anti-collapse regulariser
For each random slice the code computes (cos⁡(xt)‾−e−t2/2)2+(sin⁡(xt)‾)2(\overline{\cos(xt)} - e^{-t^2/2})^2 + (\overline{\sin(xt)})^2 and integrates it with trapezoid weights times e−t2/2e^{-t^2/2}. This tests whether features are isotropic Gaussian, relying on the Cramér-Wold theorem. It is a port of the published LeJEPA loss, with 17 knots, 256 slices and t_max 3.0, and its default weight is 0, so it is off.
Effective-rank collapse probe
The probe hooks each column's value store and residual output and computes r=(∑iλi)2/∑iλi2r = (\sum_i \lambda_i)^2 / \sum_i \lambda_i^2 over the centred feature covariance. A value of 1 means the features have collapsed to one dimension, and dd means they are isotropic. It reports r/dr/d together with stable rank and the top-1 variance fraction.
Gate dissociation criterion
gate_probe.py compares the column-mean CoRe gate at the recall query position with the gate at filler positions, across gaps 16, 64, 128 and 200. Recall counts as gate-routed only if the query gate exceeds the filler gate by more than 0.15 and by a ratio above 1.5.
Magic-word recall injection
Each TinyStories sequence receives one binding episode: the phrase ' The magic word is' followed by a random code token in [1000, 8000), repeated after a gap. The second code token is the scored target, and evaluation gaps are 16, 64, 128 and 200.
Windowed sheaf Dirichlet diffusion
Version two descends on E=12∑oao∥ht−Moht−o∥2E = \frac{1}{2}\sum_o a_o \|h_t - M_o h_{t-o}\|^2 with per-offset, per-head restriction maps MoM_o initialised at identity plus 0.01 noise. The offset weights pass through a softplus, start at 1/(o+1)1/(o+1) and are normalised to sum to 1. The defaults are step 0.5, K=3 and window 8.
Causal fast-weight memory read
The state is St=∑i≤tϕ(ki)vi⊤S_t = \sum_{i \le t} \phi(k_i) v_i^\top with ϕ=ELU+1\phi = \mathrm{ELU} + 1. The read is normalised by ϕ(q)⊤∑iϕ(ki)\phi(q)^\top \sum_i \phi(k_i), clamped at 1e-4 or above, and is computed as a float32 cumulative sum over all past tokens.
Log-sum-exp Hopfield energy
The theory certificates use F(h)=λ2∥h∥2−lse(β,Ξ⊤h)F(h) = \frac{\lambda}{2}\|h\|^2 - \mathrm{lse}(\beta, \Xi^\top h) with update ξ←Ξ softmax(βΞ⊤ξ)\xi \leftarrow \Xi\,\mathrm{softmax}(\beta \Xi^\top \xi). Retrieval succeeds when β(1−m)>ln⁡K\beta(1 - m) > \ln K, where mm is the largest overlap between stored patterns.
Bounded cosine column coupling
Column ll predicts the detached state of column l+1l+1 through a linear top-down map, with loss equal to the mean of 1−cos⁡1 - \cos, which lies in [0, 2]. It replaced an unbounded MSE coupling that diverged at coupling weight 10.
BCM-modulated Oja rule
Version one's L2/3 update is ΔW=η (sign(y2−θM)⟨yx⊤⟩−⟨y2⟩W)\Delta W = \eta\,(\mathrm{sign}(y^2 - \theta_M)\langle y x^\top \rangle - \langle y^2 \rangle W) with η\eta = 1e-3, and row norms are capped at 4.0. The threshold θM\theta_M tracks an exponential moving average of y2y^2 with decay 0.999. Synaptic scaling multiplies each incoming row by exp⁡(−10−4⋅excess)\exp(-10^{-4} \cdot \text{excess}) toward a firing-rate target of 0.05.
Causal sheaf diffusion with stability clamp
Version one refines token states with K=3 steps on Et=∑ΔwΔ∥Rs[Δ]st−Δ−Rt[Δ]st∥2E_t = \sum_\Delta w_\Delta \|R_{s}[\Delta] s_{t-\Delta} - R_{t}[\Delta] s_t\|^2. The step size is the sigmoid of a raw parameter times 0.5, and only the derivative with respect to sts_t is kept, which makes the update causal. Every N steps, power iteration estimates λmax⁡\lambda_{\max} of the sheaf Laplacian and tightens eta_cap to min⁡(ηcap,1.8/λmax⁡)\min(\eta_{cap}, 1.8/\lambda_{\max}).
TTT-linear inner update
TTT-linear is an existing test-time-training layer by other authors, which the lab tried as an alternative version one mixer. It keeps a matrix state per head and updates it by Wt=(1−α)Wt−1−ηt clip(2(Wk−v)k⊤,0.5)W_t = (1-\alpha) W_{t-1} - \eta_t\,\mathrm{clip}(2(W k - v) k^\top, 0.5), with α=0.05\alpha = 0.05 and ηt=0.05 σ(θ⋅x−3)\eta_t = 0.05\,\sigma(\theta \cdot x - 3). The state resets to the learned W0W_0 every 16 tokens.
Clifford block-isomorphic product
The variant of version three represents a 2D Clifford multivector as [h∥B]∈R2d[h \| B] \in \mathbb{R}^{2d}. It applies the geometric product through the real block matrix (A−BBA)\begin{pmatrix} A & -B \\ B & A \end{pmatrix}, which is equivalent to complex multiplication, followed by a cardioid magnitude-gated nonlinearity.

Results

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

  1. Hebbian mixer plateaued early

    In version one the Hebbian mixer plateaued at 4.41 bits per character by step 1400, according to the lab's records. An apparent 3.02 bits-per-character Hebbian result under a cosine learning-rate schedule could not be reproduced on the current code, which gave 4.36, and the lab keeps it on record as a misdiagnosis.

  2. Sheaf diffusion broke the plateau, lost to transformers

    After a causality fix, the sheaf diffusion mixer reached 4.04 validation bits per character over 8K steps in version one's records, and coherent text still failed at about 4M parameters. Against this sheaf model the matched transformer won by 22 to 40% in bits per character at equal size, and the BPE cortical model flatlined at 10.13 and produced 'the the the'.

  3. Fluent version two model with zero recall

    Version two's first run (3.80M parameters, 20k steps) fell from 8.107 to 0.951 bits per character at about 31k tokens per second, but scored 0 of 20 on nonce recall and always returned the prior 'ball'. The phase log treats the fluency as an expected baseline, since TinyStories is built so that even tiny models are fluent, not as evidence for the architecture, and records new intelligence as not demonstrated. The lab's diagnosis is that windowed sheaf diffusion smooths and does not look up.

  4. Associative memory gives first measured retrieval

    The fast-weight memory reached 70% onset retrieval against 5% chance at similar bits per character, at about 246M tokens. Cross-column coupling at weight 0.5 added roughly 14 to 20 points at about 5% bits-per-character cost on a single seed, while the cohomology obstruction proxy stayed flat between coherent and shuffled text.

  5. Local learning trains a model but trails backprop

    In version three, Local Free-Energy Descent took a 1.26M-parameter model from 7.93 to 3.32 bits per character by step 500, then degraded to 3.72. Backprop on the identical model reached 1.74 and ran about 10x faster (about 34k against 8.5k tokens per second). Both scored 0 of 20 on nonce recall, which the lab judges confounded at about 12M tokens.

  6. Linear memory passes MQAR, fails recall in text

    Channel B reached 1.000 MQAR recall at 16 pairs against 0.030 for the ablation, after a causal convolution raised it from 0.13. On the recall-augmented language task, linear memory scored 0.00 at every gap while the transformer held about 0.81, and a later test gave 0.000 recall at 256 tokens.

  7. Dual-read CoRe recovers recall at lower cost

    DPOG reached 0.97 recall flat across gaps but used 12.5M parameters and reached 3.74 bits per character. CoRe dominated it with 41% fewer parameters, and after 20k steps reached 3.04 bits per character against 3.17 for the transformer, with recall peaking at 0.926 and settling near 0.86. The gate opened 3.3x more at the query position (0.60 against 0.18).

  8. Single-pass Clifford credit rule falsified

    On depth 2 to 16 tanh teachers, the Clifford rule ended at loss 0.22 to 0.37 with cosine near 0 to the true gradient, while backprop reached 0.0004. An earlier version had passed only because it secretly traversed all layers backward. This contradicts the variant's design document, which claimed exact credit without backprop.

  9. Multigrid relaxation gives flat credit reach

    In the lab's L-Reach solver comparison, Gauss-Seidel needed cycles growing as D1.79D^{1.79} and Chebyshev as D0.86D^{0.86}, while a multiscale V-cycle held at 4 cycles for D from 15 to 127. The lab records this as conditional on the learned coupling being multigrid-amenable, and it is untested for language.

Concepts

In-context binding and recall
Presenting a pair such as a name and a nonce, then querying the name later, and returning the bound value with no weight update. The lab treats this, and not fluency, as the test of whether a column model does more than sample its training prior.
Nonce recall probe
A prompt of the form 'X has a W. X loves the W. X plays with the', decoded greedily. Matches to the bound nonce are compared with a control nonce at index (i+7) mod 20(i+7) \bmod 20 to separate retrieval from prior.
MQAR
Multi-query associative recall, a synthetic task in which many key and value pairs are stored and several keys are queried. Version three uses it as Gate B1 to certify Channel B in isolation before language training.
Bits per character
Validation cross-entropy in bits per character, the line's main language-modelling measure. Lower is better, and it is reported for byte, character and BPE models.
Predictive coding
A learning scheme in which each layer predicts the layer below, states relax to reduce the precision-weighted prediction errors, and weights then change from those local errors. Local Free-Energy Descent is the lab's form of it.
Local credit theorem
For an energy F=∑eEeF = \sum_e E_e, the gradient for a column's weights is ∂F/∂θe=∂Ee/∂θe\partial F / \partial \theta_e = \partial E_e / \partial \theta_e. At the relaxed fixed point, the envelope theorem makes this update exact without a backward pass.
PC and backprop hinge
The lab's lemma V3-L4 finds that free-running predictive coding has zero gradient without a label, while nudged predictive coding converges to backprop as the nudge goes to zero (cosine 0.997). Predictive coding equals backprop only when a label is clamped, consistent with Whittington and Bogacz 2017.
Credit-reach trilemma
The lab's analysis holds that backprop, predictive coding and direct feedback alignment each give up one of three properties: constant credit reach, learning deep networks, or locality. Direct feedback alignment and fully local rules sit at baseline.
Credit conservation law
The lab's proposition that exact credit across a depth or horizon DD costs Ω(D)\Omega(D). The cost should be paid where DD is small, and long-range credit carried by memory.
L-Reach as a multigrid problem
After K relaxation sweeps, a weight sees only latents within distance K. The lab frames long-range credit as the low-frequency mode of an elliptic solve that coarse grids built from the column hierarchy can remove, following Brandt's 1977 multigrid principle.
Episodic tangent teleportation
A method that freezes a local trace, gates storage by surprise, stores the trace in a memory slot and later applies ΔW=ETSτ\Delta W = E_T S_\tau. It belongs to the published class of temporal value transport and RUDDER. The lab records cosine 1.000 to backprop through time when credit is routed through memory.
Interference capacity wall
A normalised-sum linear memory dilutes a single binding among competing keys, and interference grows as 1/N1/\sqrt{N}. The lab notes that MQAR with 16 to 24 keys was too easy to expose this.
Separation of smooth and sharp reads
A single read with tunable temperature keeps a dense tail that brings back the interference. The lab therefore uses two separate reads, one blending and one content-addressed, which is the basis of CoRe.
Recall erosion
In longer CoRe training, recall peaked and then declined while bits per character kept improving. The lab's hypotheses include drift of the sharp-route keys, measured as key churn.
Cellular sheaf diffusion
Token or column states live on a graph, learned restriction maps compare neighbours, and diffusion lowers the resulting Dirichlet energy, building on the K-step sheaf diffusion of Bodnar et al. 2022. Version two's records show that it smooths local states but cannot retrieve a specific earlier token.
Dissociation as verdict
A design principle from the root design documents: a mechanism proves its worth if cutting it collapses a capability such as recall while perplexity barely moves.
Cut rule and falsification ledger
A mechanism stays only if it earns its cost in measurement, and every variant that hits a known failure is recorded with that failure and its cause. Version three cut sheaf diffusion, k-WTA in the dense path, Hebbian learning and a passive cohomology signal on this basis.
Bounded condition number
The theory document's central requirement: the state Hessian of the energy must have a uniformly bounded condition number κ\kappa, with an isotropic Gaussian anchor μ2∥z∥2\frac{\mu}{2}\|z\|^2 supplying a floor on the Hessian. Its Theorem 6 gives effective credit depth Deff=(κ+1)/2D_{eff} = (\kappa+1)/2, stated with a proof sketch only; nothing of it is implemented or tested.

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.