Mixture-of-Experts architecture for LLMs
Mixture-of-Experts LLM Architecture In a traditional "dense" AI model, every single part of the neural network activates for every single word or image it processes. A Mixture-of-Experts (MoE) architecture changes this by dividing the model into a collection of specialized sub-networks called "experts." 1. How Sparse Activation Works The gatekeeper system (called a router ) analyzes the incoming data. The router determines which specific experts are best suited to handle that data and directs the traffic only to them. If you ask a math question, the router sends the token to the "math expert." If you type a sentence in French, it activates the "French language expert." The remaining experts stay completely inactive ("sparse") for that token. 2. Dense vs. MoE (Sparse) Imagine a 100-billion-parameter model: Dense Model: All 100 billion parameters fire for every single word. This requires an immense amount of computing power (FLOPs...