AI engineering · 02 of 42

Mixture of Experts

Route each token to a few specialists

Scroll

Route each token to a few specialists

A mixture-of-experts model holds many internal sub-networks. For each token a small gating router picks a handful, their outputs are combined, and everything else stays switched off.

The point is the ratio between two numbers. Total capacity can be enormous while the compute spent on any single token stays modest, which is how a model can be very large and still affordable to run.

Two things are commonly misread. The experts are not tidy human categories — nobody assigned one to law and another to chemistry, and what each has specialized in is usually not describable. And routing happens per token, not per request, so one sentence can touch many different experts on its way through.

Architecture
MANY EXPERTS, TWO OF THEM USED one token features Router gating network Expert 1 Expert 2 Expert 3 Expert N the other experts stay idle output Total capacity is large. The cost per token is not. Experts are learned patterns, not tidy human departments.
A router lighting two experts out of many. The rest stay idle for this token.