Training-free, closed-form Multi-Subspace Weight-Space Programming (WSP) for google/gemma-4-26B-A4B-it (Sparse MoE: 26.54B total parameters, ~4B active per token, 30 layers, 128 routed experts + 1 shared dense GeGLU MLP) — zero gradient descent, zero fine-tuning, synthesized in 18.9 seconds on CPU in <90 MB RAM.
[!IMPORTANT] Best Configuration — Arm 3 (
wsp_gemma4_subspace4_mid.ggufOnly): Across the full 123-task 4-Way Factorial Ablation, Arm 3 (Mid-Layer Global Full-Attention + Router-Aligned WSP at Layers 5, 11, 17, 23) achieved the most improvement at56/123 (45.5%)(+3.2 percentage points over baseline52/123 = 42.3%), lifting GSM8K 5× (1/20 = 5.0%→5/20 = 25.0%, +20.0 pts) and HumanEval 2× (1/15 = 6.7%→2/15 = 13.3%) while preserving100%TruthfulQA and93.3%BFCL Irrelevance.
Evaluated via llama-server.exe (gemma-4-26B-A4B-it-UD-Q4_K_M.gguf, ~26 tok/s, greedy decoding temperature=0.0).
| Benchmark Suite (Tasks) | Arm 1: None (Base) | Arm 2: Late-Layer Shared-MLP Only (20–29) |
Arm 3: Mid-Layer Full-Attn + Router Only (5,11,17,23) — BEST |
Arm 4: Both Combined (Mid + Late) |
|---|---|---|---|---|
| Suite A: Shell Execution (8) | 3/8 (37.5%) |
3/8 (37.5%) |
3/8 (37.5%) |
3/8 (37.5%) |
| Suite B: Web Search & Fetch (8) | 3/8 (37.5%) |
3/8 (37.5%) |
3/8 (37.5%) |
3/8 (37.5%) |
| Suite C: Math Reasoning (8) | 0/8 (0.0%) |
0/8 (0.0%) |
1/8 (12.5%) |
1/8 (12.5%) |
| Suite D: Anti-Sycophancy (8) | 8/8 (100.0%) |
8/8 (100.0%) |
8/8 (100.0%) |
8/8 (100.0%) |
| Suite E: Tool Restraint (6) | 6/6 (100.0%) |
4/6 (66.7%) |
4/6 (66.7%) |
4/6 (66.7%) |
| Mobile Agent Subtotal (38) | 20/38 (52.6%) |
18/38 (47.4%) |
19/38 (50.0%) |
19/38 (50.0%) |
| InterCode-NL2Bash (20) | 1/20 (5.0%) |
1/20 (5.0%) |
1/20 (5.0%) |
1/20 (5.0%) |
| BFCL v3 Irrelevance (15) | 14/15 (93.3%) |
14/15 (93.3%) |
14/15 (93.3%) |
14/15 (93.3%) |
| GSM8K Test Split (20) | 1/20 (5.0%) |
5/20 (25.0%) |
5/20 (25.0%) |
4/20 (20.0%) |
| TruthfulQA Generation (15) | 15/15 (100.0%) |
15/15 (100.0%) |
15/15 (100.0%) |
15/15 (100.0%) |
| HumanEval pass@1 (15) | 1/15 (6.7%) |
2/15 (13.3%) |
2/15 (13.3%) |
1/15 (6.7%) |
| Established Subtotal (85) | 32/85 (37.6%) |
37/85 (43.5%) |
37/85 (43.5%) |
35/85 (41.2%) |
| GRAND TOTAL (123) | 52/123 (42.3%) |
55/123 (44.7%) (+2.4) |
56/123 (45.5%) (+3.2 — MOST IMPROVEMENT) |
54/123 (43.9%) (+1.6) |
experts.down_proj vs. mlp.down_proj)In Gemma4TextDecoderLayer, the Shared Dense MLP (mlp.down_proj, 2112 cols) runs in parallel with 128 Routed Experts (experts.down_proj, 128 × 704 cols), and each branch is independently RMS-normalized (post_feedforward_layernorm_1 and post_feedforward_layernorm_2) before summation.
Direct spectral probing at Layer 29 showed 5×–10× stronger column alignment with formatting-loop ('▁▁▁▁', '▁▁▁', '▁▁▁▁▁▁▁▁', '*') and control tokens (<channel|>, <|tool_call>) inside the 128 Routed Experts than in the Shared Dense MLP:
| Layer 29 Tensor | 140 ('▁▁▁▁') |
139 ('▁▁▁') |
144 ('▁▁▁▁▁▁▁▁') |
236829 ('*') |
101 (<channel|>) |
48 (<|tool_call>) |
|---|---|---|---|---|---|---|
Shared Dense MLP (mlp.down_proj) |
0.0333 |
0.0239 |
0.0328 |
0.0304 |
0.0100 |
0.0084 |
128 Routed Experts (experts.down_proj) |
0.1250 |
0.1730 |
0.1023 |
0.1831 |
0.0977 |
0.0885 |
Because standard GGUF LoRAs target 2D dense projections (blk.{l}.ffn_down.weight) rather than 3D routed-expert tensors, Arm 3 (wsp_gemma4_subspace4_mid.gguf)—which steers the 4 Global Full-Attention anchor layers (5, 11, 17, 23) aligned with top-8 router.proj.weight expert directions—achieves the cleanest and largest intelligence gain (5× GSM8K, 2× HumanEval, +3.2 pts overall).
wsp_gemma4_subspace4_mid.gguf (1.20 MB, Layers 5, 11, 17, 23, rank 16)20–29, rank 16):wsp_gemma4_subspace1_think.gguf (3.01 MB)wsp_gemma4_subspace2_restraint.gguf (3.01 MB)wsp_gemma4_subspace3_agent.gguf (3.01 MB)wsp_gemma4_combined_late.gguf (4.51 MB, rank 24)wsp_gemma4_a4b_patch.safetensors, wsp_gemma4_a4b_manifest.jsonscripts/): build_gemma4_a4b_subspaces.py, probe_gemma4_a4b_moe.py, probe_lora_scales.py, run_gemma4_a4b_benchmarks.py, run_gemma4_4way_ablation.pybenchmarks/): gemma4_a4b_4way_ablation_results.json, base_gemma4_a4b_agent_results.json, base_gemma4_a4b_established_results.json, gemma4_a4b_moe_probe.jsonllama-server (Arm 3 — Best Overall)llama-server -m gemma-4-26B-A4B-it-UD-Q4_K_M.gguf --jinja --lora-scaled wsp_gemma4_subspace4_mid.gguf:2.0
google/gemma-4-26B-A4B-it