1. What Sparse Routing Does Inside Every Transformer Layer
In a conventional dense transformer, every token passes through the exact same massive feed-forward network (FFN). In a sparse Mixture-of-Experts (MoE) layer, that monolithic FFN is partitioned into N smaller expert networks—commonly 8 in coarse-grained models like Mixtral, or 64 to 256 in fine-grained architectures like Qwen and DeepSeek.
Before executing the FFN, a lightweight linear gating layer called the router computes a probability score for each expert given the current token representation. Only the top-k highest-scoring experts execute, and their outputs are combined via weighted summation.
2. Why Total Parameters and Active Parameters Diverge
Because dormant experts are skipped during matrix multiplication, total parameter count determines your static storage and host RAM capacity, whereas active parameter count determines both floating-point compute (FLOPs) and active memory bandwidth per generated token.
For consumer PC builders, this decoupling is transformative: a 125B Q4_K_M MoE model with ~14B active parameters stores deep world and coding knowledge across 70GB of DDR5 RAM while demanding roughly the same per-token compute as a mid-sized 14B dense model.
3. Shared Experts & Temporal Locality in Local Caching
Modern MoE architectures pair routed experts with one or more always-on shared experts that handle universal grammar and reasoning patterns. Because shared experts fire on 100% of tokens—and routed experts show strong domain clustering within a coding or writing session—pinning shared layers and hot experts in 12GB–24GB VRAM dramatically reduces PCIe cache misses.