Verace Lamina
Attention-free cortical-column language models with local predictive-coding learning and associative memory for in-context recall.
- L2/3 token mixer: Hebbian in version one, associative memory later
- L4 input: An input sublayer of the version one column
- Cross-column coupling: Each column predicts the state of its neighbour above
- L5 output pathway: Follows the mixer in every column block
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
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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 with a feedforward pass. It then runs 8 relaxation sweeps , and finally updates 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 (softplus plus 1e-3) that weights its local squared prediction error by . A penalty 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 , with smooth read , sharp read and gate per head and token, where is the largest sharp read weight. The route weight starts at 0 with bias −2, so , and
conf_scalestarts at 4.0. Thecore_gate=Falseablation simply sums the two reads. - Delta-rule memory write
- An error-correcting associative write with normalised keys and a per-head sigmoid . It orthogonalises the store for sharp retrieval and is computed as a sequential scan.
- Two-timescale sharp-key schedule
- The sharp-route key parameters
dgqanddgkget 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 and integrates it with trapezoid weights times . 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 over the centred feature covariance. A value of 1 means the features have collapsed to one dimension, and means they are isotropic. It reports together with stable rank and the top-1 variance fraction.
- Gate dissociation criterion
gate_probe.pycompares 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 with per-offset, per-head restriction maps initialised at identity plus 0.01 noise. The offset weights pass through a softplus, start at 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 with . The read is normalised by , 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 with update . Retrieval succeeds when , where is the largest overlap between stored patterns.
- Bounded cosine column coupling
- Column predicts the detached state of column through a linear top-down map, with loss equal to the mean of , 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 with = 1e-3, and row norms are capped at 4.0. The threshold tracks an exponential moving average of with decay 0.999. Synaptic scaling multiplies each incoming row by toward a firing-rate target of 0.05.
- Causal sheaf diffusion with stability clamp
- Version one refines token states with K=3 steps on . The step size is the sigmoid of a raw parameter times 0.5, and only the derivative with respect to is kept, which makes the update causal. Every N steps, power iteration estimates of the sheaf Laplacian and tightens
eta_capto . - 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 , with and . The state resets to the learned every 16 tokens.
- Clifford block-isomorphic product
- The variant of version three represents a 2D Clifford multivector as . It applies the geometric product through the real block matrix , 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.
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.
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'.
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.
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.
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.
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.
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).
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.
Multigrid relaxation gives flat credit reach
In the lab's L-Reach solver comparison, Gauss-Seidel needed cycles growing as and Chebyshev as , 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 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 , the gradient for a column's weights is . 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 costs . The cost should be paid where 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 . 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 . 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 , with an isotropic Gaussian anchor supplying a floor on the Hessian. Its Theorem 6 gives effective credit depth , 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.