Verace Hologram
A language model built on a complex-valued delta-rule matrix memory, with closed-form state editing and verifier-guided latent deliberation.
- Softmax attention: Its key-value cache grows with sequence length
- EDRHS recurrent memory layer: Fixed-size matrix state replaces the key-value cache
- Complex-phase NLMS delta rule: Corrects the state from the prediction error
- Fast and slow memory: A learned route gate mixes the two readouts
Overview
Verace Hologram is the lab's line of work on a language model whose sequence mixer is a recurrent associative memory instead of softmax attention. The lab's papers and code call it HLLM, with component research names EDRHS, GESD, GRERT, R-GRETS-ALH and Holographic Resonant Transformer. It addresses two questions. First, can a fixed-size matrix state, written by an error-correcting delta rule in complex phase space, replace the key-value cache, whose memory grows with sequence length ? Second, can that same state be edited in closed form at test time to inject facts, align preferences and correct outputs against an external verifier?
Each layer combines three parts: an EDRHS recurrent scan over fast and slow complex memory states, an ESSD loop of silent latent deliberation, and a mixture of experts routed by phase alignment. A parallel prefix scan computes the recurrence in depth, and a custom optimizer, HR-AdamW, keeps projections near orthogonal. Several parts make up the line. The research implementation and its packaged release add an operator library, a 12-stage serving engine, benchmarks and tests. A delta-rule layer library adds an FFT variant. A constant-memory attention replacement uses recursive least squares. Experiment scripts cover looped recurrent memory layers, and a further part is a matrix-state neuron with an attention-free transformer built from it.
The lab recorded pretraining of a 37.3M-parameter configuration on WikiText-2. Over 1500 steps, training perplexity fell from 54,943 to 138.24, and the best validation perplexity was 128.43. Over a 100-step run, HR-AdamW held Stiefel distance at 0.6157, against 106.12 for AdamW. A 4.158M-parameter micro model answered 4 of 4 in-distribution GSM8K-style questions after 125 steps. The lab's own notes classify this result as memorization only. The integrated serving build passed 32 of 32 tests and 25 of 25 verification scripts. In the experiments, a dual-store reasoner solved parity, S5 and multi-hop tasks that a softmax transformer did not.
Status: the model, optimizer, serving engine, delta-rule library, least-squares attention replacement and experimental variants are implemented in code. Most named inventions are checked only by small numerical verification scripts, not inside a trained model at scale. Large-scale claims are design targets only, including constant-memory serving throughput, replacement of supervised fine-tuning and preference optimization, and optical training hardware. The measured runs are small: a 37.3M-parameter pretraining run, micro-model benchmarks on memorized data and synthetic reasoning tasks. The lab's own analyses found that verifier-guided deliberation lowers coherence on under-trained models and that injected out-of-distribution facts did not reach the output. Comparison against trained baselines at matched scale remains open.
Status
Experiments. Code for the model, optimizer, serving engine and variants exists alongside recorded pretraining runs, micro-model benchmarks, synthetic reasoning experiments and the lab's own analyses of their failure modes.
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
EDRHS recurrent memory layer
The sequence mixer: each head keeps real and imaginary fast-weight matrices written by a normalized delta rule with decay, plus a slower consolidated state. It replaces attention and its key-value cache.
ESSD latent deliberation
A loop that derives a query from the memory state, predicts, corrects the state from the delta error and halts when a learned halting score is reached. Thinking happens in state space, not in emitted tokens.
Phase-resonant mixture of experts
Expert routing from the phase alignment between token queries and learned expert phases. It is differentiable and uses no auxiliary load-balancing loss.
HolographicLLM stack
Embeddings, a stack of pre-norm residual layers each holding the EDRHS scan, ESSD and the expert block, then a final LayerNorm and language model head. The stack exposes interfaces for fact injection and online verification updates.
HR-AdamW optimizer
An AdamW variant that regularizes projections toward orthogonality, clamps the decay poles and scales the learning rate by the energy of the memory state.
GESD verifier-guided deliberation
A thinking mode built on three operations. Height injection writes facts into the initial state, width expansion spreads the work across channels, and depth resonance runs deliberation steps in which a verifier's error rotates the state.
Closed-form state editing
A family of pseudoinverse and projection operators (HPFI, HCAR, ASRP, HPD) that write facts or preferences directly into the memory state with no gradient steps.
HURFEngine serving pipeline
A 12-stage inference lifecycle that maps each serving stage to an invention operator. The stages include an injection shield, the forward pass, GESD deliberation, grammar gating, moderation, tool projection, repetition suppression and watermarking.
Invention verification suite
One numerical script per named invention, run together by a single runner that reports pass or fail. In the packaged release the scripts import shared operators from one library.
ERR-MoE delta-rule library
A standalone library holding the EDRHS layer, an FFT-domain variant (ECRS), the ESSD wrapper and the ERR-MoE language model. It also provides training, generation and chat entry points.
R-GRETS-ALH attention replacement
A constant-memory sequence-mixing primitive. It combines a Sherman-Morrison recursive least-squares memory with adaptive latent halting over query refinement.
GRERT and dual-store experiments
Experimental recurrent engines (GRERT v2 to v5) plus a dual-store reasoner that pairs a least-squares fact memory with a bounded automaton. Test scripts evaluate them on recall, state tracking and multi-hop tasks.
Implementation
Mechanisms as they are implemented in the source code, with the constants the code uses.
- Complex-phase NLMS delta rule
- Keys are , the prediction is , and the update is . The decay is of a raw parameter initialised at 4.5, which gives about 0.988.
- Fast and slow memory with route gate
- The fast complex state is consolidated into a slower exponential-moving-average state. A learned route gate mixes the readouts of the two states.
- Chunked Kogge-Stone prefix scan
- The delta recurrence is written as an affine map . Within each chunk (, dividing ) the transition and bias are built sequentially, chunks are combined by a stride-doubling Kogge-Stone scan, and positions inside a chunk are then replayed. The test suite requires parallel and token-by-token outputs to agree within 1e-4.
- FFT circulant delta rule (ECRS)
- The state is a complex frequency vector , with and an update along normalized by . The readout is , which gives cost per step.
- Phase-resonant expert scores
- Each expert has a learned phase initialised uniformly on . The token score is , passed through a softmax with temperature 0.1. Experts are GELU MLPs, and the sparse mode keeps the top 2 and renormalizes.
- HR-AdamW reciprocity and resonance
- Projections receive the weight-decay gradient , which pulls them toward the Stiefel manifold instead of toward zero. Decay poles are projected into a stable range of 0.95 to 0.9999. The learning rate is , where is a batch- and head-averaged Frobenius energy ratio of the state.
- Skew-exponential orthogonal weights
- Weights are parameterized as with , so they remain exactly orthogonal while Adam updates the raw Lie-algebra parameters.
SkewExponentialLinearimplements this parameterization. - Reversible recurrence backward pass
- Earlier states are reconstructed by inverting the decayed outer-product update, , instead of being stored. The verification script checks that the gradients match autograd with constant activation memory.
- Pseudoinverse fact injection
- Facts are written as , with refuted keys mapped to zero, so non-orthogonal keys produce no crosstalk. The deliberation variant applies in place of rank-1 updates.
- Rodrigues state rotation
- A closed-form rotation in the plane spanned by the current recall vector and the target aligns the two in one step. The verification script compares it with 5 steps of gradient descent and checks norm preservation and zero manifold drift.
- Spectral wave multiplexing
- Sequence outer products are modulated onto Fourier carriers and contracted into one state with a single einsum. Retrieval applies the conjugate carrier, and frequency orthogonality removes crosstalk.
- Sherman-Morrison least-squares memory
- With and , each step computes , then and . The state converges to the least-squares map with up to capacity.
- Adaptive latent halting
- The query is refined by for at most
max_think_steps= 4 hops. Refinement halts early when every head's change satisfies . - Rank-1 steering and error alignment
- The direct deliberation rule edits the state by , a normalized-LMS step whose residual contracts by for in ; the code clamps to , and the verifier-steered version in the looped engine defaults to 0.5 over 5 steps. The feedback error alignment variant instead computes the verifier error in output space, back-projects it through the output projection weights and applies per head with the same clamp. Because its error is measured after the output projection rather than on the state readout , the records give no contraction guarantee for this variant.
- Algebraic crosstalk cancellation
- Before steering, the fast states are multiplied by with , where holds the non-matching prefix keys. A follow-up variant (EKSO) also undoes the decay of the matching key and resets the normalizer .
- Looped layers with input injection
- Each layer runs
loops= 4 times with , where is the embedding input and , followed by a residual layer call. Orthonormal QR loop keys, up to a maximum depth of 10, mark the loop index. - Flat-buffer VJP tape
- A model is compiled into a static array of integer opcodes with contiguous value and gradient slot pools. The backward pass is a flat loop of hand-written vector-Jacobian products, and the verification script checks it against PyTorch autograd.
- Warp-shuffle circular convolution
- A simulated warp-register scheme computes circular convolution by repeatedly broadcasting one element, multiplying and accumulating, and rolling the register. The verification script checks it against the FFT result.
Results
From the lab's own experiments and records. They have not been independently replicated.
Pretraining perplexity fell over 1500 steps
In the lab's run of the 37.3M-parameter configuration on WikiText-2, training perplexity fell from 54,943 to 138.24 over 1500 steps, with a best validation perplexity of 128.43.
HR-AdamW preserved orthogonality far better than AdamW
In the lab's 100-step EDRHS benchmark, Stiefel distance was 0.6157 under HR-AdamW and 106.12 under AdamW, a 172x difference.
Micro-model math scores reflect memorization
A 4.158M-parameter model trained for 125 steps on 12 facts repeated 200 times answered 4 of 4 in-distribution GSM8K-style questions. The lab's report presents this as an architectural gap against zero-shot GPT-2 Small, but its own notes classify the result as memorization only.
Nano and Micro models at 75% on memorized sets
The benchmark records report 75% on GSM8K and MMLU items for the Nano and Micro models under converged memorization.
Verifier deliberation lowers coherence when under-trained
The lab's deliberation analysis found that GESD feedback amplifies noise in under-trained models. It records a stability rule: GESD is stable only when initial coherence exceeds 0.91, and below that the lab advises decaying the state between steps.
Out-of-distribution fact injection did not surface
Pseudoinverse injection of out-of-distribution targets raised no top tokens, because the language model head strongly favours tokens it was trained on. The lab's proposed fix is a brief fine-tuning of the head.
Joint alignment reconstruction near exact
A single joint pseudoinverse over concatenated preference and fact keys gave a reconstruction error of about 1e-6 across 8 heads, according to the integration records.
Serving build passed its test and verification suites
The integration report records 32 of 32 tests and 25 of 25 verification scripts passing after the serving engine, grammar gating, moderation, tool projection and tree search were wired in.
Dual-store reasoner solved state tracking and multi-hop tasks
In the lab's experiments, the automaton reached 100% on parity and S5 with 4x length extrapolation, where a softmax transformer failed. The full reasoner solved multi-hop tasks at 100% and extrapolated to 16 hops, while the transformer stayed near 17%.
Latent preference alignment check passed
The verification records for direct preference alignment on the state report a preference gap shift of 1.11926, with Stiefel manifold drift bounded at 0.0004.
Concepts
- Delta rule
- A memory write that stores only the error between the target value and what the memory currently predicts for a key. Repeated writes therefore correct existing associations instead of piling them up.
- NLMS normalization
- Scaling the delta update by . The lab's stability theorems use it to bound the eigenvalues of the transition to .
- Fast weights
- A matrix state rewritten at every token, acting as working memory. The model's ordinary trained weights change only during training.
- Constant-memory inference
- A recurrent state replaces the key-value cache, so memory per sequence does not grow with context length. During decoding each new token is processed alone against the carried state.
- Parallel prefix scan
- Because the composition of affine transitions is associative, a length- recurrence can be computed in parallel steps. The lab's Theorem 3 states this property.
- Least-squares convergence
- The lab's Theorem 4 states that with orthogonal keys and unit learning rate, the state converges to the exact association sum .
- Stiefel manifold
- The set of matrices with orthonormal columns. HR-AdamW and HSEO keep projections on or near it, so that transposes act as inverses and norms are preserved.
- Truncated backpropagation through time
- The training suite splits 1024-token sequences into chunks of 64 and detaches the recurrent state between chunks, which bounds the memory used by the backward pass.
- Reciprocal Wave Resonance
- The lab's framing of training as standing-wave updates in a reciprocal physical medium, implemented through hand-written transpose VJPs. The lab's own technical critique finds that its gradients equal those of autograd, so it is exact reverse-mode differentiation.
- Height, width and depth
- The three axes of GESD: injecting facts into the initial state, expanding the work across channels and running verifier-driven deliberation steps.
- Closed-form alignment
- The design proposition that preference alignment, fact editing and distillation can be done with one batched pseudoinverse projection on the state, without gradient training. The verification scripts check this on small matrices.
- Realization head boundary
- The lab's observation that a fact can be stored correctly in memory and still fail to appear in the output. The cause is that the final LayerNorm and language model head were never trained on such vectors.
- Noisy-microphone feedback effect
- The lab's term for the failure in which verifier feedback on an under-trained model amplifies noise, spreads probability mass across the logits and lowers coherence.
- Multi-query associative recall
- A synthetic task in which key-value pairs appear in context and are later queried. The lab uses it in several parts as the baseline recall test.
- Dual-Store Reasoner
- An experimental attention replacement in which a controller runs a bounded automaton against a recursive least-squares fact memory. The lab regularizes the two stores in opposite ways: none on the memory, heavy decay and discretization on the automaton.
- Causal key shifting
- A learnable gate that pairs the key at step with the value at step , aligning memory writes with next-token retrieval. A related variant ties the query to the key.
- Phase-resonant GQA attention
- An experimental hybrid with softmax attention whose scores are for complex queries and keys built from a magnitude and a phase. It appears in GRERT v4 and v5.
- State-resonance scaling stability region
- The lab's tuning specification maps three regimes for the resonance damping : divergent near zero, stable for in with decay in , and over-damped above 1.0.
- Beat-softmax benchmark tiers
- The lab's target scorecard for a new attention mechanism. It should match softmax on recall and exceed it on rebinding, multi-hop reasoning, length extrapolation, parity and S5 state tracking, and adaptive compute.
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.