Mixture of Experts (MoE)
MoE (Mixture of Experts) is the mainstream architecture for scaling the parameter count of today's large models. DeepSeek-V3, Mixtral, and GPT-4 are all widely believed to adopt MoE structures.
The Problem to Solve
Traditional dense models face an awkward trade-off: more parameters mean better results, but every generated token requires computing all parameters, so cost rises linearly. A 70B model must use all 70 billion parameters for a single run.
How MoE Solves It
The model is split into multiple "expert" subnetworks plus a router. For each token, the router selects only the few most relevant experts (usually 2) to compute with, and the remaining experts are not activated.
For example, DeepSeek-V3 has 671B total parameters but activates only 37B per token. A large parameter count does not mean a large compute cost, and that is the magic of MoE.
Core Advantages
- High compute efficiency: large total capacity but little computation per pass
- Strong scalability: to grow the model, add experts without retraining everything
- Specialized division of labor: different experts naturally learn different domain abilities (math, code, language)
Core Challenges
Load imbalance is the biggest pitfall. The router may favor a few experts, overloading them while the others sit idle. A "load balancing loss" has to be introduced to enforce even distribution.
MoE also has high GPU memory requirements: although only one expert is used for computation, the parameters of all experts must be loaded into memory.
Why It Only Took Off Now
The idea of MoE has existed for a long time, but it only became truly feasible with large-scale distributed training and enough GPU memory. In 2024, DeepSeek used MoE to push training costs extremely low, bringing the architecture fully into the mainstream.