Mixture of Experts

Authors 6 articles 60 min total read

This topic is curated by our AI council — see how it works.

Mixture of experts is the industry’s answer to a question every other design in the transformer and attention internals stack eventually confronts: how do you keep adding parameters without paying for every one of them on every token. Within that stack, MoE sits in the advanced tier alongside state-space models, tackling the same cost problem through routing rather than recurrence. By 2026 the approach stopped being an efficiency trick reserved for a handful of labs and became the default shape of frontier models themselves — DeepSeek-V4 and Grok 5 both ship as sparse expert systems rather than dense ones.

  • MoE trades per-token compute for total parameter count: hardware and cost planning should follow active parameters, not the headline model size.
  • Load balancing is not automatic — routers that collapse onto a handful of experts waste capacity and degrade quality, which is why running MoE well is an engineering discipline, not a free efficiency win.
  • Frontier labs converged on MoE by 2026 (DeepSeek-V4 at 256 experts, Grok 5 at 6 trillion parameters), so the architecture question is largely settled; who can afford to train at that scale is not.
  • Open-weight MoE models — DeepSeek-V3, Mixtral, Llama 4 — are fine-tunable and servable without a frontier-lab budget, but only with expert-aware serving rather than standard tensor parallelism.

The mixture of experts reading path: mechanism before the market

Start with how sparse gating routes inputs to specialized sub-networks — it is the mechanism every later claim about MoE assumes, from cost savings to capacity. Follow it immediately with the prerequisites and building blocks of MoE architecture, which maps the router and expert-pool vocabulary onto the feedforward layer you already know, then the hard engineering limits of MoE, because routing collapse and load-balancing failures separate a working deployment from a wasted one.

Once the mechanism and its failure modes are set, the open-weight guide for DeepSeek-V3, Mixtral, and Llama 4 turns theory into a serving and fine-tuning spec — expert parallelism, active-parameter VRAM budgeting, the details a benchmark table skips. For the market context behind that choice, how MoE became the default frontier architecture in 2026 tracks the shift from optimization trick to industry standard. Close with the concentration problem — if trillion-parameter MoE becomes the frontier’s entry fee, who gets to compete is worth sitting with before the next model launch.

MAX asks: 'If only two experts fire per token, why does this model still need enough VRAM for the full parameter count?' MONA answers: 'The router only picks a few experts per token, but every expert has to sit loaded in memory, ready to be chosen.' — comic dialog.
Sparse compute, dense memory: MoE saves FLOPs, not VRAM.

How mixture of experts differs from attention heads and state space models

Two neighbours get folded into MoE’s “multiple sub-networks” framing, and each confusion misdirects the fix.

  • MoE experts are not attention heads. Multi-head attention splits one computation into several parallel views that all run on every token — more heads means more compute every time. MoE’s experts are alternatives, not parallel views: a gate selects a handful per token and the rest stay idle, which is exactly why MoE can hold far more parameters than it spends.
  • MoE is not a state space model wearing a different name. Both answer attention’s cost problem in the advanced tier of this stack, but through different mechanisms. State space models replace attention’s per-token comparisons with a fixed-size recurrent state; MoE leaves attention exactly as it is and shrinks the feedforward cost instead by routing. A model can use one, the other, or — increasingly — both in the same stack.

Common questions about mixture of experts

Q: Which mixture of experts article should I read first if my goal is fine-tuning an existing open-weight model, not studying the architecture? A: Skip straight to the open-weight guide for DeepSeek-V3, Mixtral, and Llama 4 — it assumes you already know what routing does and gets straight to VRAM budgeting and expert-parallel serving, the parts that actually block a first fine-tune.

Q: Does a higher expert count automatically make a mixture of experts model better? A: No — expert count and total parameters trade off somewhat independently of quality. DeepSeek-V4 ships 256 experts while Grok 5 reaches 6 trillion parameters through a different balance entirely; how MoE became the default frontier architecture tracks what those configurations actually optimize for.

Q: Does mixture of experts make frontier-scale AI more accessible, or more concentrated in a few labs? A: Both, in different layers of the stack. Open-weight MoE models make strong capability runnable outside frontier labs, but training a new trillion-parameter MoE from scratch still demands a compute budget only a handful of organizations can afford.

Q: Why can a mixture of experts model that benchmarks well still show uneven latency once it is serving live traffic? A: The router, not the model’s weights, is usually the cause: under real traffic patterns it can send a disproportionate share of requests to the same few experts, overloading them while the rest sit idle — a failure mode that only surfaces under production load, never in a benchmark.

Part of the transformer and attention internals theme · closest neighbour: state space model. Coming to MoE from a software background? Start with the story: Calling a Model Means Inheriting Its Runtime Cost Contract.

1

Understand the Fundamentals

Most neural networks route every input through the same parameters. Mixture of Experts breaks this assumption by activating only a fraction of the network per input, creating a fundamentally different efficiency curve worth understanding.

2

Build with Mixture of Experts

These guides walk through running, fine-tuning, and serving open-weight expert models, covering the tooling choices and hardware trade-offs you will face at each step.

4

Risks and Considerations

Training trillion-parameter expert models demands massive compute budgets, raising questions about who gets to build them, how routing failures degrade quality, and what concentration of capability means for the broader ecosystem.