Skip to content
Language modelsVariant

Verace V8

A multimodal language model variant built on gauge holonomy attention, a p-adic ultrametric operator and an orthogonality-constrained optimizer.

Verace Research
  1. Value vector: the value at its source position before transport
  2. Norm preservation: the design states transported vectors keep their norm
  3. Cayley parallel transport: built from the field strength between positions
  4. Transported value: the value as it arrives at the receiving position
Figure 1. Norm-preserving holonomy transport of a value vector in Verace V8. Schematic: a value vector carried between token positions by a rotation that keeps its length. Verace V8 is implemented and unit-tested, but no training or evaluation run 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 V8 is a version of the lab's Verace V series of language models. It asks whether structures taken from geometry and number theory can serve as the core operators of a multimodal causal language model. The structures are non-abelian gauge transport, p-adic ultrametric distance and a low-dimensional projection named after Calabi-Yau manifolds. Most of its code is carried over from Verace V7: the configuration is a verbatim copy, and the backbone keeps the same layer stack. Several modules are identical to their counterparts in Verace V9, so V8 sits between the two versions in the series.

Each layer of the backbone stacks four parts. The first is a gauge holonomy attention sublayer, which moves value vectors between token positions with norm-preserving matrices. The second is a p-adic ultrametric operator that mixes a fixed tree geometry over positions with a content gate. The third is a bottleneck projector onto 19 basis channels. The fourth is a SiLU activation. Embeddings are tied. Image patches come from a MoonViT-V3 vision encoder and are spliced into the token sequence at placeholder positions. The MoonViT encoder and the XTML chat template are components credited to the Kimi Team technical report (arXiv:2607.24653). Training adds a curvature penalty to the language modelling loss and uses a Muon-derived optimizer.

The code implements the full pipeline: configuration, layers, backbone, a byte-offset tokenizer with media placeholders, a chat template formatter and parser, a temperature-sampling generator, a training step and an evaluator. The training objective is next-token cross-entropy plus 0.001 times the summed per-layer gauge curvature. The evaluator computes perplexity, token accuracy and the norm-preservation error of the holonomy transport. A test suite covers norm preservation of the transport, orthogonality after the optimizer step, distinctness of the 19 projector channels, content adaptivity of the p-adic operator and an end-to-end pipeline run.

Verace V8 is implemented and unit-tested. No training run, benchmark result or evaluation figure is recorded. The technical reference describes the p-adic operator as achieving 100% content-adaptivity and the transport as preserving vector norm exactly. These are design claims checked only by unit tests, not measurements on data. Code reading shows that the file presented as a fused GPU kernel contains no Triton code, only batched PyTorch. The activation named for supersymmetric gauge structure is a plain SiLU wrapper. Whether these operators help language modelling remains untested.

Status

Variant. The code is largely a copy of Verace V7, with several modules identical to Verace V9; it is implemented and unit-tested, and no training or evaluation run 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. Gauge holonomy attention (NYMGH)

    An attention sublayer that computes a field strength between positions and transports value vectors with a Cayley transform of it, so that transported vectors keep their norm.

  2. p-adic ultrametric operator (TPHO)

    A token-mixing operator that combines a 2-adic tree distance between positions with a learned content gate between tokens.

  3. Calabi-Yau holomorphic projector (CYHP)

    A bottleneck projection of the hidden state onto 19 basis channels, which the design associates with harmonic forms.

  4. Supersymmetric Muon optimizer (S-Muon)

    A variant of the Muon optimizer, which is by other authors, that keeps 2D weight matrices orthogonal by retracting them onto the Stiefel manifold after each step.

  5. MoonViT-V3 vision encoder

    A pre-norm vision transformer with a convolutional patch embedding and a linear projector into the language model width, following the MoonViT encoder of the Kimi Team report.

  6. Holographic XTML chat template

    A formatter and parser for a chat format with a holographic think block, based on the XTML template of the Kimi Team report.

  7. Byte-offset tokenizer

    A tokenizer that tracks byte offsets and inserts one media placeholder token for each patch the vision encoder produces.

  8. Generator and evaluator

    An autoregressive sampler with temperature, and an evaluator reporting perplexity, token accuracy and transport norm-preservation error.

Implementation

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

Field strength between positions
For per-position gauge matrices AiA_i, compute_non_abelian_curvature forms Fij=(Ai−Aj)+[Ai,Aj]F_{ij} = (A_i - A_j) + [A_i, A_j], where [Ai,Aj]=AiAj−AjAi[A_i, A_j] = A_i A_j - A_j A_i. The commutator term is what makes the construction non-abelian.
Cayley parallel transport
Values are moved from position jj to position ii by Uij=(I−0.5Fij)−1(I+0.5Fij)U_{ij} = (I - 0.5 F_{ij})^{-1}(I + 0.5 F_{ij}), computed in batch by non_abelian_holonomy_transport. The design states that this preserves norm, ∥Uijvj∥2=∥vj∥2\|U_{ij} v_j\|_2 = \|v_j\|_2, and the test suite checks this property.
Plain PyTorch transport kernel
fused_non_abelian_holonomy_gpu in triton_kernels.py performs the batched holonomy transport with ordinary PyTorch tensor operations. Despite the file name, it contains no Triton code.
2-adic valuation and ultrametric distance
padic_valuation_matrix computes the 2-adic valuation v2(n)v_2(n), the exponent of 2 in nn, for position differences. padic_ultrametric_distance_matrix turns these valuations into a tree distance in which offsets divisible by a high power of 2 count as close.
Content gate on the ultrametric kernel
TransfinitePadicHilbertOperator scales the fixed positional kernel by γ(xi,xj)=σ(Wqxi⋅Wkxj⊤/d)\gamma(x_i, x_j) = \sigma(W_q x_i \cdot W_k x_j^\top / \sqrt{d}). Mixing weights therefore depend on token content while the tree geometry stays fixed.
19-channel bottleneck
CalabiYauHolomorphicProjector projects the hidden state onto a basis of 19 channels and maps the result back to model width. A unit test checks that the 19 channels are distinct.
SiLU under a gauge name
SupersymmetricGaugeActivation is a wrapper around the standard SiLU function, xσ(x)x \sigma(x). It adds no further computation.
S-Muon update
SupersymmetricMuon applies Nesterov momentum and then replaces each 2D weight with its polar factor from an exact SVD: for W=UΣV⊤W = U \Sigma V^\top it sets W←UV⊤W \leftarrow U V^\top. A unit test checks the orthogonality condition W⊤W=IW^\top W = I after a step.
Curvature-regularised training objective
The training step minimises L=LCE+0.001∑ℓκℓ\mathcal{L} = \mathcal{L}_{\mathrm{CE}} + 0.001 \sum_{\ell} \kappa_\ell. Here κℓ\kappa_\ell is the gauge curvature reported by layer ℓ\ell, and the optimiser is S-Muon.
Visual patch splicing
The backbone replaces each media placeholder embedding with one output patch of MoonViTV3, which is built from ViTBlock layers. The tokenizer emits as many placeholders as the encoder emits patches.
Curvature-annotated generation
The generator samples tokens by temperature. It can wrap its output in a holographic think template that reports the mean layer curvature through HolographicThought.

Results

From the lab's own experiments and records. They have not been independently replicated.

  1. No training or evaluation run recorded

    The lab's records contain unit tests and an end-to-end pipeline test, but no training run, perplexity or accuracy figure. The 100% content-adaptivity and exact norm preservation in the design document are claims checked by unit tests, not results on data.

  2. The GPU kernel file contains no Triton code

    Code reading shows that the module named for Triton kernels implements the batched holonomy transport in plain PyTorch.

  3. The gauge activation is a plain SiLU

    Code reading shows that SupersymmetricGaugeActivation only wraps the standard SiLU function.

  4. Code largely duplicates neighbouring versions

    The configuration is a verbatim copy of Verace V7's, and the p-adic operator, vision encoder, optimizer, generator, transport kernel and training step are identical to the versions in Verace V9.

Concepts

Gauge field
In physics, a field that assigns a matrix to each point and defines how vectors are compared between points. Here each token position carries such a matrix.
Non-abelian
Describes matrices whose product depends on order. The commutator [Ai,Aj][A_i, A_j] is nonzero in general, and this term enters the field strength.
Holonomy
The transformation a vector undergoes when it is transported between points. In Verace V8 the transport matrices UijU_{ij} play this role in attention.
Cayley transform
A map from a skew-symmetric matrix FF to an orthogonal matrix (I−0.5F)−1(I+0.5F)(I - 0.5 F)^{-1}(I + 0.5 F). Orthogonal matrices preserve vector length.
p-adic valuation
For a prime pp, the number of times pp divides an integer. With p=2p = 2 it counts the factors of 2 in the offset between two positions.
Ultrametric
A distance satisfying d(x,z)≤max⁡(d(x,y),d(y,z))d(x, z) \le \max(d(x, y), d(y, z)), a stronger condition than the triangle inequality. Tree distances have this property.
Stiefel manifold
The set of matrices with orthonormal columns. S-Muon keeps 2D weights on it by projection after every step.
Polar retraction
Replacing a matrix by the orthogonal factor of its polar decomposition, obtained from the SVD as UV⊤U V^\top.
Muon
An optimizer by other authors that orthogonalises the update of 2D weight matrices. S-Muon is the lab's variant, which orthogonalises the weights themselves.
Calabi-Yau projector
The lab's name for the 19-channel bottleneck. The design document relates the 19 channels to harmonic forms of a Calabi-Yau manifold, and the code implements a 19-basis projection.
Curvature regulariser
A penalty on the summed per-layer gauge curvature, weighted by 0.001 in the training objective. It pushes the learned transport towards flatness.
Norm-preservation error
The evaluator metric ∥Uijvj∥2−∥vj∥2\|U_{ij} v_j\|_2 - \|v_j\|_2. It measures how far the implemented transport departs from exact norm preservation.

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.