Deep Dive into Mixture of Experts: From 1991 to DeepSeek-V3
Mixture of Experts (MoE) models replace a single dense network with many small experts, activated only for each token. From early 1991 research to Google’s 2017 sparse gating and recent DeepSeek‑V3, MoE has shifted the balance between compute and memory, enabling trillion‑parameter models that use…
Large‑language models (LLMs) have grown by adding more parameters, but each added weight also raises the cost of generating a single token. The Mixture of Experts (MoE) architecture tackles this by keeping a huge pool of small networks—called experts—in reserve while only a handful are used for any given token. This approach lets models like DeepSeek‑V3 hold 671 billion parameters yet activate only about 37 billion for each forward pass, dramatically reducing compute while preserving capacity.
1991: The First Mixture of Experts
The concept dates back to a 1991 paper by Jacobs, Jordan, Nowlan, and Hinton titled "Adaptive Mixtures of Local Experts." Their system trained several small networks and a gating network that learned to weight each expert’s output. Although every expert still processed every input, the work introduced the idea of a learned routing function—a gate—that would later become central to modern MoE designs.
2017: Sparse Gating Makes Compute Savings Real
Google Brain’s 2017 paper "Outrageously Large Neural Networks: The Sparsely‑Gated Mixture‑of‑Experts" shifted the paradigm by making the gate select only the top‑k experts for each token. In practice, a token would trigger just a few experts (e.g., 4 out of 4 096), and only those experts would compute. This sparse activation turned MoE into a true compute‑saving mechanism. The authors also introduced an auxiliary load‑balancing loss to prevent a few experts from monopolizing traffic, ensuring a more even distribution of work.
2020‑2021: MoE in Transformers
While the 2017 work proved sparse MoE in LSTMs, the next milestone was embedding it within Transformer feed‑forward networks. Google’s GShard (2020) used top‑2 gating and sharded experts across many devices, demonstrating distributed training at scale. Switch Transformer (2021) simplified the scheme to top‑1 gating, arguing that a single expert per token was cheaper and more stable, yet still allowed for trillion‑parameter total capacity. Both projects showed that MoE could be integrated into the Transformer backbone without sacrificing performance.
2023: Mixtral and the Specialisation Question
Mistral’s Mixtral 8x7B (2023) was one of the first open‑weight LLMs built on MoE, featuring eight experts per layer and top‑2 gating. Analysis of the trained model revealed that, unlike earlier translation‑focused MoE, experts did not specialize in clear semantic domains such as math or code. Instead, specialization appeared at a syntactic or positional level, suggesting that the nature of the task and the scale of the model influence how experts differentiate.
DeepSeek‑V3: The Current State‑of‑the‑Art
DeepSeek‑V3 pushes MoE further by combining many routed experts with a small set of shared experts that always run. Each layer contains 256 routed experts plus one shared expert; the gate selects the top 8 routed experts, so every token passes through nine experts out of 257. This design lets the shared expert absorb generic knowledge, freeing routed experts to focus on more distinctive patterns. Empirical tests show that disabling the shared expert or even a fraction of routed experts significantly degrades performance, confirming the value of this specialization.
Unlike earlier load‑balancing losses, DeepSeek‑V3 uses dynamic per‑expert bias terms added to gate scores, nudging routing toward underused experts without compromising accuracy. The model’s efficiency is striking: 671 billion total parameters but only about 37 billion active per token, meaning less than 4 % of routed experts fire for any given input. Training requires wide expert parallelism and high‑bandwidth interconnects, illustrating the infrastructure demands of such a large expert pool.
Compute vs. Memory: MoE’s Trade‑Offs
MoE shines in compute‑bound scenarios like pre‑fill, where large batches of tokens are processed and the FLOPs cost is proportional to active parameters. However, MoE struggles in memory‑bound regimes such as decoding, where tokens are generated one at a time and the bottleneck is memory bandwidth. Because every expert’s weights must reside in RAM, decoding becomes slower and more expensive. Additionally, irregular routing increases memory traffic overhead, further impacting performance.
These trade‑offs mean that MoE is most beneficial for large inference providers handling many concurrent requests, while smaller deployments or local users may find dense models more practical due to their lower memory footprint and simpler deployment.
In summary, Mixture of Experts has evolved from a theoretical idea in 1991 to a practical, compute‑efficient architecture that powers today’s most powerful LLMs. Each iteration—from sparse gating to shared experts—has refined how we balance capacity, efficiency, and specialization.
Why it matters
MoE enables LLMs to scale to unprecedented parameter counts without proportional increases in inference cost, making advanced language capabilities more accessible to large‑scale providers and researchers.
Key points
- MoE replaces a single dense network with many experts, activating only a few per token.
- Sparse gating, introduced in 2017, is the key to compute savings.
- DeepSeek‑V3 uses shared experts to capture general knowledge and routed experts for specialization.
- MoE excels in compute‑bound tasks but can be memory‑bound during decoding.
- Large providers benefit most from MoE; small deployments may prefer dense models.
- Specialization of experts depends on task, scale, and analysis methods.
Frequently asked questions
What is a Mixture of Experts model?
It is an architecture that contains many small neural networks (experts) and a gating network that selects a subset of experts for each input token, reducing compute while maintaining large capacity.
Why does MoE reduce compute cost?
Because only the selected experts perform computations for a token, the number of floating‑point operations scales with active parameters rather than the total model size.
What are the main challenges of MoE?
MoE models require all expert weights to reside in memory, making them memory‑bound during decoding, and they need sophisticated infrastructure for distributed training and inference.


.jpg?w=1120&h=630)


