Mixture of Experts
Also known as: MoE, Sparse mixture of experts
Neural network design that splits a model into many expert subnetworks and routes each input to only a few of them, raising capacity at lower cost.
A mixture-of-experts model contains many parallel subnetworks, called experts, and a gating or routing network that decides which experts handle each input. In the sparse form used in large language models, each token is sent to only a small subset of the experts, sometimes just one or two. The model can therefore hold a very large total number of parameters while using only a fraction of them for any single token, making it far cheaper to run than a dense model of the same total size.
The idea dates to a 1991 paper by Robert Jacobs, Michael Jordan, Steven Nowlan and Geoffrey Hinton. In 2017 Noam Shazeer and colleagues at Google introduced a sparsely gated mixture-of-experts layer that scaled neural networks to unprecedented sizes, and Google's Switch Transformer followed in 2021. Mistral AI's Mixtral 8x7B, released with open weights in December 2023, brought the design to wide attention, and many large language models since then, including several of the most capable, are reported to use it.
Mixture of experts offers a way to keep scaling model capacity without proportional growth in computation per token. The design brings its own challenges. All experts must still be stored in memory, and routing can become unbalanced so that some experts are overused while others sit idle. Training can also be unstable without careful load-balancing techniques. Despite the name, experts rarely specialize in human-recognizable subjects; their divisions of labor tend to be statistical and hard to interpret.
Key points
- A router sends each token to a few experts, so only part of the model runs at each step.
- Total parameter count can grow greatly while computation per token stays modest.
- The idea dates to 1991, and Mixtral 8x7B popularized it among open-weight language models in 2023.
- All experts must fit in memory, and their specializations are rarely human-interpretable.
Related entries
Neural network trained on very large amounts of text to predict the next token, able to generate language and perform many tasks from prompts.
Neural network architecture based on self-attention, introduced in 2017, that underlies most large language models and many vision and audio models.
Empirical regularities showing that AI model performance improves predictably as model size, training data and computation increase.
French artificial intelligence company, founded in Paris in 2023, that develops both open-weight and commercial large language models.
Inference
The stage at which a trained machine learning model is run on fresh inputs to produce predictions or generated outputs, as distinct from training.
Open-Weight Model
AI model whose trained weights are publicly released for download, letting others run, study and adapt it, though often under restrictive licenses.
British-Canadian computer scientist whose work on neural networks and backpropagation helped launch deep learning, earning a Nobel Prize in Physics.
Featured in guides
Referenced by
Other entries that discuss or point to Mixture of Experts.