VSA-DeepSeek-R1-Qwen-1.5B (v2: Abelian Page-Slot Binder + Mix-First RoPE)
<<PREVIEW MODEL, FEEDBACK IN GITHUB APPRECIATED>>
VSA-DeepSeek-R1-Qwen-1.5B is a fixed-state linear-attention hybrid retrofitted from deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B using VSA-LM.
75% of donor full-attention layers (21 of 28 layers) are converted into Fixed-State Decayed Outer-Product Memory (VSA) + Abelian Page-Slot Binder layers (8 pages x 4 slots = 32 non-decaying prefix-sum slots per layer, Mix-First GQA Head Un-Tying $2 \to 12$ heads, Learnable Multi-Scale Decay $\gamma$, and 64-Token + Sink Local Window), while keeping 7 Softmax anchor layers (every 4th layer).

1. Benchmark Comparison vs Official HF Donor
Evaluated with python -m vsa_lm benchmark against official Hugging Face AutoModelForCausalLM (deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B) on identical prompts:
| Task / Metric | Official HF Donor | VSA-DeepSeek-R1-Qwen-1.5B (v2) | Paired McNemar (p-value) | Verdict |
|---|---|---|---|---|
| HumanEval (Python Pass@1) | 60.00% | 70.00% (+10.00%) | p = 0.219 | No sig. diff (+10% VSA lead) |
GSM8K (Native <think> CoT) | 75.00% | 70.00% (28/40 vs 30/40) | p = 0.727 | No sig. diff (Statistical Tie) |
| MBPP (Python Pass@1) | 35.00% | 40.00% (+5.00%) | p = 0.688 | No sig. diff (+5% VSA lead) |
| HellaSwag | 41.00% | 42.00% (+1.00%) | p = 0.774 | No sig. diff (Tie) |
| MMLU (57-subject stratified) | 38.00% | 39.50% (+1.50%) | p = 0.711 | No sig. diff (Tie) |
| GSM8K Question-Number Top-1 Match | 100.0% (ref) | 98.34% (KL = 0.0248 nats) | — | Near-exact number retention |
.vsa Disk Cartridge Recall | N/A | 100.0% (4/4) | 0.0 erase residual | Exact Algebraic Unlearning |
2. Speed & Memory Scaling (2k to 64k Context)
| Context Length | Donor Decode Speed | VSA-LM Decode Speed | Speedup | Donor KV RAM | VSA-LM State + KV RAM | RAM Saved |
|---|---|---|---|---|---|---|
| 2,048 | 92.2 tok/s | 130.2 tok/s | 1.41x | 56.0 MB | 41.9 MB | 25.2% |
| 8,192 | 86.6 tok/s | 130.3 tok/s | 1.50x | 224.0 MB | 76.1 MB | 66.0% |
| 16,384 | 91.0 tok/s | 128.6 tok/s | 1.41x | 448.0 MB | 130.2 MB | 70.9% |
| 32,768 | 90.9 tok/s | 125.4 tok/s | 1.38x | 896.0 MB | 242.2 MB | 73.0% |
| 65,536 | 83.9 tok/s | 119.5 tok/s | 1.42x | 1792.0 MB | 466.2 MB | 74.0% |
Infinite Stream (window=8192) | OOM at long ctx | 125.6 tok/s | Constant | Unbounded | 73.1 MB (0.0 MB growth) | Flat Forever |
License
MIT License — Copyright (c) 2026 Rikka3.