Instead of one giant matrix per layer, an MoE model keeps hundreds of small ones and lets a tiny router pick a handful per token, per layer. Same knowledge, a fraction of the compute.
The density of a neural network is the number of connections between layers. Denser networks retain more information; sparser networks take less compute and memory to run. MoE is an architecture optimization that adds sparsity to the linear layers — the feed-forward sublayers that hold the majority of an LLM's weights.
"Rather than a single giant matrix, an MoE model has hundreds of smaller matrices (the experts) and routes each input to a small selection of experts. This is called activating the experts."
Routing is granular. It does not happen once per request — it happens at every layer, for every token. Press play and follow one token down.
| Quantity | Value | Why it matters |
|---|---|---|
| Experts per layer | 128 | Memory footprint is set by all of them |
| Experts activated per layer | 8 | Compute footprint is set by these |
| Layers | 94 | Every layer routes independently |
| Expert activations per token | 752 | 8 × 94 — routing is fine-grained, not per-request |
| Sparsity per layer | 6.25% | Why a 235B model can feel like a 22B one |
Thanks to their low number of active parameters, MoE models are highly efficient for single-request local inference. Few experts fire, so little weight memory is read.
Different requests activate different experts. In batched serving you should expect almost all model parameters to be active at any given time — unless sparsity is recovered through large-scale Expert Parallelism (§5.4.2).