What Is a Mixture of Experts? Why Some AI Models Use Only Part of Themselves
A plain-English guide to mixture-of-experts AI models: how they route each piece of text to a few specialists, and what that does and doesn't save.
You may have seen an AI model described with two numbers, such as “one trillion parameters, 50 billion active.” That sounds contradictory. How can a model be both huge and small at the same time?
The answer is a design called mixture of experts, often shortened to MoE. This post explains the idea, what it is good for, and what it does not do.
An analogy: the hospital front desk
Picture a large hospital with hundreds of specialists. When you walk in, you don’t see all of them. A front desk looks at your problem and sends you to a few of the right people: perhaps one for your knee and one for your X-ray.
The hospital as a whole holds a huge amount of knowledge. But each patient only uses a small part of it. That is the basic idea of a mixture-of-experts model.
The more accurate version
A language model is built from many layers of numbers called parameters. Parameters are the adjustable values learned during training. In an ordinary (“dense”) model, every parameter is used every time the model processes a piece of text.
In an MoE model, some of those layers are split into many smaller blocks called experts. A small component called a router looks at each piece of text (each token) and picks only a few experts to handle it. The other experts sit idle for that token.
This gives two different numbers:
- Total parameters: everything the model contains. This is what must be stored.
- Active parameters: the part actually used for each token. This is what drives how much computation each step needs.
So “1 trillion total, 50 billion active” means the model holds a trillion values but uses a small slice of them at each step.
One clarification: the “experts” are not people-like specialists with names such as “the law expert” or “the French expert.” The model learns during training how to divide the work, and the resulting specialties are often hard to describe in human terms. The hospital analogy shows the routing idea, not what each expert really knows.
What MoE is good for
Because only part of the model runs at each step, an MoE model can often produce text faster, or with less computing per token, than a dense model with the same total size. That lets builders make models with a very large total capacity without paying the full computing cost every time.
What MoE does not do
- It doesn’t shrink the storage. All the experts still have to be loaded and ready, because any of them might be chosen for the next token. A model with a large total size still needs a lot of memory.
- It doesn’t make a model automatically smarter. Total size and active size are only two facts about a model. Quality depends on training data, training methods and much more.
- It doesn’t mean the model is cheap to run on a home computer. The active number tells you about computing per token, not about how much memory you need.
This is why comparing models by a single number can mislead. A model with fewer total parameters is not necessarily weaker, and one with more is not necessarily better.
What’s well established, and what’s debated
Well established:
- MoE models split work across experts, and a router chooses which ones to use for each token.
- Total and active parameter counts are different and both matter.
- Memory needs are tied closely to total size, while computing per token is tied closely to active size.
Still debated or hard to know:
- How specialized the experts really are. Researchers study this, but there isn’t a simple, tidy answer.
- When MoE beats a dense model of similar quality. It depends on the task, the hardware and how the model is trained.
- Which size number matters for you. That depends on whether you care most about memory, speed or cost.
What this means for you
If you only use AI through a chat app, you rarely need to think about this. The company running the model handles the hardware.
If you read about models in the news or compare options, remember two things. First, ask which number is being quoted, total or active. Second, treat the figures as a clue about how the model is built, not a score of how good it is. The best test of a model is still trying it on your own tasks.
Related
What Is Speculative Decoding? How AI Replies Get Faster
A plain-English look at speculative decoding: a small model drafts text and a big model checks it, so chatbots can reply faster.
What Is Quantization? Why One AI Model Comes in Smaller Versions
Quantization shrinks an AI model by storing its numbers less precisely. Here's what that means, what you gain, and what you can lose.
What Is a Knowledge Cutoff? Why AI Can Miss Recent News
AI models learn from text collected up to a certain point. Here's what a knowledge cutoff is, why it exists, and how to work around it.