Verace V6
A causal multimodal language model built from non-Abelian gauge attention, a static 2-adic positional mixer and a Hodge-basis spectral projector.
- Fixed vector norm: Orthogonal transport keeps the value's norm
- Value vector: Moved between token positions
- Cayley holonomy transport: Orthogonal matrix built from pairwise curvature
- Transported value: The value as it arrives at the other position
Overview
Verace V6 is a version of the lab's Verace V language model line. It asks whether a transformer-style layer can be built from geometric operations instead of standard attention. Its value vectors are moved between token positions by norm-preserving parallel transport. Token mixing follows 2-adic distance between positions. A projector is modelled on the Hodge structure of a Calabi-Yau manifold. The model is a causal next-token predictor with tied embeddings and a vision encoder, and it is closely derived from Verace V5. It keeps V5's configuration and gauge attention code and changes the positional mixer and the projector. The model's prime is 2 in both versions: only the default prime of the thought-template formatter changed.
Each of the model's layers applies four operations in order: gauge attention, a p-adic positional mixer, a Calabi-Yau projector and a SiLU activation. In gauge attention each token defines a skew-symmetric connection from its key and value. Pairwise curvature is turned into an orthogonal transport matrix by the Cayley map, so a value vector keeps its norm when it moves. Training adds a penalty on this curvature to the cross-entropy loss. The optimizer, S-Muon, uses Nesterov momentum and retracts each 2-D weight onto orthogonal matrices with an SVD polar step.
The code implements the full pipeline: configuration, backbone, gauge attention, the p-adic mixer, the projector, a vision encoder, a byte-offset tokenizer, a chat formatter, a pretraining step, a sampler and an evaluator. The default configuration declares a 1M-token vocabulary, hidden width 65,536, gauge dimension 2048 and 256 layers. The test suite covers holonomy norm preservation, S-Muon orthogonality, 19 distinct projector channels, the module forward passes and an end-to-end pipeline. The design specification describes GPU integration, but the transport kernel uses dense torch linear algebra and no Triton. Several docstrings describe features the code does not contain.
The model is implemented and unit-tested. No training run, perplexity figure or benchmark result is recorded, and the full-size configuration is declared but not shown to have been instantiated. The evaluator is written to measure perplexity, token accuracy and holonomy norm error, but no output from it is recorded. Some features exist only in the design specification or docstrings: the superalgebra projection in S-Muon, positional encodings in the vision encoder and a Triton kernel. It remains open whether the geometric layer learns language at all.
Status
Prototype. The model, optimizer, training step, sampler and evaluator are implemented with a test suite, 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
Non-Abelian gauge attention
The attention module, which the design specification calls Non-Abelian Yang-Mills Gauge Holography. It mixes values moved between positions by Cayley holonomy, weighted by a causal key-key softmax, and adds a residual connection with RMSNorm.
Static 2-adic positional mixer
A token-mixing operator whose weights depend only on the 2-adic valuation of the offset between positions. It is causal, row-normalized and independent of content.
Calabi-Yau projector
A residual block that compresses the hidden state to 6 coordinates. It contracts them with 19 learnable symmetric matrices and lifts the 114-dimensional result back to the hidden width.
SiLU activation
A plain activation, which the code labels gauge-gated thresholding.
S-Muon optimizer
A momentum optimizer that applies an SGD step and then an SVD polar retraction to 2-D weights. Muon is an optimizer by other authors, and this is the lab's variant of it.
Vision encoder
A patch-embedding vision transformer named after the MoonViT encoder from the Kimi Team technical report. It uses RMSNorm, multi-head attention and a 4x SiLU MLP, and projects patches to the hidden width.
Byte-offset tokenizer and chat template
A tokenizer that offsets bytes by 100, reserves id 1000 for the media placeholder and inserts one placeholder per vision patch. A formatter in the style of the report's XTML chat template wraps outputs as holographic thoughts.
Evaluator and sampler
A temperature sampler that can tag its output with mean layer curvature. An evaluator computes perplexity, argmax token accuracy and holonomy norm error.
Implementation
Mechanisms as they are implemented in the source code, with the constants the code uses.
- Skew-symmetric gauge connection
- Each token defines a connection from its key and value . The connection is skew-symmetric by construction.
- Pairwise field strength
- For every pair of positions the code forms and keeps its skew part, . The module can also return the mean as a per-layer curvature.
- Cayley holonomy transport
- The transport matrix is , and the transported value is for all pairs. The transport routine runs as batched dense torch linear algebra, although its file name refers to Triton.
- Cayley orthogonal map
- A skew-symmetric is mapped to , which is orthogonal. It therefore preserves vector norms up to numerical error.
- 2-adic positional kernel
- The mixing matrix is with . It is causally masked and row-normalized, then applied to the input projection and followed by an output projection, a residual connection and RMSNorm.
- Symmetric Hodge-basis contraction
- Nineteen learnable 6x6 matrices are initialized symmetric with unit Frobenius norm. They contract a 6-dimensional bottleneck vector into 19 by 6 channels, which a linear map lifts back to the hidden width. Unlike Verace V5, this projector uses no complex coordinates and no damping.
- Curvature-regularized loss
- The pretraining step minimizes with by default. The penalty sums the curvature reported by every backbone layer as the activations pass through the layers in sequence.
- Polar retraction in S-Muon
- Momentum is 0.99 with Nesterov on by default. A 2-D weight takes an SGD step and is then replaced by from its SVD . Other parameters take a plain SGD step, and the superalgebra projection named in the docstring is absent.
- Holonomy norm-preservation diagnostic
- The evaluator reports the mean of over all pairs and layers on random inputs, which should be near zero. It also computes teacher-forced perplexity with cross-entropy capped at 20 and argmax accuracy on three prompts.
- Curvature-annotated holographic thought
- During generation the sampler averages the per-layer curvatures over all steps. It stores that mean in a holographic thought wrapper together with the configured prime and a fixed Euler characteristic .
Results
From the lab's own experiments and records. They have not been independently replicated.
Code and design specification disagree in places
The design specification describes complete GPU integration, but the transport kernel uses dense torch operations without Triton. The S-Muon docstring names a superalgebra projection that the code does not perform, and the vision encoder has no positional encodings despite its docstring.
No training or evaluation results recorded
The evaluator and pretraining step exist, but the lab's records contain no perplexity, accuracy or norm-error figures from a run.
Concepts
- Gauge connection
- In gauge theory, a field that says how to compare vectors at different points. Here each token supplies a skew-symmetric matrix that acts as its local connection.
- Field strength or curvature
- A measure of how much transport depends on the path taken. The model computes a pairwise version from two tokens' connections and their commutator.
- Parallel transport
- Moving a vector from one point to another along a connection. In the model, a value vector is transported from position j to position i before mixing.
- Cayley transform
- A map from a skew-symmetric matrix to an orthogonal one. It guarantees that transported vectors keep their length.
- p-adic valuation
- For a prime , is the number of times divides . The positional mixer uses of the distance between positions, so offsets with more factors of 2 receive different weight.
- Ultrametric distance
- A distance satisfying . The design specification states that the 2-adic distances used here satisfy it.
- Hodge number h11
- A topological invariant of a Calabi-Yau manifold. The configuration sets it to 19, which fixes the number of learnable matrices in the projector.
- Polar retraction
- Replacing a matrix by the nearest orthogonal matrix, computed from its SVD. S-Muon uses it to keep 2-D weights on the Stiefel manifold.
- Holographic thought
- The model's output format: generated text wrapped with metadata, namely mean layer curvature, the prime and a fixed Euler characteristic.
- Relation to Verace V5
- Verace V6 keeps V5's hyperparameters, including the model prime , its backbone structure and its gauge attention code. It uses a static positional kernel and simplifies the projector, and the only prime that changes is the default prime of the thought-template formatter, which is 2 in Verace V6.
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.