Zenaique

Select the correct comparisons of an MoE transformer versus a dense transformer at equal active parameters

Multi-select·Hard·4.0 · 0·~1 min·Asked atPolyaiPwcQdrant·Relevant atDatabricksGoogleMistral AISarvam
Attempt it
TL;DR

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).

Memory aid
Sign in to see the mnemonic that makes this stick.
Easy to grasp

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.

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:

total_params=attention+embeddings+Nparams_per_expert_ffn\text{total\_params} = \text{attention} + \text{embeddings} + N \cdot \text{params\_per\_expert\_ffn}
active_params_per_token=attention+embeddings+kparams_per_expert_ffn\text{active\_params\_per\_token} = \text{attention} + \text{embeddings} + k \cdot \text{params\_per\_expert\_ffn}

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.

Where MoE wins: quality per active FLOP at scale
Where MoE pays: HBM, batch-1 latency, and training cost
What does not change between MoE and dense
When to pick which
Sign in to unlock the full deep dive.

Situations where this technique stops working.

Sign in to see when this approach fails.

2–4 min · Everything important, quickly.

Sign in to see the quick scan of the deep dive.
DimensionDense (at X active params)MoE (at X active params)
Total parametersXX · (N / k), much larger
Active FLOPs per tokenX-equivalent~X-equivalent (similar)
HBM footprintScales with XScales with total, not active
Quality on benchmarksBaselineMatches 2-3x larger dense
Batch-1 latencyGood (clean matmul)Worse (fragmented per-expert)
Batch-128 latencyLinear in batchOften competitive once experts saturate
Training infrastructureStandard DP + TPAdds 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.
Sign in to see more production examples.

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?
A

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.

2 more follow-ups an interviewer would ask next. Sign in to reveal them.

Red flags & common mistakes

The phrases that signal junior thinking. Click to expand.

Most common mistake

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.

Sign in to see all red flags and common mistakes.

60 second bullets to scan on the way to the call.

  • The total vs active parameter separation that MoE introduces

  • Why HBM cost scales with total params, not active params

Sign in to unlock the revision sheet.

Primary sources. Browse if you want the original framing.

Similar questions

Same topic, related formats. Practice these next.

4 curated
Next question
Explain scaled dot product attention.
Short answer·Medium