Skip to content
Cortical computationExperiments

Verace Neocortex

A language model built from stacked cortical columns with local learning rules, precision-weighted predictive coding and multi-timescale memory.

Verace Research·February 27 to November 1, 2026·12 publications
  1. L4 input: Where each column receives its input
  2. L1 top-down modulation: Context arriving from above the column
  3. L5 output and prediction: Emits activation and a top-down prediction
  4. L6 thalamic feedback: Sends feedback back to the thalamus
Figure 1. Stacked cortical columns in place of transformer blocks. Schematic: an illustration of the cortical column that Verace Neocortex uses in place of a transformer block, with input landing in L4, top-down prediction, lateral links and L6 thalamic feedback.
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 Neocortex is a language model in which stacked six-layer cortical columns and modelled subcortical systems take the place of transformer blocks. Its research name is NeuroCortex Transformer (NCT). It asks two questions. Can circuits modelled on neocortex, trained mostly by local rules such as predictive coding and Hebbian plasticity, do next-token prediction? Can a learned precision signal give calibrated per-token confidence? The work has five parts: a research implementation (versions V1 to V10.2 and the NCT-Adapt method), a packaged V11 release, a Rust port of V11, a packaged copy of the memory code, and a packaged copy of the column circuit.

Each column passes its input through L4, L1 top-down modulation, L2/3 windowed Hebbian association, interneuron gating, working memory, oscillations, L5 output and prediction, and L6 thalamic feedback. Thalamus, hippocampus, basal ganglia, cerebellum and brainstem neuromodulation surround the columns. A learned precision σ2\sigma^2 scales prediction errors and also drives confidence, routing and memory writes. The research versions and NCT-Adapt start new modules gated near identity; V11 starts them small, random and active, with gates at sigmoid(0)=0.5\mathrm{sigmoid}(0) = 0.5. In V11, learning is local: predictive coding and Hebbian updates in the columns, and an analytical delta rule on the output head. A wake, sleep, dream and consolidate loop runs training. AutoScale grows, splits, merges and kills columns.

The research versions V1 to V10.2 use attention variants. V10.2 has about 105.5M parameters across 12 blocks. The V11 release drops Q/K/V attention and ships presets of 106M, 300M and 1,008M parameters; its package description lists 211 pytest tests. NCT-Adapt attaches the lab's modules to a frozen pre-trained model from another party. In the lab's experiments, V1 at nano scale on TinyStories reached perplexity 141.92 against 175.83 for a baseline. The technical reference records validation perplexity 54.0 on WikiText-2 for the 300M V11 model after 5,000 steps; a later report gives 50.58 after 21,000 steps, with generated text still incoherent. NCT-Adapt reports AUROC 0.793 for per-token confidence.

Status: the model is implemented in Python (research versions and V11 release) and V11 is ported to Rust. Training runs and evaluations are recorded for the research versions, NCT-Adapt and V11. The V11 package description claims no softmax and no global backpropagation, yet the default hybrid mode trains the output head from a softmax error, and versions V1 to V10.2 use attention. Negative results: an earlier run scored below random on HellaSwag, and annealing auxiliary losses to zero collapsed entity memory. The Rust validation runner is a placeholder. A 7B training plan and a tiered memory store above 1 TB are designs only. All results are the lab's own measurements and have not been reproduced independently.

Status

Experiments. Python and Rust implementations exist with a test suite, and the lab recorded training runs and evaluations for V1, V10.2, NCT-Adapt and V11, while the larger-scale plans remain designs.

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
9.3 steps
Mean size of the error
0.30
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.

In depth

Each of these pages goes through one part of the work in detail.

Research model code

Brain-inspired language model code: precision-weighted predictive coding, gated modules and frozen-backbone adapters.

Production package

A packaged cortical column language network with local learning, subcortical systems, autonomous wake-sleep operation and brain-inspired decoding.

Training and evaluation scripts

Launch, monitoring, evaluation, data and packaging scripts for training Verace Neocortex models and scoring their uncertainty signal.

Design documents

Specifications, theorems and evaluation reports for a cortex-inspired language model, its adapter method and its local-learning column network.

Simulation and tools

A pure-NumPy cortical transformer, morphological tokenizer, synthetic cognitive datasets and an ODE simulator of NCT training dynamics.

V11 package code

Source tree of the V11 cortical-column language model, its brain-systems layer and kernels, and the research lines developed beside it.

Theorems

Numbered design theorems specifying the mechanisms, constants and audits of a cortical-column language model.

Bug reports and failure map

An audit record of defects, coverage matrices and symptom-to-cause failure entries for the V11 implementation of the cortical model.

Research audits and reports

Per-module engineering audits, stability theorems and validation verdicts for a biologically constrained cortical-column language model.

Test suite

A pytest contract suite pinning initial states, local learning rules, homeostasis and substrate causality in a cortical-column language model.

Rust port

A Rust reimplementation of a cortical column language model with local learning rules, a wake and sleep lifecycle and a morphological tokenizer.

Architecture

  1. Cortical column

    The basic compute unit that replaces a transformer block: L4 input, L1 top-down, L2/3 association, interneurons, working memory, oscillations, L5 output and L6 feedback. It emits an activation, a top-down prediction, thalamic feedback and a precision σ2\sigma^2.

  2. Four-stage brain embedding

    Replaces a plain embedding table with base lookup, morphological composition, hub-and-spoke integration and sparse distributed activation. Each stage is gated and starts as identity. A grid-cell position signal replaces RoPE.

  3. Subcortical systems

    Thalamus with relay groups and TRN gating, hippocampus for episodic memory, basal ganglia with D1/D2 pathways, cerebellum for temporal prediction, and brainstem neuromodulation, all placed around the column stack.

  4. Precision-weighted predictive coding

    Each layer or column predicts the activity below it and learns a precision σ2\sigma^2 that scales its prediction error. The same σ2\sigma^2 serves as the model's per-token uncertainty.

  5. Four-level working memory

    NMDA attractor slots, Tsodyks-Markram silent traces, a phonological loop of 8 slots and D1/D2 gating, aggregated into a metamemory confidence value.

  6. Hippocampal episodic memory

    A DG/CA3/CA1 path for one-shot storage. Writes are gated by surprise, and a consolidation manager distils episodes into slow cortical weights during sleep.

  7. Autonomous lifecycle loop

    An orchestrator that cycles through wake, sleep, dream, consolidate and evaluate, with curiosity, self-play, elastic weight consolidation and self-repair rollback.

  8. AutoScale structural plasticity

    Kills, merges, shrinks, splits and grows columns during training, driven by multi-scale σ2\sigma^2 and gate statistics.

  9. Brain decoder

    A generation module with no learnable parameters. It replaces top-k and nucleus sampling with drift-diffusion evidence accumulation and inhibition of return.

  10. Dual-route morphological tokenizer

    A 13,817-token vocabulary of whole words, roots, affixes, special tokens and byte fallback, modelled on Coltheart's dual-route reading model.

  11. NCT-Adapt wrapper

    Attaches the lab's modules as identity-initialised adapters to a frozen pre-trained language model from another party, adding per-token calibrated confidence.

  12. Rust port

    A reimplementation of V11 in Rust with the same column, subsystems, learning manager, autonomous loop, tokenizer and AutoScale, plus its own checkpointing protocol.

Implementation

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

Sigmoid-bounded log-precision
The log-precision is γ=−1.609+3.912 sigmoid(WσXn)\gamma = -1.609 + 3.912\,\mathrm{sigmoid}(W_\sigma X_n) with σ2=e−γ\sigma^2 = e^{-\gamma}, so σ2\sigma^2 lies in (0.1, 5.0) by construction while the gradient stays nonzero. Surprise is mean(ϵ2)/σ2\mathrm{mean}(\epsilon^2)/\sigma^2, and a gate sigmoid(β(s−softplus(τ)))\mathrm{sigmoid}(\beta(s - \mathrm{softplus}(\tau))) blends the prediction with the input.
Surprise-gated predictive coding in V1
With ϵ=X−X^\epsilon = X - \hat{X}, surprise is s=mean(ϵ2)s = \sqrt{\mathrm{mean}(\epsilon^2)} and the gate is g=sigmoid(10(s−softplus(τ)))g = \mathrm{sigmoid}(10(s - \mathrm{softplus}(\tau))), with tau initialised at 1.0. The output Xout=(1−g)X^+gXX_{out} = (1-g)\hat{X} + gX replaces predictable tokens by their prediction.
Free-energy precision loss
Precision is trained with F(γ)=eγ MSE−γF(\gamma) = e^{\gamma}\,\mathrm{MSE} - \gamma, whose equilibrium is σ2=MSE\sigma^2 = \mathrm{MSE}. In NCT-Adapt the per-token cross-entropy is used in place of MSE, with eγe^{\gamma} capped at 100, a weight of 0.01, and a boundary penalty of weight 0.1 that keeps σ2\sigma^2 within [0.3, 4].
Local predictive-coding weight update
In the Rust port each column predicts the column below. Its weights change by ΔW=−η (ϵ/σ2) h⊤/N\Delta W = -\eta\,(\epsilon/\sigma^2)\,h^\top/N, scaled by plasticity. The error is averaged over the model dimension rather than summed, which prevents σ2\sigma^2 from diverging.
Analytical delta-rule output head
The output head learns without backpropagation through the network, using the Widrow-Hoff rule with e=softmax(z)−onehot(y)e = \mathrm{softmax}(z) - \mathrm{onehot}(y) applied through the low-rank factors. Each gradient is clipped to norm 1.0, and the learning rate is 100 times the base rate because the error is O(1/V)O(1/V).
BCM-modulated Hebbian association
The association weights change by ΔW=η (y(y−θ))⊤x/N\Delta W = \eta\,(y(y - \sqrt{\theta}))^\top x / N with a zero diagonal and the norm clipped to 5. Here θ\theta is an EMA of mean squared activity with tau 1000, so updates potentiate above the threshold and depress below it.
Gated linear Hebbian memory with LTD
Each step applies S←at⊙S+ηwt(k⊗v)−δwt(k⊗k)S \leftarrow a_t \odot S + \eta w_t (k \otimes v) - \delta w_t (k \otimes k) and z←at⊙z+ηwtkz \leftarrow a_t \odot z + \eta w_t k, and reads Sq/(z⋅q)S q / (z \cdot q), with ELU+1 feature maps. The decay aa lies in (0.2, 0.98), and the anti-Hebbian term erases stale traces for repeated keys.
Newton-refined smooth k-WTA
The method solves ∑iσ(β(hi−λ))=k\sum_i \sigma(\beta(h_i - \lambda)) = k for the threshold λ\lambda by 5 Newton iterations, starting from the k-th largest value. The mask σ(β(h−λ))\sigma(\beta(h - \lambda)) then keeps about k units active and stays differentiable.
Nested oscillation phase-amplitude coupling
Gamma amplitude follows Aγ=1+tanh⁡(κ1)cos⁡ϕθ+tanh⁡(κ2)cos⁡ϕδ−tanh⁡(κ3)(1+cos⁡ϕα)/2A_\gamma = 1 + \tanh(\kappa_1)\cos\phi_\theta + \tanh(\kappa_2)\cos\phi_\delta - \tanh(\kappa_3)(1+\cos\phi_\alpha)/2. Periods are learnable, initialised at theta 8, alpha 20 and delta 64 tokens. The amplitude scales a low-rank modulation added through a sigmoid gate.
Oscillatory phase-coherence binding
In the early versions each token has soft memberships ϕ\phi over 4 phases. Each phase runs attention with the bias log⁡(ϕiϕj)\log(\phi_i \phi_j) scaled by inhibition, and phase entropy is regularised toward 0.5ln⁡P0.5 \ln P.
Identity-at-init gating and its revision
In the research versions, each module adds sigmoid(g) f(x)\mathrm{sigmoid}(g)\,f(x) to its input, with g=−2g = -2 (about 0.12) and zero-initialised output projections, so the network starts as its plain counterpart. The later V11 code follows a neonatal init doctrine instead: modules start small, random and active, and gates start at sigmoid(0)=0.5\mathrm{sigmoid}(0) = 0.5.
Multi-scale precision bands
Column σ2\sigma^2 is grouped by depth quartile into token, phrase, sentence and discourse uncertainty. Discourse σ2\sigma^2 gates tool use, sentence σ2\sigma^2 gates retrieval and hippocampal writes, and per-column σ2\sigma^2 drives early exit and AutoScale.
Six-signal neuromodulation
An MLP with the shape d→256→6d \to 256 \to 6 reads a surprise-weighted context. It outputs attention temperature (0.5 to 2.0), FFN sparsity, layer gate, residual scale, inhibition strength and plasticity rate. Later versions split this into a global MLP that produces 4 signals and per-layer MLPs that produce 2.
Capped gated residual for adapters
NCT-Adapt blends each frozen layer as Xout=Xf+α(Xnct−Xf)X_{out} = X_f + \alpha(X_{nct} - X_f) with α=αmax sigmoid(g)\alpha = \alpha_{max}\,\mathrm{sigmoid}(g). The cap αmax\alpha_{max} is fixed at 0.1 and is not learnable, which limits each layer's influence on the frozen model.
Elastic weight consolidation
This follows elastic weight consolidation as published by Kirkpatrick 2017. Parameter importance is F=E[(∂L/∂θ)2]F = E[(\partial L / \partial \theta)^2] and decays by a factor of 0.999 per estimate. The penalty is 12λ∑F(θ−θ∗)2\frac{1}{2}\lambda \sum F(\theta - \theta^*)^2, with a default λ\lambda of 100 in the Rust configuration.
Net2Net column split
A column splits into two daughters. Each daughter receives the output weights multiplied by 0.5, so the sum is preserved, and the second daughter gets Gaussian noise of scale 0.01 to break symmetry. The function is unchanged at the moment of the split.
Chunked linear-recurrence prefix scan
Recurrent memories use the associative operator (a,b)⊕(a′,b′)=(aa′,a′b+b′)(a,b) \oplus (a',b') = (aa', a'b + b'). It is computed chunkwise with chunk size 32 in float32, with bf16 input and output, and gradients are scanned in reverse.
Fast-weight state from BDH
A per-head matrix state is updated as ρ←γρ+k⊤v\rho \leftarrow \gamma\rho + k^\top v, which gives linear-attention inference with constant-size state. This module follows BDH, an architecture published by another group.

Results

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

  1. V1 beat a baseline on 3 of 8 metrics

    In the lab's nano-scale experiments on TinyStories, V1 won 3 of 8 metrics: perplexity 141.92 against 175.83 for a baseline transformer, expected calibration error 0.00355 against 0.31087, and more diverse output.

  2. Wrapper improved confidence on a frozen model

    The lab's records of the wrapper around a frozen 1.1B-parameter language model from another party give 77M trainable parameters (6.6%). A separate full-validation-set record of NCT-Adapt reports validation perplexity falling from 17.48 to 12.08, AUROC 0.793 for confidence against correctness, and multi-entity tracking rising from 0.775 to 0.900.

  3. V11 perplexity on WikiText-2

    The technical reference records validation perplexity 54.0 on WikiText-2 for the 300M-parameter V11 model after 5,000 steps. A later report records 50.58 for the same model after 21,000 steps, with generated text still incoherent.

  4. Run 18 surfaced 18 issues

    The lab's inventory of a V10.2 run lists 18 issues fixed in code, among them inverted σ2\sigma^2, only a quarter of the NMDA slots in use, and HellaSwag accuracy below random.

  5. Annealing auxiliary losses to zero hurt memory

    The lab found that annealing the predictive-coding auxiliary weight to 0 collapsed entity memory, so the extended V10.2 run kept a floor of 0.05. An earlier version set its floor to 0.0 to avoid a different inversion, so the choice changed between versions.

  6. Compression-ratio curriculum sped early training

    The lab's records report 18 to 45% faster early convergence when WikiText-103 is reordered from easy to hard by compression ratio.

  7. V1 had structural flaws fixed in V2

    The lab's review of V1 found a serial Hebbian loop, P+2 attention passes, a Python loop over columns, 5 competing loss terms, no KV cache and a numpy backend. V2 replaced these.

  8. Saturated gates stop learning

    The column records note that a dendritic bias initialised above 1.5 saturates the sigmoid and removes its learning gradient, so the bias is initialised at 0.0.

  9. Audits found dead learning paths

    The lab's own audits of V11 reported subsystems that received no learning signal in hybrid mode and parameters that stayed frozen. Only the frozen-parameter problem is recorded as resolved; the dead subsystems in hybrid mode are not.

Concepts

Mountcastle cortical column
The view that cortex is a tiling of near-identical six-layer microcircuits. The model takes this view literally, with 12 columns by default.
Predictive coding
Each layer predicts the activity of the layer below, and only the prediction error drives further processing and learning.
Precision
The inverse variance of a prediction error. A learned σ2\sigma^2 sets how strongly an error counts, and the model reuses it as per-token confidence.
Free energy equilibrium
At the minimum of the precision loss, σ2\sigma^2 equals the mean squared error. The lab's theorems use this to argue that the precision calibrates itself.
Hebbian learning
A local rule that strengthens connections between units active together, with no global error signal.
BCM threshold
A sliding threshold that tracks recent activity, so the same Hebbian rule potentiates or depresses and does not grow without bound.
Windowed Hebbian association
The V11 replacement for self-attention: content-addressable recall within a causal window of w tokens at cost O(Tw)O(T w) instead of O(T2)O(T^2).
k-winner-take-all
A sparsity operation that keeps only the k most active units, modelled on lateral inhibition.
Fast weights
Weights rewritten at every token to store recent associations. They are equivalent to a decaying form of linear attention.
Theta-gamma coupling
Gamma-band activity modulated by theta phase. The model uses it to order several items in working memory, treating one token as roughly one gamma cycle.
Interneuron gating
VIP disinhibition, SST suppression and PV or chandelier veto replace generic learned scalar gates on the column's paths.
Complementary learning systems
The theory of McClelland 1995 that the hippocampus learns fast and in one shot while cortex learns slowly. Sleep replay transfers episodes into cortical weights.
Neuromodulation
Global signals modelled on dopamine, acetylcholine, norepinephrine and serotonin that set plasticity, sparsity and gating. In V11 the plasticity rate is their product.
Identity at initialisation
In the research versions and NCT-Adapt, new modules are added so that the extended network first computes exactly what the base network computed, and their contribution grows through learning. V11 instead starts modules small, random and active.
Disease mapping
The lab's design principle that removing a component should reproduce a known neurological deficit, for example basal ganglia pathways linked to Parkinson's and Huntington's.
Prenatal development
A pre-training phase without data that uses synthetic retinal-wave walks, babbling and structured patterns with local learning. V11 expanded it from 4 phases to 8 ordered sub-phases totalling 2600 steps.
Drift-diffusion decoding
Token choice as evidence accumulation, ai(t+1)=ai(t)+di+σξa_i(t+1) = a_i(t) + d_i + \sigma\xi, against a collapsing threshold θ0e−t/τ\theta_0 e^{-t/\tau}.
Metacognitive adapters
The NCT-Adapt idea: give an existing frozen language model a per-token uncertainty signal by training only small brain-inspired modules attached to it.
Learning modes
V11 runs in hybrid mode (predictive coding, Hebbian updates and the analytical output-head rule), pure predictive coding, pure Hebbian, or full backpropagation, which serves only as the baseline.

Publications

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.