Skip to content
Cortical computationExperiments

Verace Pillar

A language model that replaces softmax attention with a fixed population of associative memory columns and a sparse mixture of experts.

Verace Research·June 28 to July 31, 2026
  1. Per-layer column state: Stays constant in size, so no key-value cache
  2. Memory column: Fixed orthogonal address, kept out of training
  3. Write routing: Adds each new value into the columns, with decay
  4. Read routing: Sums the columns into the output for the token
Figure 1. Fixed column memory in place of attention in Verace Pillar. Schematic: each token writes into and reads from a fixed population of associative memory columns, the constant-size state Verace Pillar uses in place of softmax attention and its key-value cache.
Open the simulator on its own pageLooking back, or keeping a fixed memory: an interactive toy model of the principle. You can also try it below

Overview

Verace Pillar is a language model that replaces softmax self-attention with a fixed population of associative memory columns, combined with a sparse mixture-of-experts feed-forward layer. Its research name is CCLM, Cortical Column Language Model. The work addresses two limits of standard Transformers. The first is memory: the key-value cache grows as O(T)O(T) in sequence length. The second is blurring: softmax weight spread over a long context drops toward O(1/T)O(1/T) per item. The question is whether a model with working memory that stays constant in TT can still do exact associative recall and multi-hop reasoning.

Each layer is a pre-norm residual block, CCLMBlock. It applies column attention and then a sparse mixture of experts, each after RMSNorm. Column attention keeps NN memory slots with fixed orthogonal addresses, so generation carries a constant-size state and uses no key-value cache. A separate associative recall model adds three mechanisms. It masks unwritten slots. On a missed match it recalls facts from a 4-bit compressed episodic tape. It runs System-2 energy descent, which moves the query toward the key of its own retrieved value so that it can follow chains of facts. Supporting parts include an orthogonality-regularised optimizer, a closed-form alignment method and per-step low-rank adapters.

The packaged release includes a byte-level BPE tokenizer, a trainer, a command-line chat, an OpenAI-compatible server, a web chat UI and ONNX export. The build checklist records 69 tests passing at 90% coverage and a TinyStories training run that reached a final loss of 1.64. The research library's capability ledger reports results on the lab's synthetic tasks. On multi-query associative recall, the model scored 96.2% against 13.0% for a Transformer baseline. On 3-hop transitive chains it scored 99.0%, or 82.0% with energy descent, against 27.0%. With 30 facts and four columns, the tape gave 100.0% recall against 13.3% for columns alone. A second line attaches a recurrent memory core to a frozen pretrained GPT-2, a model by others.

The architecture, recall model, tape, optimizer, alignment method, training pipeline and server are implemented and covered by the test suite. Training is recorded for one small TinyStories model. The associative results come from the lab's own synthetic benchmarks with small models. Scripts exist for several further runs, with no results recorded: a roughly 105M-parameter FineWeb-Edu pretraining, tool-use fine-tuning, a two-stage log anomaly classifier, and the GPT-2 wrapper evaluations on WikiText-2 and GSM8K. A LoRA checkpoint at step 50 for the externally developed gemma-4-e2b-it exists, with an unfilled model card. The system's overview claims no output quality comparable to large chat models, since parity would need pretraining compute near 102510^{25} FLOPs, and the code trains only to small-scale TinyStories text.

Status

Experiments. The code is implemented and unit-tested, with a recorded TinyStories training loss and a capability ledger of synthetic recall and reasoning results; larger-scale and wrapper training runs exist only as scripts, with no recorded results.

Simulator

A row of tokens is read two ways at once: the newest token looks back at every earlier one, and every token is also written into one memory of fixed size that fades.

  • looking back: one arc for every earlier token
  • fixed memory: how much of each token it still holds
  • newest token at the right
Looking back, this token
23 comparisons
Looking back, whole sequence
276 comparisons
State kept: looking back / fixed
24 tokens / 1 state
Fixed memory: a token is half faded after
4.3 tokens

Lengthen the sequence: the arcs multiply, the fixed memory stays one state. Lower the decay and it forgets sooner.

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. Causal column language model

    RDMoECLM stacks CCLMBlock layers, each applying causal column attention and a sparse mixture of experts behind RMSNorm. Generation carries per-layer column state, so each new token costs constant memory.

  2. Associative recall model

    AssociativeCCLM with ColumnMemory adds active-slot masking, surprise-gated tape recall and System-2 energy descent for multi-hop lookup.

  3. TurboQuant episodic tape

    A long-term store of up to 1M key-value facts, compressed with a rotated low-bit quantisation scheme that the code names TurboQuant: facts are kept rotated and quantised to 2 to 8 bits and searched directly on integer codes. It recalls facts that the columns have evicted.

  4. Sparse mixture of experts

    A linear router sends each token to its top 2 of 4 SwiGLU feed-forward experts, so capacity grows with the number of experts while compute per token stays fixed.

  5. Step-indexed LoRA adapters

    A base linear layer plus a distinct low-rank update for each reasoning step, which changes the query projection at each iteration of System-2 descent.

  6. HR-AdamW optimizer

    An AdamW variant that adds a soft-orthogonality penalty for square weight matrices and scales the step size by a resonance energy term.

  7. HCAR closed-form alignment

    An algebraic method that edits an associative memory-state matrix in one step for preference alignment or teacher-to-student distillation, in place of iterative reinforcement learning or DPO loops.

  8. SDRT memory core wrapper

    A recurrent matrix-memory core attached at one layer of a frozen pretrained model such as GPT-2. Its output is added back through a learnable gate that starts at zero.

  9. Serving and interface stack

    An inference engine with chat template rendering, a CLI with train, chat and serve commands, an OpenAI-compatible chat API with streaming, a web chat UI and ONNX export.

  10. Training pipelines

    A single-device trainer with AMP and checkpointing, used for TinyStories pretraining, FineWeb-Edu pretraining, tool-use fine-tuning and a two-stage log anomaly classifier.

Implementation

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

Causal column memory recurrence
Over NN columns, the state updates as St=γ⊙St−1+at⊗vtS_t = \gamma \odot S_{t-1} + a_t \otimes v_t with write routing at=route(kt)a_t = \mathrm{route}(k_t). The output is yt=∑irt,iSt[i]y_t = \sum_i r_{t,i} S_t[i] with read routing rt=route(qt)r_t = \mathrm{route}(q_t). The decay is γ=σ(ℓ)\gamma = \sigma(\ell), with the logit decay_logit initialised at 0.5. This gated linear recurrence, not the soft winner-take-all write, is what the causal language model uses.
Fixed orthogonal column addresses
The NN address rows come from a QR decomposition of a seeded Gaussian matrix (requiring N≤dN \le d). They are registered as a non-trained buffer, so the columns stay distinct and cannot homogenise during training.
Soft winner-take-all column write
Write weights are a=softmax(βcos⁡(k^,W^key))a = \mathrm{softmax}(\beta \cos(\hat{k}, \hat{W}_{key})) with β=12\beta = 12. Each slot moves its key and value toward the new pair by ηa\eta a, with η=0.8\eta = 0.8 by default. At read time, inactive slots score −109-10^9, so queries match only slots that were written.
Surprise-gated tape recall
When the best cosine match among active slots falls below a miss threshold of 0.60, the read fetches the best-matching tape entry. It then rewrites that entry into the columns with η=1.0\eta = 1.0, only for the missed rows, before the softmax read.
Rotated low-bit quantisation and search
Each vector is multiplied by a fixed seeded orthogonal matrix RR, which makes its coordinates closer to Gaussian. It is then scaled by its absolute maximum to signed 4-bit integers in [−8,7][-8, 7] and decoded as x^=c s R⊤\hat{x} = c \, s \, R^\top. At search time only the query is rotated. Cosine similarity is computed on the integer codes, because the per-vector scales cancel, and only the best hit is dequantised.
System-2 energy descent
The query is relaxed toward the key projection of its own retrieved value: q←q+η(Wkey read(q)−q)q \leftarrow q + \eta (W_{key}\,\mathrm{read}(q) - q). As a fixed-point iteration, this follows transitive chains of facts. A match score threshold of 0.50 routes terminal retrievals to System 1 and continues descent otherwise.
Top-k then softmax expert routing
The router keeps the top 2 of 4 logits and applies softmax only over them, so expert weights sum to 1 per token and outputs do not shrink as the router sharpens. Each expert computes Wout(silu(Wgatex)⊙Winx)W_{out}(\mathrm{silu}(W_{gate} x) \odot W_{in} x).
Holographic soft-orthogonality gradient
For flagged 2D parameters, HR-AdamW adds λW(W⊤W−I)\lambda W(W^\top W - I) to the gradient for tall matrices and λ(WW⊤−I)W\lambda (W W^\top - I) W for wide ones, with λ=10−3\lambda = 10^{-3}, and skips weight decay. The trainer flags only square weights. The effective step size is η/(1+γE)\eta / (1 + \gamma E), with resonance energy EE passed at each step and γ=0.1\gamma = 0.1 by default.
HCAR closed-form alignment step
The method projects out the rejected keys and writes the preferred values in one step. It computes Pl=Ql(Ql⊤Ql+ϵI)−1Ql⊤P_l = Q_l(Q_l^\top Q_l + \epsilon I)^{-1} Q_l^\top and Snull=S(I−Pl)S_{null} = S(I - P_l). It then sets Δ=(Vw−SnullQw)(Qw⊤Qw+ϵI)−1Qw⊤\Delta = (V_w - S_{null} Q_w)(Q_w^\top Q_w + \epsilon I)^{-1} Q_w^\top and S′=Snull+ηΔS' = S_{null} + \eta \Delta, with ϵ=10−4\epsilon = 10^{-4} and η=0.8\eta = 0.8.
Gated delta-rule matrix memory
The SDRT core computes k=WkHk = W_k H and v=WvHv = W_v H. It then updates M←(1−σ(gd))M+σ(gw)(v−Mk)k⊤∥k∥2+10−8M \leftarrow (1 - \sigma(g_d)) M + \sigma(g_w) \frac{(v - M k) k^\top}{\lVert k \rVert^2 + 10^{-8}}, with scalar write and decay gates computed from the halted state. Sequences are processed in 64-token chunks with gradient checkpointing.
Adaptive ponder halting loop
For up to 4 loops by default, the core reads r=Mq(H)r = M q(H), gates γ=σ(W[H,r])\gamma = \sigma(W[H, r]) and updates H←(1−γ)H+γ(H+MLP(H))H \leftarrow (1 - \gamma) H + \gamma (H + \mathrm{MLP}(H)). A halting probability p=σ(halt(H))p = \sigma(\mathrm{halt}(H)) stops a position once cumulative p≥0.99p \ge 0.99. The output is ∑dpdHd/∑dpd\sum_d p_d H_d / \sum_d p_d.
Zero-initialised gated injection
At one intercept layer of a frozen language model, a forward hook computes hout=f(h)+α SDRT(h)h_{out} = f(h) + \alpha \, \mathrm{SDRT}(h), with the scalar α\alpha initialised to 0. At step 1 the output equals the pretrained model, and setting α=0\alpha = 0 gives an exact ablation. Only the core and α\alpha are trained, with AdamW at learning rate 1e-4 and gradient clipping at 1.0.
Residual ridge porting
Each student layer ii copies teacher layer round(i(L−1)/(n−1))\mathrm{round}(i(L-1)/(n-1)). The output projection is fitted by ridge regression so that the column block reproduces the teacher's residual Hout−HinH_{out} - H_{in} on a probe corpus. This is the closed-form route for porting GPT-2 into the column architecture.
Unfactored per-column decay parallel form
The parallel Triton form computes γnm−j\gamma_n^{m-j} directly as exp⁡((m−j)log⁡γn)\exp((m-j)\log \gamma_n) with γ\gamma clamped at 10−2010^{-20}, summing per column before contraction. This avoids the γmγ−j\gamma^m \gamma^{-j} split used by RetNet, a published method by others, which overflows fp32. Triton kernels run only when gradients are disabled, because they have no autograd support.

Results

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

  1. Packaged release passes its test suite

    The build checklist records 69 tests passing with 90% coverage, and a small model trained on TinyStories reaching a final loss of 1.64.

  2. Associative recall far above Transformer baseline

    In the lab's capability ledger, multi-query associative recall at length 128 reached 96.2% accuracy against 13.0% for a Transformer attention baseline, above the ledger's own pass threshold of 0.85.

  3. Multi-hop transitive reasoning holds at three hops

    The ledger reports 99.0% accuracy on 3-hop transitive chains with recurrent hops and 82.0% with energy descent, against 27.0% for the Transformer baseline.

  4. Energy descent keeps 82% accuracy at six hops

    In the lab's stress test, accuracy at 6 hops was 82.0%, against 0.0% for the baseline, meeting the target of above 0.80.

  5. Active key gating filters branching distractors

    On the branching-tree stress test, the lab recorded 88.0% recall against 28.0% for the Transformer baseline.

  6. Episodic tape recovers facts evicted from columns

    With 30 facts and only 4 columns, recall was 13.3% from the columns alone and 100.0% with the quantised episodic tape added, in the lab's records.

  7. Autonomous gating splits a mixed workload

    On a 50/50 mix of direct and multi-hop queries, the ledger records 49.0% of queries routed to System 1 and 51.0% to System 2, while the baseline sends all queries forward.

Concepts

Slot-wise competitive attention
A mixer that replaces softmax over all past tokens with a fixed population of associative memory columns. Working memory is O(N)O(N) in the number of columns and does not grow with sequence length.
Attention blurring
Over a long context, softmax spreads its weight thinly, approaching O(1/T)O(1/T) per item, so a single stored fact becomes hard to retrieve exactly. The lab's derivations motivate column slots as a remedy.
Constant-memory generation
The sampler primes the column state once from the prompt and then generates each token from the carried state alone, with no key-value cache.
Multi-query associative recall
A synthetic task in which key-value pairs are interleaved in a sequence and the model must output the value bound to a later query key. The lab uses it as its main recall benchmark.
Active slot masking
A boolean mask of slots that have actually been written. Retrieval matches queries only against these slots, which removes noise from random overlap with empty slots.
Episodic tape
A compressed long-term store kept alongside the columns. Facts evicted from working memory can be recalled from it when the column match is weak.
System-1 and System-2 routing
A query that matches a stored key directly is answered in one retrieval (System 1). Otherwise the model iterates energy descent across several hops (System 2), choosing between the two by a match score threshold.
Representation alignment loss
A training loss that forces the retrieved value onto the target's raw embedding, so that a retrieved value can serve directly as the next query in recurrent hops without drift.
Recurrent-depth mixture of experts
The design specification's name for the full architecture, RD-MoE-CLM. It combines latent column slots, sparse experts and step-indexed adapters applied over repeated reasoning steps.
Zero-shot Transformer translation
A designed route to move a pretrained Transformer's key-value cache into column slots by pseudoinverse injection plus an HCAR projection. The code implements the related residual ridge porting of GPT-2 layers.
Answer-only loss masking
In fine-tuning, prompt and padding positions are labelled -100, so cross-entropy covers only the answer or verdict tokens. The reasoning, tool-use and log anomaly pipelines all use this masking.
Normal-only log pretraining
For log anomaly detection, the model is first trained as a plain next-token predictor on normal HDFS and BGL log sequences from the LogHub collection. Next-token surprise on unseen logs then serves as an anomaly signal before a second fine-tuning stage on verdicts.
Invention method
The lab's top-down design procedure. It decomposes a goal until each part is a buildable control with a known cost or is bounded by a named invariant. The column architecture was derived with it.

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.