BitBootcampBitBootcamp ← all explainers 🔄 Review ⚙ Settings

PAPERS-08-008 · Paper — Mixture of Experts (Switch Transformer)

The paper

The paper titled Switch Transformers introduces a landmark approach to scaling models, highlighting how sparse mixture-of-experts can dramatically increase size while keeping compute steady. The authors, year, and venue are not specified in the provided facts, but the work is recognized as a turning point in efficient large‑model design.

Before this paper

Before this work, making a dense model more capable required adding more parameters, which also meant proportionally more computation for each token. This growth made training and serving such models increasingly expensive. Researchers faced a wall where scaling up quickly became impractical due to the heavy compute cost per token. The community needed a way to grow model capacity without a matching rise in per‑token work.

The key idea

The key insight is to replace the dense feed‑forward layer with many expert sub‑networks and a router that sends each token to only one (or a few) experts. By activating just a single expert per token, most parameters stay idle, so the model can have huge capacity while the compute per token stays roughly constant. This simple routing makes scaling both stable and efficient.

How it works

When a token enters the layer, a lightweight router examines the token and scores all available experts. It then selects the top expert (the Switch Transformer simplifies this by routing to just one expert for stability). The chosen expert processes the token while all other experts remain idle. A load‑balancing loss term is added to the training objective to encourage even usage of all experts. After the expert computation, the token’s representation is passed onward in the network. This process repeats for each token, allowing the overall model to contain trillions of parameters but only a small, constant amount of work per token.

See it — route each token to one expert

flowchart LR
  A["Token"] --> R["Router"]
  R --> E1["Expert 1"]
  R --> E2["Expert 2 (chosen)"]
  R --> E3["Expert N"]
  E2 --> O["Output"]

What they showed

The authors demonstrated that the Switch Transformer could scale to over a trillion parameters while keeping compute per token constant. It trained faster than dense models of comparable quality, proving that massive parameter counts do not have to come with proportional compute costs.

What it changed

This paper turned sparse mixture‑of‑experts into a central strategy for efficiently scaling large language models. By showing that billions of extra parameters can be added without extra per‑token cost, it opened a new path for building ever larger models. The approach has since become a key building block in many frontier language systems, influencing how researchers think about model capacity and efficiency. Next: the frontier — efficient inference at scale.

The one-line takeaway

Sparse routing lets models grow to trillions of parameters without increasing per‑token compute.

Read it / meet it

Reading the Switch Transformer paper reveals the elegant simplicity behind its routing mechanism and its impressive scaling results. Its legacy lives on in several frontier language models that now incorporate mixture‑of‑experts layers, making it a must‑read for anyone interested in the future of efficient large‑scale AI.