Verace V7
A multimodal language model whose layers combine gauge-transported attention, a p-adic ultrametric token mixer and a Hodge-basis bottleneck.
- Norm preservation: orthogonal transport keeps each value's length
- Value from an earlier token: taken from a position earlier in the sequence
- Cayley-transform transport: an orthogonal rotation specific to the token pair
- Transported value: rotated before the attention weighting
Overview
Verace V7 is a version of the lab's Verace V series of language models. It replaces standard attention blocks with operators borrowed from geometry and number theory. It asks whether a causal language model can mix tokens through three mechanisms. The first rotates each value by a norm-preserving transport that depends on the token pair. The second weights positions by a 2-adic tree distance gated by content. The third passes the hidden state through a small learned basis named after Hodge forms on a Calabi-Yau manifold.
Each layer applies three residual sublayers in order, each with RMSNorm: gauge holonomy attention, p-adic kernel mixing and the Calabi-Yau Holomorphic Projector. A SiLU is then applied to the whole residual stream. Embeddings are tied. A vision encoder supplies patch tokens that overwrite placeholder positions in the text sequence. The training loss adds a gauge curvature penalty to next-token cross-entropy. After each momentum step, the optimizer replaces every 2-D weight with the polar factor of its SVD. A byte-level tokenizer and a bracket-markup thought format complete the model.
The research implementation includes the model, a vision encoder, the optimizer, a training step, a generator without a KV cache, and an evaluator. The evaluator reports perplexity and accuracy on three fixed prompts and measures how far the transport departs from preserving norms. The test suite covers end-to-end operation, norm preservation, the optimizer's orthogonality, content adaptivity and the 19 Hodge channels. The design specification describes these properties in terms of 100% precision and adaptivity. The lab's own audit found that the code is plainer than those descriptions. 'Supersymmetric' plays no mathematical role, the kernel is close to uniform, and the GPU kernel is ordinary PyTorch.
The model, optimizer, training step, generator and evaluator are implemented and unit-tested. The configuration defaults describe a very large model, with a hidden size of 65536 and 256 layers, but no model of that size is shown to have been built or trained. No training run, perplexity figure or benchmark result is recorded. Whether these operators help language modelling at all remains unmeasured.
Status
Prototype. The model and its training, serving and evaluation code 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
Gauge holonomy attention
A causal attention sublayer that rotates each value by an orthogonal matrix specific to the token pair before weighting it. The design specification calls it Non-Abelian Yang-Mills Gauge Holography.
p-adic ultrametric token mixer
A causal mixer whose weights combine the 2-adic distance between positions with a sigmoid gate on query-key similarity. The design specification calls it the Transfinite p-adic Ultrametric Operator.
Calabi-Yau Holomorphic Projector
A residual bottleneck that maps the hidden state to 6 dimensions and contracts it with 19 learned 6x6 matrices. The 114 resulting features are mapped back to the hidden size.
Vision encoder
A standard pre-norm vision transformer with Conv2d patch embedding, RMSNorm, multi-head attention and a SiLU MLP, without positional embeddings. It is named after the MoonViT vision encoder from the Kimi Team's technical report, and a linear layer maps its output to the language model's hidden size.
S-Muon optimizer
Nesterov momentum SGD that, after each step, replaces every 2-D parameter with the nearest semi-orthogonal matrix. Its name refers to Muon, an optimizer by other authors.
Curvature-regularised training step
Next-token cross-entropy plus a weighted sum of per-layer mean squared gauge curvatures, followed by backpropagation and an S-Muon step.
Byte-level tokenizer
Maps UTF-8 bytes to token ids with a fixed offset. It reserves special ids and repeats a media placeholder id once per image patch.
Holographic thought markup
A bracket-token format, adapted from the XTML chat template in the Kimi Team's report, that wraps generated thoughts with curvature and topology metadata.
Generator and evaluator
A temperature-sampling loop that re-runs the full model at each step, and an evaluator for perplexity, token accuracy and transport norm error.
Implementation
Mechanisms as they are implemented in the source code, with the constants the code uses.
- Cayley-transform holonomy transport
- Each token gets a skew-symmetric generator . With , the pair curvature is , and the transport is the Cayley transform . Because is orthogonal, . The code lives in
triton_kernels.pybut uses plain batched PyTorch linear algebra. - Holonomy-transported attention weights
- The value from position is rotated by before weighting. The weights are a causal softmax of key-key similarity, with no separate query, scaled by , where is
gauge_dim. - Content-gated 2-adic kernel
- The mixing kernel is , causally masked and row-normalised, where is the 2-adic valuation. Offsets divisible by high powers of 2 get a smaller distance. Since , , so mixing stays close to uniform.
- Layer composition
- A layer computes , then the same with the p-adic mixer, then with the Hodge-basis bottleneck. SiLU is applied to the whole residual stream rather than to a branch.
- Hodge-basis bottleneck
- There are 19 matrices , each initialised as and Frobenius-normalised, then left freely learnable, so symmetry is not preserved during training. The 6-d vector is multiplied by each , the results are concatenated into 114 features, and a linear layer maps them back to
hidden_dimwith a residual. - Stiefel polar retraction
- After the momentum step , the optimizer computes the thin SVD and sets . This gives the nearest matrix with and discards all scale. Defaults are learning rate 0.05 and momentum 0.99.
- Gauge curvature penalty
- The training loss is , with by default. The penalty favours flat connections, which pushes pairwise transports toward the identity.
- Byte-offset token ids
- A byte's token id is , where is the UTF-8 byte and is the vocabulary size. Text therefore uses only ids 100 to 355, although the configured vocabulary has 1M entries. Special ids are pad 0, bos 1, eos 2, unk 3, markup 4 to 7, and media 1000.
- Media placeholder splicing
- Visual patch tokens overwrite the embeddings at positions where
input_id == 1000. For each batch item, the number replaced is the smaller of the placeholder count and the patch count, which keeps text labels aligned. - Transport norm-error diagnostic
- The evaluator maps random inputs through
w_kandw_v, transports the values, and averages the absolute difference between the transported and original norms over all pairs and layers. This checks that the Cayley transport is orthogonal in practice. - Thought metadata format
- Generated thoughts are wrapped in [open], [sep] and [close] tokens. The attributes are the mean gauge curvature to 4 decimals, the p-adic prime, and a Calabi-Yau Euler characteristic that defaults to -6. A regex parser reads them back.
Results
From the lab's own experiments and records. They have not been independently replicated.
No training or benchmark results recorded
The evaluator and training step exist, but the lab's records contain no training run, perplexity or accuracy figures for the model.
p-adic kernel is close to uniform
The lab's own audit notes that because the 2-adic distance is at most 1, kernel values lie in before normalisation. The positional tree structure therefore has only a weak effect on mixing.
Names exceed what the code computes
The lab's own audit found that the 'supersymmetric' activation is plain SiLU, that 'supersymmetric' has no role in the optimizer, that the Triton kernel module is ordinary PyTorch, and that the Hodge matrices lose their symmetry during training.
Text uses 256 of the configured token ids
The byte-offset tokenizer maps text to ids 100 to 355 only, although the configuration declares a 1M vocabulary.
Concepts
- Parallel transport
- Moving a vector from one point to another along a connection. Here it means rotating a value vector from position into the frame of position before attention mixes it.
- Cayley transform
- A map that turns a skew-symmetric matrix into the orthogonal matrix . This guarantees that transported vectors keep their length.
- Gauge curvature
- The field strength built from two generators and their commutator. Here it measures how far the transport between two tokens departs from the identity.
- p-adic valuation
- is the exponent of the largest power of 2 dividing . The derived distance is small for offsets with many factors of 2, which arranges positions in a binary tree.
- Ultrametric
- A distance that satisfies a stronger triangle inequality, . The 2-adic distance has this property.
- Stiefel manifold
- The set of matrices with orthonormal columns, . S-Muon keeps every 2-D weight on this set after each step.
- Polar factor
- For a matrix with SVD , the polar factor is , the closest semi-orthogonal matrix. Using it as the weight removes all singular-value scale.
- Hodge numbers
- Topological counts of harmonic forms on a manifold. The value sets the number of learned matrices in the bottleneck, but the code contains no Calabi-Yau geometry beyond that count and a dimension of 6.
- Configured scale
- The configuration defaults specify a 1M vocabulary, hidden size 65536, gauge dimension 2048, 256 layers, gauge group SU(16), prime 2 and a 6-dimensional Calabi-Yau space. These are defaults only, and nothing shows a model of this size was built.
- Lineage in the Verace V series
- The gauge transport and Calabi-Yau operators are also referenced by Verace V5, V6, V8, V9 and V12. Verace V8 reuses the thought markup and byte tokenizer.
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.