Skip to content
Language modelsPrototype

Verace V2

A language model architecture built on Poincaré-ball attention, a causal field operator, fuzzy-logic program routing and continuous flow generation.

Verace Research
  1. Poincaré ball: The curved space for queries, keys and weight rows
  2. Exponential map at the origin: Maps queries and keys onto the ball
  3. Geodesic distance: Its negative scores each query-key pair
  4. Riemannian gradient: Gradient rescaled by the conformal factor
Figure 1. Attention and optimisation on the Poincaré ball in Verace V2. Schematic: a point moving across a curved space, standing for how Verace V2 scores attention by geodesic distance and moves weight rows with the exponential map. The model is a prototype with no training run 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 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 1+v1+v. 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
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. 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.

  2. 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.

  3. 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.

  4. Continuous Diffusion Flow

    SCDF integrates a learned velocity field over the final hidden states with 10 explicit Euler steps, then applies RMSNorm.

  5. 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.

  6. 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.

  7. 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.

  8. 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.

  9. Geodesic distance GPU kernel

    A Triton kernel that computes the full pairwise Poincaré geodesic distance matrix for each batch item.

  10. 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 c=1c = 1 by the exponential map at the origin, exp⁡0\exp_0. The logit for a query-key pair is −λ dc(q,k)-\lambda\, d_c(q,k), with λ\lambda learnable and initialised at 1. A causal mask and a softmax follow, and the weights apply to Euclidean values. The num_heads setting is unused, so attention is single-head.
Poincaré geodesic distance
Distance on the ball is computed as dc(u,v)=arcosh⁡(1+2c∥u−v∥2(1−c∥u∥2)(1−c∥v∥2))d_c(u,v) = \operatorname{arcosh}\left(1 + \frac{2c\|u-v\|^2}{(1-c\|u\|^2)(1-c\|v\|^2)}\right). The GPU kernel clamps norms below 0.9999 for numerical safety.
Causal finite-difference field step
CSFO computes Φ←Φ+Δt (∇causal2Φ+f(Φ))\Phi \leftarrow \Phi + \Delta t\,(\nabla^2_{\text{causal}}\Phi + f(\Phi)) with Δt=0.1\Delta t = 0.1. Here ∇causal2Φt=Φt−2Φt−1+Φt−2\nabla^2_{\text{causal}}\Phi_t = \Phi_t - 2\Phi_{t-1} + \Phi_{t-2} uses only past positions, with replicate padding before the first position. The drift ff is a SiLU MLP, and RMSNorm follows the step. A metric term exp⁡(WmetricΦ)\exp(W_{\text{metric}}\Phi) is defined but unused.
Fuzzy-logic program routing
A proposition vv 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 uvuv, OR is u+v−uvu+v-uv, NOT is 1−u1-u. As implemented, the summed gates reduce to 1+v1+v, so the logic collapses to a scaled residual.
Euler-integrated velocity field
SCDF integrates xt+Δt=xt+Δt vθ(xt+e(t))x_{t+\Delta t} = x_t + \Delta t\, v_\theta(x_t + e(t)) over t∈[0,1]t \in [0,1] in 10 steps by default. The time embedding e(t)e(t) is an MLP from 1 to 512 to the model dimension with SiLU. The velocity vθv_\theta is a bias-free SiLU MLP, and time conditioning is additive.
Linear flow-matching velocity loss
The training step draws x0∼N(0,I)x_0 \sim \mathcal{N}(0,I), takes x1x_1 as the token embeddings and samples t∼U(0,1)t \sim U(0,1) per token. It forms xt=(1−t)x0+tx1x_t = (1-t)x_0 + t x_1 and regresses the velocity network, conditioned on time, onto x1−x0x_1 - x_0 with mean squared error. This loss is weighted 0.1 against next-token cross-entropy.
Conformal Riemannian gradient rescaling
The ball has conformal factor λc(w)=21−c∥w∥2\lambda_c(w) = \frac{2}{1-c\|w\|^2}. The Riemannian gradient is the Euclidean gradient divided by λc2\lambda_c^2: gR=(1−c∥w∥2)24 gg_R = \frac{(1-c\|w\|^2)^2}{4}\, g.
Hyperbolic Muon update rule
Momentum accumulates as b←0.99 b+gRb \leftarrow 0.99\, b + g_R. Matrix rows are shrunk so that ∥wi∥<(1−10−4)/c\|w_i\| < (1-10^{-4})/\sqrt{c}, then updated by w←exp⁡wc(−η b)w \leftarrow \exp^c_w(-\eta\, b) using Möbius addition. One-dimensional parameters take a plain step w←w−η bw \leftarrow w - \eta\, b. Decoupled decay w←w(1−ηλwd)w \leftarrow w(1-\eta \lambda_{wd}) 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
HyperbolicSiTUGLU duplicates the SiTU-GLU activation from the Kimi Team's report as used in Verace V1, with β1=4\beta_1 = 4 and β2=25\beta_2 = 25. Despite its name it contains no hyperbolic computation.

Results

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

  1. 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.

  2. CSFO metric field is not used

    The lab's reading of the code shows that the learned metric exp⁡(WmetricΦ)\exp(W_{\text{metric}}\Phi) is defined but never applied. The operator reduces to a flat causal second difference plus an MLP drift.

  3. ACLE logic gates collapse to a residual

    As implemented, the summed product t-norm gates equal 1+v1+v. The intended causal logic therefore acts as a scaled residual of the routed proposition.

  4. 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 1/c1/\sqrt{c}, 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 c=1.0c = 1.0 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 λc(w)\lambda_c(w) by which the Poincaré metric stretches Euclidean lengths at point ww. 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 [0,1][0,1]. Conjunction is a product, disjunction is u+v−uvu+v-uv, and negation is 1−u1-u.
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.