Skip to content
ResearchAISpecification

Brain-Inspired Embedding, Dynamic Scaling, and Deployment System for Neural Language Models

Krrish Choudhary·March 31, 2026

Capabilities

  • 01 / 06
    Linearquadratic

    AutoScale Dynamic Column Scaling

    Five operations (kill, merge, shrink, split, grow) applied in priority order kill>merge>shrink>split>grow, driven by multi-scale σ2\sigma^2 and gate stats, then subsystem rebuild.

  • 02 / 06

    Four-Stage Brain Embedding Pipeline

    Cascade of base lookup, dual-route morphological composition, hub-and-spoke integration and sparse distributed projection, each a gated residual correction.

  • 03 / 06

    Grid-Cell-Inspired Position Encoding

    Replaces fixed RoPE with learnable periods, per-head scale factors and boundary-aware phase remapping, recovering RoPE exactly at init.

  • 04 / 06

    Dual-Route Morphological Tokeniser (NCT)

    Lexical whole-word lookup, sublexical greedy affix stripping with root validation, and byte-level fallback, aligned to one gamma cycle per morpheme.

  • 05 / 06

    Four Depth Bands

    Columns partitioned into token, phrase, sentence and discourse bands following Hasson et al. 2008 temporal receptive fields.

  • 06 / 06

    Merge Redundant Columns

    Cosine similarity >0.95> 0.95 over WassocW_{\text{assoc}}, WoutW_{\text{out}}, WpredW_{\text{pred}} only, merged by running average w=1/(nmerged+2)w = 1/(n_{\text{merged}} + 2).

Abstract

A computer-implemented system and method for brain-inspired embedding, dynamic scaling, and deployment of cortical column neural language models. The embedding system comprises a four-stage cascade: (i) base embedding lookup; (ii) dual-route morphological composition implementing the Coltheart DRC model, wherein a per-token frequency gate blends a lexical route (direct lookup) with a sublexical route (causal depthwise-separable convolution); (iii) hub-and-spoke semantic integration modelling anterior temporal lobe cross-modal binding through modality-specific spoke projections integrated via a bottleneck hub; and (iv) sparse distributed projection enforcing exact-kk sparsity with a straight-through estimator, producing high-capacity population codes. A grid-cell-inspired position encoding provides learnable periods, per-head scale factors, and boundary-aware phase remapping. A dual-route morphological tokeniser segments text along morpheme boundaries with oscillatory alignment. A dynamic scaling system (AutoScale) grows, splits, merges, kills, and shrinks cortical columns during training, driven by multi-scale prediction uncertainty (σ2\sigma^2) aggregated across depth bands, with depth-band-aware thresholds and function-preserving split operations. A maximal update parameterisation transfer method extracts scale-invariant hyperparameters from small proxy models. Deployment methods exploit multi-scale σ2\sigma^2 for early exit (dual token-band and phrase-band threshold), uncertainty-adaptive DPO and SFT alignment, and dopamine-modulated tool selection. Computational kernel optimisations include parallel prefix scan (9.8×\times speedup), algebraic windowed context decomposition, and Tsodyks-Markram recurrence linearisation as dual sequential parallel scans.

Status

Open research. This document was first drafted in the form of a patent specification, which is why it speaks of an invention and of claims. No patent application was filed and the lab does not intend to file one: where the text mentions a related or co-pending patent application, it means a companion document in this set, and none of them was filed. The work is published here as open research.

1. Field

The present invention relates generally to neural network embedding systems, dynamic network scaling methods, and deployment infrastructure for biologically-grounded neural language models, and more particularly to: (a) a multi-stage brain-inspired embedding pipeline comprising dual-route morphological composition modelled on the Coltheart Dual-Route Cascaded (DRC) reading architecture, hub-and-spoke semantic integration modelled on anterior temporal lobe cross-modal binding, sparse distributed projection modelled on neocortical population coding, and grid-cell-inspired position encoding with boundary-aware phase remapping; (b) a morphological tokenizer implementing dual-route lexical access with oscillatory alignment; (c) a dynamic scaling system for cortical column networks comprising automated grow, split, merge, kill, and shrink operations driven by multi-scale prediction uncertainty (σ2{\sigma^2}); (d) a maximal update parameterisation (muP) transfer method for brain-inspired architectures; (e) σ2{\sigma^2}-guided early exit, alignment, and tool-use deployment methods; and (f) computational kernel optimisations including parallel prefix scan, algebraic windowed context decomposition, and recurrence linearisation for working memory systems.

2. Background

Prior Art: Token Embeddings in Neural Language Models

Modern neural language models represent input tokens as dense continuous vectors through a learned embedding table. In the dominant transformer architecture (Vaswani et al., 2017), a single lookup operation maps each integer token identifier to a fixed-dimensional vector e∈Rd\mathbf{e} \in \mathbb{R}^d. Position information is injected either through additive sinusoidal encoding (Vaswani et al., 2017) or through Rotary Position Embeddings (RoPE; Su et al., 2021) that encode position as a rotation in a complex vector space. The embedded representations are then processed through a stack of uniform self-attention blocks.

Byte Pair Encoding (BPE; Sennrich et al., 2016) and its variants (SentencePiece, WordPiece) have become the standard tokenisation approach, using statistical co-occurrence rather than linguistic structure to segment text into subword units.

Prior Art: Network Scaling

Scaling neural networks has historically required either training an entirely new model from scratch at each scale, or employing computationally expensive hyperparameter search. The Net2Net approach (Chen et al., 2016) introduced function-preserving transformations for widening and deepening networks, but provided no principled method for deciding when or where to scale. Maximal Update Parameterisation (muP; Yang and Hu, 2021) enables hyperparameter transfer from small proxy models to large target models for transformer architectures, but has not been adapted to biologically-grounded cortical column networks where local learning rules and column-level dynamics create fundamentally different scaling requirements.

Prior Art: Deployment Optimisation

Early exit mechanisms (Schwartz et al., 2020; Xin et al., 2020) allow neural networks to terminate computation at intermediate layers when a confidence criterion is met. However, existing approaches rely on auxiliary classifiers attached at each layer, and the confidence threshold is a single global scalar with no multi-scale uncertainty decomposition. Alignment methods such as Direct Preference Optimisation (DPO; Rafailov et al., 2023) and supervised fine-tuning (SFT) treat model confidence as uniform, with no mechanism to modulate preference strength based on the model’s own uncertainty estimate. Tool-use decisions in existing language model agents (Schick et al., 2023) rely on prompt engineering or fine-tuning rather than intrinsic neural signals.

Limitations of the Prior Art

The prior art exhibits the following deficiencies that the present invention addresses:

Single-Stage Embedding

Transformer embeddings perform a single lookup followed by optional position encoding. The brain, by contrast, processes lexical access through a temporally staged pipeline: obligatory morphological decomposition at approximately 170 milliseconds post-stimulus onset (Rastle and Davis, 2008), followed by cross-modal semantic integration in the anterior temporal lobe (Patterson et al., 2007), and sparse population coding in neocortical circuits (Ahmad and Hawkins, 2016). No existing neural network embedding system replicates this multi-stage cascade.

Linguistic Blindness of Statistical Tokenisation

BPE and related methods segment text based on statistical frequency without respecting morphological boundaries. The string “unhappiness” may be split as “un/happ/iness” (correct morphological boundaries) or “unh/appin/ess” (linguistically arbitrary), depending entirely on corpus statistics. This violates the psycholinguistic finding that the brain decomposes words along morpheme boundaries (Coltheart et al., 2001). Furthermore, BPE provides no mechanism for dual-route access where high-frequency words are accessed as wholes while low-frequency words undergo compositional analysis.

Fixed Position Encoding

RoPE provides fixed sinusoidal frequencies determined by a single base parameter (θ=10000\theta = 10000). Grid cells in the mammalian entorhinal cortex (Hafting et al., 2005) instead use learnable multi-scale periodic modules with boundary-aware phase remapping (Fyhn et al., 2007). No existing position encoding system provides learnable periods, per-head scale factors, or boundary-triggered phase reset.

Static Network Architecture

Transformer architectures are fixed at initialisation. The brain, by contrast, undergoes postnatal cortical development (growing new functional areas), synaptic pruning (removing underutilised connections), and adult neuroplasticity (reorganising after injury). No existing neural network system provides a unified framework for dynamically growing, splitting, merging, killing, and shrinking computational units during training, guided by multi-scale uncertainty signals.

Scale-Blind Hyperparameter Transfer

Existing muP methods are designed for transformer architectures with global backpropagation. Cortical column networks with local Hebbian learning, predictive coding, and per-column dynamics require a fundamentally different treatment: local learning rates, oscillatory parameters, and neuromodulatory scales are dimension-independent and transfer directly, while structural parameters (head count, inhibitory dimension, working memory slot dimension) must scale proportionally with the model dimension.

Uncertainty-Blind Deployment

Existing early exit, alignment, and tool-use methods do not leverage the multi-scale prediction uncertainty (σ2{\sigma^2}) that biologically-grounded architectures provide at every processing level. An early exit decision based on a single layer’s confidence risks terminating before both syntactic (token-level) and semantic (phrase-level) processing are complete. Alignment methods that apply uniform preference strength regardless of model uncertainty produce overconfident preferences on ambiguous content. Tool-use decisions based on prompt-level heuristics ignore the rich uncertainty signals available within the model’s own computation.

Need for Improvement

There exists a need in the art for: (a) a multi-stage embedding pipeline grounded in the neuroscience of lexical access; (b) a morphological tokeniser that respects linguistic structure; (c) a position encoding system with learnable periods and boundary-aware phase remapping; (d) a dynamic scaling framework that uses multi-scale uncertainty to grow, split, merge, kill, and shrink computational units; (e) muP hyperparameter transfer adapted for biologically-grounded architectures; (f) deployment methods that exploit multi-scale uncertainty for early exit, alignment, and tool use; and (g) computational kernel optimisations that enable efficient execution of the biological recurrence equations. The present invention addresses all of these needs.

3. Summary

The present invention provides a computer-implemented system and method for brain-inspired embedding, dynamic scaling, and deployment of cortical column neural language models.

In a first aspect, the invention provides a multi-stage brain embedding pipeline comprising four cascaded stages, each adding a gated residual correction to an evolving token representation:

  1. a base embedding stage performing token-to-vector lookup;

  2. a dual-route morphological composition stage implementing the Coltheart Dual-Route Cascaded (DRC) model, wherein a per-token frequency gate glex=sigmoid⁡(fi)g_{\text{lex}} = \operatorname{sigmoid}(f_i) blends a lexical route (direct embedding lookup) with a sublexical route (causal depthwise-separable convolution over local context), the blend being modulated by a master identity-at-init gate;

  3. a hub-and-spoke semantic integration stage wherein the embedding is decomposed into SS modality-specific spoke subvectors (visual, auditory, motor, verbal, emotional, encyclopedic), each spoke independently projected and then integrated through a shared bottleneck hub implementing anterior temporal lobe (ATL) cross-modal binding; and

  4. a sparse distributed projection stage expanding the embedding to d×rd \times r dimensions, enforcing exact-kk sparsity (k=⌈d⋅r⋅0.02⌉k = \lceil d \cdot r \cdot 0.02 \rceil) via top-kk selection with a straight-through estimator, then projecting back to dd dimensions, producing sparse population codes with combinatorial pattern capacity (nk)\binom{n}{k} exceeding 108110^{81} for typical parameter settings.

All four stages satisfy an identity-at-initialisation property: each stage’s gate parameter is initialised to yield an effective gate value near zero (g≈0.12g \approx 0.12), ensuring the complete pipeline outputs the base embedding at initialisation and gradually learns corrections during training.

In a second aspect, the invention provides a grid-cell-inspired position encoding system replacing fixed Rotary Position Embeddings with:

  1. learnable grid cell module periods via τi=softplus⁡(θiraw)\tau_i = \operatorname{softplus}(\theta_i^{\text{raw}}), initialised to recover standard RoPE frequencies;

  2. per-head scale factors sh=softplus⁡(shraw)s_h = \operatorname{softplus}(s_h^{\text{raw}}) enabling multi-resolution conjunctive coding; and

  3. boundary-aware phase remapping: a boundary detector pboundary=sigmoid⁡(Wb⋅x)p_{\text{boundary}} = \operatorname{sigmoid}(\mathbf{W}_b \cdot \mathbf{x}) computes cumulative boundary-triggered phase shifts ϕcum=cumsum(pboundary⋅ϕboundary)\phi_{\text{cum}} = \text{cumsum}(p_{\text{boundary}} \cdot \phi_{\text{boundary}}), which are added to the base angles through a learnable gate, enabling position reset at detected boundaries.

In a third aspect, the invention provides a dual-route morphological tokeniser implementing the Coltheart DRC model at the tokenisation level:

  1. a lexical route performing whole-word lookup for known high-frequency words;

  2. a sublexical route performing greedy affix stripping (prefixes sorted by descending length, suffixes sorted by descending length) with morphophonemic normalisation and root validation against a known-word dictionary; and

  3. a byte-level fallback for novel non-alphabetic input, ensuring lossless deterministic encoding.

Each token is aligned to approximately one gamma cycle (∼\sim1–2 temporal steps), yielding oscillatory alignment wherein words span theta cycles and phrases span alpha cycles.

In a fourth aspect, the invention provides a dynamic column scaling system (AutoScale) for cortical column networks, comprising five operations driven by multi-scale prediction uncertainty:

  1. Grow: progressively adding new cortical columns with thalamic routing expansion, lateral connection expansion, and workspace expansion, while freezing existing column parameters;

  2. Split (Net2Net): deep-copying an overloaded column, scaling output weights by 0.5 in each copy with symmetry-breaking noise, so that the sum of the two children preserves the parent’s function at the moment of split;

  3. Merge: detecting redundant columns via cosine similarity computed only on functional weights (association, output, prediction weights, not working memory, oscillatory, or gate parameters), merging via running average lerp(1/(n+2))\text{lerp}(1/(n+2)) to give equal weight to all absorbed columns;

  4. Kill and rebirth: detecting dead columns (mean gate value below threshold) and replacing them with a noisy deep copy of the best-performing column; and

  5. Shrink: detecting underutilized columns (low gates and low σ2{\sigma^2} persisting for multiple checks) with depth-band-aware thresholds (token-band columns require lower gate activity to be considered underutilised than discourse-band columns), absorbing their learned knowledge into nearest neighbours before removal.

All scaling operations include subsystem rebuilding (thalamus, lateral connections, workspace, self-assessment) to maintain architectural coherence after column count changes.

In a fifth aspect, the invention provides a muP hyperparameter transfer method for cortical column networks, comprising extraction of over 40 scale-invariant hyperparameters (local learning rates, oscillatory parameters, neuromodulatory scales, gate dynamics, working memory parameters, structural plasticity thresholds) from a trained small proxy model, and construction of a scaled target configuration wherein dimension-independent parameters transfer directly while structural parameters (head count, inhibitory dimension, working memory slot dimensions, relay dimension) are scaled proportionally to the dmodeld_{\text{model}} ratio.

In a sixth aspect, the invention provides σ2{\sigma^2}-guided deployment methods:

  1. Early exit: exiting column processing when both token-band σ2{\sigma^2} (from shallow columns) and phrase-band σ2{\sigma^2} (from early-mid columns) fall below a threshold, ensuring both syntactic and semantic processing are complete before termination;

  2. σ2{\sigma^2}-adaptive DPO: computing an effective preference temperature βeff=β/max⁡(σˉ2,0.1)\beta_{\text{eff}} = \beta / \max(\bar{\sigma}^2, 0.1), reducing preference enforcement when the model is genuinely uncertain; and

  3. σ2{\sigma^2}-adaptive SFT: weighting the supervised fine-tuning loss by w=1/(1+0.1⋅max⁡(0,σsentence2−2))w = 1/(1 + 0.1 \cdot \max(0, \sigma^2_{\text{sentence}} - 2)), with auxiliary loss preservation (predictive coding, cerebellar, thalamic reticular nucleus losses) to prevent brain mechanism atrophy during alignment; and

  4. σ2{\sigma^2}-driven tool selection: deciding tool use when σ2>θ/max⁡(0.3+tonic_DA,0.1){\sigma^2}> \theta / \max(0.3 + \text{tonic\_DA}, 0.1), where dopamine modulates the threshold such that high dopamine (exploration tendency) lowers the barrier to tool invocation.

In a seventh aspect, the invention provides a non-transitory computer-readable storage medium storing instructions that, when executed by one or more processors, cause the processors to implement the systems and methods described above.

The architecture provides the following advantages over the prior art:

  • Biologically-grounded multi-stage lexical access with distinct morphological, semantic, and sparse coding stages, each with identity-at-initialisation guarantees;

  • Morphologically faithful tokenisation respecting linguistic structure rather than statistical co-occurrence;

  • Learnable multi-scale position encoding with boundary-aware phase remapping, recovering standard RoPE at initialisation;

  • Automated architecture evolution driven by multi-scale uncertainty rather than manual intervention;

  • Scale-invariant hyperparameter transfer exploiting the independence of local learning rules from total column count;

  • Deployment optimisations that leverage the model’s own prediction uncertainty for early exit, alignment, and tool use; and

  • Computational kernel innovations achieving up to 9.8×\times speedup through parallel prefix scan, algebraic score decomposition, and recurrence linearisation.

4. Description of the Figures

The invention will be described with reference to the accompanying drawings, in which:

Figure 1 is a block diagram of the four-stage brain embedding pipeline, showing the sequential cascade from base embedding through morphological composition, hub-and-spoke semantic integration, and sparse distributed projection, with gated residual connections at each stage.

Figure 2 illustrates the dual-route morphological composition gate (Theorem 58), showing the parallel lexical route (direct lookup) and sublexical route (causal depthwise-separable convolution), the per-token frequency gate glexg_{\text{lex}} blending the two routes, and the master identity-at-init gate controlling the overall correction magnitude.

Figure 3 illustrates the hub-and-spoke semantic integration module (Theorem 56), showing the decomposition of an embedding vector into S=6S = 6 modality-specific spoke subvectors, independent spoke projections, concatenation into the hub bottleneck (Linear →\to GELU →\to Linear), and the gated residual correction.

Figure 4 illustrates the sparse distributed projection module (Theorem 57), showing the expansion from dd to d×rd \times r dimensions via WupW_{\text{up}}, exact-kk sparsity enforcement via top-kk selection, the straight-through estimator gradient path, and the projection back to dd dimensions via WdownW_{\text{down}}.

Figure 5 illustrates the grid-cell-inspired position encoding system, showing the learnable period module (Theorem 59), per-head scale factors (Theorem 62), and boundary-aware phase remapping (Theorem 61) with the cumulative boundary phase shift mechanism.

Figure 6 is a block diagram of the dual-route morphological tokeniser, showing the lexical route (whole-word lookup), sublexical route (greedy affix stripping with morphophonemic normalisation), byte-level fallback, and the oscillatory alignment property.

Figure 7 is a state diagram of the AutoScale dynamic column scaling system, showing the five operations (grow, split, merge, kill, shrink), their trigger conditions based on multi-scale σ2{\sigma^2} and gate statistics, the priority ordering (kill →\to merge →\to shrink →\to split →\to grow), and the mandatory subsystem rebuild step.

Figure 8 illustrates the Net2Net column split operation, showing the parent column, the two daughter columns with halved output weights and symmetry-breaking noise, and the function-preservation property at the moment of split.

Figure 9 illustrates the merge operation, showing cosine similarity computation on functional weights only (W_assoc, W_out, W_pred), the running average lerp(1/(n+2))\text{lerp}(1/(n+2)) merge strategy, and the subsystem rebuild after column removal.

Figure 10 illustrates the shrink operation with depth-band-aware thresholds, showing the different shrink sensitivities for token-band (0.5×\times), phrase-band (0.7×\times), sentence-band (0.9×\times), and discourse-band (1.0×\times) columns, the patience mechanism, and knowledge absorption into nearest neighbours.

Figure 11 illustrates the muP hyperparameter transfer method, showing the extraction of scale-invariant parameters from a small proxy model, the dimension-proportional scaling of structural parameters, and the construction of the target configuration.

Figure 12 illustrates the σ2{\sigma^2}-guided early exit mechanism, showing the column-by-column processing, the multi-scale σ2{\sigma^2} aggregation (token-band and phrase-band), the dual-threshold exit condition, and the compute savings on easy inputs.

Figure 13 illustrates the σ2{\sigma^2}-adaptive DPO alignment method, showing the computation of effective beta βeff=β/max⁡(σˉ2,0.1)\beta_{\text{eff}} = \beta / \max(\bar{\sigma}^2, 0.1), the chosen and rejected log-probability computation, and the modulated preference loss.

Figure 14 illustrates the σ2{\sigma^2}-driven tool selection adapter, showing the extraction of σ2{\sigma^2}, tonic dopamine, and ACC conflict signals from the model’s forward pass, the DA-modulated threshold computation, and the binary tool-use decision.

Figure 15 illustrates the parallel prefix scan kernel, showing the associative operator (a,b)⊕(a′,b′)=(a⋅a′,a′⋅b+b′)(a, b) \oplus (a', b') = (a \cdot a', a' \cdot b + b'), the chunked computation strategy (vectorised within chunks, sequential across chunks), and the log-space arithmetic for numerical stability.

Figure 16 illustrates the algebraic windowed context decomposition, showing the key insight that score[t,j]=c[t]−cpad[j+t]\text{score}[t,j] = c[t] - c_{\text{pad}}[j+t] where c=(x⋅Wdist).sum(−1)c = (x \cdot W_{\text{dist}}).\text{sum}(-1) is a scalar, reducing score computation from O(T×w×D)O(T \times w \times D) to O(T×D+T×w)O(T \times D + T \times w).

Figure 17 illustrates the NMDA parallel scan decomposition, showing the pre-computation of all write probabilities and contents, the KK independent per-slot parallel scans, and the batch read step.

Figure 18 illustrates the silent trace parallel scan decomposition, showing the Tsodyks-Markram linearisation into dual sequential scans: facilitation uu (first scan) and depression xx (second scan, dependent on uu).

Note: In the actual patent filing, each figure described above shall be provided as a separate drawing sheet conforming to Rule 15 of the Patents Rules, 2003.

5. Architectural Overview Figures

Figure 1, Four-Stage Brain Embedding Pipeline (Claim 1 overview)
Figure 1. Four-Stage Brain Embedding Pipeline (Claim 1 overview)
Figure 5, Grid-Cell-Inspired Position Encoding System (Claims 5–7)
Figure 5. Grid-Cell-Inspired Position Encoding System (Claims 5–7)
Figure 7, AutoScale Dynamic Column Scaling System (Claims 9–15)
Figure 7. AutoScale Dynamic Column Scaling System (Claims 9–15)
Figure 12, σ^2-Guided Deployment System (Claims 16–21)
Figure 12. σ2{\sigma^2}-Guided Deployment System (Claims 16–21)

6. Claim Illustration Sheets

Claim 1, Multi-Stage Brain Embedding Pipeline
Figure 5. Claim 1, Multi-Stage Brain Embedding Pipeline
Claim 2, Per-Token Frequency Bias Initialisation
Figure 6. Claim 2, Per-Token Frequency Bias Initialisation
Claim 3, Hub-and-Spoke Semantic Integration
Figure 7. Claim 3, Hub-and-Spoke Semantic Integration
Claim 4, Sparse Distributed Projection
Figure 8. Claim 4, Sparse Distributed Projection
Claim 5, Grid Cell Learnable Periods
Figure 9. Claim 5, Grid Cell Learnable Periods
Claim 6, Per-Head Grid Cell Scale Factors
Figure 10. Claim 6, Per-Head Grid Cell Scale Factors
Claim 7, Boundary Detector Identity Initialisation
Figure 11. Claim 7, Boundary Detector Identity Initialisation
Claim 8, Dual-Route Morphological Tokeniser
Figure 12. Claim 8, Dual-Route Morphological Tokeniser
Claim 9, AutoScale Dynamic Column Scaling
Figure 13. Claim 9, AutoScale Dynamic Column Scaling
Claim 10, Four Depth Bands
Figure 14. Claim 10, Four Depth Bands
Claim 11, Band-Aware Shrink Thresholds
Figure 15. Claim 11, Band-Aware Shrink Thresholds
Claim 12, Merge via Functional Weight Cosine Similarity
Figure 16. Claim 12, Merge via Functional Weight Cosine Similarity
Claim 13, Grow Operation with Depth-Band-Aware Insertion
Figure 17. Claim 13, Grow Operation with Depth-Band-Aware Insertion
Claim 14, muP Hyperparameter Transfer
Figure 18. Claim 14, muP Hyperparameter Transfer
Claim 15, Neuromodulator Scale Transfer from Brainstem
Figure 19. Claim 15, Neuromodulator Scale Transfer from Brainstem
Claim 16, σ^2-Guided Deployment System
Figure 20. Claim 16, σ2{\sigma^2}-Guided Deployment System
Claim 17, Early Exit Working Memory State Reset
Figure 21. Claim 17, Early Exit Working Memory State Reset
Claim 18, Auxiliary Loss Preservation During SFT
Figure 22. Claim 18, Auxiliary Loss Preservation During SFT
Claim 19, σ^2-Gated Retrieval Module
Figure 23. Claim 19, σ2{\sigma^2}-Gated Retrieval Module
Claim 20, Tool Confidence via ACC Conflict Signal
Figure 24. Claim 20, Tool Confidence via ACC Conflict Signal
Claim 21, Early Exit Band Assignment
Figure 25. Claim 21, Early Exit Band Assignment
Claim 22, Parallel Prefix Scan Kernel
Figure 26. Claim 22, Parallel Prefix Scan Kernel
Claim 23, Windowed Hebbian Scalar Decomposition Kernel
Figure 27. Claim 23, Windowed Hebbian Scalar Decomposition Kernel
Claim 24, Windowed Score via Scalar Pad-and-Unfold
Figure 28. Claim 24, Windowed Score via Scalar Pad-and-Unfold
Claim 25, NMDA Parallel Scan Kernel
Figure 29. Claim 25, NMDA Parallel Scan Kernel
Claim 26, Non-Transitory Computer-Readable Medium
Figure 30. Claim 26, Non-Transitory Computer-Readable Medium

7. Detailed Description

The following description sets forth specific embodiments of the invention with sufficient detail to enable one skilled in the art to practise the invention. The embodiments are described in the context of a cortical column network (CCN) for natural language processing, but the principles disclosed herein are applicable to any neural network architecture that processes sequential data through a hierarchical stack of processing units.

Throughout this description, the following notation is employed:

  • BB denotes the batch size, TT the sequence length, dd the model dimension, and VV the vocabulary size.

  • σ2{\sigma^2} denotes the per-token prediction precision estimate produced by the cortical column’s Layer 5 output sublayer.

  • sigmoid⁡(⋅)\operatorname{sigmoid}(\cdot) denotes the logistic sigmoid function.

  • softplus⁡(⋅)\operatorname{softplus}(\cdot) denotes the softplus function softplus⁡(x)=log⁡(1+ex)\operatorname{softplus}(x) = \log(1 + e^x).

  • ReLU⁡(⋅)\operatorname{ReLU}(\cdot) denotes the rectified linear unit.

Four-Stage Brain Embedding Pipeline

Referring to Figure 1, the brain embedding pipeline transforms integer token identifiers into dense continuous representations through four cascaded stages, each producing a gated residual correction to the evolving representation.

Four-stage brain embedding pipeline: base lookup to dual-route morphological composition to hub-and-spoke semantic integration to sparse distributed projection.
Figure 31. Four-stage brain embedding pipeline: base lookup →\to dual-route morphological composition →\to hub-and-spoke semantic integration →\to sparse distributed projection.

Stage 1: Base Embedding Lookup

A standard embedding table E∈RV×d\mathbf{E} \in \mathbb{R}^{V \times d} maps each token identifier tit_i to a dd-dimensional vector:

ei=E[ti]∈Rd\mathbf{e}_i = \mathbf{E}[t_i] \in \mathbb{R}^d

The embedding weights are initialised with N(0,0.022)\mathcal{N}(0, 0.02^2) and are tied with the language model output head for weight sharing.

Stage 2: Dual-Route Morphological Composition (Theorem 58)

Referring to Figure 2, this stage implements the Dual-Route Cascaded (DRC) reading model of Coltheart et al. (2001), which posits that the brain accesses words through two parallel routes: a lexical route for familiar words (direct whole-word lookup) and a sublexical route for novel or low-frequency words (compositional analysis of subword structure).

Per-token frequency bias initialisation for the dual-route morphological composition gate, showing corpus frequency statistics mapped to the [-2, +2] bias range.
Figure 32. Per-token frequency bias initialisation for the dual-route morphological composition gate, showing corpus frequency statistics mapped to the [−2,+2][-2, +2] bias range.

Sublexical route.

The sublexical route computes a compositional representation from local context using a causal depthwise-separable convolution:

esub=PW ⁣(DWcausal(e))\mathbf{e}_{\text{sub}} = \text{PW}\!\left(\text{DW}_{\text{causal}}(\mathbf{e})\right)

where DWcausal\text{DW}_{\text{causal}} is a causal depthwise convolution (Conv1d with kernel size K=3K = 3, groups =d= d, left-padding of K−1K - 1 positions, no right-padding) and PW\text{PW} is a pointwise linear projection (d→dd \to d, no bias). The causal constraint ensures that the sublexical composition at position tt depends only on positions t−K+1,…,tt - K + 1, \ldots, t, preventing future information leakage. The depthwise convolution preserves per-channel identity (each output channel depends only on its own input channel across the kernel window), while the pointwise projection enables cross-channel mixing.

The depthwise convolution is initialised near-identity: the rightmost kernel position (corresponding to the current token) is initialised to 1.01.0, and all other positions are initialised with small Gaussian noise (σ=0.01\sigma = 0.01). The pointwise projection is initialised as the identity matrix plus small noise (σ=0.01\sigma = 0.01). This ensures that at initialisation, esub≈e\mathbf{e}_{\text{sub}} \approx \mathbf{e} (the sublexical route outputs approximately the same embedding as the lexical route).

Per-token frequency gate.

A learnable frequency bias fi∈Rf_i \in \mathbb{R} for each token i∈{0,…,V−1}i \in \{0, \ldots, V-1\} controls the route preference:

glex,i=sigmoid⁡(fi)g_{\text{lex},i} = \operatorname{sigmoid}(f_i)

High-frequency tokens have positive fif_i (favouring the lexical route), while low-frequency tokens have negative fif_i (favouring the sublexical route). The frequency biases may be initialised from corpus statistics by normalising log-frequency counts to the range [−2,2][-2, 2]:

fi←4.0⋅log⁡(1+ci)max⁡jlog⁡(1+cj)−2.0f_i \leftarrow 4.0 \cdot \frac{\log(1 + c_i)}{\max_j \log(1 + c_j)} - 2.0

where cic_i is the count of token ii in the training corpus. Without corpus-based initialisation, all frequency biases are initialised to zero (glex=0.5g_{\text{lex}} = 0.5, equal blend).

The frequency bias parameter is named freq_logit (not gate_raw) to distinguish it from internal gate parameters and to enable separate learning rate grouping in optimiser configurations.

Dual-route blend.

The two routes are blended per-token:

ecomposed=glex,i⋅ei+(1−glex,i)⋅esub,i\mathbf{e}_{\text{composed}} = g_{\text{lex},i} \cdot \mathbf{e}_i + (1 - g_{\text{lex},i}) \cdot \mathbf{e}_{\text{sub},i}

Master identity-at-init gate.

A scalar gate gmaster=sigmoid⁡(γ)g_{\text{master}} = \operatorname{sigmoid}(\gamma) with γ\gamma initialised to −2.0-2.0 (gmaster≈0.12g_{\text{master}} \approx 0.12) controls the overall correction magnitude:

e′=(1−gmaster)⋅e+gmaster⋅ecomposed\mathbf{e}' = (1 - g_{\text{master}}) \cdot \mathbf{e} + g_{\text{master}} \cdot \mathbf{e}_{\text{composed}}

At initialisation, because gmaster≈0.12g_{\text{master}} \approx 0.12 and ecomposed≈e\mathbf{e}_{\text{composed}} \approx \mathbf{e} (from near-identity convolution initialisation), the output is e′≈e\mathbf{e}' \approx \mathbf{e}.

Disease mapping validation.

Ablation of the sublexical route produces a deficit analogous to phonological dyslexia (inability to read novel words). Ablation of the lexical route produces a deficit analogous to surface dyslexia (inability to read irregular high-frequency words). These predictable failure modes validate the biological grounding of the architecture.

Stage 3: Hub-and-Spoke Semantic Integration (Theorem 56)

Referring to Figure 3, this stage implements the hub-and-spoke model of semantic cognition (Patterson et al., 2007; Lambon Ralph et al., 2017), in which modality-specific cortical regions (spokes) contribute partial representations that are integrated through a shared amodal hub in the anterior temporal lobe (ATL).

Hub-and-spoke semantic integration: S = 6 modality-specific spokes projected independently, concatenated into a nonlinear hub bottleneck, with gated residual correction.
Figure 33. Hub-and-spoke semantic integration: S=6S = 6 modality-specific spokes projected independently, concatenated into a nonlinear hub bottleneck, with gated residual correction.

Spoke decomposition.

The embedding vector e′∈Rd\mathbf{e}' \in \mathbb{R}^d is partitioned along the feature dimension into S=6S = 6 contiguous subvectors (spokes), corresponding to visual, auditory, motor, verbal, emotional, and encyclopedic modalities:

e′=[e1′∥e2′∥⋯∥eS′],es′∈Rds,∑s=1Sds=d\mathbf{e}' = [\mathbf{e}'_1 \| \mathbf{e}'_2 \| \cdots \| \mathbf{e}'_S], \quad \mathbf{e}'_s \in \mathbb{R}^{d_s}, \quad \sum_{s=1}^{S} d_s = d

Each spoke has dimension ds=⌊d/S⌋d_s = \lfloor d / S \rfloor, with the last spoke absorbing any remainder. Each spoke is independently projected to a uniform output dimension dout=⌊d/(2S)⌋d_{\text{out}} = \lfloor d / (2S) \rfloor:

hs=Ws⋅es′∈Rdout,s=1,…,S\mathbf{h}_s = \mathbf{W}_s \cdot \mathbf{e}'_s \in \mathbb{R}^{d_{\text{out}}}, \quad s = 1, \ldots, S

Hub bottleneck.

The projected spokes are concatenated and fed through a nonlinear bottleneck hub:

correction=Wout⋅GELU ⁣(Win⋅[h1∥⋯∥hS]+bin)+bout\text{correction} = \mathbf{W}_{\text{out}} \cdot \text{GELU}\!\left(\mathbf{W}_{\text{in}} \cdot [\mathbf{h}_1 \| \cdots \| \mathbf{h}_S] + \mathbf{b}_{\text{in}}\right) + \mathbf{b}_{\text{out}}

where Win∈Rdmid×(S⋅dout)\mathbf{W}_{\text{in}} \in \mathbb{R}^{d_{\text{mid}} \times (S \cdot d_{\text{out}})} and Wout∈Rd×dmid\mathbf{W}_{\text{out}} \in \mathbb{R}^{d \times d_{\text{mid}}} with dmid=⌊S⋅dout/2⌋d_{\text{mid}} = \lfloor S \cdot d_{\text{out}} / 2 \rfloor. The bottleneck forces cross-modal integration: the hub must compress multimodal information through a narrower representation, preventing individual modalities from dominating.

Gated residual correction.

A scalar gate ghub=sigmoid⁡(γhub)g_{\text{hub}} = \operatorname{sigmoid}(\gamma_{\text{hub}}) with γhub\gamma_{\text{hub}} initialised to −2.0-2.0 controls the correction:

e′′=e′+ghub⋅correction\mathbf{e}'' = \mathbf{e}' + g_{\text{hub}} \cdot \text{correction}

At initialisation, ghub≈0.12g_{\text{hub}} \approx 0.12 and Wout\mathbf{W}_{\text{out}} is initialised with N(0,0.012)\mathcal{N}(0, 0.01^2), producing a near-zero correction.

Disease mapping validation.

Ablation of the hub bottleneck produces a deficit analogous to semantic dementia (pan-modal degradation of semantic knowledge from ATL atrophy). Ablation of individual spokes produces modality-specific semantic deficits analogous to Wernicke’s aphasia.

Stage 4: Sparse Distributed Projection (Theorem 57)

Referring to Figure 4, this stage implements the neocortical sparse population coding principle (Ahmad and Hawkins, 2016; Shoham et al., 2006), in which at most 2% of neurons are active at any time, producing high-capacity noise-robust representations.

Sparse distributed projection: expansion via W_up, exact-k sparsity (k = lceil d_sdr times 0.02 rceil = 21), straight-through estimator, and contraction via W_down.
Figure 34. Sparse distributed projection: expansion via WupW_{\text{up}}, exact-kk sparsity (k=⌈dsdr×0.02⌉=21k = \lceil d_{\text{sdr}} \times 0.02 \rceil = 21), straight-through estimator, and contraction via WdownW_{\text{down}}.

Expansion and sparsification.

The embedding is projected to an expanded space, sparsified, and projected back:

h=Wup⋅e′′∈Rdsdr,dsdr=d⋅rhrelu=ReLU⁡(h)hsparse=top-k(hrelu,k),k=⌈dsdr⋅0.02⌉\begin{aligned} \mathbf{h} &= \mathbf{W}_{\text{up}} \cdot \mathbf{e}'' \in \mathbb{R}^{d_{\text{sdr}}}, \quad d_{\text{sdr}} = d \cdot r \\ \mathbf{h}_{\text{relu}} &= \operatorname{ReLU}(\mathbf{h}) \\ \mathbf{h}_{\text{sparse}} &= \text{top-}k(\mathbf{h}_{\text{relu}}, k), \quad k = \lceil d_{\text{sdr}} \cdot 0.02 \rceil \end{aligned}

where top-k\text{top-}k retains only the kk largest values and zeros all others. The expansion factor r=2r = 2 and sparsity fraction 0.020.02 yield, for d=512d = 512: dsdr=1024d_{\text{sdr}} = 1024, k=⌈1024×0.02⌉=21k = \lceil 1024 \times 0.02 \rceil = 21. The combinatorial pattern capacity is (102421)>1045\binom{1024}{21} > 10^{45}.

Straight-through estimator.

Because top-k\text{top-}k is non-differentiable, a straight-through estimator (STE) is used for gradient computation:

hsparse=hrelu+(hsparse−hrelu).detach()\mathbf{h}_{\text{sparse}} = \mathbf{h}_{\text{relu}} + (\mathbf{h}_{\text{sparse}} - \mathbf{h}_{\text{relu}}).\text{detach}()

This allows gradients to flow through hrelu\mathbf{h}_{\text{relu}} as if sparsity were not applied, while the forward pass uses the exact sparse representation.

Projection and gated correction.

The sparse representation is projected back to dd dimensions and added as a gated correction:

eout=e′′+gsdr⋅Wdown⋅hsparse\mathbf{e}_{\text{out}} = \mathbf{e}'' + g_{\text{sdr}} \cdot \mathbf{W}_{\text{down}} \cdot \mathbf{h}_{\text{sparse}}

with gsdr=sigmoid⁡(γsdr)g_{\text{sdr}} = \operatorname{sigmoid}(\gamma_{\text{sdr}}), γsdr\gamma_{\text{sdr}} initialised to −2.0-2.0.

Grid Cell Position Encoding

Referring to Figure 5, the grid cell position encoding replaces fixed RoPE with a biologically-grounded system inspired by the entorhinal cortex grid cell system (Hafting et al., 2005).

Grid-cell-inspired position encoding: learnable periods (Theorem 59), per-head scale factors (Theorem 62), and boundary-aware phase remapping (Theorem 61).
Figure 35. Grid-cell-inspired position encoding: learnable periods (Theorem 59), per-head scale factors (Theorem 62), and boundary-aware phase remapping (Theorem 61).

Learnable Grid Cell Module Periods (Theorem 59)

Standard RoPE uses fixed periods τi=2π/(10000i/dh)\tau_i = 2\pi / (10000^{i/d_h}) for each pair of dimensions in the per-head space Rdh\mathbb{R}^{d_h}. The present invention replaces these with learnable periods:

τi=softplus⁡(θiraw),i=0,…,dh/2−1\tau_i = \operatorname{softplus}(\theta_i^{\text{raw}}), \quad i = 0, \ldots, d_h/2 - 1

where θiraw\theta_i^{\text{raw}} is initialised to the inverse softplus of the standard RoPE period via:

θiraw=τiRoPE+log⁡(1−e−τiRoPE)\theta_i^{\text{raw}} = \tau_i^{\text{RoPE}} + \log(1 - e^{-\tau_i^{\text{RoPE}}})

This ensures exact recovery of standard RoPE at initialisation while allowing the periods to adapt during training. Additionally, learnable phase offsets ϕi(0)\phi_i^{(0)} (initialised to zero) provide per-dimension phase control.

Per-Head Scale Factors (Theorem 62)

Inspired by conjunctive coding in the entorhinal cortex (where grid cell firing fields are modulated by head direction), each attention/association head hh receives its own period scale factor:

τh,i=τi⋅sh,sh=softplus⁡(shraw)\tau_{h,i} = \tau_i \cdot s_h, \quad s_h = \operatorname{softplus}(s_h^{\text{raw}})

where shraws_h^{\text{raw}} is initialised to log⁡(e−1)≈0.5414\log(e - 1) \approx 0.5414 (the inverse softplus of 1.0), ensuring sh=1.0s_h = 1.0 at initialisation and therefore exact RoPE recovery. During training, different heads learn different scale factors, enabling multi-resolution position sensitivity.

Boundary-Aware Phase Remapping (Theorem 61)

Inspired by grid cell remapping at environmental boundaries (Fyhn et al., 2007), the position encoding detects sentence/paragraph boundaries in the input and triggers phase resets:

pboundary,t=sigmoid⁡(Wb⋅xt+bb)∈[0,1]p_{\text{boundary},t} = \operatorname{sigmoid}(\mathbf{W}_b \cdot \mathbf{x}_t + b_b) \in [0, 1]

where Wb∈R1×d\mathbf{W}_b \in \mathbb{R}^{1 \times d} is initialised to zeros and bb=−3.0b_b = -3.0 (boundary detection mostly OFF at initialisation). The cumulative boundary phase for each dimension ii is:

ϕcum,t,i=∑s=1tpboundary,s⋅ϕboundary,i\phi_{\text{cum},t,i} = \sum_{s=1}^{t} p_{\text{boundary},s} \cdot \phi_{\text{boundary},i}

where ϕboundary,i\phi_{\text{boundary},i} (initialised to zero) is a learnable per-dimension boundary phase shift. A gate gbnd=sigmoid⁡(γbnd)g_{\text{bnd}} = \operatorname{sigmoid}(\gamma_{\text{bnd}}) with γbnd=−2.0\gamma_{\text{bnd}} = -2.0 controls the strength of boundary remapping:

αh,t,i=2π⋅tτh,i+ϕi(0)+gbnd⋅ϕcum,t,i\alpha_{h,t,i} = \frac{2\pi \cdot t}{\tau_{h,i}} + \phi_i^{(0)} + g_{\text{bnd}} \cdot \phi_{\text{cum},t,i}

The final position encoding is RoPE-compatible: (cos⁡α,sin⁡α)(\cos \alpha, \sin \alpha) pairs are duplicated across both halves of the per-head dimension.

When boundary detection is active, the output tensors have shape (B,nheads,T,dh)(B, n_{\text{heads}}, T, d_h) (batch-specific due to content-dependent boundaries). When inactive, the shape is (nheads,T,dh)(n_{\text{heads}}, T, d_h).

Dual-Route Morphological Tokeniser

Referring to Figure 6, the NCT (Neural Cortical Tokeniser) implements the Coltheart DRC model at the tokenisation level, complementing the dual-route embedding composition described in Section 5.1.2.

Dual-route morphological tokeniser: lexical route (whole-word lookup), sublexical route (greedy affix stripping), byte-level fallback, and oscillatory alignment.
Figure 36. Dual-route morphological tokeniser: lexical route (whole-word lookup), sublexical route (greedy affix stripping), byte-level fallback, and oscillatory alignment.

Lexical Route

Known high-frequency words are stored in a vocabulary lookup table. When the input text contains a word present in the known-word dictionary, the lexical route returns the word as a single token. This mirrors the brain’s fast lexical access for familiar words (∼\sim100ms in the Visual Word Form Area).

Sublexical Route

For words not in the known-word dictionary, greedy affix stripping decomposes the word into morphemes:

  1. Suffix stripping: iteratively remove the longest matching suffix from a sorted suffix inventory (sorted by descending length for longest-match-first), checking at each step whether the remainder is a known root (with morphophonemic normalisation handling consonant doubling, e-dropping, y-to-i alternation, and f-to-v alternation). At most 3 suffixes are stripped.

  2. Prefix stripping: iteratively remove the longest matching prefix from a sorted prefix inventory (also sorted by descending length). At most 2 prefixes are stripped.

  3. Root validation: the final stem is validated against the known-word dictionary, with morphophonemic normalisation generating candidate canonical forms.

  4. False decomposition guard: a curated exception list prevents incorrect decomposition of words whose orthographic form superficially matches affixes but whose morphological structure is monomorphemic (e.g., “uncle” does not decompose as “un” + “cle”).

  5. Minimum root constraint: a minimum root length of 3 characters prevents pathological over-decomposition.

Byte-Level Fallback

For non-alphabetic input (numbers, symbols, code), a byte-level encoding maps each byte to a dedicated token in the range [0, 255], ensuring lossless encoding of any input.

Oscillatory Alignment

Each token corresponds to approximately one morpheme, which in turn corresponds to approximately one gamma cycle (∼\sim1–2 temporal steps) in the cortical oscillatory hierarchy. Words span theta cycles (∼\sim8–16 temporal steps, 3–7 morphemes), and phrases span alpha cycles (∼\sim20 temporal steps). This alignment enables the oscillatory dynamics of the cortical column network to naturally segment and group tokens at biologically appropriate timescales.

Dynamic Column Scaling System (AutoScale)

Referring to Figure 7, the AutoScale system automatically modifies the number and configuration of cortical columns during training, driven by multi-scale prediction uncertainty signals.

AutoScale dynamic column scaling: five operations (kill, merge, shrink, split, grow) with priority ordering and trigger conditions based on multi-scale σ^2 and gate statistics.
Figure 37. AutoScale dynamic column scaling: five operations (kill, merge, shrink, split, grow) with priority ordering and trigger conditions based on multi-scale σ2{\sigma^2} and gate statistics.

Multi-Scale σ2{\sigma^2} Depth Bands

The NN cortical columns are partitioned into four depth bands following the temporal receptive field hierarchy of Hasson et al. (2008):

  • Token band (columns 00 to ⌊N/4⌋−1\lfloor N/4 \rfloor - 1): morphological and lexical uncertainty.

  • Phrase band (columns ⌊N/4⌋\lfloor N/4 \rfloor to ⌊N/2⌋−1\lfloor N/2 \rfloor - 1): syntactic uncertainty.

  • Sentence band (columns ⌊N/2⌋\lfloor N/2 \rfloor to ⌊3N/4⌋−1\lfloor 3N/4 \rfloor - 1): semantic uncertainty.

  • Discourse band (columns ⌊3N/4⌋\lfloor 3N/4 \rfloor to N−1N - 1): topic and narrative uncertainty.

Multi-scale σ2{\sigma^2} aggregates are computed by averaging the σ2{\sigma^2} values within each band. These aggregates drive the scaling decisions described below.

Four depth bands: token (shallowest tfrac14), phrase, sentence, and discourse (deepest tfrac14), with characteristic temporal receptive fields from sim200 ms to sim1 min.
Figure 38. Four depth bands: token (shallowest 14\tfrac{1}{4}), phrase, sentence, and discourse (deepest 14\tfrac{1}{4}), with characteristic temporal receptive fields from ∼200{\sim}200 ms to ∼1{\sim}1 min.

Health Check Protocol

At every check_interval training steps (default: 10,000), AutoScale collects per-column diagnostics:

  • Mean gate value across all gating mechanisms (proxy for mechanism utilisation).

  • Mean σ2{\sigma^2} (proxy for remaining learning opportunity).

  • Depth band assignment.

  • Parameter norm (proxy for contribution magnitude).

The five scaling operations are applied in a fixed priority order: kill →\to merge →\to shrink →\to split →\to grow. This ordering ensures that dead and redundant columns are cleaned up before new capacity is added.

Operation 1: Kill and Rebirth

Referring to the kill path in Figure 7, columns with mean gate value below the dead gate threshold (τdead=0.05\tau_{\text{dead}} = 0.05) are identified as dead. Each dead column is replaced by a deep copy of the best-performing column (highest mean gate) plus small Gaussian noise (σ=0.01\sigma = 0.01) for symmetry breaking. The column count does not change; only the dead column’s parameters are replaced.

Biological analog: cortical areas that undergo complete deafferentation (loss of all input) are repurposed through cross-modal plasticity (e.g., visual cortex processing tactile input in blind individuals).

Operation 2: Merge Redundant Columns

Merge operation: cosine similarity on functional weights only (W_assoc, W_out, W_pred), excluding WM/oscillatory/gate state to prevent temporal agnosia.
Figure 39. Merge operation: cosine similarity on functional weights only (WassocW_{\text{assoc}}, WoutW_{\text{out}}, WpredW_{\text{pred}}), excluding WM/oscillatory/gate state to prevent temporal agnosia.

Referring to Figure 9, columns are deemed redundant when their functional weight vectors have cosine similarity above the merge threshold (τmerge=0.95\tau_{\text{merge}} = 0.95). Critically, the cosine similarity is computed only over functional weights, the association weights (WassocW_{\text{assoc}}), output weights (WoutW_{\text{out}}), and prediction weights (WpredW_{\text{pred}}), and not over working memory state, oscillatory parameters, or gate values. This distinction prevents the erroneous merging of columns that compute the same function but operate at different timescales (which would constitute temporal agnosia, the inability to distinguish events at different timescales).

When columns ii and jj are merged (jj absorbed into ii), the parameters of the surviving column are updated via running average:

pi←(1−w)⋅pi+w⋅pj,w=1nmerged+2\mathbf{p}_i \leftarrow (1 - w) \cdot \mathbf{p}_i + w \cdot \mathbf{p}_j, \quad w = \frac{1}{n_{\text{merged}} + 2}

where nmergedn_{\text{merged}} is the number of columns previously absorbed by column ii. This running average ensures that all absorbed columns contribute equally to the survivor’s parameters, preventing the exponential decay of early contributions that would result from repeated lerp(0.5)\text{lerp}(0.5).

After all merges, the absorbed columns are removed, column indices are reassigned, and all subsystems (thalamus, lateral connections, workspace, self-assessment) are rebuilt for the new column count.

Operation 3: Shrink Underutilized Columns

Band-aware shrink thresholds: token-band columns (primary sensory) receive 0.5times threshold scaling, discourse-band columns receive 1.0times.
Figure 40. Band-aware shrink thresholds: token-band columns (primary sensory) receive 0.5×\times threshold scaling, discourse-band columns receive 1.0×\times.

Referring to Figure 10, a column is classified as underutilized when its mean gate value falls below the shrink gate threshold and its σ2{\sigma^2} falls below the shrink σ2{\sigma^2} threshold, persisting for at least shrink_patience consecutive health checks (default: 3).

A key innovation is depth-band-aware thresholds. Shallow columns (token band) process primary sensory information analogous to V1/A1 cortical areas, which the brain prunes less aggressively than associative areas. The effective thresholds are scaled:

Depth BandGate ScaleEffective Threshold
Token0.50.15×0.5=0.0750.15 \times 0.5 = 0.075
Phrase0.70.15×0.7=0.1050.15 \times 0.7 = 0.105
Sentence0.90.15×0.9=0.1350.15 \times 0.9 = 0.135
Discourse1.00.15×1.0=0.1500.15 \times 1.0 = 0.150

Before removal, each underutilised column’s learned knowledge is absorbed into its nearest active neighbour by weighted averaging: the neighbour retains 80% of its own parameters and incorporates 20% from the dying column. After all removals, subsystems are rebuilt.

Biological analog: synaptic pruning during adolescence, in which the brain eliminates approximately 40% of synapses between ages 2–16, retaining only the most utilised circuits.

Operation 4: Split Overloaded Columns (Net2Net)

Net2Net column split: parent column deep-copied to two daughters with halved output weights (0.5 times W_out) and symmetry-breaking noise for function preservation.
Figure 41. Net2Net column split: parent column deep-copied to two daughters with halved output weights (0.5×Wout0.5 \times W_{\text{out}}) and symmetry-breaking noise for function preservation.

Referring to Figure 8, a column is classified as overloaded when its σ2{\sigma^2} exceeds the split threshold and its mean gate exceeds the gate saturation threshold. The most overloaded column is selected using a priority score that combines the column’s own σ2{\sigma^2} with the aggregate σ2{\sigma^2} of its depth band, directing splits to the depth band under greatest pressure.

The split operation proceeds as follows:

  1. Deep-copy the parent column to produce two daughter columns (child A and child B).

  2. Scale all output-facing weights in both daughters by 0.5: Wout←0.5⋅WoutW_{\text{out}} \leftarrow 0.5 \cdot W_{\text{out}} for the L5 output projection, L5 prediction head, L6 thalamic feedback, and L2/3 output projection. This ensures outputA+outputB≈outputparent\text{output}_A + \text{output}_B \approx \text{output}_{\text{parent}} at the moment of split (function-preserving).

  3. Add symmetry-breaking noise (σ=0.01\sigma = 0.01) to child B’s parameters so that competitive Hebbian learning can drive differentiation.

  4. Insert child B immediately after child A in the column stack.

  5. Expand the lateral connections: the new column inherits a copy of the parent’s lateral weights, maintaining the neighbourhood structure.

  6. Expand the thalamic routing, workspace, and self-assessment for the new column count.

At most one split is performed per health check (because column indices change after a split, invalidating the remaining candidates).

Operation 5: Grow New Columns

Grow operation with depth-band-aware insertion: token-band overload inserts at bottom, mid-band interleaves, discourse-band appends at top.
Figure 42. Grow operation with depth-band-aware insertion: token-band overload inserts at bottom, mid-band interleaves, discourse-band appends at top.

Referring to the grow path in Figure 7, growth is triggered when at least 80% of existing columns have mean gate values exceeding 0.8×τsplit_gate0.8 \times \tau_{\text{split\_gate}} (indicating high capacity utilisation) and the maximum column count has not been reached. The insertion position is determined by the most overloaded depth band:

  • High discourse σ2{\sigma^2} →\to append (add deeper abstract columns at the top).

  • High token σ2{\sigma^2} →\to insert at bottom (add shallow lexical columns).

  • High phrase/sentence σ2{\sigma^2} →\to interleave (distribute evenly).

The grow operation:

  1. Creates nnewn_{\text{new}} new cortical columns with standard initialisation plus small symmetry-breaking noise (σ=0.01\sigma = 0.01).

  2. Inserts them at the determined positions with appropriate column index reassignment.

  3. Expands the thalamic routing (new relay groups created, existing relay weights copied), lateral connections (new columns receive zero-initialized send weights for identity-at-init), workspace (new read/write projections), and self-assessment.

  4. Optionally freezes all existing column parameters during a bootstrap period to prevent catastrophic interference.

Biological analog: postnatal cortical development, in which new functional areas (e.g., language areas around age 2) come online alongside existing areas without disrupting established processing.

Maximal Update Parameterisation (muP) Transfer

Referring to Figure 11, the muP transfer method extracts scale-invariant hyperparameters from a trained small proxy model and constructs a scaled target configuration.

muP hyperparameter transfer: scale-invariant parameters (local learning rates, oscillatory, neuromod scales) transfer directly; structural parameters (d_model, columns, d_ff) scale proportionally.
Figure 43. muP hyperparameter transfer: scale-invariant parameters (local learning rates, oscillatory, neuromod scales) transfer directly; structural parameters (d_model, columns, d_ff) scale proportionally.

Scale-Invariant Parameters

The following hyperparameters are extracted from the proxy model and transferred directly to any target scale, because they are independent of model dimension and column count:

  • Local learning rates: Hebbian learning rate, predictive coding learning rate, base learning rate.

  • Predictive coding dynamics: min/max inference steps, convergence threshold, σ2{\sigma^2} initialisation.

  • Hebbian parameters: kk-WTA ratio, settle steps, association window size.

  • Gate dynamics: initial gate value, gate learning rate multiplier.

  • BCM homeostasis: BCM time constant τBCM\tau_{\text{BCM}}.

  • Oscillatory parameters: gamma, theta, alpha, delta periods.

  • Working memory parameters: NMDA slot count, phonological loop capacity.

  • Wake-sleep parameters: sleep interval, replay steps, synaptic downscale factor.

  • Structural plasticity: growth threshold, prune threshold, prune interval.

  • Regularisation: dropout, weight decay, gradient clip norm.

  • Trained neuromodulator scales: DA scale, NE scale (extracted from the brainstem module).

Dimension-Proportional Parameters

The following structural parameters are scaled proportionally to the dmodeld_{\text{model}} ratio ρ=dtarget/dproxy\rho = d_{\text{target}} / d_{\text{proxy}}:

  • Number of association heads: ⌊nheadsproxy⋅ρ⌋\lfloor n_{\text{heads}}^{\text{proxy}} \cdot \rho \rfloor.

  • Inhibitory dimension, NMDA slot dimension, silent trace dimension, phonological slot dimension, relay dimension, TRN dimension, cerebellar dimension, basal ganglia dimension: each scaled as ⌊dproxy⋅ρ⌋\lfloor d^{\text{proxy}} \cdot \rho \rfloor with appropriate minimums.

  • Number of relay groups: proportional to column count ratio.

  • Hippocampal sparse dimension and memory size: proportional to ρ\rho.

This two-class decomposition (scale-invariant vs. dimension-proportional) is justified by the local nature of cortical column learning rules: each column’s Hebbian learning rate, predictive coding dynamics, and oscillatory parameters are determined by local synaptic properties (analogous to how a mouse synapse and a human synapse use the same STDP rules despite operating in cortices of vastly different size).

σ2{\sigma^2}-Guided Deployment Methods

σ2{\sigma^2}-Guided Early Exit

σ^2-guided deployment system overview: early exit (a), σ^2-adaptive alignment (b), and σ^2-driven tool selection (c).
Figure 44. σ2{\sigma^2}-guided deployment system overview: early exit (a), σ2{\sigma^2}-adaptive alignment (b), and σ2{\sigma^2}-driven tool selection (c).

Referring to Figure 12, the early exit mechanism terminates column processing when the model is sufficiently confident in its predictions, saving compute on easy inputs.

The key innovation is a multi-scale exit criterion that prevents premature termination. After processing column ii (where i≥imini \geq i_{\text{min}}, the minimum column count), the system computes:

σˉtoken2=1q∑j=0q−1σ2j,q=max⁡ ⁣(1,⌊i+14⌋)σˉphrase2=1∣P∣∑j∈Pσ2j,P={q,…,min⁡(2q−1,i)}\begin{aligned} \bar{\sigma}^2_{\text{token}} &= \frac{1}{q} \sum_{j=0}^{q-1} {\sigma^2}_j, \quad q = \max\!\left(1, \left\lfloor \frac{i+1}{4} \right\rfloor\right) \\ \bar{\sigma}^2_{\text{phrase}} &= \frac{1}{|P|} \sum_{j \in P} {\sigma^2}_j, \quad P = \{q, \ldots, \min(2q-1, i)\} \end{aligned}

Early exit occurs only when both σˉtoken2<θexit\bar{\sigma}^2_{\text{token}} < \theta_{\text{exit}} and σˉphrase2<θexit\bar{\sigma}^2_{\text{phrase}} < \theta_{\text{exit}}. This dual condition ensures that both syntactic (shallow) and semantic (mid-depth) processing are complete before termination. Without this, a model confident about individual tokens (low token σ2{\sigma^2}) but uncertain about their compositional meaning (high phrase σ2{\sigma^2}) would exit prematurely, analogous to reading one word and thinking you understand the sentence.

After early exit, the brainstem neuromodulatory system, basal ganglia, cerebellum, and hippocampus process the representation from the last completed column, and the language model head produces output logits. Working memory state is reset before each early-exit forward pass to prevent stale state from prior processing (preventing perseveration).

σ2{\sigma^2}-Adaptive Direct Preference Optimisation (DPO)

σ^2-guided deployment: early exit with multi-band σ^2 criterion, σ^2-adaptive DPO temperature (β_eff = β / max(barσ^2, ε)), SFT with auxiliary loss preservation, and DA-modulated tool selection.
Figure 45. σ2{\sigma^2}-guided deployment: early exit with multi-band σ2{\sigma^2} criterion, σ2{\sigma^2}-adaptive DPO temperature (βeff=β/max⁡(σˉ2,ε)\beta_{\text{eff}} = \beta / \max(\bar{\sigma}^2, \varepsilon)), SFT with auxiliary loss preservation, and DA-modulated tool selection.

Referring to Figure 13, the DPO alignment method modulates the preference temperature based on the model’s prediction uncertainty:

βeff=βmax⁡(σˉsentence2,0.1)\beta_{\text{eff}} = \frac{\beta}{\max(\bar{\sigma}^2_{\text{sentence}}, 0.1)}

where σˉsentence2\bar{\sigma}^2_{\text{sentence}} is the average sentence-band σ2{\sigma^2} across the chosen and rejected completions, and β\beta is the base DPO temperature. When the model is uncertain (σˉsentence2\bar{\sigma}^2_{\text{sentence}} high), βeff\beta_{\text{eff}} is reduced, weakening the preference enforcement. When the model is confident (σˉsentence2\bar{\sigma}^2_{\text{sentence}} low), βeff\beta_{\text{eff}} is increased, strengthening the preference.

The DPO loss is then:

LDPO=−log⁡sigmoid⁡ ⁣(βeff⋅[Δchosen−Δrejected])\mathcal{L}_{\text{DPO}} = -\log\operatorname{sigmoid}\!\left(\beta_{\text{eff}} \cdot \left[\Delta_{\text{chosen}} - \Delta_{\text{rejected}}\right]\right)

where Δ=log⁡π−log⁡πref\Delta = \log \pi - \log \pi_{\text{ref}} is the log-probability ratio between the policy and reference models.

Brain analog: the basal ganglia D1/D2 pathways implement action selection with dopamine-modulated strength. σ2{\sigma^2} maps to the strength of the preference signal: high uncertainty weakens the D1 (GO for chosen) vs. D2 (NO-GO for rejected) distinction, favouring exploration over exploitation.

σ2{\sigma^2}-Adaptive Supervised Fine-Tuning (SFT)

The SFT method applies response-only loss (masking prompt tokens) with σ2{\sigma^2}-aware weighting:

wσ2=11+0.1⋅max⁡(0,σ2sentence−2.0)w_{{\sigma^2}} = \frac{1}{1 + 0.1 \cdot \max(0, {\sigma^2}_{\text{sentence}} - 2.0)}

This down-weights the loss on tokens where the model is genuinely uncertain, preventing forced confidence on ambiguous content. Additionally, auxiliary losses (predictive coding loss, cerebellar temporal prediction loss, thalamic reticular nucleus loss) are preserved at weight αaux=0.1\alpha_{\text{aux}} = 0.1 to prevent brain mechanism atrophy during alignment:

LSFT=wσ2⋅LNTP+αaux⋅(LPC+LCB+LTRN)\mathcal{L}_{\text{SFT}} = w_{{\sigma^2}} \cdot \mathcal{L}_{\text{NTP}} + \alpha_{\text{aux}} \cdot (\mathcal{L}_{\text{PC}} + \mathcal{L}_{\text{CB}} + \mathcal{L}_{\text{TRN}})

σ2{\sigma^2}-Driven Tool Selection

σ^2-gated retrieval module: discourse-band σ^2 (not token-band) triggers external knowledge retrieval when topic-level uncertainty exceeds threshold.
Figure 46. σ2{\sigma^2}-gated retrieval module: discourse-band σ2{\sigma^2} (not token-band) triggers external knowledge retrieval when topic-level uncertainty exceeds threshold.

Referring to Figure 14, the tool-use adapter extracts intrinsic brain signals from the model’s forward pass and makes a binary tool-use decision:

use_tool=(σ2discourse>θtoolmax⁡(0.3+tonic_DA,0.1))\text{use\_tool} = \left({\sigma^2}_{\text{discourse}} > \frac{\theta_{\text{tool}}}{\max(0.3 + \text{tonic\_DA}, 0.1)}\right)

where σ2discourse{\sigma^2}_{\text{discourse}} is the discourse-band uncertainty (deepest columns), θtool\theta_{\text{tool}} is the base threshold, and tonic_DA\text{tonic\_DA} is the tonic dopamine level from the brainstem. High dopamine (exploration tendency) lowers the effective threshold, making tool use more likely. Low σ2{\sigma^2} (confidence) raises the effective threshold, favouring continued text generation.

A retrieval adapter complements the tool adapter by gating external knowledge retrieval on discourse-level σ2{\sigma^2}, triggering retrieval only when the model has topic-level uncertainty (not token-level noise). A confidence score derived from the anterior cingulate cortex (ACC) conflict signal provides a secondary quality measure for tool selection.

Computational Kernel Optimisations

Parallel Prefix Scan with Log-Space Arithmetic

Parallel prefix scan kernel: chunked strategy with vectorised intra-chunk scans and sequential inter-chunk carry propagation, achieving 9.8times speedup.
Figure 47. Parallel prefix scan kernel: chunked strategy with vectorised intra-chunk scans and sequential inter-chunk carry propagation, achieving 9.8×\times speedup.

Referring to Figure 15, the linear recurrence ht=at⋅ht−1+bth_t = a_t \cdot h_{t-1} + b_t that governs all working memory dynamics (NMDA attractors, silent trace, phonological loop, thalamic relay) is computed via a parallel prefix scan using the associative operator:

(a,b)⊕(a′,b′)=(a⋅a′,a′⋅b+b′)(a, b) \oplus (a', b') = (a \cdot a', a' \cdot b + b')

The implementation uses a chunked strategy: the sequence of length TT is divided into chunks of size CC. Within each chunk, the scan is fully vectorised using cumulative products and cumulative sums. Across chunks, the inter-chunk carry is propagated sequentially. This yields O(T/C)O(T/C) sequential steps (across chunks) and O(C)O(C) parallel operations (within chunks), compared to O(T)O(T) sequential steps in a naïve loop. On NVIDIA V100 GPUs, this achieves a measured 9.8×\times speedup by eliminating Python-level sequential loops.

Algebraic Windowed Context Decomposition

Windowed Hebbian scalar decomposition: algebraic insight score[t,j] = c_t - c_j eliminates the D factor from the window loop, reducing from O(T times w times D) to O(T times D + T times w).
Figure 48. Windowed Hebbian scalar decomposition: algebraic insight score[t,j]=ct−cj\text{score}[t,j] = c_t - c_j eliminates the DD factor from the window loop, reducing from O(T×w×D)O(T \times w \times D) to O(T×D+T×w)O(T \times D + T \times w).

Referring to Figure 16, the windowed Hebbian association in Layer 2/3 computes distance-weighted context scores:

score[t,j]=∑d=1Dh(xt,d−xj,d)⋅Wdist,d\text{score}[t, j] = \sum_{d=1}^{D_h} \left(x_{t,d} - x_{j,d}\right) \cdot W_{\text{dist},d}

Naïvely, this requires O(T×w×Dh)O(T \times w \times D_h) operations and materialises a (B,H,T,Dh,w)(B, H, T, D_h, w) intermediate tensor consuming up to 26 GB for typical training configurations.

The key algebraic insight is that the score decomposes as a difference of scalars:

score[t,j]=ct−cj,where ct=∑d=1Dhxt,d⋅Wdist,d\text{score}[t, j] = c_t - c_j, \quad \text{where } c_t = \sum_{d=1}^{D_h} x_{t,d} \cdot W_{\text{dist},d}

This reduces score computation from O(T×w×Dh)O(T \times w \times D_h) to O(T×Dh+T×w)O(T \times D_h + T \times w) and eliminates the (B,H,T,Dh,w)(B, H, T, D_h, w) intermediate tensor entirely. The scalar ctc_t is a single dot product per position, and the windowed scores are computed by subtracting a padded and unfolded version of cc from the current position’s cc, operating entirely in scalar space.

NMDA Parallel Scan Decomposition

NMDA parallel scan: three-phase decomposition, batch pre-computation of write probabilities, K independent per-slot parallel prefix scans, and batch attention-weighted reads.
Figure 49. NMDA parallel scan: three-phase decomposition, batch pre-computation of write probabilities, KK independent per-slot parallel prefix scans, and batch attention-weighted reads.

Referring to Figure 17, the NMDA attractor slot update stk=δ⋅st−1k+ptk⋅ct\mathbf{s}_t^k = \delta \cdot \mathbf{s}_{t-1}^k + p_t^k \cdot \mathbf{c}_t is decomposed into three batch operations:

  1. Pre-compute: all write probabilities ptkp_t^k and contents ct\mathbf{c}_t for all TT positions via batch matrix multiplications.

  2. KK parallel scans: each of the KK slots runs an independent parallel prefix scan (since slots evolve independently).

  3. Batch reads: attention-weighted read over the scan output, computed as a single batch operation.

This eliminates the TT-step Python loop in the original NMDA implementation while producing numerically identical results (parity tolerance <10−4< 10^{-4}).

Tsodyks-Markram Linearisation as Dual Sequential Scans

Windowed score computation via scalar pad-and-unfold: operating in scalar space (B, H, T) before contracting with values eliminates the w factor from memory, achieving 32times reduction for w = 32.
Figure 50. Windowed score computation via scalar pad-and-unfold: operating in scalar space (B,H,T)(B, H, T) before contracting with values eliminates the ww factor from memory, achieving 32×\times reduction for w=32w = 32.

Referring to Figure 18, the activity-silent trace uses Tsodyks-Markram synaptic dynamics with facilitation (uu) and depression (xx) variables. The facilitation update:

ut=αf⋅ut−1+(1−ut−1)⋅gt⋅∣ct∣u_t = \alpha_f \cdot u_{t-1} + (1 - u_{t-1}) \cdot g_t \cdot |c_t|

is linearised as:

ut=ut−1⋅(αf−gt∣ct∣)+gt∣ct∣u_t = u_{t-1} \cdot (\alpha_f - g_t |c_t|) + g_t |c_t|

This is a standard linear recurrence with at=αf−gt∣ct∣a_t = \alpha_f - g_t |c_t| and bt=gt∣ct∣b_t = g_t |c_t|, solvable by parallel scan.

The depression update xt=f(xt−1,ut)x_t = f(x_{t-1}, u_t) depends on utu_t, so it must be computed after the facilitation scan. It is similarly linearised:

xt=xt−1⋅(2αd−1−δf⋅ut)+(1−αd)x_t = x_{t-1} \cdot (2\alpha_d - 1 - \delta_f \cdot u_t) + (1 - \alpha_d)

yielding a second parallel scan with at=2αd−1−δf⋅uta_t = 2\alpha_d - 1 - \delta_f \cdot u_t and bt=1−αdb_t = 1 - \alpha_d.

The two sequential scans (facilitation first, then depression using facilitation output) replace the original TT-step Python loop, with the effective synaptic release computed as jeff=u⊙xj_{\text{eff}} = u \odot x.

8. Claims

We claim:

Claim 1

A computer-implemented multi-stage embedding system for neural language models, comprising:

  1. a base embedding lookup stage mapping integer token identifiers to dense continuous vectors of dimension dd using a learned embedding table;

  2. a dual-route morphological composition stage comprising:

    1. a sublexical route computing a compositional representation from local context via a causal depthwise-separable convolution over the embedding vectors, wherein the causal constraint is enforced by left-padding of K−1K - 1 positions with no right-padding;

    2. a lexical route comprising the base embedding vector itself;

    3. a per-token frequency gate glex,i=sigmoid⁡(fi)g_{\text{lex},i} = \operatorname{sigmoid}(f_i), where fif_i is a learnable per-token frequency bias parameter, configured to blend the lexical route and the sublexical route such that high-frequency tokens favour the lexical route and low-frequency tokens favour the sublexical route; and

    4. a master gate gmaster=sigmoid⁡(γ)g_{\text{master}} = \operatorname{sigmoid}(\gamma) controlling the overall correction magnitude, with γ\gamma initialised to produce gmaster≈0.12g_{\text{master}} \approx 0.12 at initialisation;

  3. a hub-and-spoke semantic integration stage comprising:

    1. a spoke decomposition partitioning each embedding vector into SS contiguous subvectors along the feature dimension;

    2. SS independent spoke projection layers, each projecting a respective spoke subvector to a uniform output dimension;

    3. a hub bottleneck comprising a nonlinear transformation of the concatenated spoke projections through a narrower intermediate dimension, forcing cross-modal information integration; and

    4. a gated residual connection adding the hub output to the embedding, controlled by a learnable gate initialised to produce a near-zero correction;

  4. a sparse distributed projection stage comprising:

    1. an expansion projection from dimension dd to an expanded dimension dsdr=d×rd_{\text{sdr}} = d \times r;

    2. an exact-kk sparsity enforcement selecting the top-kk activated units and zeroing all others, with k=⌈dsdr×s⌉k = \lceil d_{\text{sdr}} \times s \rceil for a sparsity fraction ss;

    3. a straight-through estimator allowing gradient flow through the non-differentiable top-kk operation;

    4. a contraction projection from dimension dsdrd_{\text{sdr}} back to dimension dd; and

    5. a gated residual connection adding the sparse correction to the embedding;

wherein each of stages (b), (c), and (d) satisfies an identity-at-initialisation property such that the complete pipeline outputs the base embedding at initialisation and gradually learns corrections during training.

Claim 2

The system of Claim 1, wherein the per-token frequency bias parameters fif_i are initialised from corpus frequency statistics by normalising log-frequency counts to a predetermined range and mapping high-frequency tokens to positive values favouring the lexical route and low-frequency tokens to negative values favouring the sublexical route.

Claim 3

The system of Claim 1, wherein the causal depthwise-separable convolution of the sublexical route comprises a depthwise convolution with groups equal to the embedding dimension dd followed by a pointwise linear projection, and wherein the depthwise convolution is initialised near-identity with the rightmost kernel weight set to 1.0 and all other kernel positions initialised with small Gaussian noise.

Claim 4

The system of Claim 1, wherein the SS spokes of the hub-and-spoke stage correspond to S=6S = 6 modality types comprising visual, auditory, motor, verbal, emotional, and encyclopedic modalities, and wherein the hub bottleneck intermediate dimension is ⌊S⋅dout/2⌋\lfloor S \cdot d_{\text{out}} / 2 \rfloor where doutd_{\text{out}} is the per-spoke output dimension.

Claim 5

The system of Claim 1, wherein the sparsity fraction s=0.02s = 0.02 and the expansion factor r=2r = 2, yielding a combinatorial pattern capacity of (d×r⌈d×r×0.02⌉)\binom{d \times r}{\lceil d \times r \times 0.02 \rceil} distinct active patterns per token.

Claim 6

The system of Claim 1, further comprising a grid-cell-inspired position encoding system comprising:

  1. learnable grid cell module periods τi=softplus⁡(θiraw)\tau_i = \operatorname{softplus}(\theta_i^{\text{raw}}) initialised to recover standard Rotary Position Embedding (RoPE) frequencies;

  2. per-head scale factors sh=softplus⁡(shraw)s_h = \operatorname{softplus}(s_h^{\text{raw}}) enabling multi-resolution position sensitivity across different association heads; and

  3. a boundary-aware phase remapping mechanism comprising a boundary detector producing a boundary probability pboundary,t=sigmoid⁡(Wb⋅xt+bb)p_{\text{boundary},t} = \operatorname{sigmoid}(\mathbf{W}_b \cdot \mathbf{x}_t + b_b), a cumulative boundary phase ϕcum,t=∑s=1tpboundary,s⋅ϕboundary\phi_{\text{cum},t} = \sum_{s=1}^{t} p_{\text{boundary},s} \cdot \phi_{\text{boundary}}, and a learnable gate controlling the strength of boundary remapping.

Claim 7

The system of Claim 6, wherein the boundary detector weight Wb\mathbf{W}_b is initialised to zeros and the boundary detector bias bbb_b is initialised to a negative value such that boundary detection is predominantly inactive at initialisation, and wherein the boundary phase parameters ϕboundary\phi_{\text{boundary}} are initialised to zero, ensuring exact recovery of standard RoPE at initialisation.

Claim 8

The system of Claim 1, further comprising a dual-route morphological tokeniser configured to:

  1. look up input words in a known-word vocabulary for a lexical route;

  2. for words not in the known-word vocabulary, apply greedy affix stripping comprising iterative suffix removal (sorted by descending length, with morphophonemic normalisation and root validation) followed by iterative prefix removal, with a false decomposition exception list and a minimum root length constraint; and

  3. apply byte-level encoding as a fallback for non-alphabetic input;

wherein each token corresponds to approximately one morpheme aligned to one gamma cycle in an oscillatory processing hierarchy.

Claim 9

A computer-implemented method for dynamically scaling a cortical column neural network during training, the neural network comprising a plurality of cortical column processing units arranged in a hierarchical stack, the method comprising:

  1. partitioning the cortical columns into depth bands based on their position in the hierarchical stack, each depth band corresponding to a distinct temporal receptive field scale;

  2. computing multi-scale prediction uncertainty aggregates by averaging the per-column prediction precision estimates (σ2{\sigma^2}) within each depth band;

  3. periodically collecting per-column diagnostics comprising mean gate activation values and mean σ2{\sigma^2} values;

  4. applying a prioritised sequence of scaling operations comprising:

    1. a kill-and-rebirth operation replacing columns identified as dead based on mean gate values falling below a dead gate threshold, by deep-copying the best-performing column with symmetry-breaking noise;

    2. a merge operation identifying redundant column pairs based on cosine similarity of functional weight vectors computed exclusively over association, output, and prediction weights and not over working memory, oscillatory, or gate parameters, and merging redundant columns via running average parameter interpolation with weight w=1/(nmerged+2)w = 1/(n_{\text{merged}} + 2);

    3. a shrink operation identifying underutilized columns based on low gate activation and low σ2{\sigma^2} persisting for a patience count of consecutive health checks, with depth-band-aware thresholds applying lower effective thresholds to shallow columns than to deep columns, and absorbing the knowledge of removed columns into nearest active neighbours; and

    4. a split operation identifying overloaded columns based on high σ2{\sigma^2} and high gate saturation, deep-copying the overloaded column, scaling output-facing weights by 0.5 in each copy with symmetry-breaking noise, such that the sum of the two daughter columns preserves the parent’s function; and

  5. rebuilding thalamic routing, lateral connections, global workspace, and self-assessment subsystems after any operation that changes the column count.

Claim 10

The method of Claim 9, wherein the depth bands comprise four bands: a token band comprising the shallowest quarter of columns, a phrase band comprising the second quarter, a sentence band comprising the third quarter, and a discourse band comprising the deepest quarter, corresponding to the temporal receptive field hierarchy of Hasson et al. (2008).

Claim 11

The method of Claim 9, wherein the depth-band-aware thresholds for the shrink operation apply scaling factors of 0.5 for the token band, 0.7 for the phrase band, 0.9 for the sentence band, and 1.0 for the discourse band, such that shallow columns processing primary sensory information require lower gate activity to be classified as underutilised than deep columns processing abstract information.

Claim 12

The method of Claim 9, wherein the merge operation computes cosine similarity exclusively over functional weights comprising association weights, output weights, and prediction weights, and excludes working memory state parameters, oscillatory parameters, and gate parameters from the similarity computation, thereby preventing erroneous merging of columns that compute the same function but operate at different timescales.

Claim 13

The method of Claim 9, further comprising a grow operation triggered when at least a predetermined proportion of existing columns have mean gate values exceeding a capacity threshold, wherein the insertion position for new columns is determined by the most overloaded depth band: appending for discourse-band overload, inserting at the bottom for token-band overload, and interleaving for mid-band overload.

Claim 14

The method of Claim 9, further comprising a maximal update parameterisation (muP) transfer step comprising:

  1. extracting scale-invariant hyperparameters from a trained proxy model, the scale-invariant hyperparameters comprising local learning rates, oscillatory parameters, neuromodulatory scales, gate dynamics parameters, working memory parameters, and structural plasticity thresholds;

  2. scaling dimension-dependent structural parameters proportionally to the ratio of target model dimension to proxy model dimension; and

  3. constructing a target model configuration combining the transferred scale-invariant hyperparameters with the proportionally scaled structural parameters.

Claim 15

The method of Claim 14, wherein the scale-invariant hyperparameters further comprise trained neuromodulator scale values extracted from a brainstem neuromodulatory module of the proxy model, comprising dopamine scale and norepinephrine scale values learned during proxy model training.

Claim 16

A computer-implemented system for deploying a cortical column neural network, the neural network comprising a plurality of cortical columns each producing a per-token prediction precision estimate (σ2{\sigma^2}), the system comprising:

  1. an early exit module configured to:

    1. process cortical columns sequentially from the shallowest to the deepest;

    2. after processing each column beyond a minimum column count, compute a token-band σ2{\sigma^2} aggregate from the shallowest processed columns and a phrase-band σ2{\sigma^2} aggregate from early-mid processed columns;

    3. terminate column processing when both the token-band σ2{\sigma^2} aggregate and the phrase-band σ2{\sigma^2} aggregate fall below a threshold; and

    4. complete the forward pass using only the outputs from the processed columns;

  2. a σ2{\sigma^2}-adaptive alignment module configured to:

    1. for direct preference optimisation, compute an effective temperature βeff=β/max⁡(σˉ2,ϵ)\beta_{\text{eff}} = \beta / \max(\bar{\sigma}^2, \epsilon) where σˉ2\bar{\sigma}^2 is the average sentence-band σ2{\sigma^2} across chosen and rejected completions, thereby reducing preference enforcement when the model is uncertain; and

    2. for supervised fine-tuning, weight the loss by w=1/(1+α⋅max⁡(0,σ2sentence−τ))w = 1 / (1 + \alpha \cdot \max(0, {\sigma^2}_{\text{sentence}} - \tau)) and preserve auxiliary losses comprising predictive coding loss, cerebellar loss, and thalamic reticular nucleus loss at a predetermined weight to prevent brain mechanism atrophy during alignment;

  3. a σ2{\sigma^2}-driven tool selection module configured to:

    1. extract discourse-band σ2{\sigma^2} and tonic dopamine level from the neural network’s forward pass;

    2. compute a dopamine-modulated effective threshold θeff=θ/max⁡(δ+tonic_DA,ϵ)\theta_{\text{eff}} = \theta / \max(\delta + \text{tonic\_DA}, \epsilon); and

    3. signal tool use when the discourse-band σ2{\sigma^2} exceeds the effective threshold.

Claim 17

The system of Claim 16, wherein the early exit module further resets working memory state of all cortical columns before each forward pass, preventing stale working memory from prior processing from contaminating the current inference.

Claim 18

The system of Claim 16, wherein the σ2{\sigma^2}-adaptive alignment module further preserves predictive coding loss, cerebellar temporal prediction loss, and thalamic reticular nucleus loss as auxiliary losses during supervised fine-tuning at a predetermined auxiliary weight, maintaining brain mechanism integrity during alignment.

Claim 19

The system of Claim 16, further comprising a σ2{\sigma^2}-gated retrieval module configured to trigger external knowledge retrieval when discourse-band σ2{\sigma^2} exceeds a retrieval threshold, using the final column’s last-token representation as a retrieval query embedding, wherein discourse-band σ2{\sigma^2} rather than token-band σ2{\sigma^2} is used to ensure retrieval targets topic-level knowledge gaps rather than token-level noise.

Claim 20

The system of Claim 16, further comprising a tool confidence module that extracts an anterior cingulate cortex conflict signal from the neural network and computes a tool selection confidence score as 1−conflict1 - \text{conflict}, wherein high conflict indicates ambiguity among candidate tools.

Claim 21

The system of Claim 16, wherein the token-band σ2{\sigma^2} aggregate is computed from the shallowest quarter of processed columns and the phrase-band σ2{\sigma^2} aggregate is computed from the second quarter of processed columns, and wherein early exit is prohibited for the deepest half of columns corresponding to sentence-band and discourse-band processing.

Claim 22

The system of Claim 1, further comprising a parallel prefix scan kernel for computing the linear recurrence ht=at⋅ht−1+bth_t = a_t \cdot h_{t-1} + b_t using the associative operator (a,b)⊕(a′,b′)=(a⋅a′,a′⋅b+b′)(a, b) \oplus (a', b') = (a \cdot a', a' \cdot b + b'), implemented via a chunked strategy wherein each chunk is computed using vectorised cumulative products and cumulative sums, and inter-chunk carries are propagated sequentially.

Claim 23

The system of Claim 1, further comprising a windowed context kernel that computes distance-weighted scores for windowed Hebbian association via an algebraic decomposition score[t,j]=ct−cj\text{score}[t,j] = c_t - c_j where ct=∑dxt,d⋅Wdist,dc_t = \sum_d x_{t,d} \cdot W_{\text{dist},d} is a scalar per position, reducing score computation from O(T×w×D)O(T \times w \times D) to O(T×D+T×w)O(T \times D + T \times w) and eliminating materialisation of intermediate tensors of size (B,H,T,D,w)(B, H, T, D, w).

Claim 24

The system of Claim 22, wherein the windowed context kernel operates on the scalar ctc_t by padding and unfolding in scalar space rather than in the full DD-dimensional embedding space, such that the value-weighted context is computed as a contraction over a (B,H,T,w+1)(B, H, T, w+1) scalar score tensor and a view of the value tensor, consuming O(B×H×T×D)O(B \times H \times T \times D) output memory rather than O(B×H×T×D×w)O(B \times H \times T \times D \times w) intermediate memory.

Claim 25

The system of Claim 1, further comprising an NMDA parallel scan kernel decomposing NMDA attractor slot dynamics into: a batch pre-computation of all write probabilities and contents for all sequence positions; KK independent parallel prefix scans for the KK slot state updates; and a batch attention-weighted read operation over the scan output.

Claim 26

A non-transitory computer-readable storage medium storing instructions that, when executed by one or more processors, cause the processors to implement the multi-stage embedding system of Claim 1, the dynamic scaling method of Claim 9, and the deployment system of Claim 16.

License

PolyForm Noncommercial License 1.0.0

This work is open research. Free for any noncommercial use: research, education, personal projects, evaluation, and nonprofit or public-sector use. Commercial use requires a separate license, available by contacting krrish@verace.in.