Verace V12
A causal language model whose layers chain sixteen algebraic, geometric, topological and stochastic operators.
- Preserved value norm: The transport keeps each value's length
- Value vector: Carried between positions by the transport
- Cayley-transform transport: Rotates each value before attention weighting
- Transported value: Dotted with its key to give the attention logit
Overview
Verace V12 is a version of the lab's Verace V series of language models. Each of its layers is a fixed chain of sixteen operators drawn from algebra, geometry, topology, stochastic processes and quantum formalism. These include sedenion, octonion and quaternion products, a fractional jump-diffusion stochastic differential equation, spectral-triple attention, a Chern-Simons density, a Poincare ball embedding, density matrices, non-Abelian gauge holonomy attention, a reversible coupling gate, p-adic attention and a Calabi-Yau projector. The question it addresses is whether operators of this kind can replace standard attention and MLP blocks as the building blocks of a causal language model.
Every operator computes a residual update , and a layer is a deep sequential chain of these updates with no separate attention and MLP blocks. Gauge holonomy is the operator that recurs through the rest of the system. Values are transported between positions by orthogonal Cayley transforms. The squared curvature of that transport is added to the loss as a regulariser and reported in generated output through the XTML chat template, a component credited to the Kimi Team's technical report (arXiv:2607.24653). Weights are trained with a Stiefel optimiser that keeps each weight matrix orthogonal. Text is tokenised at the byte level, and image patches enter the model at placeholder positions.
The implementation covers all sixteen operators, a fused Triton kernel for holonomy attention, a training step with a curvature-regularised loss, a TinyStories pretraining script with a 50-step synthetic sanity mode, an evaluator that scores 3 fixed prompts, a sampler and a test suite. The test record reports 40 passing tests. The lab's own audit of the code found several gaps between the code and the design's descriptions. The p-adic attention is close to uniform, reversibility holds only inside the coupling map, the Chern-Simons quantity is not a true knot invariant, and the evaluator does not compute the holonomy norm checks its docstring describes.
Verace V12 is implemented and unit-tested. No training run, perplexity or benchmark result is recorded. The default configuration specifies a hidden size of 65536, 128 layers and a vocabulary of about 1M entries, but nothing shows that a model of that size was built or trained. The design listing of the sixteen stages also differs from the code: the code chains an octonion stage that the listing omits. Whether the operator chain learns language at all, and how it compares with the lab's other versions, remains unmeasured.
Status
Prototype. The model, optimiser, kernels, training and evaluation scripts are implemented and the test record reports 40 passing tests, but no training run or evaluation result is recorded.
Simulator
A state of length 1 is updated again and again by the same small step, in two ways. Switch between rotating it and adding to it, and watch its length.
- the circle: every state of length 1
- Length of the state at the end
- 1.000
- Drift from length 1
- 0.0%
- Turned in all
- 248°
- Updates
- 24
Switch between the two methods with the same step size. Adding the step leaves the circle; rotating cannot.
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
Sixteen-operator layer
Each layer applies a fixed sequence of operators, among them sedenion, octonion, jump-SDE, spectral triple, Chern-Simons, Poincare, quaternion, density matrix, quantum phase, geodesic, Betti, fiber bundle, gauge holonomy, reversible gate, p-adic and Calabi-Yau stages. Each stage is added as a normalised residual update.
Hypercomplex algebra tower
Quaternion, octonion and sedenion products, built by Cayley-Dickson doubling, serve as bilinear feature interactions over blocks of the hidden state.
Gauge holonomy attention
A multi-head attention in which each value vector is rotated by a pairwise orthogonal transport before weighting. It can return a curvature measure for use in the loss.
Jump-diffusion SDE stage
Hidden states are evolved for a few Euler-Maruyama steps with drift, fractional Brownian noise and Bernoulli jumps during training. Evaluation uses the drift alone.
Geometric and topological operators
These include spectral-triple attention, a discrete Chern-Simons density, a Poincare ball embedding, a curvature-gated channel count and a Calabi-Yau projector with 19 learnable forms.
Density matrix operator
Builds a trace-one mixed state from learned projections and feeds it, together with its von Neumann entropy, back to the network as features.
Stiefel optimiser
An SGD-momentum optimiser that replaces each weight matrix with its orthogonal polar factor after every step.
Byte tokenizer and XTML output
A byte-level tokenizer with an image placeholder id. A thought container in the XTML template from the Kimi Team's report records curvature, prime and Euler characteristic attributes.
Triton holonomy kernel
A fused GPU kernel that streams causal holonomy attention one query at a time. It never materialises all pairwise transports.
Implementation
Mechanisms as they are implemented in the source code, with the constants the code uses.
- Residual RMSNorm operator stack
- Every sub-operator returns . There is no pre-norm and no division into attention and MLP blocks, so a layer is one long chain of residual updates.
- Cayley-transform holonomy transport
- Each token gets an antisymmetric connection . The pair curvature is the antisymmetrised , and the transport is . This transport is exactly orthogonal, so it preserves .
- Holonomy logits keyed at the source
- The attention logit dots the transported with rather than with a query at position . The PyTorch reference materialises every , needs memory, computes one inverse per pair and casts the inverse to fp32 under mixed precision.
- Streaming holonomy with online softmax
- The Triton kernel recomputes , and as it streams over , with a flash-attention style recurrence , , and output . It masks positions with .
- Unpivoted in-kernel Gauss-Jordan inverse
- The kernel inverts in
BLOCK_Dsequential pivot steps without pivoting. This is safe because is real antisymmetric, so the eigenvalues are never zero. - Curvature-regularised language model loss
- The loss is , where the cross-entropy ignores label -100, and gradient norms are clipped at 1.0. The weight is here and in the TinyStories script, against in Verace V11.
- Cayley-Dickson products and the associator
- Octonions multiply as quaternion pairs, , and one further doubling gives 16-dimensional sedenions, which have zero divisors. The octonion stage also outputs the associator as a learned feature.
- Fractional jump-diffusion integration
- The update is , with defaults of 4 steps, , Hurst exponent and jump rate . The jumps are . The noise is separable fBm, built as a Kronecker product of Cholesky factors of with jitter.
- Spectral-triple distance attention
- Tokens are projected to 64-dimensional features , and a symmetric Dirac matrix is initialised at 0.02 times Gaussian noise. Attention is with . The commutator norm uses , which keeps memory at .
- Content-adaptive p-adic kernel
- The kernel is with . Its values lie in and are used directly as softmax logits.
- Discrete Chern-Simons density with annealed rounding
- Per token, is a 32 by 32 antisymmetric matrix, , and with . The winding is blended as , where stops the gradient, so gradients pass straight through the rounding.
- Curvature-gated channel count
- A per-token metric yields a scalar . This is mapped by and straight-through rounding to an active channel count in that starts near 10. Channels above the count are zeroed by a hard mask that carries no gradient.
- Calabi-Yau harmonic projection
- Hidden states are projected to 6 dimensions and contracted with 19 learnable symmetric unit-norm 6 by 6 matrices. The results are multiplied by a fixed block form with and , flattened, and projected back. The sampler reports an Euler characteristic from the averaged channel counts.
- Stiefel polar retraction optimiser
- After a Nesterov SGD-momentum step (lr , momentum 0.95, update norm clipped to 10), the weight is replaced by from an fp32 SVD computed on CPU, which gives . Unlike Muon, an optimiser by other authors, it orthogonalises the weights rather than the update and discards the singular values. It falls back to plain SGD if the SVD fails.
Results
From the lab's own experiments and records. They have not been independently replicated.
Test suite passes
The lab's test record reports 40 passing tests covering the operators, serving and an end-to-end path. No training or benchmark figures are recorded.
p-adic attention is close to uniform
The lab's code audit found that the p-adic kernel values lie in and are used directly as softmax logits. The resulting attention weights therefore differ little from uniform.
Reversibility holds only inside the coupling map
The design describes the reversible gate as lossless and invertible. The lab's audit found that the additive coupling inverts exactly, but the projection and residual that follow it are not invertible.
Chern-Simons stage is not a knot invariant
The lab's audit found that the discretised density is a causal per-token scalar feature. It is not a topological invariant of any knot.
Evaluator omits its documented holonomy check
The lab's audit found that the evaluator computes perplexity and argmax accuracy over 3 fixed prompts and produces a sample generation. Despite its docstring, it does not measure holonomy norm-preservation error.
Design listing and code disagree on stages
The design's sixteen-stage listing omits an octonion stage that the code includes in every layer.
Concepts
- Gauge holonomy
- The transformation obtained by transporting a vector along a connection. Here it is an orthogonal matrix that carries a value vector from one token position to another while preserving its length.
- Cayley transform
- The map , which sends an antisymmetric matrix to an orthogonal matrix. The system uses it to make every transport norm-preserving.
- Cayley-Dickson construction
- A doubling procedure that builds quaternions, octonions and sedenions from pairs of elements of the previous algebra. Each step loses an algebraic property: octonions are non-associative, and sedenions have zero divisors.
- Associator
- The quantity , which is zero in an associative algebra. The octonion stage passes it to the network as an explicit feature.
- Fractional Brownian motion
- A Gaussian process whose increments are correlated according to a Hurst exponent . With the increments are positively correlated, and the system uses .
- Jump-diffusion SDE
- A stochastic differential equation that combines continuous drift and diffusion with discrete jumps. In this model it perturbs hidden states during training only.
- Spectral triple
- A construction from noncommutative geometry in which a Dirac operator defines distances. The system's attention takes inspiration from it, measuring distance through a commutator with a learned Dirac matrix.
- p-adic ultrametric
- A distance under which positions whose offset is divisible by a high power of a prime count as close. The system uses the prime 2 to give a hierarchical notion of token distance.
- Chern-Simons density
- A topological action density built from a gauge field. In this model a discretised version over the token sequence yields one causal scalar feature per token.
- Von Neumann entropy
- The quantity , the entropy of a density matrix. It is computed from the eigenvalues and used as a feature.
- Straight-through estimator
- A training technique that rounds a value in the forward pass and lets the gradient pass through unchanged in the backward pass. The model uses it for winding numbers and channel counts.
- Stiefel manifold
- The set of matrices with orthonormal columns. The optimiser keeps every weight matrix on it by polar retraction after each step.
- XTML thought container
- A tagged text block from the chat template of the Kimi Team's report. In this system it carries the model's mean gauge curvature, the configured prime and a computed Euler characteristic as attributes.
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.
The Verace V series is the lab's line of language model architectures. It started from the lab's own code for the architecture described in a technical report by the Kimi Team (arXiv:2607.24653), listed here as the V0 baseline. Later versions replace the baseline's main parts with the lab's own designs and keep some of the report's components, which each page credits to the report.
Published under the PolyForm Noncommercial License 1.0.0: free for noncommercial use.