the.ai

Architecture / Sparsity

verified

Mixture-of-Experts

A dense model pushes every token through every parameter it owns. A mixture-of-experts model keeps many parallel sub-networks and wakes only a couple per token, chosen by a small router. The model can hold far more knowledge than it spends compute on, because you pay for the experts you wake up, not the ones you own.

Viz primitive · router-dispatchexperts = 8 · top-k = 2 · capacity-factor = 1.25

6 tokens routed across 8 experts. Each token wakes its top 2. Expert 1 stays asleep. 1 assignment was dropped where an expert exceeded its capacity of 2.

6 tokens routed across 8 experts. Each token wakes its top 2. Expert 1 stays asleep. 1 assignment was dropped where an expert exceeded its capacity of 2.

Solid cells are each token's first-choice expert, faint cells its second. Outlined experts stay asleep for this batch. Drag top-k to watch compute rise as more experts wake.

Same primitive, engineer depth: per-expert utilisation across the batch. Experts near capacity sit beside experts that idle — the imbalance the auxiliary loss is paid to fix. Drag top-k to watch load balance and FLOPs move together.

Dashed = dropped, expert at capacity (2)

Bar = share of each expert's capacity used

2

Reviewed by opendroid · 2026-08-01

  • arXiv:1701.06538 — Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer
  • arXiv:2101.03961 — Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity