How Mixture of Experts Routing Networks Decouple LLM Parameter Count From Compute Cost
By activating only a specialized fraction of their neural network for each word, Mixture of Experts architectures allow language models to scale to hundreds of billions of parameters without requiring proportional increases in processing power.
By Harper Lane
Share this story
In short
- Mixture of Experts (MoE) architectures divide neural network layers into specialized sub-networks.
- A router evaluates each token and sends it only to the most relevant experts.
- This allows models to store massive amounts of knowledge while keeping active computational costs low.
On May 7, 2024, the research team at DeepSeek published a technical report detailing a 236-billion parameter language model that required only a fraction of the expected computing power to run. The model, DeepSeek-V2, achieved this by activating just 21 billion parameters for any given token, leaving over 90 percent of its neural network dormant during each calculation.[1]
This release cemented a structural shift in how frontier artificial intelligence is built. Instead of forcing every piece of data through every artificial neuron—a method known as dense modeling—developers are increasingly relying on a routing mechanism called Mixture of Experts (MoE).[5]
The fundamental constraint of dense models lies in their mathematical rigidity. In a dense architecture, generating a single word requires a matrix multiplication operation involving every single parameter in the model.[5]
As models grow to improve their reasoning capabilities, this dense compute requirement scales linearly. A 400-billion parameter dense model requires roughly ten times the memory bandwidth and processing power per token as a 40-billion parameter model, creating a hard ceiling on how large models can grow before they become too expensive to operate.[5]
Mixture of Experts bypasses this bottleneck by decoupling the model's total knowledge capacity from its active computational cost. It achieves this by replacing the standard, monolithic layers of the neural network with specialized sub-networks.[5]
The mechanism relies on two distinct components: the "experts" and the "router." Inside an MoE layer, the standard feed-forward neural network is divided into multiple independent partitions.[5]
"Mixtral is a sparse mixture-of-experts network," researchers from Mistral AI noted in their January 2024 paper detailing the Mixtral 8x7B model. "It is a decoder-only model where the feedforward block picks from a set of 8 distinct groups of parameters."[2]
The router acts as a high-speed traffic controller. When a token—a mathematical representation of a word or concept—arrives at an MoE layer, the router evaluates it and calculates a probability distribution across all available experts.[5]
It then selects only the top one or two experts best suited to process that specific token, ignoring the rest. The token is processed by those specific experts, and their outputs are combined and passed to the next layer.[5]
For example, if the input token relates to Python code, the router might send it to Expert 3 and Expert 7. If the next token relates to French grammar, it might be routed to Expert 1 and Expert 5.[5]
Because only a subset of experts is activated, the computational cost remains low. Mixtral 8x7B contains 47 billion total parameters, but because it only routes tokens to two of its eight experts at any time, it runs at the speed and active cost of a 13-billion parameter model.[2]
This sparsity is what allows models to scale efficiently. The total parameter count—which dictates how much knowledge the model can store—can be expanded massively, while the active parameter count—which dictates the inference speed—remains constrained.[5]
The foundational research for routing data to specialized sub-networks dates back to 1991, but its application to modern Large Language Models was popularized by Google's Switch Transformer paper, published on January 11, 2021.[3]
"In this work we propose the Switch Transformer, an architecture that decouples compute from parameters," the Google researchers wrote, demonstrating that a trillion-parameter model could be trained efficiently by routing tokens to just one of 2,048 experts.[3]
However, implementing MoE introduces significant engineering challenges, primarily around memory management. While the active compute is low, the entire model must still reside in the GPU's Random Access Memory (VRAM).[5]
A 236-billion parameter model like DeepSeek-V2 still requires hundreds of gigabytes of VRAM just to hold the dormant experts, meaning it cannot run on a single consumer-grade graphics card despite its low active compute requirements.[1]
Furthermore, routers can develop a "representation collapse" during training. This occurs when the router learns to send all tokens to the same few experts, leaving the rest of the network untrained and useless.[5]
To prevent this bottleneck, engineers introduce an auxiliary load-balancing loss during the training phase. This mathematical penalty forces the router to distribute tokens relatively evenly across all available experts, ensuring the entire network learns.[2]
The exact specialization of these experts is rarely human-readable. An expert does not explicitly become the "math expert" or the "history expert" in a way a human programmer would design.[5]
Instead, they specialize in abstract, high-dimensional vector patterns. One expert might activate for punctuation and conjunctions, while another activates for specific syntactic structures across multiple languages.[5]
The trend toward extreme sparsity is accelerating. On March 27, 2024, Databricks released DBRX, a 132-billion parameter model that activates 36 billion parameters per token, utilizing a highly granular architecture of 16 experts where four are chosen per token.[4]
By comparing the architectures of Mixtral, DBRX, and DeepSeek-V2, a clear trajectory emerges: as total model size increases, the percentage of active parameters drops sharply. Future frontier models will likely feature trillions of parameters divided into thousands of highly granular experts, activating less than one percent of their network per token to maintain inference speeds.[5]
Key terms
- Mixture of Experts (MoE)
- A neural network architecture that divides its layers into multiple specialized sub-networks, activating only a few of them for any given piece of data.
- Dense Model
- A traditional neural network architecture where every single parameter is activated and used to process every single piece of data.
- Router
- The mechanism inside an MoE layer that evaluates incoming data and decides which specific experts should process it.
- Active Parameters
- The subset of a model's total parameters that are actually used to perform the mathematical calculations for a specific token.
Frequently asked
Does an MoE model run faster than a dense model?
Yes, an MoE model runs much faster than a dense model of the same total size, because it only performs math on a small fraction of its parameters for each word.
Can I run a 200-billion parameter MoE model on my laptop?
No. Even though the active compute is low, the entire model must still be loaded into memory (VRAM). A 200-billion parameter model requires hundreds of gigabytes of VRAM, far exceeding consumer hardware limits.
How does the router know which expert to choose?
The router is a small neural network trained alongside the rest of the model. It learns to map the mathematical representation of each token to the experts that produce the most accurate final output.
Are the experts divided by human topics like math or science?
No. Experts specialize in abstract, high-dimensional vector patterns rather than human-readable subjects. One expert might handle specific grammatical structures rather than a broad topic like 'history'.
Viewpoints in depth
Hardware Efficiency Advocates
Argue that extreme sparsity is the only sustainable path forward for scaling AI.
Proponents of extreme sparsity argue that the era of dense scaling is effectively over. As models push past the trillion-parameter mark, the electricity and cooling required to activate every neuron for every token becomes physically and economically unviable. By decoupling the model's capacity from its compute cost, MoE allows research labs to train vastly smarter models without requiring exponential leaps in data center power grids.
Memory Constraint Skeptics
Point out that MoE models still require massive amounts of VRAM to store inactive parameters.
While MoE solves the processing bottleneck, skeptics note it exacerbates the memory bottleneck. A 236-billion parameter model might only use 21 billion parameters of compute, but the entire 236-billion parameter weight set must still reside in high-speed GPU memory. This keeps frontier open-weight models out of the hands of independent developers and consumer hardware, forcing reliance on massive, centralized cloud providers just to hold the dormant experts in memory.
Algorithmic Researchers
Focus on improving the routing mechanisms themselves to prevent bottlenecks.
Researchers focused on architecture design argue that the current 'Top-K' routing method—where a token is sent to a hard cutoff of one or two experts—is a blunt instrument. They point to issues like representation collapse, where the router ignores most of the network, requiring artificial load-balancing penalties to fix. This camp is actively researching continuous or 'soft' routing methods that blend expert outputs more dynamically, aiming to improve reasoning without the rigid cutoffs of current MoE designs.
- Hardware Efficiency Advocates
- Argue that extreme sparsity is the only sustainable path forward for scaling AI, as dense models require too much raw compute power and electricity.
- Memory Constraint Skeptics
- Point out that while MoE saves processing power, it still requires massive amounts of VRAM to store the inactive parameters, keeping large models out of reach for consumer hardware.
- Algorithmic Researchers
- Focus on improving the routing mechanisms themselves, arguing that current top-K routing is suboptimal and exploring continuous or soft-routing alternatives.
Perspectives this story doesn't cover
- Hardware Manufacturers
- Energy Grid Operators
Sources
[1]arXivAlgorithmic ResearchersDeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Model
Read on arXiv →
[2]arXivAlgorithmic ResearchersMixtral of Experts
Read on arXiv →
[3]arXivAlgorithmic ResearchersSwitch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity
Read on arXiv →
[4]Databricks ResearchHardware Efficiency AdvocatesIntroducing DBRX: A New State-of-the-Art Open LLM
Read on Databricks Research →
[5]Factlen Editorial TeamMemory Constraint SkepticsSynthesis by Factlen editorial team
Read on Factlen Editorial Team →
More in Artificial Intelligence
See all →Model Architecture
How Layer Normalization Stabilizes Transformer Training by Standardizing Input Across the Feature Dimension
7 sources
Model Architecture
Mixture of Experts: How Token Routers Activate Specialized Sub-Networks in LLMs
5 sources
Model Architecture
Startup Inception Unveils Diffusion-Based LLM, Claiming Several-Fold Speed and Halved Cost Over Conventional Models
2 sources
Mechanistic Interpretability
How K-Composition and Induction Circuits Drive In-Context Learning in AI
4 sources
Comments
Every angle. Every day.
Get Artificial Intelligence stories with full source coverage and perspective breakdowns, free every day.




