Skip to content
Technology, explained from the insideAI · Software · Digital payments
TayoTechTalk.

How AI Works

Mixture of Experts Explained: Why AI Models Route Tokens

By Temitayo Solomon Gbadebo · December 2, 2026
Highlighted routes lead from a central router to two expert blocks.

A model can have tens of billions of parameters without using all of them on every token. That sounds like a contradiction if you think of the model as one fixed sequence of calculations. In a mixture of experts, or MoE, some layers have several possible paths. Each token takes only a few of them.

The distinction matters when you read a model specification. A model’s total parameter count tells you how much it contains. Its active parameter count gives you a different piece of information: approximately how much of that model participates in processing a token.

From one feed-forward block to several

A transformer layer typically includes attention and a feed-forward block. Attention lets a token’s representation draw information from other positions. The feed-forward block then transforms the representation at each position. In a conventional dense layer, every token goes through the same feed-forward block, with the same learned weights.

A sparse MoE layer replaces that one feed-forward block with a collection of blocks called experts. Each has its own weights. A small network called the router scores the available experts using the token’s current representation and chooses a small number to run. If it chooses more than one, their outputs can be combined with weights from the router. Attention and other shared components still run; sparsity applies to the routed portion, not the entire model.

What routing looks like for one token

Imagine a layer with four experts. For one token, the router selects experts 1 and 4 and combines their results. For the next token, it might select experts 2 and 4. The following layer can make different choices again. This is a simplified example, not a trace from a real model.

Notice what the router is not doing. It is not handing your entire prompt to a separate chatbot. It is sending an internal representation to selected blocks inside one model, often repeatedly across layers. Nor does “expert” mean a person has assigned one block to finance and another to programming. A repeated token can reach different experts because the representation the router receives is shaped by the surrounding text.

The Switch Transformer paper studied routing each token to one expert at each routed layer. The authors of Mixtral of Experts describe a different choice for Mixtral 8x7B: each layer has eight feed-forward experts, and the router selects two per token.

One token enters a router, goes to experts A and C out of four options, and the selected outputs are combined.
In a top-2 layer, only the two selected experts process this token.

Total parameters versus active parameters

The Mixtral paper reports about 47 billion total parameters and 13 billion active parameters per token. The active figure includes the shared work as well as the selected experts. It does not mean the server only needs to store 13 billion weights.

Another token can select different experts, so the serving system needs access to the whole model’s weights across its hardware or storage. A system may split them over multiple accelerators, compress them or move some between memory and storage as needed. Those choices change what fits and how fast it runs. Memory also has to accommodate the runtime’s other data, such as the attention cache, so neither parameter count alone is a memory specification.

What happens if too many tokens pick the same expert?

Suppose a batch sends many tokens to expert 4 and barely any to expert 3. A serving system may have uneven work across devices. If a design puts a fixed limit on how many tokens an expert can handle at once, some of the routed tokens cannot fit. In the Switch Transformer design, overflow tokens skip that expert computation and pass onward through a connection that carries their existing representation. The text itself is not deleted. The researchers used a training objective to encourage more balanced routing. Other designs need not handle capacity the same way.

Sparse routing can therefore provide more total parameters without running every expert on every token. Whether that saves time or money depends on the workload, the hardware and the cost of moving tokens between devices. If you are choosing a model to deploy, check the full weight footprint and measure response speed, throughput and task quality on your own workload. The active count helps explain the design; the measurements tell you how it will serve your users.