Verace V11
A language model backbone built from quaternionic, octonionic, hyperbolic, stochastic and gauge-theoretic residual operators.
- Quaternion channels: 512 per token, projected from the hidden state
- Base quaternion: The channel before it is right-multiplied
- Hamilton product: Norm-preserving 4D rotation of each channel
Overview
Verace V11 is a version of the lab's Verace V series of language models. It asks whether a causal language model can be built from geometric, algebraic and physics-inspired transforms rather than standard attention and feed-forward blocks. Each layer represents tokens in several exotic spaces: quaternions and octonions (hypercomplex numbers with non-commutative or non-associative products), the Poincaré ball model of hyperbolic space, a learned stochastic differential equation, and gauge-theoretic parallel transport. The model takes text and images and adds a markup format for model thoughts that carries geometric quantities.
Every layer chains 13 operators plus a SiLU. Each operator projects the hidden state to a small space, applies its transform, projects back and returns , so the stack composes as residual updates. Eight operators are new in this version: the quaternionic and octonionic manifolds, the fractional neural SDE, the Poincaré embedding, the principal fiber bundle connection, the density matrix operator, the Betti topology operator and the reversible logic gate. Four operators and the vision encoder are identical to Verace V10, and the Calabi-Yau projector continues the projector of earlier versions. Images pass through a copy of the MoonViT vision encoder, a component from the Kimi Team technical report, and replace placeholder tokens.
The implementation includes the model, a byte-level tokenizer, a thought template derived from the report's XTML chat template, a Stiefel-manifold optimizer named S-Muon, a single training step, an autoregressive sampler and an evaluator, with a test suite that includes an end-to-end pipeline test. The training loss is next-token cross-entropy plus 0.001 times the sum of per-layer curvature scalars. The evaluator computes perplexity and token accuracy on three fixed prompts and a holonomy norm-preservation error on random input. No evaluation results are recorded.
The model, optimizer, training step, sampler and evaluator are implemented and tested; no training run or benchmark result is recorded. The design document describes several operators more strongly than the code implements them. The design document specifies Wiener noise for the SDE, while the code uses fractional Brownian noise. The Calabi-Yau projector enforces no Ricci-flatness or holomorphy. The Betti operator's Ricci scalar is a discrete log-determinant change. The Poincaré module never computes hyperbolic distance. The reversible gate is wrapped in a non-invertible residual. The tokenizer produces only 256 of its nominal 1M vocabulary ids. Whether any of these operators helps language modelling has not been measured.
Status
Prototype. The model, optimizer, training step, sampler, evaluator and tests are implemented, 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
Residual operator backbone
A decoder whose every layer chains 13 residual geometry and physics-inspired operators plus a SiLU, with tied embeddings, a final RMSNorm and a language-model head. The configuration defaults are 65536 hidden units, a 1M vocabulary and 256 layers.
Quaternionic manifold operator
Projects each token to 512 quaternion channels and rotates them by an input-dependent unit quaternion through the Hamilton product.
Octonionic manifold operator
Projects three octonions per token across 256 channels and feeds both bracketings of their triple product to the output projection.
Fractional neural SDE
Integrates a learned drift and diffusion over several Euler-Maruyama steps, with fractional Brownian noise correlated across steps and tokens. The noise is zero at evaluation.
Gauge and fiber bundle transport
Two attention-like operators move values between token pairs with Cayley transforms of a commutator curvature. One uses a norm-preserving construction carried over from Verace V10; the other uses an unconstrained gl(16) connection.
Density matrix and topology operators
A rank-4 mixed density matrix per token with its von Neumann entropy, a Calabi-Yau projector with 19 learned basis matrices, and a Betti operator that weights 19 channels by a curvature-like scalar.
MoonViT vision encoder
A copy of the report's MoonViT encoder, a pre-norm vision transformer with convolutional patch embedding and a projector. Its patch tokens replace media placeholder tokens in the text sequence.
S-Muon optimizer
A momentum optimizer that retracts every 2D weight exactly onto the Stiefel manifold, the set of matrices with orthonormal columns, using an SVD. It is a variant of the Muon optimizer, which is by other authors.
Holographic thought template
A markup format for model thoughts that carries curvature, prime and chi attributes, with a formatter, a regex parser and a sampler that can wrap generated output in it.
Implementation
Mechanisms as they are implemented in the source code, with the constants the code uses.
- Byte-offset tokenization
- Each UTF-8 byte maps to token id , which reserves ids 0 to 99 for special tokens. Special tokens occupy 0 to 7 and the media placeholder is id 1000, repeated once per vision patch. Only 256 of the nominal 1M vocabulary ids are ever produced.
- Media placeholder embedding splicing
- Positions where the input id equals the placeholder id 1000 have their embeddings replaced, in order, by vision tokens up to the patch count. The model raises an error if images are passed without placeholders, which prevents label misalignment.
- Hamilton product with unit rotor
- An input-dependent unit quaternion right-multiplies the base quaternion in every channel. Because the product is non-commutative () and , this is a norm-preserving 4D rotation of each channel.
- Cayley-Dickson octonion product
- An octonion is a pair of quaternions with product . This is a norm-multiplicative but non-associative 8D algebra, applied elementwise across
octonion_dim= 256 channels. - Non-associative grouping features
- Both and are computed and concatenated before a linear layer. The model can therefore read the associator, the difference of the two groupings, implicitly.
- Euler-Maruyama SDE integration
- The state is updated 4 times as . Here is a SiLU MLP and a sigmoid-gated linear layer, both hidden by hidden. The integrated displacement returns as a normalized residual.
- Spatio-temporal fractional Brownian noise
- White noise is correlated by lower-triangular Cholesky factors of the fBm covariance with and : . It uses the covariance of fBm values rather than of increments and is causal over tokens.
- Poincaré ball Möbius mixing
- Two projections and are scaled into the unit ball by tanh of their norms and combined by Möbius addition with curvature 1, then projected out. The hyperbolic distance named in the docstring is not computed.
- Hodge basis projection
- The hidden state is projected to 6 dimensions and contracted with 19 learnable symmetric matrices, initialised randomly, symmetrized and Frobenius-normalized. The results are flattened and mapped back by a linear layer. No Ricci-flatness or holomorphy is enforced.
- Ricci-trace Betti modulation
- A scalar is computed from metrics of consecutive tokens. It is effectively a discrete log-determinant change, not true Ricci curvature. It is appended to to gate a 19-way softmax over Betti channels.
- GL(n) commutator curvature transport
- A general, non-skew connection gives curvature and transport . Since is not skew-symmetric, is not orthogonal and norms are not preserved, which models the non-compact group . Transported values are aggregated with causal value-value attention.
- Mixed density matrix with entropy
- Each token forms with softmax weights and unit-normalized states, so , at rank 4. The entropy is computed from the eigenvalues and appended to the 256 flattened entries of .
- Additive reversible coupling
- The last third of the hidden vector is shifted by an MLP of the first two thirds, which pass through unchanged. The coupling is inverted exactly by subtracting the same shift. The module's forward pass then wraps it in a residual projection that is not invertible.
- S-Muon Stiefel retraction
- A Nesterov momentum buffer is kept with learning rate 0.05 and momentum 0.99. Each 2D weight is replaced by from the SVD of , which projects it onto the Stiefel manifold. Other parameters receive a plain SGD update, and the training step applies no gradient clipping.
- Curvature-regularized training loss
- The training step minimises , next-token cross-entropy plus the sum of per-layer curvature scalars. It then takes one S-Muon step.
- Holonomy norm-preservation diagnostic
- The evaluator checks whether the Cayley holonomy is orthogonal by comparing with . The difference is averaged over token pairs and layers, measured on random input.
Concepts
- Quaternions
- Four-component numbers whose multiplication is non-commutative. Multiplying by a unit quaternion rotates a 4D vector without the gimbal lock of angle-based rotations.
- Octonions
- Eight-component numbers built from pairs of quaternions by the Cayley-Dickson construction. Their product preserves norms but is not associative, so the grouping of a triple product changes the result.
- Neural stochastic differential equation
- A model of a trajectory in which the drift and diffusion are neural networks. Euler-Maruyama integration approximates it with discrete steps.
- Fractional Brownian motion
- A Gaussian process whose increments are correlated, controlled by the Hurst exponent . The model uses , which gives positively correlated noise.
- Poincaré ball
- A model of hyperbolic space inside the unit ball, in which Möbius addition replaces vector addition. Hyperbolic spaces suit tree-like hierarchical data.
- Cayley transform
- The map , which turns a skew-symmetric matrix into an orthogonal one. With a general matrix , as in the fiber bundle operator, is no longer orthogonal.
- Holonomy and gauge transport
- Moving a vector from one token to another through a matrix derived from a learned connection. Here the curvature includes a commutator term, which makes the transport non-Abelian.
- Density matrix
- A positive matrix of trace one that describes a probabilistic mixture of quantum states. Its von Neumann entropy measures how mixed the state is, and the model uses it as an uncertainty feature.
- Stiefel manifold
- The set of matrices with orthonormal columns, . S-Muon keeps every 2D weight on it by an SVD retraction after each step.
- Residual operator branch
- The shared pattern of every operator: a low-dimensional transform projected back to the hidden size and added as .
- Holographic thought markup
- A thought format derived from the Kimi Team report's XTML chat template. Its attributes record a mean layer curvature, the configured prime and a fixed chi of -6.
- Gap between design and code
- The design document names Wiener noise, Ricci curvature, Hodge harmonic forms and lossless reversible logic. The code implements fractional Brownian noise, a log-determinant change, normalized learned matrices and a reversible coupling wrapped in a non-invertible residual.
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.