Picture a hospital front desk where every patient, whatever the complaint, is sent to see all the doctors in the building. It would work, and it would also be absurdly slow. Sensible hospitals route each person to the one or two specialists who matter for their case. The mixture of experts design does the same thing inside an AI model, and it is a big reason today’s largest models can be enormous without being unusably expensive to run.
What a Mixture of Experts Model Is
In a standard transformer language model, every token you feed in passes through the same large feed-forward layers, so every parameter does work on every token. A mixture of experts (MoE) model swaps that single block for several smaller ones, called experts, plus a small router that decides which experts see each token. Only the chosen experts run. The rest sit idle for that token.
The result is a split between two numbers that used to be the same: total parameters, which is how much the model knows, and active parameters, which is how much computation each token costs. For background on how the underlying models are built, see our guide to how large language models work.
How the Router Picks Experts
The router is a tiny neural network trained together with the experts. For each token and each layer, it scores the available experts and passes the token to the top few. The outputs of those chosen experts are then blended, weighted by the router’s scores, and the model moves on to the next layer.
Two details are easy to miss. First, routing happens per token and per layer, so a single sentence can touch many different experts as it moves through the model. Second, experts are not hand-assigned topics like “the chemistry expert.” They specialize however training happens to push them, and that specialization is usually messier and less human-readable than the name suggests.
Two Real Examples With Real Numbers
Mistral’s Mixtral model is the clearest public example. According to the Mixtral of Experts paper, each layer has 8 feed-forward experts, and a router selects two of them for every token. The authors report that each token has access to 47 billion parameters but uses only 13 billion during inference. They also report that it outperforms or matches Llama 2 70B and GPT-3.5 across the benchmarks they evaluated, and the models were released under the Apache 2.0 license.
DeepSeek-V3 pushes the idea further. Its technical report describes an MoE language model with 671 billion total parameters, of which 37 billion are activated for each token. The report also describes an auxiliary-loss-free strategy for load balancing, which brings us to the main engineering headache of the approach.
Why the Design Is Attractive
The appeal comes down to a trade. Compute per token, which drives serving cost and speed, tracks the active parameters. Capacity, which drives how much the model can store and learn, tracks the total. An MoE model gets a capacity closer to a much larger dense model while paying a per-token bill closer to a much smaller one. That is why the approach shows up in many of the large models released in recent years.
The Catches
The savings are real, but they are not free.
- Memory still has to hold everything. All experts must be loaded even though only a few run per token, so an MoE model needs memory closer to its total size, not its active size. This is a major reason these models are hard to run on a single consumer GPU.
- Load balancing is hard. If the router keeps favoring a few popular experts, others never train properly and the efficiency gain disappears. Training usually adds a balancing mechanism to spread tokens out, which is the problem DeepSeek’s report addresses.
- Serving gets more complicated. Experts are often spread across many chips, so tokens have to be shipped between devices, which makes networking a bottleneck. Our explainer on AI chips covers the hardware side of that story.
MoE Versus Small Models
Mixture of experts and small models both chase cheaper inference, but they get there differently. A small model has fewer parameters overall, so it fits in modest hardware. An MoE model keeps a huge parameter count and avoids using most of it at once. If memory is your constraint, a compact dense model is often the better fit; our piece on small language models covers that route.
FAQs
What does mixture of experts mean in AI?
It is a model design where each layer contains several specialist sub-networks, called experts, and a router sends every token to only a few of them. The model gains capacity from having many experts while keeping per-token computation low.
Is a mixture of experts model smarter than a regular one?
Not automatically. It offers a different cost-to-capacity trade. At a similar compute cost per token, an MoE model can match or beat a dense model, as the Mixtral authors report against Llama 2 70B, but quality still depends on training data and method.
Do experts specialize in topics like math or law?
Not in a clean way. Experts specialize in whatever patterns training rewards, and those are rarely tidy subject labels. Treat the name as a loose analogy rather than a literal description.
Why do MoE models still need so much memory?
Any expert might be called for the next token, so all of them must be ready in memory. Only the computation is sparse, not the storage.
Can I run a mixture of experts model at home?
Smaller open-weight MoE models can run on well-equipped consumer hardware, especially with compression, but the largest ones need server-class memory and multiple accelerators.












Discussion about this post