Verace V2
A language model architecture built on Poincaré-ball attention, a causal field operator, fuzzy-logic program routing and continuous flow generation.
- Poincaré ball: The curved space for queries, keys and weight rows
- Exponential map at the origin: Maps queries and keys onto the ball
- Geodesic distance: Its negative scores each query-key pair
- Riemannian gradient: Gradient rescaled by the conformal factor
Overview
Verace V2 is the second version of the Verace V series, the lab's language model line, and the successor to Verace V1. It asks whether a language model can replace flat Euclidean computation with non-Euclidean geometry at every level. Attention is scored by hyperbolic distance. Hidden states are updated by a field equation. Causal memory comes from differentiable logic over learned program nodes. Generation uses a continuous flow. The optimizer treats each weight row as a point on the Poincaré ball. The design specification presents each of these five changes as a replacement for the corresponding part of Verace V1.
Each backbone layer applies three operators in sequence, with no outer residual connections or norms. CSFO takes one explicit Euler step of a field equation along the sequence. H-NET attends by negative Poincaré geodesic distance. ACLE adds a fuzzy-logic mixture of learned program nodes. The configuration stacks 256 such layers, then an optional SCDF flow, a final norm and a tied output head. Images enter through the MoonViT vision encoder from the Kimi Team's technical report, which also supplies the SiTU-GLU activation and the XTML chat template that V2 extends with geometric thought blocks. Training adds a flow-matching loss to next-token cross-entropy and uses Hyperbolic Muon, a variant of Muon, an optimizer by other authors.
All four layer operators are implemented, together with the optimizer, a Triton GPU kernel for pairwise geodesic distances, a sampling loop, a training step and an evaluator. The lab's test record reports all 5 test suites passing in 10.12 seconds. The code is simpler than the design specification. CSFO uses a causal second difference in place of a Laplace-Beltrami operator, and its metric weights are unused. The ACLE logic gates sum to . H-NET uses a single head. The activation module has no hyperbolic mathematics, and the generator still samples one token at a time.
The architecture, optimizer, training step and evaluator are implemented and unit-tested. Two parts exist only in the design specification. One is the self-modifying causal graph of micro-programs: the code has a soft mixture of program embeddings instead. The other is generation without autoregression, which the sampling loop does not provide. The configuration describes a model with a 524K vocabulary, hidden size 32768 and 256 layers. No training run, loss curve or benchmark score is recorded, so the effect of the hyperbolic geometry on language modelling has not been measured.
Status
Prototype. The model, optimizer, training step and evaluator are implemented, and the only recorded result is a passing unit and integration test suite; 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
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
Continuous Semantic Field Operator
CSFO updates the hidden-state sequence with one explicit Euler step of a field equation, combining a causal second difference along positions with a learned drift. The design specification describes it as a Laplace-Beltrami metric field operator.
Hyperbolic Poincaré Attention
H-NET maps queries and keys onto the Poincaré ball and scores each pair by negative geodesic distance. A causal mask is applied, and the values stay Euclidean.
Autonomous Causal Logic Engine
ACLE routes each position through a softmax-weighted mixture of 128 learned program-node vectors and combines the result with fuzzy-logic gates. The output is added as a residual.
Continuous Diffusion Flow
SCDF integrates a learned velocity field over the final hidden states with 10 explicit Euler steps, then applies RMSNorm.
Hyperbolic Muon optimizer
An optimizer named after Muon, an optimizer by other authors. It treats each row of a weight matrix as a point in a Poincaré ball, rescales the gradient by the conformal factor and moves rows with the exponential map.
Flow-matching pretraining step
A training step that combines causal next-token cross-entropy with a velocity-matching loss on token embeddings, weighted 0.1. It is optimized with Hyperbolic Muon.
MoonViT vision encoder
The vision encoder from the Kimi Team's technical report, carried over from Verace V1 unchanged except for a default projector dimension of 32768. Its outputs are injected at media placeholder positions.
Riemannian thought template
An extension of the XTML chat template from the Kimi Team's report. It formats and parses thought blocks that carry a geodesic distance and a curvature, wrapped in open, separator and close tokens.
Geodesic distance GPU kernel
A Triton kernel that computes the full pairwise Poincaré geodesic distance matrix for each batch item.
Generator and evaluator
A byte-level sampling loop runs the model with the continuous flow enabled. An evaluator generates 64 tokens per prompt and scores whether the ground-truth answer appears as a substring.
Implementation
Mechanisms as they are implemented in the source code, with the constants the code uses.
- Poincaré geodesic-distance attention logits
- Queries and keys of dimension 1024 are mapped onto the ball with curvature by the exponential map at the origin, . The logit for a query-key pair is , with learnable and initialised at 1. A causal mask and a softmax follow, and the weights apply to Euclidean values. The
num_headssetting is unused, so attention is single-head. - Poincaré geodesic distance
- Distance on the ball is computed as . The GPU kernel clamps norms below 0.9999 for numerical safety.
- Causal finite-difference field step
- CSFO computes with . Here uses only past positions, with replicate padding before the first position. The drift is a SiLU MLP, and RMSNorm follows the step. A metric term is defined but unused.
- Fuzzy-logic program routing
- A proposition is the sigmoid of a softmax-weighted sum of 128 learned node vectors, initialised with standard deviation 0.02. Product t-norm gates are applied: AND is , OR is , NOT is . As implemented, the summed gates reduce to , so the logic collapses to a scaled residual.
- Euler-integrated velocity field
- SCDF integrates over in 10 steps by default. The time embedding is an MLP from 1 to 512 to the model dimension with SiLU. The velocity is a bias-free SiLU MLP, and time conditioning is additive.
- Linear flow-matching velocity loss
- The training step draws , takes as the token embeddings and samples per token. It forms and regresses the velocity network, conditioned on time, onto with mean squared error. This loss is weighted 0.1 against next-token cross-entropy.
- Conformal Riemannian gradient rescaling
- The ball has conformal factor . The Riemannian gradient is the Euclidean gradient divided by : .
- Hyperbolic Muon update rule
- Momentum accumulates as . Matrix rows are shrunk so that , then updated by using Möbius addition. One-dimensional parameters take a plain step . Decoupled decay follows, with learning rate 0.05 and weight decay 0.05.
- Sequential layer composition
- Each layer applies the CSFO step, then H-NET attention, then ACLE logic, with no outer residual connections or normalisation between them. The configuration repeats this for 256 layers before the optional flow, the final norm and the tied output head.
- Byte-level temperature sampling
- The generator encodes the prompt as bytes and runs the model with
use_continuous_flow=True. It samples with temperature 0.7 by default, stops on token 0 and decodes token ids modulo 256 as UTF-8. - SiTU-GLU activation carried over
HyperbolicSiTUGLUduplicates the SiTU-GLU activation from the Kimi Team's report as used in Verace V1, with and . Despite its name it contains no hyperbolic computation.
Results
From the lab's own experiments and records. They have not been independently replicated.
Test suites pass
The lab's test record reports all 5 test suites passing in 10.12 seconds, covering CSFO, H-NET, ACLE, SCDF and an end-to-end pipeline test.
CSFO metric field is not used
The lab's reading of the code shows that the learned metric is defined but never applied. The operator reduces to a flat causal second difference plus an MLP drift.
ACLE logic gates collapse to a residual
As implemented, the summed product t-norm gates equal . The intended causal logic therefore acts as a scaled residual of the routed proposition.
Several components are thinner than specified
H-NET ignores its head count and runs single-head attention. The hyperbolic activation duplicates the Euclidean SiTU-GLU, and generation remains autoregressive despite the continuous flow.
Concepts
- Poincaré ball
- A model of hyperbolic space: the open ball of radius , in which distances grow without bound toward the boundary. Tree-like hierarchies embed in it with low distortion.
- Curvature c
- The parameter that sets how strongly the ball is curved. The configuration fixes for both attention and the optimizer.
- Exponential map
- The map that turns a tangent vector at a point into a point on the manifold. Here it places Euclidean queries and keys onto the ball and applies optimizer steps to weight rows.
- Möbius addition
- The addition operation of the Poincaré ball. It keeps the result inside the ball and is used to compose a weight row with its update.
- Conformal factor
- The local scale by which the Poincaré metric stretches Euclidean lengths at point . Dividing gradients by its square converts them into Riemannian gradients.
- Laplace-Beltrami operator
- The generalisation of the Laplacian to curved spaces. The design specification names it for CSFO, while the code uses a causal second difference along the sequence.
- Product t-norm logic
- A differentiable fuzzy logic on values in . Conjunction is a product, disjunction is , and negation is .
- Causal micro-programs
- The design specification's idea of causal memory as self-modifying directed acyclic graphs of small programs. The code implements this as a soft mixture of 128 learned node embeddings with fuzzy gates.
- Flow matching
- A generative training method that regresses a velocity field onto the straight-line displacement from noise to data. A sample is then produced by integrating that field.
- Continuous flow generation
- The design specification's replacement for token-by-token generation with a single 10-step ODE integration. In the code the flow refines final hidden states, and output is still sampled token by token.
- Riemannian optimisation
- Optimisation on a curved manifold. It uses gradients rescaled by the metric and steps along the manifold by the exponential map rather than straight lines.
- Verace V series lineage
- Verace V2 follows Verace V1, from which it inherits the vision encoder and activation. It precedes Verace V3, with which it shares a byte-level sampling loop and a related flow regression.
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.