Skip to content
Language modelsPrototype

Verace V10

A language model whose layers stack complex phase attention, gauge holonomy transport, p-adic mixing and Riemannian metric corrections.

Verace Research
  1. Norm-preserving transport: the property the evaluator and test suite check
  2. Value at the sending token: a value before it moves to another position
  3. Cayley holonomy transport: a pairwise orthogonal transport matrix
  4. Value in receiver's frame: then averaged with softmax weights
Figure 1. Norm-preserving holonomy transport between tokens in Verace V10. Schematic: a value vector carried across a sphere by a rotation, standing for the Cayley holonomy transport in Verace V10. The model is implemented and unit-tested, with no training run 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 V10 is a version of the lab's Verace V series of language models. It asks whether token mixing can be built from geometric and physical operators in place of standard attention. Each token is treated as a complex vector that interferes with others. Values are moved between token positions by norm-preserving rotations. Positions are related through a p-adic tree distance, and each token carries a learned metric. V10 keeps the configuration of Verace V9 and adds one new operator: the Complex Quantum Hilbert Phase Operator (QHPO), whose complex dimension is set by quantum_dim = 1024.

Each layer of the backbone first applies the QHPO. It then applies the other operators in order: the Dynamic Riemannian Geodesic Flow (RGF), the Non-Abelian Yang-Mills Gauge Holography (NYMGH) token mixer, the content-adaptive p-adic ultrametric operator (TPHO) and the Calabi-Yau Holomorphic Projector (CYHP). A SiLU activation closes the layer. Training adds a penalty on gauge field curvature to next-token cross-entropy. The weights are optimised with S-Muon, an optimizer named after Muon (an optimizer by other authors) that forces every 2D weight onto the Stiefel manifold, the set of matrices with orthonormal columns. Images enter through a MoonViT-V3 encoder, which follows the MoonViT encoder of the Kimi Team's technical report.

The research implementation contains the backbone, all operators, the optimizer, a pre-training step, an evaluator and a sampler. The evaluator reports perplexity, token accuracy and holonomy norm error. The sampler re-runs the full model at every step, without a key-value cache. A test suite checks forward passes, the norm preservation of holonomy transport, the unitary behaviour of the phase operator, S-Muon orthogonality and an end-to-end pipeline. The design specification describes some operators more strongly than the code implements them. It specifies phase evolution as U=exp⁡(−iHθ)U = \exp(-iH\theta), while the code applies a real Cayley rotation. It specifies Christoffel symbols, while the code uses a finite-difference approximation.

Status: Verace V10 is implemented in code and unit-tested. No training run, benchmark figure or evaluation result is recorded. The norm-preservation and adaptivity statements in the design specification are design properties, not measurements. Much of the code is shared with Verace V9: the chat template, the tokenizer, the evaluator and the Calabi-Yau projector are copies of it. The operators are pairwise over all token positions and cost O(s2d2)O(s^2 d^2) memory, and they have not been run at scale. The file named triton_kernels.py contains plain batched PyTorch code, not Triton kernels.

Status

Prototype. The model, optimizer, training step and sampler are implemented with unit and end-to-end 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
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. Complex Quantum Phase Operator

    The QHPO is the operator new in V10. It treats each token as a complex vector ψ=u+iv\psi = u + iv, rotates it per token and attends by the magnitude of complex inner products.

  2. Dynamic Riemannian Geodesic Flow

    The RGF gives each token a learned positive-definite metric. It applies a correction based on the change in metric from the previous token.

  3. Non-Abelian Gauge Holography mixer

    The NYMGH is a causal token mixer. It moves each value into the frame of the receiving token with a pairwise orthogonal transport matrix, then averages the transported values with softmax weights.

  4. p-adic ultrametric operator

    The TPHO mixes projected hidden states with a causal, row-normalised kernel. The kernel combines a 2-adic tree distance between positions with a gate computed from token content.

  5. Calabi-Yau Holomorphic Projector

    The CYHP is a projection layer copied from Verace V9. The design specification describes it as 19 distinct harmonic form channels.

  6. S-Muon optimizer

    S-Muon applies Nesterov momentum SGD and then retracts each 2D weight onto the Stiefel manifold through an SVD polar factor.

  7. MoonViT-V3 vision encoder

    A standard pre-norm vision transformer that follows the MoonViT encoder of the Kimi Team's report. It has a convolutional patch embedding with patch size 14, RMSNorm, multi-head attention with SiLU MLP blocks, and a linear projector to the hidden size.

  8. Holographic chat template and tokenizer

    A chat formatter and parser with a thought tag, adapted from the XTML template of the Kimi Team's report. It is paired with a byte-offset tokenizer that inserts one media placeholder token per vision patch.

  9. Generator and evaluator

    The generator performs temperature multinomial sampling and can annotate its output with gauge curvature. The evaluator reports perplexity, token accuracy and holonomy norm error.

Implementation

Mechanisms as they are implemented in the source code, with the constants the code uses.

Cayley-rotated phase interference attention
The real projection uu and the imaginary projection vv are rotated by the same orthogonal Cayley matrix of a learned skew-symmetric HH, scaled by a per-token θ∈(0,1)\theta \in (0,1). The code forms Re=uuT+vvT\mathrm{Re} = uu^T + vv^T and Im=uvT−vuT\mathrm{Im} = uv^T - vu^T, and uses the logits Re2+Im2+10−8\sqrt{\mathrm{Re}^2 + \mathrm{Im}^2 + 10^{-8}}, with future positions set to −∞-\infty. The values are the concatenation [u;v][u; v].
Skew generators and commutator curvature
Each token gets a Lie-algebra generator Ai=0.02 (kvT−vkT)A_i = 0.02\,(kv^T - vk^T), which is skew-symmetric. The pairwise curvature is Fij=skew((Ai−Aj)+[Ai,Aj])F_{ij} = \mathrm{skew}((A_i - A_j) + [A_i, A_j]). Computing it for every pair costs s2s^2 inversions of d×dd \times d matrices.
Cayley holonomy transport
For each pair of tokens, the code builds Uij=(I−0.5Fij)−1(I+0.5Fij)U_{ij} = (I - 0.5F_{ij})^{-1}(I + 0.5F_{ij}), which is orthogonal because FijF_{ij} is skew. Transport therefore preserves norm: ∥Uijvj∥=∥vj∥\|U_{ij}v_j\| = \|v_j\|, the property the evaluator and the test suite check.
Holonomy-weighted causal attention
The NYMGH output is hi=∑jsoftmaxj(ki⋅kj/dg+Mij) Uijvjh_i = \sum_j \mathrm{softmax}_j(k_i \cdot k_j / \sqrt{d_g} + M_{ij})\, U_{ij} v_j, where MM is the causal mask and dgd_g is gauge_dim. Keys are compared with keys, not with queries. The memory cost is O(s2d2)O(s^2 d^2) per batch.
Content-gated p-adic kernel
The TPHO kernel is exp⁡(−dp(i,j) σ(q⋅k))\exp(-d_p(i,j)\,\sigma(q \cdot k)), where dpd_p is an ultrametric distance built from 2-adic valuations of positions (padic_valuation_matrix, padic_ultrametric_distance_matrix). The kernel is masked causally and normalised by row before it mixes projected hidden states.
Finite-difference geodesic correction
The metric is gi=AiAiT+0.1Ig_i = A_iA_i^T + 0.1I, where AiA_i comes from a learned projection. The Christoffel term is approximated as (I−gi−1gi−1)vi(I - g_i^{-1}g_{i-1})v_i, using the previous token's metric, in place of true Christoffel symbols. The output is v−0.05⋅termv - 0.05 \cdot \mathrm{term}.
Curvature-regularised language model loss
The training loss is shifted next-token cross-entropy plus curvature_reg_weight times the sum over layers of mean(Fij2)\mathrm{mean}(F_{ij}^2) from the gauge module. The weight defaults to 0.001. The penalty discourages strong non-Abelian curvature.
SVD polar Stiefel retraction
S-Muon forms Wcand=W−η⋅updateW_{\text{cand}} = W - \eta \cdot \text{update} with Nesterov momentum, using learning rate 0.05 and momentum 0.99. It then replaces WW by UVTUV^T from a thin SVD of WcandW_{\text{cand}}. This discards all singular values, so every 2D weight, including the embeddings, becomes semi-orthogonal.
Curvature-annotated sampling
At each decoding step, the generator averages and records the mean gauge curvature of each layer. The mean over all steps is written as a curvature attribute in the thought tag of the output.
SiLU gauge activation
SupersymmetricGaugeActivation is a thin wrapper around SiLU. It performs no additional computation.

Concepts

Tokens as complex vectors
The QHPO represents each token as ψ=u+iv∈Cd\psi = u + iv \in \mathbb{C}^d, with dd set to 1024 in the configuration. Attention scores come from the magnitude of ⟨ψi∣ψj⟩\langle \psi_i | \psi_j \rangle, so the phase relation between two tokens affects their score.
Cayley transform
The Cayley transform maps a skew-symmetric matrix FF to the orthogonal matrix (I−0.5F)−1(I+0.5F)(I - 0.5F)^{-1}(I + 0.5F). V10 uses it for both phase rotation and gauge transport, in place of a matrix exponential.
Parallel transport and holonomy
In geometry, parallel transport moves a vector between points while respecting a connection, and holonomy is the resulting change of frame. In V10, each value vector is rotated into the receiving token's frame before it is aggregated.
Non-Abelian field curvature
The curvature FijF_{ij} includes a commutator term [Ai,Aj][A_i, A_j], which is non-zero when the generators do not commute. V10 penalises its size during training.
p-adic ultrametric
A p-adic distance measures closeness by divisibility by a prime, here p=2p = 2. This makes positions form a tree in which any three points satisfy the strong triangle inequality.
Stiefel manifold
The Stiefel manifold is the set of matrices with orthonormal columns, WTW=IW^T W = I. S-Muon keeps every 2D weight on this set after each step.
Learned per-token metric
The RGF assigns each token a symmetric positive-definite matrix gig_i, which acts as a local metric. Its change between neighbouring tokens drives the correction term.
Design and code differences
The design specification states exponential phase evolution and true Christoffel symbols. The code implements a real Cayley rotation and a finite-difference approximation.
Inheritance from Verace V9
V10 uses the V9 configuration plus quantum_dim. Its chat template, tokenizer, evaluator and Calabi-Yau projector are copies of the V9 versions.

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.