What is a mixture of experts (MoE) model?
A mixture-of-experts model splits part of its network into many "experts" and uses only a few of them for each word, so a huge model runs cheaply.
Rung 1 Explain like I'm 6
Imagine a restaurant kitchen with eight cooks. When an order comes in, a head waiter looks at it and sends it to just two of the cooks. The other six keep resting. Over time the waiter learns which two cooks handle each kind of order best.
The kitchen knows a lot, because it has many cooks. But each dish is quick and cheap to make, because only two cooks work on it.
A mixture-of-experts AI works like that kitchen. It has many small helper networks, called experts, and a "waiter" that picks a few of them for each word. So the AI can be very big but still answer fast.
Rung 2 High-school level
A mixture of experts (MoE) is a way to build a neural network so that only part of it runs for each input. The idea is old: a 1991 paper by Jacobs, Jordan, Nowlan and Hinton trained several small networks plus a "gating" network that chose between them.
In a modern MoE LLM, the parts are:
- Experts: many copies of one kind of layer (the feed-forward part of a transformer block), each with its own weights.
- A router (or gate): a tiny network that looks at each token, a word or piece of a word, and picks which few experts should handle it.
This creates two different sizes for the same model. Total parameters are all the weights stored, which sets how much memory you need. Active parameters are the weights actually used for one token, which sets how much computing each word costs. Mixtral 8x7B, for example, stores 47 billion parameters but uses only 13 billion per token [3].
One warning about the name: the "experts" are not like human specialists in maths or history. The router learns its own way of splitting work, and it rarely lines up neatly with topics.
Check yourself: Why can an MoE model be huge but still cheap to run per word?
The router sends each token to only a few experts, so most of the weights sit unused for that token.
Rung 3 Undergraduate level
In a transformer, each block has an attention layer and a feed-forward network (FFN). An MoE layer replaces that one FFN with E expert FFNs and a router.
For a token's vector x, the router computes one score per expert, keeps the top K, and turns those K scores into weights with a softmax. Mixtral writes this as G(x) = Softmax(TopK(x · W_g)) with E = 8 and K = 2 [3]. The layer output is the weighted sum of the chosen experts' outputs:
y = Σ G(x)ᵢ · Expertᵢ(x), over the K chosen experts only.
Worked example (scores made up): the router gives experts 3 and 6 the two highest scores, 2.0 and 1.0. Softmax over those two gives e²/(e² + e¹) ≈ 0.73 and 0.27. So y = 0.73 · E₃(x) + 0.27 · E₆(x). The other six experts do nothing for this token. Note that routing happens separately at every MoE layer, so one token may visit different experts in each layer.
Cost, using the rule that a forward pass takes about 2 operations per active parameter per token: Mixtral's 13B active parameters cost about 26 GFLOPs per token, against about 94 GFLOPs for a dense model with all 47B in use. But memory does not shrink: at 16 bits, all 47B weights still need about 94 GB, because any expert may be picked next.
Attention layers are usually shared by all tokens; only the FFN part is split. That is why "active" is more than total ÷ E × K.
Check yourself: Does an MoE model need less memory than a dense model with the same total parameters?
No. All experts must be stored, because any of them may be chosen; MoE saves compute per token, not memory.
Rung 4 Graduate level
The main design choices are how many experts, how many per token, and how to keep them evenly used.
Fewer, bigger vs more, smaller experts. Early large MoEs used few experts per token: Switch Transformer (2021) sent each token to a single expert and reported up to 7× faster pre-training than T5-Base with the same compute [2]. The trend since has been many small experts plus an always-on shared expert for common knowledge. DeepSeek-V3 (2024) has 1 shared and 256 routed experts per MoE layer, with 8 routed experts per token: 671B total, 37B active [4]. OpenAI's gpt-oss-120b (2025) has 128 experts per layer and picks the top 4, for 116.8B total and 5.1B active [6].
Load balancing. If the router favours a few experts, they overload and the rest waste memory. Switch gave each expert a fixed capacity; tokens beyond it were dropped and passed through the residual connection, and an auxiliary loss pushed the router towards even use [2]. DeepSeek-V3 instead adds a per-expert bias used only for choosing experts, nudged down for overloaded experts and up for idle ones after each step, keeping only a tiny extra balance loss [4].
Communication. Experts are spread over many GPUs (expert parallelism), so every MoE layer sends tokens across the network and back. DeepSeek-V3 limits each token to experts on at most 4 nodes to cap this traffic [4].
Memory, not compute, becomes the limit. All weights must sit in fast memory. gpt-oss stores its MoE weights, over 90% of all parameters, in 4.25-bit MXFP4 so the 120b model fits on one 80 GB GPU [6]. See quantization.
Mixed layers. Llama 4 Maverick (2025) alternates dense and MoE layers; each token goes to a shared expert plus one of 128 routed experts, for 400B total and 17B active [5].
Rung 5 PhD level
The 2017 sparsely-gated MoE layer (a trainable gating network choosing among up to thousands of experts, up to 137B parameters between LSTM layers) established the modern form and its two core problems: balance and instability [1]. Both are still open in theory, though well managed in practice.
Routing is a discrete choice trained with gradients. Top-k selection is not differentiable, so the router learns only through the weights of the experts it picked. This makes routing noisy early in training and can lock in "expert collapse", where a few experts take most tokens. Auxiliary losses fix balance at some cost to the main objective; the bias-based method in DeepSeek-V3 [4] is one attempt to decouple the two. Switch found that computing just the router in float32, while the rest ran in lower precision, improved training stability [2].
What do experts learn? Mixtral's analysis found no obvious assignment of experts by topic across ArXiv, biology and philosophy text; routing followed syntax more than domain, and consecutive tokens often went to the same expert [3]. So "expert" is a training artefact, not a specialist in the human sense. How to get more useful specialisation, or whether it matters, is open.
Other open problems:
- Scaling laws for sparsity. How quality depends on total parameters, active parameters, expert count and granularity is studied mostly empirically; a settled theory is missing.
- Inference efficiency. Decoding small batches reads many experts' weights for little compute, so MoE gains shrink when memory bandwidth, not FLOPs, is the bottleneck.
- Fine-tuning and serving. Routers can shift during fine-tuning, and uneven expert load makes batching and capacity planning harder.
- Compression. Many experts are rarely used. Pruning, merging or offloading them without hurting rare-input quality remains an active area.
Rung 6 State of the art: what experts work on now
Last checked 18 November 2026.
As of 2026-11-18.
MoE became the default for frontier open-weight models. Llama 4 (April 2025) was Meta's first MoE family [5]. OpenAI's gpt-oss models (August 2025, Apache 2.0) are MoE throughout, with 4-bit expert weights [6].
Sparsity kept rising. Kimi K2 (July 2025) reached 1 trillion total parameters with 32B active, using 384 experts with 8 chosen per token plus 1 shared expert [7]. That is about 3% of weights per token, against about 28% for Mixtral in early 2024 [3].
Trillion-scale, long context. On 24 April 2026 DeepSeek released open weights for DeepSeek-V4 in two MoE sizes: V4-Pro with 1.6T total and 49B active parameters, and V4-Flash with 284B total and 13B active, both with a 1-million-token context [8]. These are the vendor's own figures; independent comparisons take time.
The pattern since 2024: total parameters grow fast, active parameters grow slowly, and the hard part moves to memory and networking for all those stored experts.
Sources
- Shazeer et al., Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer (2017)
- Fedus, Zoph and Shazeer, Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity (2021)
- Jiang et al. (Mistral AI), Mixtral of Experts (2024)
- DeepSeek-AI, DeepSeek-V3 Technical Report (2024)
- Meta AI, The Llama 4 herd (2025)
- OpenAI, gpt-oss-120b & gpt-oss-20b model card (2025)
- Moonshot AI, Kimi-K2-Instruct model card (2025)
- DeepSeek, DeepSeek-V4 Preview release (news, 24 April 2026) (2026)