Mixture of experts

Mixture of experts (MoE) is a model design where a router sends each token to a few specialist sub-networks, so a huge model runs at a fraction of its size.

Mixture of experts (MoE) is a way to build an AI model from many smaller sub-networks, called experts. For each token, a router picks a few experts to do the work. The rest stay idle.

This lets a model hold a huge number of parameters but use only a small share of them per token. You get much of the quality of a big model at the speed and cost of a smaller one.

How mixture of experts works

A token enters a router, which activates expert 2 and expert 6 out of eight experts. Their outputs combine into the result.
The router picks two of eight experts for this token. The other six don't run.
  1. A token arrives. A token is a word or part of a word.
  2. The router scores the experts. It is a small network trained to pick the best experts for each token.
  3. Only the top experts run. Their outputs are weighted and combined.
  4. The next token may use different experts. Routing happens again for every token and every MoE layer.

The experts don’t map neatly to subjects like “math” or “French”. They specialize in patterns the model finds useful during training.

Real examples

Model Total parameters Active per token Source
Mixtral 8x7B 46.7B 12.9B Mistral AI
DeepSeek-V3 671B 37B DeepSeek-V3 report

Mixtral uses 2 of its 8 experts per token, as described in its paper. DeepSeek-V3 runs about 5.5% of its parameters for each token.

Why it matters to you

  • Lower cost, less compute per token means cheaper answers. That is part of why some MoE models cost so little to use.
  • Faster replies, fewer active parameters means quicker generation.
  • Big memory needs, all experts must still be loaded. A 671B MoE model needs far more memory than a 37B dense model, which makes it hard to run as a local LLM.

You can try DeepSeek models in Sparkian and compare them with dense models like Claude Haiku in the same chat.

Chandan Kumar

Chandan Kumar

Founder, Sparkian and Geekflare

Chandan Kumar is a founder of Sparkian & Geekflare. He is a technology enthusiast and entrepreneur who loves to help businesses and people around the world.

Ready to spark your next idea?

Your next question, first draft, or big idea. Start here.