What is mixture of experts (MoE)?
Mixture of experts is a model design that splits parts of the network into many specialist sub-networks and uses a router to send each input to only a few of them.
Also called: MoE, sparse mixture of experts
How it works
In a standard transformer, every part of the network works on every token. In a mixture-of-experts model, some layers hold many expert blocks, and a small router picks which few experts handle each token.
This lets a model have a very large total size while only using a small part of it for any single token. The result is more capacity for roughly the compute cost of a much smaller model. The full model must still fit in memory, though, so hardware needs remain high.
Why it matters for risk teams
Most risk teams will not build an MoE model, but many of the large models they use are built this way. Knowing the design helps explain why some large models are faster or cheaper to run than their total size suggests.
The idea of routing to specialists also appears in classic fraud systems, where separate models handle different products, regions or payment types and a top layer chooses or combines their outputs.
Trade-offs
- More capacity per unit of compute than a dense model of similar speed.
- High memory needs, since all experts must be loaded.
- Training is harder; the router must spread work evenly across experts.
- Behavior can vary on inputs that route in unusual ways, so test on your own data.
Example
A hypothetical team compares two hosted models for summarizing case files. One is an MoE model with a much larger total size, yet it responds at a similar speed to the smaller dense model and scores higher on the team's test set, so they choose it for the review queue.
Related terms
- TransformerA transformer is a neural network design that uses a mechanism called attention to weigh how parts of an input relate to each other. It is the basis of most modern language models.
- Large language model (LLM)A large language model (LLM) is a neural network trained on large amounts of text to predict and generate language. It powers chat assistants, AI agents and many text tools.
- AI inferenceAI inference is the stage where a trained model is run on new input to produce an output, such as a prediction, a score or generated text, as opposed to the training stage.
- Foundation modelA foundation model is a large AI model trained on broad data that can be adapted to many tasks, such as chat, classification or summarization, without training a new model from scratch.
- Machine learning for fraud detectionMachine learning for fraud detection uses models trained on past data to estimate how likely a transaction, account or event is to be fraudulent.