MoE is a way to build a very large model without a proportional rise in computation: the total number of parameters is huge, but only a small part of them runs on each token — the part the router has selected. Many large modern language models are built this way.
How the mixture works
| Component | What it does |
|---|---|
| Experts | several blocks with an identical structure — usually fully connected layers — but different weights |
| Router | a small trainable network: for each token it decides which experts will process it |
| Shared parameters | embeddings, attention layers and other parts that every token passes through |
| Active parameters | the weights that actually run on a given token: the selected experts plus the shared parts |
The router assigns the selected experts a weight — a factor by which to multiply their output — and the weighted sum of these outputs becomes the result of the layer. If not all experts are used for a token, the mixture is called sparse: for example, in Mixtral each layer selects two of the eight experts for a token.
Active and shared parameters: an example
This split is worth putting into numbers: in parameters, a MoE model is larger than a dense network of the same quality, while in computation per token it is smaller. Memory is still needed for all the parameters, though: the experts are stored in full, even if only one or two of the eight run on a token. MoE therefore saves computation but not memory, and this is taken into account when placing models on inference servers.
| Model | Total parameters | Active per token |
|---|---|---|
| Mixtral 8×7B | 47 billion | 13 billion |
| DeepSeek-V3 | 671 billion | 37 billion |
Where the term comes from
The idea of a mixture of experts was proposed by Robert Jacobs, Michael Jordan, Steven Nowlan and Geoffrey Hinton in the paper “Adaptive Mixtures of Local Experts” (1991): several trainable “local experts” plus a trainable module that divides the inputs between them.
In deep neural networks, the sparse mixture was popularised by the 2017 paper by Shazeer et al. with a layer of thousands of fully connected experts, and Switch Transformer (2021) simplified routing and scaled training up to models with a trillion parameters. Since then, MoE has become a common choice for large language models.
Sources
the term is written from these pages- Jacobs, Jordan, Nowlan, Hinton — Adaptive Mixtures of Local Experts (1991)cs.toronto.edu/~hinton/absps/jjnh91.pdf(opens in a new tab)
- Mistral AI — Mixtral of Experts (arXiv 2401.04088)arxiv.org/abs/2401.04088(opens in a new tab)
- DeepSeek-AI — DeepSeek-V3 Technical Report (arXiv 2412.19437)arxiv.org/abs/2412.19437(opens in a new tab)
Verified 9 Nov