--- license: apache-2.0 --- # VortexBall **VortexBall** is a deep language model architecture with **zero matrix multiplications (0-GEMM)**—replacing self-attention, dense feed-forward (FFN) layers, and vocabulary projection matrices with continuous quaternion rotations on 3-spheres, O(1) geometric lookup tables, and linear-time O(T) document memory. Unlike ternary "MatMul-free" approaches that still sweep over dense weight matrices, VortexBall operates in full continuous floating-point arithmetic across 36 layers (*d* = 576, *V* = 50,000), transforming tokens through block-wise quaternion isometries and differentiable Freudenthal–Kuhn simplex interpolation. --- ## Architectural Overview VortexBall replaces dense linear projections and unconstrained Euclidean residual streams with a matrix-free geometric formulation built on three components: 1. **Vortex Residual Stream on (S³)¹⁴⁴** * Factorizes the hidden state into 144 unit 3-spheres, exploiting the Lie-group structure of unit quaternions (Sp(1) ≅ SU(2)) to parameterize left, right, and two-sided SO(4) isometries with exact unit spectral norm and zero weight matrices. * Exchanges information across blocks via fixed cyclic shifts forming a directed Cayley graph on ℤ₁₄₄. * Propagates causal cross-position context via a fourth, improper-O(4) quaternion direction that reads and writes a continuous Hebbian–Delta document memory on Kuhn simplices at O(T) cost in sequence length. 2. **Gated Simplex Memory (GSM) in 𝔹⁴** * Replaces classical dense feed-forward blocks with continuous-sparse lookup tables indexed over a seam-glued atlas of eight cubic charts of S³ via Freudenthal–Kuhn simplex triangulation (O(1) read complexity, 4 vertices per block, Lipschitz-continuous barycentric weights). * Applies a directional band gate and smooth radial contraction onto the open unit 4-ball 𝔹⁴ to suppress mismatched retrievals without amplifying noise. 3. **Matrix-Free Three-Level Sector Output Head** * Exact hierarchical probability factorization (sector → subgroup → token) over *V* = 50,000 tokens, routed by group-wise quaternion products and angular matching to spherical output embeddings. --- ## Verified Invariants (36-Layer Body) Measured directly on the 36-layer body implementation on real tokenized text: * **0 GEMM:** `0` matrix-multiplication calls across forward and backward passes. * **Manifold preservation:** Maximum unit-norm deviation of 1.8 × 10⁻⁷ across all 36 layers and 144 blocks (`float32` and `bf16`). * **Strict causality & document isolation:** Exact `0` difference prior to perturbation positions and across document boundaries. * **Kuhn simplex weights:** Partition-of-unity error ≤ 6.0 × 10⁻⁸ (`float32`), `0` (`float64`), with strictly non-negative weights. --- ## Comparative Benchmark Protocol VortexBall is evaluated head-to-head against our matched 36-layer dense reference model [**EUGEN 160M**](https://huggingface.co/datasets/JakCwi/K-CONF/blob/main/eugen_160m/EUGEN_160M_Training_Report.pdf) (164.49M parameters, SwiGLU + fixed-norm MuonH) on the exact same training corpus and 50k BPE tokenizer, beginning with a 1× Chinchilla gate (≈ 3.3B tokens) across four formal success markers (M1–M4): compute efficiency, iso-data predictive quality, wall-clock Time-to-Quality (TTQ), and sector mechanistic health. --- ## Release Roadmap - [x] **Technical Report** — problem formulation, geometric formalism, defining equations, and verified invariants (`VortexBall_Technical_Report.pdf`) - [ ] **Empirical Results** — 1× Chinchilla and long-horizon benchmarks vs. EUGEN 160M - [ ] **Model Checkpoints & Evaluation Logs** — pretrained weights and benchmark artifacts > **Note on the initial release:** Initialization constants, stabilization schedules, grid and table sizes, training hyperparameters, and implementation-level details are omitted from this initial report and will be released with the full-scale results.