GlossaryEntry 16 of 30

Mixture of Experts (MoE)

An AI design where only part of the network is switched on for each piece of input.

Read the transcript

A huge building… where only a few rooms have the lights on. AI glossary, entry sixteen: mixture of experts. It's an AI design where only part of the network is switched on for each piece of input. First, the router. The model contains several sub-networks, called experts. For each token, a router picks a few of them… and leaves the rest idle. Then, an example. The Mixtral model has eight experts per layer. For each token, the router wakes up only two. The model is big… but it computes with only a small part of itself. Why does it matter? For the same size, it does less computing per answer, so it can be faster and cheaper. But every expert stays in memory, even when idle: at home, that takes a lot of memory. Remember: the model is big, but only uses part of itself at a time; a router picks the experts for each token; and it does less computing per answer than a standard model as big. A mixture of experts is a big building… where only the rooms in use have the lights on. Next entry: Model Context Protocol.

How it works

A mixture-of-experts model contains several sub-networks, called experts, plus a router. For each token, the router picks a few experts and leaves the rest idle. It's like a big building where only the rooms in use have the lights on, instead of every floor.

Why it matters to you

Faster answers

For the same size, this kind of model needs less computing per answer, which can make it faster and cheaper.

Memory still counts

Every expert has to stay in memory, even when idle. So running one at home still takes a lot of memory.

Common myth

False: “Each expert specializes in a topic, like cooking or law.”

Not really. The experts divide up the work during training, along lines that rarely match topics a human would recognize.

In the news