Fundamentals 7 min read

Mixture of Experts (MoE), Explained

ai.rs Jun 26, 2026
Mixture of Experts (MoE), Explained illustration

Almost every big open model shipping in 2026 — Kimi K2.6, Qwen, gpt-oss, Qwen-AgentWorld — is a Mixture of Experts (MoE). It's the reason a model can advertise a trillion parameters yet run at the speed of a small one. Here's the idea in plain terms, the trade-off it makes, and when it actually wins.

Dense vs Mixture of Experts

In a dense model, every parameter participates in every token. A 32B dense model does 32B parameters' worth of math for each token it reads or writes — full price, every time.

In an MoE model, the big feed-forward layers are split into many expert sub-networks. A small router looks at each token and picks just a few experts to run; the rest sit idle. So the model holds a huge number of total parameters (its knowledge), but only activates a small number — the active parameters — per token (its cost).

The two numbers that matter: total vs active

Every MoE is described by two parameter counts:

Model Total params Active / token Experts
Qwen3.5-35B-A3B 35B 3B top-k routed
Kimi K2.6 1T 32B 8 of 384 (+1 shared)
Qwen-AgentWorld-397B-A17B 397B 17B top-k routed
DeepSeek V4 Flash 304B 13B top-k routed (+ shared)

Read it as: inference cost ≈ active params; answer quality ≈ total params. Kimi K2.6 costs about as much per token as a 32B model but answers with the knowledge of a 1T one. The DeepSeek row is the one we run on two 128 GB boxes: 304B of knowledge at the per-token cost of a 13B model.

Why MoE wins

Token generation is memory-bandwidth-bound — every token streams the active weights out of memory (why). Because MoE only reads its active experts per token, it gets the speed of a small model while carrying the knowledge of a giant one. That is the whole pitch, and it's why the open frontier has gone almost entirely MoE.

The catch: memory

MoE buys you speed and quality — not a smaller memory footprint. Even though only a few experts fire per token, all of them must sit in VRAM, because the router might pick any of them for the next token. So a 1T-parameter MoE needs ~1T parameters' worth of memory (hundreds of GB even at 4-bit) while doing only 32B of work. (How much VRAM, and on what hardware.)

This is the defining trade-off: MoE trades memory capacity for inference speed. With the VRAM, you get frontier quality cheaply. Without it, a dense model that fits beats a MoE you can't load.

A few details

  • Shared expert — many MoEs (Kimi included) keep one expert that always runs, to capture common patterns, on top of the routed ones.
  • Top-k routing — the router scores all experts and picks the top k (e.g. 8 of 384). It's learned, not random.
  • Load balancing — training adds a loss term so the router spreads work across experts instead of overusing a few.
  • Capacity factor and token dropping — in the classic design each expert has a fixed buffer per batch, its capacity, set by a capacity factor above the even share. Tokens routed to a full expert are dropped: they skip the layer and pass through on the residual connection unchanged. A higher capacity factor wastes compute on padding; a lower one drops more tokens. The load-balancing loss reduces the problem and does not remove it, which is the opening the next idea goes after.

Mixture of Experts vs Mixture of Tokens

A name that turns up next to MoE in searches is Mixture of Tokens (MoT), from Antoniak and colleagues at IDEAS NCBR and the University of Warsaw (first version October 2023, revised September 2024). It is worth knowing what it is, mostly so you know what it is not.

The idea. MoE's router makes a hard choice: this token goes to these k experts and no others, a discrete top-k operation that is discontinuous in the model's parameters and the source of the load-balancing and token-dropping machinery above. MoT removes the choice. It groups tokens from different examples that sit at the same position in their sequences, and gives every expert a weighted mix of the whole group as its input: a softmax over a linear layer produces one weight per token per expert, each expert processes the weighted sum, and each token's update is the weighted combination of the expert outputs. Nothing is routed, nothing is dropped, every token takes part in every mixture, and there is no balancing loss because there is nothing to balance.

The result. On C4 with GPT-2-sized decoders of 77M and 162M parameters, the paper's best MoT reaches the dense baseline's final loss with a third of the compute, a 3× training speed-up, and matches the MoE baselines it is compared with. It is a training-efficiency result at small scale.

The catch, and why nothing you download is MoT. Mixing across examples needs examples to mix. The paper says so directly: MoT does not support unbatched inference. A single user generating one token at a time has a group of one, and the layer collapses to an ordinary feed-forward block. The authors' answer is transition tuning, which converts a trained MoT into an ordinary token-choice MoE with a further 10% of the training steps, so the thing you would run is, again, a Mixture of Experts. Every model in the table at the top of this page is MoE. MoT is a research direction for making the training of such models cheaper, not an architecture you will see in a model card in 2026.

Row Mixture of Experts Mixture of Tokens
routing discrete top-k per token continuous, weighted mix of a group
load-balancing loss needed none
token dropping yes, above capacity none
single-user inference yes no; needs a batch, or conversion to MoE
in shipping open models all of them none

When to choose MoE vs dense

Your situation Better choice
Plenty of VRAM, want best quality-per-speed MoE
VRAM-constrained (single consumer GPU) a dense model that fits
Serving many users at once MoE (high throughput per FLOP)
Simplicity / small single-GPU deploy dense

Bottom line

  • MoE = many experts, a few fire per token. Total params = knowledge; active params = cost.
  • It delivers a giant model's quality at a small model's speed — why open frontier models are nearly all MoE now.
  • The price is memory: all experts live in VRAM regardless. MoE doesn't shrink the model; it shrinks the work.

Frequently Asked Questions

What is the difference between Mixture of Experts and Mixture of Tokens? +

Mixture of Experts routes each token to a few experts with a hard top-k choice, which needs a load-balancing loss and drops tokens that overflow an expert's capacity. Mixture of Tokens, a 2023 proposal from IDEAS NCBR and the University of Warsaw, replaces the choice with a weighted mix: tokens from different examples at the same position are blended into one input per expert, and each token gets back a weighted combination of the expert outputs, so nothing is routed or dropped. It trains about 3× faster than a dense model at small scale but cannot serve one user at a time without being converted back into an MoE, so every open model you can run is MoE.

What is the difference between total and active parameters? +

Total parameters are everything the model stores, which sets its knowledge and its memory footprint. Active parameters are the ones that fire for a given token, which sets the cost per token. A dense model has the two equal; an MoE keeps them apart, for example DeepSeek V4 Flash at 304B total and 13B active, or Kimi K2.6 at 1T total and 32B active. Speed follows active, VRAM follows total.

Does a Mixture of Experts model need less VRAM? +

No. Every expert has to sit in memory because the router may pick any of them for the next token, so a 304B MoE needs 304B parameters' worth of memory even though it only reads 13B per token. MoE shrinks the work, not the model. If a dense model fits your GPU and the MoE does not, the dense model wins by default.

What is the capacity factor in a Mixture of Experts? +

The multiplier on each expert's per-batch buffer. With N tokens and E experts the even share is N/E; a capacity factor of 1.25 lets each expert take 25% more than that before it is full. Tokens routed to a full expert are dropped from the layer and pass through on the residual path unchanged. A higher factor wastes compute on empty slots, a lower one drops more tokens; the load-balancing loss keeps the router from overfilling a few experts, which is what makes a low factor workable.

Ready to put this into practice?

Understanding the fundamentals is one thing — building something for your business is another. See where you stand.

Take the AI Readiness Check
Share: Post Share

Read next