Switch Transformer (2021, Fedus et al.)
arXiv: 2101.03961
Core Problem
Early MoE models (like Shazeer's 2017 work) had two problems:
1. Training instability: uneven expert load — some experts were overused while others sat idle. 2. High communication overhead: tokens had to be routed to experts distributed across devices.
How can MoE be both stable and efficient?
Method
Switch Transformer made three key simplifications:
1. Top-1 routing: each token is routed to only 1 expert (instead of top-K). This drastically reduces communication and computation — only one expert needs to be activated and communicated with.
2. Load-balancing loss: an auxiliary loss penalizes load imbalance. If an expert receives too many tokens, the loss gives negative feedback, encouraging the gate network to spread tokens more evenly.
3. bfloat16 training: first demonstration that large sparse models can be trained stably in low precision (bfloat16). Previously it was believed sparse models needed fp32 for numerical stability.
Key Numbers
- Built on T5-Base and T5-Large: 7x pretraining speedup
- Trillion-parameter model (1T)
- 4x speedup over T5-XXL
- Multilingual setting (mT5-Base, 101 languages): comprehensively outperforms
Impact Assessment
Switch Transformer turned MoE from a "research concept" into an "engineering-viable solution." Google's later models (PaLM, early Gemini versions) were based on the Switch Transformer architecture. It proved MoE could scale to trillion parameters while maintaining training stability.
Feynman-style Commentary
> Switch Transformer's way of thinking is "simplify to the core." The original MoE used top-2 routing — each token went to two experts. Switch asked: do you really need two? If there are enough sufficiently specialized experts, one is enough. It's like package delivery — not sending every parcel to two addresses, but delivering precisely to one address. The simplification brings greatly reduced communication and easier load balancing. Feynman would say: good design is not addition, it's subtraction. When you remove something that seemed essential and find it truly wasn't needed, you've found a more elegant solution.
arXiv: 2101.03961