Verace Pillar
A language model that replaces softmax attention with a fixed population of associative memory columns and a sparse mixture of experts.
- Per-layer column state: Stays constant in size, so no key-value cache
- Memory column: Fixed orthogonal address, kept out of training
- Write routing: Adds each new value into the columns, with decay
- Read routing: Sums the columns into the output for the token
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 in sequence length. The second is blurring: softmax weight spread over a long context drops toward per item. The question is whether a model with working memory that stays constant in 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 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 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
Causal column language model
RDMoECLMstacksCCLMBlocklayers, 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.Associative recall model
AssociativeCCLMwithColumnMemoryadds active-slot masking, surprise-gated tape recall and System-2 energy descent for multi-hop lookup.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.
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.
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.
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.
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.
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.
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.
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 columns, the state updates as with write routing . The output is with read routing . The decay is , with the logit
decay_logitinitialised 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 address rows come from a QR decomposition of a seeded Gaussian matrix (requiring ). 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 with . Each slot moves its key and value toward the new pair by , with by default. At read time, inactive slots score , 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 , 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 , which makes its coordinates closer to Gaussian. It is then scaled by its absolute maximum to signed 4-bit integers in and decoded as . 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: . 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 .
- Holographic soft-orthogonality gradient
- For flagged 2D parameters, HR-AdamW adds to the gradient for tall matrices and for wide ones, with , and skips weight decay. The trainer flags only square weights. The effective step size is , with resonance energy passed at each step and by default.
- HCAR closed-form alignment step
- The method projects out the rejected keys and writes the preferred values in one step. It computes and . It then sets and , with and .
- Gated delta-rule matrix memory
- The SDRT core computes and . It then updates , 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 , gates and updates . A halting probability stops a position once cumulative . The output is .
- Zero-initialised gated injection
- At one intercept layer of a frozen language model, a forward hook computes , with the scalar initialised to 0. At step 1 the output equals the pretrained model, and setting gives an exact ablation. Only the core and are trained, with AdamW at learning rate 1e-4 and gradient clipping at 1.0.
- Residual ridge porting
- Each student layer copies teacher layer . The output projection is fitted by ridge regression so that the column block reproduces the teacher's residual 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 directly as with clamped at , summing per column before contraction. This avoids the 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.
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.
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.
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.
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.
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.
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.
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 in the number of columns and does not grow with sequence length.
- Attention blurring
- Over a long context, softmax spreads its weight thinly, approaching 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.