80/20 Of The Week … How Can an LLM Have Hundreds of Billions of Parameters Without Using All of Them?
When an LLM is described as having hundreds of billions of parameters, the obvious question is how it can afford to run all of that for every token it generates. That would get expensive fast.
One answer is Mixture of Experts, usually shortened to MoE.
In a normal Transformer, every token goes through the same feed-forward block in a layer. An MoE layer replaces some of those blocks with many separate ones called experts. A small router looks at each token and chooses only a few experts to process it.
For example, imagine a layer has 64 experts. The router might pick the best 2 for one token, run only those two and combine their outputs before passing the token to the next layer. So the model can store a huge amount of total capacity without activating every expert every time.
The small annoying correction is that experts are not guaranteed to become neat human labels like “math expert” and “Java expert”. The model learns its own specialization patterns from training, and some of them can be hard to explain from the outside.
This also happens inside the model, layer by layer and token by token. A prompt is not assigned to one expert for the whole answer. The token cache might take one route in one MoE layer, while the next token or layer takes another.
My favorite example is Kimi (Moonshot AI) K3. It has 2.8 trillion parameters in total, but its Stable LatentMoE setup activates 16 of 896 experts for a token, around 104 billion active parameters per forward pass. The full model still has to live somewhere, but total capacity and active work become very different numbers.
That sounds like a free performance trick until you look at the infrastructure. All expert weights still need memory somewhere, and if the selected expert lives on another GPU or machine, the token has to travel there and back. The GPU can end up waiting for data instead of doing matrix multiplication. A router can also overload one expert while others sit around, creating queues and uneven latency. MoE saves compute only when tokens move and experts balance fast enough.
So MoE gives us a useful split between total model capacity and active compute per token. It lets models grow without running every parameter for every token, but it also turns part of LLM serving into a distributed routing problem.
TLDR
MoE models keep many expert blocks available, then route each token through only a small selection. That can increase model capacity without proportional compute per token, while adding memory, routing and multi-GPU communication headaches.
