When we judge how capable a model is, the first number we look at is its parameter count. Scaling laws back that instinct up: a model's loss falls predictably as you scale up model size, training data and compute together. The catch is that a bigger model also costs more compute, in training and in inference. Mixture of Experts, or MoE, breaks that link. It lets a model's parameter count grow tens of times over while the compute spent on each token barely moves. The Switch Transformers paper puts it this way: "a sparsely-activated model -- with outrageous numbers of parameters -- but a constant computational cost." Today almost every flagship open model, DeepSeek, Qwen and Kimi among them, is built on it. This post walks through how it works, one step at a time.
Dense models: every parameter in the FFN does work for every token
I've covered the Transformer decoder in earlier posts, so here's a quick recap. A decoder layer has two main blocks.…