Paper
MoE: Sparsely-Gated Mixture-of-Experts (2017) — Shazeer et al. arXiv: 1701.06538
Core Problem
A neural network's capability is limited by parameter count — more parameters mean more knowledge can be stored. But more parameters also mean more compute. Is there a way to have a model with massive parameters (storing lots of knowledge), while each input only activates a small fraction of them (keeping compute manageable)?
Method: Conditional Computation
MoE's core idea is conditional computation: parts of the network are activated dynamically based on the input.
Architecture:
1. Expert networks: thousands of small feedforward networks, each an "expert" learning a different subset of knowledge. 2. Gating network: a small trainable network that decides which experts to activate for each input. 3. Sparse activation: each input activates only the top-K experts (e.g., K=2); the remaining ~99.9% of parameters do no compute.
Example: a 137B-parameter model activates only ~1% of parameters per token, giving effective compute similar to a 1.3B dense model.
Key Numbers
- 137B-parameter model
- >1000x model capacity increase with minor loss in computational efficiency
- "significantly better results than state-of-the-art at lower computational cost" on language modeling and machine translation
- Author: Noam Shazeer (another follow-up by a Transformer author)
Impact
MoE was the first large-scale implementation of conditional computation in deep learning. It demonstrated that large parameters ≠ large compute — parameters can grow exponentially while compute grows only linearly. Early MoE had issues such as training instability and load imbalance, but the seed was planted, later flourishing in Switch Transformer and DeepSeekMoE.
Commentary
> MoE's real value is redefining what "model size" means. Everyone previously assumed parameter count = compute = capability. MoE says: no — parameters are "storage," compute is "access." A library with a million books where you only read 2 at a time — the library is huge, but you walk fast. This decoupling of storage from compute is the core idea behind modern large-model scaling. GPT-4, Claude, and DeepSeek-V3 are essentially MoE models. As Feynman might say: don't confuse "capacity" with "flow" — the reservoir can be huge while the tap is small.
arXiv: 1701.06538