Apex › Storage & databases

Mixture of Experts (MoE)

How a model has hundreds of billions of parameters but spends only a fraction per token. An MoE layer replaces one feed-forward net with N expert nets plus a router; for each token only the top-k experts run, weighted by a softmax gate — so capacity is decoupled from compute. Pick a token and top-k and watch which experts activate and how sparse it is (2 of 8 → 25% of the params). Then a batch view shows a balanced router spreading load vs a skewed one hogging a few experts, which is why MoE training adds a load-balancing loss. Behind Mixtral, DeepSeek, and GPT-4-class models.

More in Storage & databases