Skip to content
In depthExperiments

Verace Neocortex: design documents

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

Verace Research
  1. Predictive coding: Prediction errors weighted by a learned precision
  2. Language model output head: The only part given an error-driven delta rule update
Figure 1. Cortical columns learning by local rules in Verace Neocortex. Schematic: cortical columns in cross-section, standing for the V11 column network. The columns learn by predictive coding and local rules, and nothing is backpropagated through them.
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

The design documents of Verace Neocortex are the lab's written record of the architecture: 35 specifications, theory notes, training plans and evaluation reports that accompany the system's code. They cover versions V6 to V11 of the model, whose research name is NeuroCortex Transformer (NCT). The question they address is whether mechanisms modelled on cortical circuits can be added to a language model while it stays at least as good as a standard transformer. The mechanisms include precision-weighted predictive coding, oscillation-coupled attention and fast-weight memory. The intended gains are calibrated per-token uncertainty, better entity tracking and sparser activity.

The records describe three lines. The from-scratch model (V10.1 to V10.2, about 105M parameters) stacks a block of predictive coding, cross-frequency attention, slot assignment, thalamic fast-weight memory and a sparse dendritic feed-forward layer. NCT-Adapt wraps a frozen pre-trained model with trainable brain modules. V11 is a cortical column network trained by predictive coding with no backpropagation through the columns. In the from-scratch research versions and in NCT-Adapt, new modules start transparent: gates begin near σ(−5)\sigma(-5) or σ(−2)\sigma(-2) and output projections at zero, so the model equals its base network at step 0.

The evaluation records report several results. In the V11 records, a 300M-parameter column network trained on WikiText-2 reaches validation perplexity 54.02 after 5,000 steps. A later report at 21,000 steps records 50.58, 273x below the random baseline of 13,817, but its generated text is still incoherent. The adapter records for TinyLlama-1.1B, a pre-trained model from another organisation, report hallucination AUROC 0.917 and validation perplexity falling from 10.4 to 9.8. The Verace 1B report adapts Llama 3.2 1B Instruct, a model by Meta, with 61.1M trainable parameters. The lab's own audit found that only 5 of 24 modules trained beyond identity.

The documents themselves contain no code. They hold designs, theorems, run reports and audits. Measured items are the V11 runs at 5K and 21K steps, the 105M Run 18 and main-result tables, the TinyLlama adapter runs and the Verace 1B head-to-head. The 7B production run, the adapter for Qwen3.5-9B, a pre-trained model from another organisation, the multi-GPU paradigms and the windowed V10.2 variant exist only as designs. The audited verdict calls the thesis partially correct and names module ablation as the critical missing evidence. Some records disagree, for example on adapter parameter counts and on perplexity against the baseline.

Status

Experiments. The design documents include evaluation reports with recorded runs (V11 at 5K and 21K steps, Run 18, TinyLlama and Llama 3.2 adapter runs), alongside designs such as the 7B plan and the Qwen3.5-9B adapter that have no recorded results.

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
28%
Gate stays open after a jump for
10.3 steps
Mean size of the error
0.35
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. NCT V10.2 block

    The core layer of the from-scratch model: precision-weighted predictive coding, CFC-UCAM attention, slot assignment with bistable inhibition, thalamic fast-weight memory and a dendritic feed-forward layer. A basal ganglia bias is passed through the block. The V10.2 model is recorded at about 105.5M parameters, with 24 new modules over V10.1.

  2. Precision-weighted predictive coding

    Replaces the earlier predictive coding module with a learned per-layer precision, following Friston's free energy. Prediction errors are divided by a variance σ2\sigma^2, so confident predictions are weighted more and novel tokens attenuate gradients.

  3. Uncertainty head

    A per-token estimator of σ2\sigma^2 trained with a σ2\sigma^2-weighted likelihood. It is the source of the hallucination detection scores in the evaluation records.

  4. CFC-UCAM cross-frequency attention

    Gamma-band attention with rotary position encoding plus theta phase slots, computed in float32. Tokens in the same theta window and gamma phase attend preferentially, and the temperature is coupled to σ2\sigma^2.

  5. Slot assignment with competition

    VCCE assigns each token to one cortical column by straight-through Gumbel-softmax, with the temperature annealed from 1.0 to 0.1. Content-dependent mutual inhibition, slot keys and a basal ganglia D1/D2 bias shape the choice.

  6. Thalamic fast-weight memory

    ThalamicGLH is a Hebbian, linear-attention style memory with a learned write gate, depression term and per-token decay. Later versions add acetylcholine novelty gating, spike-timing potentiation and 48 decay channels.

  7. Sparse dendritic feed-forward layer

    A SwiGLU feed-forward layer gated multiplicatively by a dendritic branch, followed by winner-take-all selection. V9 uses binary Gumbel-Bernoulli spikes and V10 uses exact-k sparsity at 2% activity.

  8. Hippocampal and clause memories

    HippocampalGLH is a global episodic store with σ2\sigma^2-gated writes and slow decay (a=0.993a = 0.993). DeltaClauseMemory cross-attends from tokens to summaries of the preceding 64-token clauses at layers 3, 7, 11 and 15.

  9. NCT-Adapt wrapper

    Wraps a frozen pre-trained model with identity-initialised brain modules in two tiers: per-block modules and model-level modules. Each block's contribution is capped by a gated residual with αmax⁡=0.1\alpha_{\max} = 0.1.

  10. V11 cortical column network

    A local-learning architecture of cortical columns trained with predictive coding, Hebbian updates, neuromodulation, wake-sleep phases and structural plasticity. The columns learn by local rules, only the language model output head receives an error-driven update, by an analytical delta rule, and nothing is backpropagated through the columns.

  11. Theorem set

    Numbered theorems tie each module to a mathematical statement. Examples are the free-energy form of the precision loss (Thm 28f), the bounded log-precision (Thm 28g), theta-gamma coupling (Thm 34) and nested phase-amplitude coupling (Thm 53).

  12. Training curricula and data catalogue

    Plans for staged training: a five-phase pretraining curriculum, a four-phase curriculum of about 30M tokens, and a three-phase adapter mix over 30K steps. They draw on a catalogue of 36 streamable, permissively licensed datasets across 8 cognitive categories.

Results

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

  1. V11 column network reaches validation perplexity 54.02

    In the V11 evaluation records, the 300M-parameter network trained on WikiText-2 reached validation perplexity 54.02 after 5,000 steps. A later report at 21,000 steps records validation loss 3.9236 and perplexity 50.58, 273x below the random baseline of 13,817. Generation samples at 21K steps remain incoherent strings of frequent tokens.

  2. Predictive coding loss rose as precision adapted

    Between the 5K and 21K evaluations, the PC loss rose from 6.2244 to 9.3688 while σ2\sigma^2 grew from 0.77 at step 1 to 3.25. The report attributes the rise to the log⁡σ2\log \sigma^2 term in the precision-weighted loss, and records 624 sleep-phase dreams and 2 stable hippocampal memories.

  3. Hebbian baseline never converged

    On the same V11 architecture, a Hebbian-trained run of 2,230 steps reached a best training perplexity of 25,680 and never converged on validation. The predictive coding run fell below the random baseline by step 50, meaning its training perplexity dropped under that of random guessing, which is progress, and it reached a best training perplexity of 18.1.

  4. Adapter gives calibrated uncertainty on TinyLlama

    The adapter records report hallucination AUROC 0.917, PCC 0.459 and validation perplexity falling from 10.4 to 9.8 on TinyLlama-1.1B, a pre-trained model from another organisation, with next-token accuracy rising from 0.477 to 0.512. The trainable parameter count is given as about 77M (7%) in one record and 26.8M (2.4%) in the 5,000-step record, and trust alignment of 0.433 fell below its target.

  5. Verace 1B composite gain with knowledge and speed costs

    The Verace 1B report adapts Llama 3.2 1B Instruct with 61.1M trainable parameters (4.7%) across 27 modules. It records a hallucination detection AUROC of 0.894 and a composite intelligence index of 49.2 against 26.1 for the base model (+88.6%), with a 3.7% lower knowledge average and 36% slower generation.

  6. Conflicting perplexity results at 105M

    The Run 18 record gives validation perplexity 99 against a baseline of 162, with PCC -0.215 and LIS 0.3%. The main-results table for the 105M model gives perplexity 253 against 151 for the baseline, with AUROC 0.917 and sparsity 0.989. The issues inventory for Run 18 lists 18 problems, including σ2\sigma^2 inversion, use of only a quarter of the NMDA slots and HellaSwag below random.

  7. Most modules stayed at identity

    The lab's gate activation audit found only 5 of 24 modules trained beyond identity, led by theta-gamma coupling at 0.419. The same audit found 23 of 24 gates keep a residual or identity path, with only ChandelierVetoGate serial, so the credit assignment concern was judged overstated.

  8. Precision calibration bugs and fixes

    Detaching σ2\sigma^2 in the precision weighting removed its calibration gradient, and an earlier stop-gradient loss drove σ2\sigma^2 to 0 and exploded gradients, fixed with a KL term to a unit normal. A V4.5 attention bug softened attention at high σ2\sigma^2, corrected in V6 by σv62=1/(1+gach σ2)\sigma^2_{v6} = 1/(1 + g_{\mathrm{ach}}\,\sigma^2), and a small auxiliary residual in V4.9 produced an inverted accuracy-uncertainty alignment of -0.043.

  9. Simulated ablation ranks modules

    An ODE simulation ablation found the working-memory hierarchy the most valuable component, at +0.080 next-token accuracy. D1D2InvertedU, VCCEWithBistable, ThalamicRelay and ActivitySilentTrace were net negative.

  10. Audited verdict: thesis partially correct

    The lab's audit of V10.2 concluded that the thesis is partially correct. It rated precision-weighted predictive coding and multi-timescale memory strong, and named module ablation as the critical gap.

Concepts

Identity at initialisation
In the from-scratch research versions and in NCT-Adapt, every new module starts with its gate near σ(−5)\sigma(-5) or σ(−2)\sigma(-2) and its output projection at zero, so the model initially equals the base network. In the Verace 1B report, step-0 logits are identical to the base Llama model.
Strict superset of a transformer
A claim of the design records: because modules start transparent, NCT equals a transformer at step 0 and can only improve by gradient descent.
Free-energy precision loss
Theorem 28f writes the predictive coding loss in the form of Friston's canonical free energy, F(γ)=eγ MSE−γF(\gamma) = e^{\gamma}\,\mathrm{MSE} - \gamma, with σ2=e−γ\sigma^2 = e^{-\gamma}, which is strictly convex. Its optimum is σ2=MSE\sigma^2 = \mathrm{MSE}, the Gaussian maximum-likelihood variance, the same as the loss MSE/σ2+log⁡σ2\mathrm{MSE}/\sigma^2 + \log \sigma^2 without detaching.
Sigmoid-bounded log-precision
Theorem 28g sets γ=γmin⁡+(γmax⁡−γmin⁡) sigmoid(ω)\gamma = \gamma_{\min} + (\gamma_{\max} - \gamma_{\min})\,\mathrm{sigmoid}(\omega), which bounds σ2\sigma^2 in (0.1,5.0)(0.1, 5.0) and keeps a nonzero gradient where a hard clamp would not. The uncertainty head notes give a different range, (0.05,20.1)(0.05, 20.1), initialised at σ2=1\sigma^2 = 1.
Theta-gamma phase-amplitude coupling
Gamma amplitude is modulated by theta phase so that several items are ordered within working memory (Thm 34). Theorem 53 nests delta, theta and alpha periods with learnable couplings initialised to identity, for a stated capacity of 256 positions.
Four oscillatory timescales
The architecture maps gamma to single tokens, theta to windows of 8 to 16 tokens and delta to clauses of about 64 tokens. Slow hippocampal dynamics cover whole episodes. The design records note that the delta tier was missing before V9.
Lateral inhibition score
LIS, the lateral inhibition score, is a sparsity measure. The lab's Hopfield capacity argument holds that dense codes (LIS≈0.3\mathrm{LIS} \approx 0.3) store about 65 patterns against about 2,800 at p=0.05p = 0.05, a 43x difference, which it uses to explain entity-binding stagnating at 0.679.
Exact-k sparse distributed codes
Holding exactly 2% of feed-forward units active gives a stated Hopfield capacity of O(dff)O(d_{ff}) instead of O(dff/log⁡dff)O(d_{ff}/\log d_{ff}). The design records put this at about 7x more entity capacity at dff=1536d_{ff} = 1536.
Complementary learning systems
McClelland's 1995 idea that a fast-learning hippocampus complements a slowly consolidating neocortex. It is instantiated by the hippocampal memory and by separate optimiser groups, with the hippocampal learning rate at 5x and neuromodulators at 0.3x.
Basal ganglia expert routing
Theorem 77 designs a mixture-of-experts router with D1/D2 pathway kinetics and an expert count kk that adapts to σ2\sigma^2. It is identity at initialisation via gate_raw set to -5, and the design targets 2x capacity at 50% compute.
Auxiliary loss annealing
The predictive coding, bidirectional and KL losses dilute the next-token gradient. aux_anneal_frac schedules them to zero, and later variants keep a small residual weight.
Sleep and wake phases
A training design in which, every 500 steps, the model runs a replay phase and a recombination phase that use consolidation losses only. The V11 reports count these runs as dreams.
From-scratch versus adapted uncertainty
The adapter records argue that σ2\sigma^2 in an adapted model is a post-hoc readout, at about 60 to 70% of from-scratch quality. The stated reason is that the frozen representations were not co-evolved with uncertainty.
Disease mapping
A design method that relates each module to the disorder its removal would mimic, such as visual neglect for bistable slot competition and Parkinson's for the D1/D2 selector. The lab's audit found that about a third of modules solve NCT-specific problems, a third add inductive biases and a third could be simplified.
Scaling diagnostic checklist
A V11 decision tree over loss, σ2\sigma^2, the perplexity gap, hippocampal state and column prediction error. It decides whether to keep training, grow the network, or split overloaded columns with a function-preserving split.
Progressive scaling
The plan to validate the architecture at 103M, 350M and 1B parameters before 7B, so that bugs surface cheaply. The 7B plan covers pretraining on 500B to 1T tokens, supervised tuning, preference optimisation and reinforcement learning from verifiable rewards.

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.