Skip to content
Language modelsPrototype

Verace V11

A language model backbone built from quaternionic, octonionic, hyperbolic, stochastic and gauge-theoretic residual operators.

Verace Research
  1. Quaternion channels: 512 per token, projected from the hidden state
  2. Base quaternion: The channel before it is right-multiplied
  3. Hamilton product: Norm-preserving 4D rotation of each channel
Figure 1. Unit quaternion rotation in the quaternionic operator of Verace V11. Schematic: one quaternion channel turned by an input-dependent unit quaternion, a norm-preserving 4D rotation. Verace V11 is a prototype; no training run or result is recorded.
Open the simulator on its own pageA state that turns instead of growing: an interactive toy model of the principle. You can also try it below

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 x+RMSNorm(branch)x + \mathrm{RMSNorm}(\text{branch}), 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
How the state is updated

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

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

  2. Quaternionic manifold operator

    Projects each token to 512 quaternion channels and rotates them by an input-dependent unit quaternion through the Hamilton product.

  3. Octonionic manifold operator

    Projects three octonions per token across 256 channels and feeds both bracketings of their triple product to the output projection.

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

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

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

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

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

  9. 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 (b+100) mod V(b + 100) \bmod V, 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 q2q_2 right-multiplies the base quaternion q1q_1 in every channel. Because the product is non-commutative (ij=k=−jiij = k = -ji) and ∣q2∣=1|q_2| = 1, this is a norm-preserving 4D rotation of each channel.
Cayley-Dickson octonion product
An octonion is a pair of quaternions o=(qa,qb)o = (q_a, q_b) with product (q1q3−q4∗q2,  q4q1+q2q3∗)(q_1 q_3 - q_4^{*} q_2,\; q_4 q_1 + q_2 q_3^{*}). This is a norm-multiplicative but non-associative 8D algebra, applied elementwise across octonion_dim = 256 channels.
Non-associative grouping features
Both (o1o2)o3(o_1 o_2) o_3 and o1(o2o3)o_1 (o_2 o_3) 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 h←h+0.1 μ(h)+σ(h)⊙dWkh \leftarrow h + 0.1\,\mu(h) + \sigma(h) \odot dW_k. Here μ\mu is a SiLU MLP and σ\sigma a sigmoid-gated linear layer, both hidden by hidden. The integrated displacement returns as a normalized residual.
Spatio-temporal fractional Brownian noise
White noise ξ\xi is correlated by lower-triangular Cholesky factors of the fBm covariance with H=0.75H = 0.75 and dt=0.1dt = 0.1: dW=Lsteps ξ Ltokens⊤dW = L_{\text{steps}}\, \xi\, L_{\text{tokens}}^{\top}. It uses the covariance of fBm values rather than of increments and is causal over tokens.
Poincaré ball Möbius mixing
Two projections u=Wpxu = W_p x and v=Wbxv = W_b x are scaled into the unit ball by tanh of their norms and combined by Möbius addition u⊕vu \oplus v 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 6×66 \times 6 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 Ri=Tr(gi−1(gi−gi−1))R_i = \mathrm{Tr}(g_i^{-1}(g_i - g_{i-1})) is computed from metrics of consecutive tokens. It is effectively a discrete log-determinant change, not true Ricci curvature. It is appended to xx to gate a 19-way softmax over Betti channels.
GL(n) commutator curvature transport
A general, non-skew connection gives curvature Fij=(Ai−Aj)+[Ai,Aj]F_{ij} = (A_i - A_j) + [A_i, A_j] and transport Uij=(I−0.5Fij)−1(I+0.5Fij)U_{ij} = (I - 0.5 F_{ij})^{-1}(I + 0.5 F_{ij}). Since FijF_{ij} is not skew-symmetric, UijU_{ij} is not orthogonal and norms are not preserved, which models the non-compact group GL(16,R)GL(16, \mathbb{R}). Transported values are aggregated with causal value-value attention.
Mixed density matrix with entropy
Each token forms ρ=∑kpk∣ψk⟩⟨ψk∣\rho = \sum_k p_k |\psi_k\rangle\langle\psi_k| with softmax weights and unit-normalized states, so Tr ρ=1\mathrm{Tr}\,\rho = 1, at rank 4. The entropy S(ρ)=−Tr ρln⁡ρS(\rho) = -\mathrm{Tr}\,\rho \ln \rho is computed from the eigenvalues and appended to the 256 flattened entries of ρ\rho.
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 UV⊤U V^{\top} from the SVD of W−η⋅updateW - \eta \cdot \text{update}, 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 L=LCE+0.001∑ℓRℓ\mathcal{L} = \mathcal{L}_{\text{CE}} + 0.001 \sum_{\ell} R_\ell, 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 ∥Uijvj∥2\|U_{ij} v_j\|_2 with ∥vj∥2\|v_j\|_2. The difference is averaged over token pairs and layers, measured on random input.

Concepts

Quaternions
Four-component numbers q=a+bi+cj+dkq = a + bi + cj + dk 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 dx=μ(x) dt+σ(x) dWdx = \mu(x)\,dt + \sigma(x)\,dW in which the drift μ\mu and diffusion σ\sigma 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 HH. The model uses H=0.75H = 0.75, 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 U=(I−0.5F)−1(I+0.5F)U = (I - 0.5 F)^{-1}(I + 0.5 F), which turns a skew-symmetric matrix into an orthogonal one. With a general matrix FF, as in the fiber bundle operator, UU 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 FijF_{ij} 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, W⊤W=IW^{\top} W = I. 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 x+RMSNorm(branch)x + \mathrm{RMSNorm}(\text{branch}).
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.