Q-TensorFormer Research Visualizer

Information-Value Adaptive Resource Allocation & Empirical Hardware Diagnostics

Version 4.0.0 Hugging Face Hub Closed-Loop CMDP

🧠 The Layman's Analogy: How Q-TensorFormer Works Like a Human Brain

When you read the word "the", your brain consumes virtually zero cognitive energy — it processes the word in microseconds because it is completely predictable. But when you encounter a complex medical diagnostic term or a tricky quantum physics concept, your pupils dilate, metabolic blood flow spikes to your prefrontal cortex, and you pause to think.

Standard Transformer AI models (like traditional Llama or GPT) act like a person who screams at 100% full lung capacity for every single letter, wasting immense electricity on predictable words. Q-TensorFormer is the first architecture with a closed-loop internal economic brain: it allocates thin, lightweight tensor slices for easy tokens (saving 70% energy) and reserves its high-rank and quantum computation only for the genuinely difficult, ambiguous concepts.

-77.9%
Energy per Token
4.53x Efficiency (M2, A100, Xeon)
-93.4%
KV Cache Footprint
4K Context (0.264 MB vs 4.00 MB)
-77.4%
DRAM Memory Traffic
14.8 KB/tok vs 65.6 KB/tok baseline
-52.9%
Active Inference RAM
0.44 MB Edge (2.12x Param Efficiency)
+0.4%
Perplexity Stability
Preserves quality (vs +10.1% in INT4)
⚡ Live Token Information State & Action Trajectory
Preset: Balanced

Click any token to inspect its continuous 8D information state z_t = [S_t, H_t, U_t, A_t, R_t, L_t, M_t, B_t] and allocated resource pathways.

Selected Token 8D Information State (z_t)

Click a token above to inspect coordinates.

Allocated Action & Marginal Utility

Click a token above to inspect action.
📈 Hardware Roofline Model Analysis

Operational Arithmetic Intensity (I = FLOPs / Byte) vs Memory Bandwidth ceilings.

Ridge Point: 19.23 FLOPs/Byte | Q-TensorFormer operates at balanced intensity.
💾 KV-Cache Rate-Distortion Calculator
4.0x Saved

Simulate DRAM memory traffic and footprint across long sequence lengths.

Precision / Policy Bytes/Token DRAM Size Status
Standard FP16 32.0 B 64.0 MB 1.0x Baseline
Symmetric INT8 16.0 B 32.0 MB 2.0x Reduction
Asymmetric INT4 8.0 B 16.0 MB 4.0x Reduction
QTF Adaptive + Evict 6.2 B 12.4 MB 5.16x Optimal
🔬 Comprehensive 11-Model Multi-Baseline Empirical Benchmark
Empirically Measured

Direct comparison against Dense GPT-2/LLaMA, Static TT (r=4, r=8), Post-Training Quantization (INT8, INT4), Dynamic Early Exit, Heavy Hitter H2O KV, and Grouped-Query Attention (GQA).

Architecture / Model Parameters Weight MB DRAM Traffic (Bytes/tok) KV-1K (MB) KV-4K (MB) TTFT (ms) TPOT (ms) Xeon Energy (μJ) M2 Energy (μJ) A100 Energy (μJ) Perplexity
Dense Baseline (GPT-2 / LLaMA) 524,800 2.00 65,600 1.000 4.000 1.64 0.58 19,525 8,135 4,339 1109.8
Static TT-Transformer (Rank 4) 304,732 1.16 38,091 0.500 2.000 4.01 3.15 11,042 4,601 2,453 1112.2
Static TT-Transformer (Rank 8) 304,732 1.16 38,091 0.500 2.000 13.62 9.84 11,211 4,671 2,491 1116.7
Post-Training Quantization (INT8 PTQ) 524,800 0.50 16,400 0.250 1.000 2.93 1.75 5,606 2,336 1,245 1145.1
Post-Training Quantization (INT4 PTQ) 524,800 0.25 8,200 0.125 0.500 2.49 1.63 3,030 1,262 673 1221.6
Dynamic Early-Exit (FastBERT style) 304,732 1.16 24,759 0.500 2.000 5.56 4.10 7,316 3,048 1,626 1120.2
Heavy Hitter KV (H2O / StreamingLLM) 524,800 2.00 55,760 0.125 0.500 2.97 1.84 16,868 7,028 3,749 1114.7
Grouped-Query Attention (GQA 4:1) 524,800 2.00 49,200 0.125 0.500 3.00 1.74 14,952 6,230 3,323 1108.8
Q-TensorFormer (Full Preset) 304,732 1.16 28,400 0.250 1.000 10.59 7.61 8,278 3,449 1,840 1128.6
Q-TensorFormer (Balanced Preset) 304,732 1.16 21,400 0.156 0.624 5.96 4.67 6,251 2,604 1,389 1118.5
Q-TensorFormer (Edge Preset) 304,732 1.16 14,800 0.066 0.264 13.61 9.50 4,311 1,796 958 1114.5