Mixture-of-experts language models

Pretrained language models · hybrid · 2021 · text · code

What it is

Transformer blocks whose feed-forward layers are replaced by routed expert banks, activating a small slice per token.

When to use it

Best quality per FLOP for training and per token for serving — the standard frontier design (Switch, Mixtral, DeepSeek, Qwen, GLM, Grok).

Caveats

All experts must be held in memory even though only a few run per token, so memory needs are high relative to compute. Routing needs balancing losses to avoid expert collapse, and uneven expert load complicates batching and serving.

Key ideas

  • Total parameters and active parameters are two different numbers
  • Load balancing and router collapse are the practical failure modes

Related architectures

Original paper

Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity (2021, arXiv)

Browse all 198 architectures

The architecture landscape, in one place.

Two things get called “ML architecture”: the classical statistical model families, and the neural network wirings. Both are here, tagged by what they are and what data they eat.

Start from your problem

Architectures

0 shortlisted