Verace V10
A language model whose layers stack complex phase attention, gauge holonomy transport, p-adic mixing and Riemannian metric corrections.
- Norm-preserving transport: the property the evaluator and test suite check
- Value at the sending token: a value before it moves to another position
- Cayley holonomy transport: a pairwise orthogonal transport matrix
- Value in receiver's frame: then averaged with softmax weights
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 , 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 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
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
Complex Quantum Phase Operator
The QHPO is the operator new in V10. It treats each token as a complex vector , rotates it per token and attends by the magnitude of complex inner products.
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.
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.
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.
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.
S-Muon optimizer
S-Muon applies Nesterov momentum SGD and then retracts each 2D weight onto the Stiefel manifold through an SVD polar factor.
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.
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.
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 and the imaginary projection are rotated by the same orthogonal Cayley matrix of a learned skew-symmetric , scaled by a per-token . The code forms and , and uses the logits , with future positions set to . The values are the concatenation .
- Skew generators and commutator curvature
- Each token gets a Lie-algebra generator , which is skew-symmetric. The pairwise curvature is . Computing it for every pair costs inversions of matrices.
- Cayley holonomy transport
- For each pair of tokens, the code builds , which is orthogonal because is skew. Transport therefore preserves norm: , the property the evaluator and the test suite check.
- Holonomy-weighted causal attention
- The NYMGH output is , where is the causal mask and is
gauge_dim. Keys are compared with keys, not with queries. The memory cost is per batch. - Content-gated p-adic kernel
- The TPHO kernel is , where 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 , where comes from a learned projection. The Christoffel term is approximated as , using the previous token's metric, in place of true Christoffel symbols. The output is .
- Curvature-regularised language model loss
- The training loss is shifted next-token cross-entropy plus
curvature_reg_weighttimes the sum over layers of from the gauge module. The weight defaults to 0.001. The penalty discourages strong non-Abelian curvature. - SVD polar Stiefel retraction
- S-Muon forms with Nesterov momentum, using learning rate 0.05 and momentum 0.99. It then replaces by from a thin SVD of . 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
SupersymmetricGaugeActivationis a thin wrapper around SiLU. It performs no additional computation.
Concepts
- Tokens as complex vectors
- The QHPO represents each token as , with set to 1024 in the configuration. Attention scores come from the magnitude of , so the phase relation between two tokens affects their score.
- Cayley transform
- The Cayley transform maps a skew-symmetric matrix to the orthogonal matrix . 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 includes a commutator term , 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 . 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, . 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 , 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.