AI

Mixture of Experts (MoE) Explained Simply

Mixture of experts (MoE) lets huge AI models run fast by using only a few small expert networks per word. Learn how it works, its trade-offs and why it matters.

By OmniAI Editorial · Nov 19, 2026 · 8 min read

Mixture of experts is the design trick behind many of today's largest AI models. Instead of one giant network that does all the work for every word, a mixture of experts (MoE) model contains many smaller networks called experts, plus a small router that picks just a few of them for each word. The model can hold an enormous amount of knowledge, but only a small part of it does any work at a time. That makes it much faster and cheaper to run than a traditional model of the same size.

DeepSeek, Qwen, Mistral's Mixtral and many other popular models use this design. This guide explains how it works in plain language, what "active parameters" means on a model card, and what the trade-offs are, especially if you want to run these models yourself.

What Is Mixture of Experts?

Think of a large hospital. When a patient walks in, they don't see every doctor. A triage nurse looks at the problem and sends them to two or three specialists. The hospital has hundreds of doctors' worth of knowledge, but each patient only uses a few of them.

A mixture of experts model works the same way. The "patients" are tokens, the small chunks of text a model reads and writes. The "triage nurse" is the router. The "specialists" are the experts, small neural networks inside each layer of the model.

For every token, the router scores all the experts in that layer and sends the token to the best few, often 2 to 8 of them. Their outputs are combined, and the token moves on to the next layer, where the process repeats with a different set of experts.

A small grey router box at the top with arrows going down to a row of eight grey boxes, where only two boxes receive arrows and one of those two is orange.
For each token, a router picks a few experts and the rest of the model stays idle.

What the experts actually learn

The name suggests one expert for math, one for French and one for code. In practice it's less tidy. Researchers who looked inside MoE models found that experts tend to specialize in patterns of text, such as certain kinds of words, punctuation or syntax, rather than in human-readable subjects. The router learns what works during training, and the division of labor that emerges isn't designed by anyone.

Total vs Active Parameters

Every MoE model card shows two numbers, and the difference between them is the whole point.

  • Total parameters: every weight in the model, including all the experts. This sets how much memory you need to hold the model.
  • Active parameters: the weights actually used for each token, meaning the shared parts plus the few experts the router picks. This sets how much computing work each token needs, and so how fast the model runs.

Some well-known examples, using the numbers from their model cards:

ModelTotal parametersActive per token
Mixtral 8x7Babout 47Babout 13B
DeepSeek-V3about 671Babout 37B
Qwen3-30B-A3Babout 30Babout 3B
gpt-oss-120babout 117Babout 5B

Some model names even include both numbers: the "A3B" in Qwen3-30B-A3B means about 3 billion active parameters. So a model card line like "671B total, 37B active" tells you the model has the knowledge capacity of a 671B model but runs, per token, roughly like a 37B one.

Dense vs MoE Models

A traditional model is called dense: every parameter is used for every token. An MoE model is a sparse model: only a fraction of parameters work on each token.

The dense vs MoE trade-off looks like this:

Dense modelMoE model
Parameters used per tokenAll of themA small fraction
Speed for its sizeSlowerMuch faster
Memory neededMatches its sizeStill matches its full size
Training cost for a given qualityHigherLower
Running on small hardwareEasier for small modelsHarder: needs lots of memory
Engineering complexitySimplerMore complex to train and serve
On the left a solid grey block where every cell is filled; on the right a grid of grey cells where only a few cells are filled and one is orange.
A dense model uses every weight for every token; a sparse MoE model uses only a few experts at a time.

Why MoE models are cheaper to train and run

Training a model costs roughly in proportion to the work done per token. An MoE model with 37B active parameters does about the work of a 37B dense model per token, but it can learn far more because it has hundreds of billions of parameters to store patterns in. For the same training budget, an MoE model usually ends up smarter than a dense one. That's a big reason almost every frontier lab now uses some form of the idea.

The Catch: Memory

MoE saves compute, not memory. All the experts have to sit in memory, because the router might pick any of them for the next token. A model with 120B total parameters needs memory for 120B parameters, even if only 5B are used at a time.

That changes which hardware suits MoE models:

  • Graphics cards have very fast memory but limited capacity. Big MoE models often don't fit on a single consumer card.
  • Unified memory machines, such as Macs with lots of memory, Nvidia's DGX Spark or AMD Ryzen AI Max mini PCs, have plenty of capacity but slower memory. MoE models fit them well, because each token only needs to read the active part of the weights.

That last point matters for speed. Text generation is mostly limited by how fast weights can be read from memory, as our guide to LLM memory bandwidth explains. Reading 5B active parameters per token is far quicker than reading 120B, which is why large MoE models can run surprisingly fast on machines with modest bandwidth.

Quantization helps too. Storing the weights at 4 bits shrinks the memory bill by about three quarters. Our guide to LLM quantization covers how that works.

A large grey box full of small grey squares standing for memory, with a thin pipe leading from just two squares, one orange, to a chip on the right.
Every expert must sit in memory, but only the chosen few are read for each token.

How the Router Learns

The router is a small layer trained together with the rest of the model. It outputs a score for each expert, and the top few scores win. Training an MoE model well takes a few extra tricks:

  • Load balancing. Left alone, a router may send most tokens to a few favorite experts while the rest learn nothing. Training adds pressure to spread tokens fairly evenly.
  • Shared experts. Many recent models add one or more experts that every token always uses, which handle common knowledge, while the routed experts specialize.
  • Fine-grained experts. Newer designs use many small experts, sometimes hundreds per layer, and pick several, rather than a handful of big ones. More combinations give the model more flexibility.

Where You'll Meet Mixture of Experts

You probably already use MoE models. Several of the strongest open-weight models are MoE, including DeepSeek and the larger Qwen models. Our comparison of DeepSeek vs Qwen looks at two families that use the design heavily. Many closed models from big AI labs are widely believed to use it too, though their makers don't always confirm the details.

For people running models at home, MoE has changed what's possible. A machine with 64 to 128 GB of memory can run MoE models that would be far too slow as dense models of the same size.

Mixture of Experts: Pros and Cons

Pros:

  • Much faster than a dense model with the same total size.
  • More knowledge for the same training and running cost.
  • Runs well on high-memory machines with moderate bandwidth.

Cons:

  • Needs memory for all experts, not just the active ones.
  • Harder to fine-tune and serve, with more ways for training to go wrong.
  • Speed varies more between tokens, and spreading experts across several GPUs adds communication overhead in data centers.

FAQ

What is mixture of experts in simple terms?

It is a way of building an AI model from many smaller expert networks, with a router that sends each word to only a few of them. The model holds lots of knowledge but only uses a small part of it at a time, which makes it fast for its size.

What are active parameters in an MoE model?

Active parameters are the weights a model actually uses to process each token: the shared layers plus the few experts the router selects. They decide how much compute each token needs. Total parameters, which include every expert, decide how much memory the model needs.

Is an MoE model better than a dense model?

For large models, usually yes in terms of quality per unit of compute. A dense model is simpler and needs less memory for the same speed, which can make it the better choice on small hardware such as a single graphics card.

Do MoE models need more VRAM?

They need memory for all their parameters, so an MoE model needs as much memory as a dense model of the same total size. It runs faster than that dense model, because only the active experts are read for each token.

Which AI models use mixture of experts?

Well-known open examples include Mixtral, DeepSeek-V3 and its successors, larger Qwen models and OpenAI's gpt-oss models. Many other recent large models use the design as well.

All articles

Read next

Language

EnglishEnglish · en TürkçeTurkish · tr DeutschGerman · de العربيةArabic · ar

Account

Enter your email. We’ll send you a sign-in link and a 6-digit code. No password needed.

Sign in

Theme

Language

Show our email address

To keep spam out of our inbox, please confirm your own email first. We will send you a 6-digit code.

We send codes only to these providers: gmail.com, googlemail.com, outlook.com, hotmail.com, live.com, msn.com, proton.me, protonmail.com, pm.me, icloud.com, me.com, mac.com, yahoo.com, aol.com, gmx.de, gmx.net, web.de, t-online.de, yandex.com, omniai.blog