πŸ›οΈ QU-SSM-60M-MoE: Quasi-Unitary State Space Model

DOI License: CC BY-NC-ND 4.0

QU-SSM-60M-MoE is a 64.30M Parameters foundation sequence architecture designed by Prannessh K.V.A. (Sole Architect & Inventor), combining Continuous Lie-Group Unitary Recurrence (SO(N) β‰… SU(2)) with Sparse SwiGLU Mixture-of-Experts (4 Experts, Top-2 Routing).

QU-SSM-60M-MoE eliminates the monotonic exponential memory dissipation present in classical real-valued SSMs (e.g. Mamba-1/2) while delivering strictly constant O(1) step memory (0.19 MB) and 3.32x generation speedup over modern SOTA Transformers.


πŸ”’ Intellectual Property, Citation & Licensing

  • Sole Architect & Inventor: Prannessh K.V.A.
  • Official Research DOI: 10.5281/zenodo.22217820
  • Non-Commercial Community License: Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)
  • Access Policy: Restricted / Private research archive.

πŸ’Ό Commercial & Enterprise Licensing

The weights and architecture are provided free for non-commercial academic research and educational evaluation under CC BY-NC-ND 4.0.

For commercial deployment, enterprise licensing, proprietary fine-tuning, quantitative financial trading integration, or edge hardware DSP embedding, an Enterprise Commercial License is required:

  • πŸ“§ Commercial Licensing Inquiries: Contact Prannessh K.V.A. via Hugging Face profile or direct inquiry.
@software{qu_ssm_moe_2026,
  author       = {Prannessh K.V.A.},
  title        = {QU-SSM-MoE: Continuous Quasi-Unitary Lie-Group State Space Models with Sparse Mixture-of-Experts},
  month        = sep,
  year         = 2026,
  publisher    = {Zenodo},
  doi          = {10.5281/zenodo.22217820},
  url          = {https://doi.org/10.5281/zenodo.22217820}
}

πŸ† Verified Empirical Benchmark Leaderboard

The following benchmarks were evaluated head-to-head under standardized, unpadded conditions on live checkpoints loaded directly from Hugging Face Hub:

1. Modern SOTA Hardware Inference Benchmark (~135M Scale)

Model Architecture Total Params Active Params / Token Generation Speed Step Latency Inference RAM (L=8,192)
SmolLM-135M (Hugging Face) 134,515,008 134,515,008 (Dense) 1.67 tok/s 597.86 ms/tok 360.00 MB (Expanding)
Mamba-130M-HF (Albert Gu et al.) 129,135,360 129,135,360 (Dense) 1.98 tok/s 506.18 ms/tok 0.19 MB (Constant)
QU-SSM-130M-MoE (Our Model) 134,893,056 78,269,952 (Sparse) 5.55 tok/s (πŸ₯‡ 3.32x SOTA) 180.16 ms/tok 0.19 MB (πŸ₯‡ 1,894x Smaller)
  • 3.32x Faster Generation: Generates tokens at 5.55 tok/s compared to 1.67 tok/s for SmolLM-135M.
  • 42% Lower Active Compute: Routes to only 2 of 8 SwiGLU experts, evaluating 78.27M active parameters per step.
  • 1,894x Smaller Memory at Long Contexts: Strictly constant 0.19 MB footprint versus 360.00 MB KV-cache at $L = 8,192$.

2. Real-World Continuous Financial & Sensor Stream Benchmark

Evaluated on continuous unpadded multi-asset exchange ticks (BTC-USD, ETH-USD, SPY, NVDA, AAPL):

Model Architecture Spectral Phase Error (rad) Stream Throughput Long-Horizon Retention
Transformer (Self-Attention) 2.0454 rad 12,255 ticks/s O(L) Memory Scaling
Mamba-Style Real SSM 2.0945 rad 63,488 ticks/s Dissipative Decay ($e^{-\alpha t}$)
QU-SSM-MoE (Our Model) 1.9648 rad (πŸ₯‡ Lowest Distortion) 77,288 ticks/s (πŸ₯‡ Fastest) Unitary Invariance (β€–R(ΞΈ)β€–β‚‚ ≑ 1)

🌐 Universal Multimodal Architecture

While instantiated here as an autoregressive language model, the underlying QU-SSM-MoE recurrent backbone is a modality-agnostic continuous sequence engine designed to process multiple physical and digital data streams:

Modality Stream Input Representation How QU-SSM-MoE Processes It
πŸ“ Language & Code BPE Token Embeddings (50,257 Vocab) Continuous Lie-group semantic rotations with zero forgetting.
πŸŽ™οΈ Raw 16kHz Audio Continuous 1D Acoustic Pressure Waves SO(2) unitary phase dynamics preserve speech harmonics without low-pass decay.
πŸ“ˆ Financial & Sensors Real High-Frequency Market & ECG Telemetry Constant O(1) streaming latency (< 1 ms/sample) with lowest spectral phase error.
πŸ–ΌοΈ Spatial Vision Linear 16x16 Pixel Patch Projections 2D bidirectional state space scanning without quadratic memory explosion.

πŸ“Š Architecture Specifications

Architecture Specification Value / Configuration
Sole Architect & Inventor Prannessh K.V.A.
Total Parameter Count 64.30M Parameters
Active Parameters per Token 44.64M Parameters
Hidden Model Dimension (D) 384
Layer Depth (N_layers) 6 Layers
SSM State Dimension (N) 8
SwiGLU Expert Count 4 Experts (D_ff = 768)
Active Experts per Token Top-2 (k = 2)
Vocabulary Size 50,257 (GPT-2 BPE)
Inference State Memory 0.19 MB (Strictly Constant O(1))
Scan Algorithm Exact Continuous Dual-Component Scan (S + iΦ)

πŸ”¬ Mathematical Recurrence Engine

The recurrent state update at step $t$ evolves as a continuous unitary rotation modulated by an independent forget gate:

ht=Ξ³tβ‹…R(ΞΈt)β‹…htβˆ’1+uth_t = \gamma_t \cdot R(\theta_t) \cdot h_{t-1} + u_t

1. Dynamic Lie-Group Phase Angle (SO(2))

ΞΈt=WΞΈβ‹…xt+ΞΈbase\theta_t = W_\theta \cdot x_t + \theta_{\text{base}}

R(ΞΈt)=[cos⁑θtβˆ’sin⁑θtsin⁑θtcos⁑θt]∈SO(2)R(\theta_t) = \begin{bmatrix} \cos\theta_t & -\sin\theta_t \\ \sin\theta_t & \cos\theta_t \end{bmatrix} \in \text{SO}(2)

βˆ₯R(ΞΈt)βˆ₯2=1.00000(Strict Unitary Norm Preservation)\|R(\theta_t)\|_2 = 1.00000 \quad \text{(Strict Unitary Norm Preservation)}

2. Decoupled Memory Damping (Ξ³_t)

Ξ³t=Οƒ(WΞ³β‹…xt+bΞ³)∈(0,1)\gamma_t = \sigma(W_\gamma \cdot x_t + b_\gamma) \in (0, 1)

3. State Output Readout & Sparse MoE Routing

yssm,t=(Cβ‹…ht)βŠ™SiLU(Dβ‹…xproj,t)+xty_{\text{ssm}, t} = (C \cdot h_t) \odot \text{SiLU}(D \cdot x_{\text{proj}, t}) + x_t

xlayer,t=yssm,t+βˆ‘i∈Top-2gi(yssm,t)β‹…(W3(i)(SiLU(W1(i)y)βŠ™(W2(i)y)))x_{\text{layer}, t} = y_{\text{ssm}, t} + \sum_{i \in \text{Top-2}} g_i(y_{\text{ssm}, t}) \cdot \Big( W_3^{(i)} \big( \text{SiLU}(W_1^{(i)} y) \odot (W_2^{(i)} y) \big) \Big)


πŸ’» Multimodal Quickstart Examples

1. Text & Code Generation

from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained("Prannesshkva/QU-SSM-60M-MoE", trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("Prannesshkva/QU-SSM-60M-MoE")

prompt = "Once upon a time, in a small village near the mountains, there lived a friendly"
input_ids = tokenizer(prompt, return_tensors="pt").input_ids
output = model.generate(input_ids, max_new_tokens=40)
print(tokenizer.decode(output[0]))

2. Raw 16kHz Audio Processing

import torch
from transformers import AutoConfig
from transformers.dynamic_module_utils import get_class_from_dynamic_module

config = AutoConfig.from_pretrained("Prannesshkva/QU-SSM-60M-MoE", trust_remote_code=True)
QUSSMForAudio = get_class_from_dynamic_module("Prannesshkva/QU-SSM-60M-MoE--modeling_qu_ssm.QUSSMForAudio", "Prannesshkva/QU-SSM-60M-MoE")

audio_model = QUSSMForAudio(config, num_classes=10, patch_size=16)
raw_audio = torch.randn(2, 16000)
logits = audio_model(raw_audio).logits

3. Sensor Telemetry Forecasting

config = AutoConfig.from_pretrained("Prannesshkva/QU-SSM-60M-MoE", trust_remote_code=True)
QUSSMForSensor = get_class_from_dynamic_module("Prannesshkva/QU-SSM-60M-MoE--modeling_qu_ssm.QUSSMForSensorTelemetry", "Prannesshkva/QU-SSM-60M-MoE")

sensor_model = QUSSMForSensor(config, input_dim=1, output_dim=1)
ticks = torch.randn(2, 512, 1)
forecast = sensor_model(ticks)["predictions"]
Downloads last month
-
Safetensors
Model size
64.3M params
Tensor type
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Dataset used to train Prannesshkva/QU-SSM-60M-MoE

Space using Prannesshkva/QU-SSM-60M-MoE 1