Select the correct comparisons of an MoE transformer versus a dense transformer at equal active parameters
At equal active params, MoE wins on quality-per-FLOP at scale but loses on HBM (must store all experts) and on small-batch latency (routing fragments matmul).
Think of dense as a well-organized worker who keeps every skill in their head; limited by how much they can memorize. MoE is more like a small office of specialists: more total knowledge stored on the shelves, but only one or two of them get pulled in for any given task, so the per-task work stays the same. The catch is that all the specialists have to stay in the office (HBM) even when they aren't working, and when only one customer walks in at a time (batch 1), the receptionist's handoff becomes a bottleneck. Llama 4 Maverick is 128 specialists with top-1 routing; vast shelf, one specialist per token.
Concept explanation~2 min read
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Concept explanation~2 min read
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Comparing MoE to dense at equal active parameters is the most important architectural decision when sizing a model in 2026. The right framing is not 'which is faster' or 'which is bigger' but 'which separation does the workload favor': MoE separates total params from active FLOPs in a way dense cannot, and that separation has both upsides and downsides depending on how the model is trained and served.
A serious answer covers four axes: quality per active FLOP, HBM and serving cost, batch-size sensitivity, and training infrastructure. It also flags what is not different: attention, the block recipe, and the residual stream are identical between MoE and dense variants in the same family.
The parameter separation: total vs active
Dense models have one parameter count. The number of parameters loaded into HBM equals the number used per token equals the FLOP budget. There is no separation.
MoE breaks this. Total params scale with the number of experts; active params scale with k (the number of experts run per token). The relationship is:
The ratio total / active is the sparsity multiplier. For Mixtral 8x7B: total 47B / active 13B ≈ 3.6x. For Llama 4 Maverick: total 400B / active 17B ≈ 24x. For DeepSeek V3: total 671B / active 37B ≈ 18x.
Why this matters. Active FLOPs determine compute cost; total params determine memory cost. Dense models tie these together. MoE lets you increase capacity (total) without increasing per-token compute (active), at the price of paying for the capacity in HBM.
Situations where this technique stops working.
2–4 min · Everything important, quickly.
| Dimension | Dense (at X active params) | MoE (at X active params) |
|---|---|---|
| Total parameters | X | X · (N / k), much larger |
| Active FLOPs per token | X-equivalent | ~X-equivalent (similar) |
| HBM footprint | Scales with X | Scales with total, not active |
| Quality on benchmarks | Baseline | Matches 2-3x larger dense |
| Batch-1 latency | Good (clean matmul) | Worse (fragmented per-expert) |
| Batch-128 latency | Linear in batch | Often competitive once experts saturate |
| Training infrastructure | Standard DP + TP | Adds expert parallelism + all to all |
Real products, models, and research that use this idea.
- Llama 4 Maverick (128 experts, top-1) has ~400B total / ~17B active; needs ~6 H200 GPUs for fp16 serving despite being 'only' 17B active.
- Mixtral 8x7B (8 experts, top-2) has ~47B total / ~13B active; fits on 2 H100 80GB with fp16 but needs more than a Mistral 7B dense equivalent would.
What an interviewer would ask next. Try answering before peeking at the approach.
QIf MoE total params scale with N, can you keep adding experts indefinitely?
No. Beyond a point, the router cannot meaningfully differentiate among experts and load-balancing fails. Empirically, returns flatten around 64-128 experts; DeepSeek goes further with fine-grained + shared expert designs.
Red flags & common mistakes
The phrases that signal junior thinking. Click to expand.
Red flags & common mistakes
The phrases that signal junior thinking. Click to expand.
Conflating total params with active params, or thinking MoE 'replaces the FFN' means it replaces attention too. The swap is FFN-only and the param separation is the entire point of the architecture.
60 second bullets to scan on the way to the call.
Primary sources. Browse if you want the original framing.
Same topic, related formats. Practice these next.