What is a mixture-of-experts (MoE) model? And why every new LLM uses one | AI Terms Guide
AI Explainers

What is a mixture-of-experts (MoE) model? And why every new LLM uses one

DeepSeek V3, GPT-5, Mixtral, Llama 4 — the newest generation of large language models almost all share one architectural trick: mixture-of-experts. It's the reason today's models can be larger yet cheaper to run than their predecessors. Here's how it works.

AR
Ahmed R. October 25, 2026 · 9 min read

If you've looked at model announcements in the past year, you've seen numbers that don't quite add up. DeepSeek V3 is described as a 671-billion-parameter model, but it only "uses" 37 billion parameters per token. Llama 4 is "400 billion parameters" but somehow runs in similar hardware budgets to 70B models from a year ago. Mixtral 8x22B has 141B total parameters but behaves like a 39B model at inference time. These numbers aren't typos. They're the signature of mixture-of-experts architecture — the design choice behind nearly every new frontier LLM in 2026.

This post explains what mixture-of-experts (MoE) actually is, why it works, why every major lab adopted it in the past two years, and what the trade-offs are. By the end, "671B parameters but only 37B active" will make complete sense.

The problem MoE solves

Making LLMs bigger makes them better. The scaling laws research of 2020–2022 established this clearly: more parameters, more training data, and more compute reliably produces more capable models. For a few years, the industry simply built bigger dense models — GPT-3 at 175B, Megatron at 530B, PaLM at 540B.

But there's a problem. In a traditional "dense" transformer, every single parameter is used for every single token the model processes. A 540B dense model needs 540B parameters worth of compute per token generated. That's expensive at training time, and brutally expensive at inference time when millions of users are generating billions of tokens.

The question that drove MoE: can we have the knowledge of a huge model without the per-token cost of a huge model? Can we build a 500B-parameter model that only uses 50B parameters per token?

Mixture-of-experts is the "yes."

The core idea: specialized experts

Instead of one giant neural network where every parameter processes every token, a mixture-of-experts model splits the parameters into many smaller "experts" — specialized sub-networks. For each token, a routing mechanism picks a small number of these experts to actually use. The rest sit idle for that particular token.

A simple analogy. Imagine a hospital where every patient has to be examined by every doctor, regardless of what's wrong. That's a dense model — maximum thoroughness, maximum cost. Now imagine a hospital with specialists: a cardiologist, a dermatologist, a neurologist, dozens of others. Each patient gets routed to the relevant specialists based on their symptoms. Most doctors don't see most patients. The hospital collectively knows a vast amount, but any individual patient only needs a small subset of that knowledge.

MoE models work similarly. The "experts" are specialized sub-networks that collectively know a huge amount. The router decides which experts to engage for each token. The result: a model with huge total capacity but modest per-token compute.

How the routing works

Each layer of an MoE transformer has multiple experts (often 8, 16, 64, or more) and a small "router" network. For each token flowing through that layer:

  1. The router looks at the token's current representation.
  2. The router computes a score for each expert, representing how relevant each expert is for this specific token.
  3. The top-K experts (usually top-2 or top-8) are selected based on these scores.
  4. The token is processed by only those selected experts, in parallel.
  5. Their outputs are combined, weighted by the router's scores, to produce the layer's output for this token.

The experts not selected don't do anything for this token. Their parameters are present in memory but not used in computation.

Different tokens activate different experts. For a math problem, one set of experts might fire. For a creative writing task, a different set. For code generation, another set. The model learns which experts specialize in what during training, and the router learns to send tokens to appropriate specialists.

Why this is cheaper

Consider two models with the same quality:

Dense model: 70B parameters, all used per token. Cost per token: proportional to 70B parameters.

MoE model: 400B total parameters across 32 experts, with 2 experts activated per token (about 25B parameters per expert in the FFN layers). Cost per token: proportional to about 50B active parameters.

The MoE model has 5.7× more total knowledge but only uses roughly 70% of the compute per token. In practice, the MoE model achieves equal or better quality than the dense model while being cheaper to run per token.

Note the asymmetry. MoE helps with inference cost (per-token compute) more than with memory cost. The full 400B parameters still have to live in GPU memory somewhere — you don't save on hardware required to host the model. But you save dramatically on the compute each query consumes, which translates directly to lower per-request cost at scale.

For a lab serving millions of API requests per hour, "same quality, lower per-request compute" is a huge economic win. That's why labs adopted MoE as fast as they did once the technique matured.

The parameter numbers people cite

When you see an MoE model described, note the distinction between total parameters (all experts combined — governs memory and total knowledge) and active parameters (what's used per token — governs compute cost and often correlates with quality). DeepSeek V3's 671B total / 37B active is the pattern to watch for.

The models using MoE in 2026

Not every major LLM is MoE, but the list of ones that are has grown fast:

DeepSeek V3 (and R1). 671B total parameters, 37B active per token. One of the most prominent MoE models and widely cited as evidence that MoE can match dense-model quality at much lower per-token cost.

Mixtral family (Mistral). Mixtral 8x7B (46B total, 13B active) and Mixtral 8x22B (141B total, 39B active). Among the earliest widely-available open-weights MoE models.

Llama 4. Meta's Llama 4 lineup includes MoE variants with substantially more total than active parameters.

Qwen family (Alibaba). Later Qwen releases include MoE variants.

GPT-5 (OpenAI, inferred). OpenAI doesn't publicly disclose architecture details, but external analysis and benchmarks strongly suggest MoE.

Gemini (Google, likely). Google has published research on MoE scaling. Internal architecture details aren't public, but MoE is consistent with Gemini's parameter-count signals.

Claude (Anthropic, publicly undisclosed). Anthropic doesn't publicly reveal architecture details for its production models.

The pattern: within two years, MoE went from "research technique" to "standard architectural choice for frontier LLMs." Any new major LLM today without MoE is the exception.

Where MoE came from

MoE isn't new. The core idea goes back to the early 1990s — "mixture of experts" was proposed as a neural network technique in 1991. For most of the following three decades, it was a research curiosity. The modern wave started with Google's "Sparsely-Gated Mixture-of-Experts" paper in 2017 and the Switch Transformer in 2021, which showed MoE could scale with transformers.

The real inflection point was 2023–2024, when Mistral released Mixtral as an open-weights MoE model and showed strong real-world results. DeepSeek's V2 and V3 releases pushed the pattern further, demonstrating that aggressive MoE (hundreds of experts, high sparsity) could produce state-of-the-art quality at remarkably low per-token cost.

Once these results were public, the economic case was undeniable. If you can get frontier quality at a fraction of the inference cost, you build MoE. By 2026, nearly everyone had.

The trade-offs of MoE

MoE isn't free magic. It has real costs:

Harder to train. MoE models are notoriously finicky to train well. The router has to learn to send tokens to appropriate experts; experts have to specialize usefully; load balancing (making sure no expert is overloaded or starved) is non-trivial. Training recipes for strong MoE models took years to develop.

More memory for the same inference cost. Even though per-token compute is low, all parameters have to be in memory somewhere. A 400B MoE model needs 400B parameters' worth of memory, same as a dense 400B model. For running on constrained hardware (consumer GPUs, edge devices), MoE isn't as helpful as pure parameter count might suggest.

Harder to parallelize across GPUs. Dense models have simple parallelism patterns — split layers across GPUs, feed in tokens, done. MoE adds routing complexity; the right expert may be on a different GPU than the token being processed, requiring communication overhead that dense models don't have.

Load imbalance issues. If the router over-uses some experts and under-uses others, the model wastes capacity on the under-used experts and bottlenecks on the over-used ones. Techniques like auxiliary load-balancing losses help, but it's an ongoing engineering concern.

Harder to fine-tune. Fine-tuning MoE models is less well-understood than fine-tuning dense models. The specialization patterns in experts can shift in unexpected ways during fine-tuning. Best practices are still emerging.

None of these are deal-breakers at the frontier — the big labs have engineered through them. For smaller teams building on top of MoE models, the training and fine-tuning challenges are real.

MoE vs other scaling strategies

MoE is one of several techniques for making models bigger-and-cheaper. Rough comparison:

Dense scaling: Just make the model bigger. Simple, works, expensive at inference.

Mixture-of-experts: Keep more total capacity, use less per token via routing. Big inference-cost wins, training complexity cost.

Model distillation: Train a smaller model to mimic a bigger one. Small inference cost, but caps quality at "what fits in the smaller size."

Mixture-of-depths: Variable compute per token (hard tokens get more layers, easy tokens get fewer). Still emerging; promising but less proven than MoE.

Speculative decoding: Use a small model to draft, big model to verify. Reduces latency, not just cost. Complementary to MoE.

Many frontier models combine several techniques. MoE for sparse per-token compute; distillation to produce smaller variants; speculative decoding at serve time; aggressive quantization for memory. The frontier is a stack of techniques, not any single trick.

What this means for users of AI

If you're using LLMs rather than building them, MoE affects you mostly through the "huge capability for less cost" angle:

Prices keep falling for comparable quality. Partly because of hardware improvements, partly because of training efficiency, partly because MoE lets labs serve more capable models at lower cost. The $75-per-million-tokens pricing of 2023 looks expensive by 2026 standards; frontier capability costs much less per token now.

Capability-to-price ratios keep improving. The "best model you can afford" keeps getting more capable. Teams that re-evaluate their model choices every six months tend to find they can use better models for the same budget.

Open-weights MoE models are catching up. DeepSeek V3 and Llama 4 MoE variants mean you can run frontier-quality models yourself if you have the hardware for the memory footprint. The memory footprint is still large (hundreds of GB), but the pattern — serious open models with MoE — is likely to accelerate.

The "model you talk to" may not be a single model. At inference time, your query may activate different experts than someone else's query to the same model. Behavior is consistent in aggregate but not identical across all paths through the model. For most purposes this doesn't matter; it's worth knowing exists.

Mixture-of-experts lets labs keep making models bigger without making them proportionally more expensive to run. The "huge model, modest per-token cost" trick is why frontier AI keeps getting cheaper per unit of capability.

Where MoE is heading

A few trends worth watching:

Sparser models. Research is pushing toward higher sparsity — bigger total capacity with even smaller fractions active per token. If current MoE models use ~5-10% of parameters per token, future ones may use ~1-2%.

Better fine-tuning for MoE. The ecosystem is figuring out how to fine-tune MoE models without disrupting learned expert specialization. Expect more tooling here.

MoE in smaller models. MoE was initially the domain of frontier models. It's starting to appear in smaller MoE architectures (Mixtral 8x7B is on the "small" end). Expect this to continue.

Multimodal MoE. Current MoE is mostly text. Research is extending it to multimodal models where different experts specialize in text, images, audio, or specific domains.

The architectural details will keep evolving. But the core insight — using total capacity selectively rather than exhaustively — is now part of the AI engineering vocabulary and isn't going away.

The takeaway

Mixture-of-experts is the architectural pattern that lets modern LLMs be enormous in total size but modest in per-token compute cost. By splitting the model into specialized experts and routing each token to just a few of them, MoE achieves frontier capability at a fraction of the inference cost that an equivalent-quality dense model would require.

It's the reason you've been seeing "total vs active parameter" splits in model announcements, why serving costs keep falling even as model capability keeps rising, and why nearly every new frontier LLM in 2026 shares this same architectural trick. If you understand transformers at all, understanding MoE as a layer on top is a small step — and it's the step that distinguishes 2026-generation models from the dense models of 2022–2024.

Expect this pattern to persist. Any architecture that cuts inference costs by 3-5x while matching quality is going to stay in use. MoE is now a core part of how modern AI is built.

AR

Written by

Ahmed R.

Ahmed writes about AI architecture, model capabilities, and the systems being built on top of modern LLMs.