Verace Neocortex
A language model built from stacked cortical columns with local learning rules, precision-weighted predictive coding and multi-timescale memory.
- L4 input: Where each column receives its input
- L1 top-down modulation: Context arriving from above the column
- L5 output and prediction: Emits activation and a top-down prediction
- L6 thalamic feedback: Sends feedback back to the thalamus
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 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 . 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
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 .
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.
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.
Precision-weighted predictive coding
Each layer or column predicts the activity below it and learns a precision that scales its prediction error. The same serves as the model's per-token uncertainty.
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.
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.
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.
AutoScale structural plasticity
Kills, merges, shrinks, splits and grows columns during training, driven by multi-scale and gate statistics.
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.
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.
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.
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 with , so lies in (0.1, 5.0) by construction while the gradient stays nonzero. Surprise is , and a gate blends the prediction with the input.
- Surprise-gated predictive coding in V1
- With , surprise is and the gate is , with tau initialised at 1.0. The output replaces predictable tokens by their prediction.
- Free-energy precision loss
- Precision is trained with , whose equilibrium is . In NCT-Adapt the per-token cross-entropy is used in place of MSE, with capped at 100, a weight of 0.01, and a boundary penalty of weight 0.1 that keeps within [0.3, 4].
- Local predictive-coding weight update
- In the Rust port each column predicts the column below. Its weights change by , scaled by plasticity. The error is averaged over the model dimension rather than summed, which prevents from diverging.
- Analytical delta-rule output head
- The output head learns without backpropagation through the network, using the Widrow-Hoff rule with 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 .
- BCM-modulated Hebbian association
- The association weights change by with a zero diagonal and the norm clipped to 5. Here 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 and , and reads , with ELU+1 feature maps. The decay 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 for the threshold by 5 Newton iterations, starting from the k-th largest value. The mask then keeps about k units active and stays differentiable.
- Nested oscillation phase-amplitude coupling
- Gamma amplitude follows . 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 over 4 phases. Each phase runs attention with the bias scaled by inhibition, and phase entropy is regularised toward .
- Identity-at-init gating and its revision
- In the research versions, each module adds to its input, with (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 .
- Multi-scale precision bands
- Column is grouped by depth quartile into token, phrase, sentence and discourse uncertainty. Discourse gates tool use, sentence gates retrieval and hippocampal writes, and per-column drives early exit and AutoScale.
- Six-signal neuromodulation
- An MLP with the shape 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 with . The cap 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 and decays by a factor of 0.999 per estimate. The penalty is , with a default 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 . 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 , 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.
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.
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.
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.
Run 18 surfaced 18 issues
The lab's inventory of a V10.2 run lists 18 issues fixed in code, among them inverted , only a quarter of the NMDA slots in use, and HellaSwag accuracy below random.
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.
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.
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.
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.
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 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, 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 instead of .
- 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, , against a collapsing threshold .
- 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
- Autonomous Self-Directed Learning in Neural Networks with Biologically-Grounded Wake-Sleep CyclesMarch 31, 2026
- A Cortical Column Network for Natural Language ProcessingMarch 31, 2026
- Brain-Inspired Embedding, Dynamic Scaling, and Deployment System for Neural Language ModelsMarch 31, 2026
- Brain-Inspired Language Production System with Multi-Stage Evidence Accumulation and Self-MonitoringMarch 31, 2026
- Local Learning in Neural Networks Without Global BackpropagationMarch 31, 2026
- Biologically-Grounded Memory and Decision Systems for Neural Language ModelsMarch 31, 2026
- Brain-Inspired Predictive Coding Achieves Calibrated Confidence in Language Models as a Lightweight WrapperMarch 9, 2026
- NCT-Adapt: Wrapper Modules for Pre-Trained Language ModelsMarch 22, 2026
- NeuroCortex Transformer: Complete Technical ReferenceMarch 23, 2026
- NeuroCortex Transformer: A Cortical Column Network with Local Predictive Coding for Language ModelingMarch 22, 2026
- NeuroCortex Transformer V10.2: Architecture SpecificationMarch 22, 2026
- Precision-Weighted Predictive Coding with Adaptive Re-entrant Inference in Neural NetworksMarch 31, 2026
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.