Skip to content
Language modelsExperiments

Verace Hologram

A language model built on a complex-valued delta-rule matrix memory, with closed-form state editing and verifier-guided latent deliberation.

Verace Research
  1. Softmax attention: Its key-value cache grows with sequence length
  2. EDRHS recurrent memory layer: Fixed-size matrix state replaces the key-value cache
  3. Complex-phase NLMS delta rule: Corrects the state from the prediction error
  4. Fast and slow memory: A learned route gate mixes the two readouts
Figure 1. Fixed-size delta-rule memory in place of attention in Verace Hologram. Schematic: attention looks back over a growing context, while Verace Hologram writes each token into a complex matrix memory of fixed size by a delta rule and reads from it. Tested in small runs only.
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 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 TT? 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 O(log⁡T)O(\log T) 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

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

  8. 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.

  9. 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.

  10. 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.

  11. 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.

  12. 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 k=(elu(x)+1)(cos⁡θ,sin⁡θ)k = (\mathrm{elu}(x)+1)(\cos\theta, \sin\theta), the prediction is vpred=Srekre+Simkimv_{pred} = S_{re}k_{re} + S_{im}k_{im}, and the update is S←δS+σ(β)∥k∥2+10−5(v−vpred)k⊤S \leftarrow \delta S + \frac{\sigma(\beta)}{\|k\|^2 + 10^{-5}}(v - v_{pred})k^\top. The decay is δ=0.999 σ(⋅)\delta = 0.999\,\sigma(\cdot) 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 U←UA+BU \leftarrow UA + B. Within each chunk (C≤16C \le 16, dividing TT) 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 ss, with vpred=ifft(s⋅Kf‾)v_{pred} = \mathrm{ifft}(s \cdot \overline{K_f}) and an update along fft(v−vpred)⋅Kf\mathrm{fft}(v - v_{pred}) \cdot K_f normalized by ∑∣Kf∣2+10−5\sum |K_f|^2 + 10^{-5}. The readout is y=ifft(s⋅Qf‾)y = \mathrm{ifft}(s \cdot \overline{Q_f}), which gives O(dhlog⁡dh)O(d_h \log d_h) cost per step.
Phase-resonant expert scores
Each expert has a learned phase θe\theta_e initialised uniformly on (−π,π)(-\pi, \pi). The token score is ∑(elu(q)+1)cos⁡(θq−θe)\sum (\mathrm{elu}(q)+1)\cos(\theta_q - \theta_e), 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 λW(W⊤W−I)\lambda W(W^\top W - I), 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 ηt=η0/(1+γΩt)\eta_t = \eta_0 / (1 + \gamma \Omega_t), where Ωt\Omega_t is a batch- and head-averaged Frobenius energy ratio of the state.
Skew-exponential orthogonal weights
Weights are parameterized as W=exp⁡(A)W = \exp(A) with A⊤=−AA^\top = -A, so they remain exactly orthogonal while Adam updates the raw Lie-algebra parameters. SkewExponentialLinear implements this parameterization.
Reversible recurrence backward pass
Earlier states are reconstructed by inverting the decayed outer-product update, St−1=(St−vtkt⊤)/λS_{t-1} = (S_t - v_t k_t^\top)/\lambda, instead of being stored. The verification script checks that the gradients match autograd with constant activation memory.
Pseudoinverse fact injection
Facts are written as S=VK+S = V K^+, with refuted keys mapped to zero, so non-orthogonal keys produce no crosstalk. The deliberation variant applies ΔS=(V−SK)(K⊤K+ϵI)−1K⊤\Delta S = (V - SK)(K^\top K + \epsilon I)^{-1}K^\top 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 e−iωfte^{-i\omega_f t} 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 P0=I/ϵP_0 = I/\epsilon and ϵ=10−4\epsilon = 10^{-4}, each step computes g=Pk/(1+k⊤Pk)g = Pk/(1 + k^\top P k), then S←S+(v−Sk)g⊤S \leftarrow S + (v - Sk)g^\top and P←P−g(k⊤P)P \leftarrow P - g(k^\top P). The state converges to the least-squares map with Ski=viS k_i = v_i up to capacity.
Adaptive latent halting
The query is refined by q←q+F(Sq)q \leftarrow q + F(Sq) for at most max_think_steps = 4 hops. Refinement halts early when every head's change satisfies ∥Δq∥<10−2\|\Delta q\| < 10^{-2}.
Rank-1 steering and error alignment
The direct deliberation rule edits the state by S←S+β∥q∥2+10−8(vtarget−Sq)q⊤S \leftarrow S + \frac{\beta}{\|q\|^2 + 10^{-8}}(v_{target} - Sq)q^\top, a normalized-LMS step whose residual contracts by (1−β)(1-\beta) for β\beta in (0,2)(0, 2); the code clamps β\beta to [0.01,1.5][0.01, 1.5], 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 Sh←Sh+β∥qh∥2ehqh⊤S_h \leftarrow S_h + \frac{\beta}{\|q_h\|^2}e_h q_h^\top per head with the same clamp. Because its error is measured after the output projection rather than on the state readout SqSq, the records give no (1−β)(1-\beta) contraction guarantee for this variant.
Algebraic crosstalk cancellation
Before steering, the fast states are multiplied by P=I−Kc(Kc⊤Kc+ϵI)−1Kc⊤P = I - K_c(K_c^\top K_c + \epsilon I)^{-1}K_c^\top with ϵ=10−5\epsilon = 10^{-5}, where KcK_c holds the non-matching prefix keys. A follow-up variant (EKSO) also undoes the decay of the matching key and resets the normalizer zz.
Looped layers with input injection
Each layer runs loops = 4 times with x←(1−α)x+αex \leftarrow (1-\alpha)x + \alpha e, where ee is the embedding input and α=0.3\alpha = 0.3, 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.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

  8. 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.

  9. 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%.

  10. 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 1/(∥k∥2+ϵ)1/(\|k\|^2 + \epsilon). The lab's stability theorems use it to bound the eigenvalues of the transition to (0,1](0, 1].
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-TT recurrence can be computed in O(log⁡T)O(\log T) 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 ∑iViKi⊤/∥Ki∥2\sum_i V_i K_i^\top / \|K_i\|^2.
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 t−1t-1 with the value at step tt, 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 Re(QKH)\mathrm{Re}(QK^H) 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 γ\gamma: divergent near zero, stable for γ\gamma in [0.05,0.25][0.05, 0.25] with decay in [0.95,0.999][0.95, 0.999], 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.