How AI models work

Mixture of experts

In short

A mixture of experts is a neural network built from many specialist sub-networks, called experts. For each input, a router runs only a few of them, so the model can hold a huge number of parameters without using all of them every time.

Also called
MoE, Sparse mixture of experts
Topic
How AI models work
Level
Some background helps
First described
Jacobs, Jordan, Nowlan and Hinton, 1991, in "Adaptive Mixtures of Local Experts".1

In 1991 Robert Jacobs, Michael Jordan, Steven Nowlan and Geoffrey Hinton described a supervised learning system made of many separate networks. Each network learns to handle a subset of the training cases. On a vowel discrimination task, the procedure split the work into simpler subtasks, each small enough for a very simple expert network.1

In 2017 Noam Shazeer and colleagues at Google put up to thousands of feed-forward sub-networks in one layer. A trainable gating network picks a sparse combination of those experts for each example. One of their models had up to 137 billion parameters and beat the published results they compared it with on language modelling and machine translation, at lower computational cost.2

Later work separated size from work per token more sharply. William Fedus, Barret Zoph and Shazeer routed each token to a single expert and trained sparse models with as many as 1.6 trillion parameters.3 Mixtral 8x7B, an open-weight model, puts eight experts in each layer and picks two for every token. Its authors say it has access to 47 billion parameters but uses 13 billion active parameters.4

The pattern is in models you can still call. DeepSeek-V3 is a mixture-of-experts language model with 671 billion parameters in total and 37 billion activated for each token.5 Mistral's March 2026 announcement of Mistral Small 4 describes 128 experts, with 4 active per token, 119 billion parameters in total, and 6 billion active per token, or 8 billion once the embedding and output layers are included.6

This is not a panel of separate chatbots voting on an answer. In these systems the experts are blocks inside one network, and for any one token most of them do nothing.24 It is also not a dense model, which runs every parameter on every input.3

Example

In Mixtral, a token is not sent through all eight expert blocks. A router chooses two, their outputs are added, and the next token can choose a different pair.4

Why it matters

It is how some very large language models stay cheap enough to run. The network can store far more parameters than it uses on any single word.45

Questions people ask

Is a mixture of experts several models voting?

No. In the language-model version the experts are blocks inside one network. A router sends each token to a few of them, and the others are idle for that token.24

Does every expert run on every word?

No. That is the point of the sparse design. Mixtral runs two of its eight experts on each token.4 The Switch Transformer routes each token to a single expert.3

Why use a mixture of experts instead of a smaller model?

A smaller dense model has fewer parameters in total. A mixture of experts can store many more, which Shazeer and colleagues argued helps absorb knowledge from large training sets, while only a fraction of the parameters run for each example.2

Related terms

Tools that use it

Sources

  1. Jacobs, Jordan, Nowlan and Hinton (1991), Adaptive Mixtures of Local Experts, Neural Computation
  2. Shazeer et al. (2017), Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer, arXiv:1701.06538
  3. Fedus, Zoph and Shazeer, Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity, arXiv:2101.03961
  4. Jiang et al. (2024), Mixtral of Experts, arXiv:2401.04088
  5. DeepSeek-AI (2024), DeepSeek-V3 Technical Report, arXiv:2412.19437
  6. Mistral AI (16 March 2026), Introducing Mistral Small 4

Back to the glossary