# Load Balancing

- **Canonical URL:** https://getaimath.com/dictionary/load-balancing/
- **Topics:** [Mixture of Experts (MoE)](https://getaimath.com/dictionary/category/mixture-of-experts-moe/)
- **Last updated:** 2026-11-25

## What is Load Balancing?

**In one sentence:** Load balancing in MoE makes sure work is spread fairly evenly across experts, so none are overloaded or wasted.

Without it, the router might send almost every token to a few favorite experts, while others never learn anything. Training uses extra rules or penalties to keep the load balanced.

![Mixture of Experts (MoE): A Team of Specialists (Only 2 Wake Up) — Simple cartoon showing a question arriving at a Front Desk Receptionist (Router) who wakes up only 2 out of 8 specialist doctors (Math and Finance) while the other 6 specialists stay asleep to save energy.](https://getaimath.com/diagrams/mixture-of-experts-moe.png)
*Napkin Diagram (Mixture of Experts (MoE)): Mixture-of-Experts wakes up only 2 of its 8 specialists for each word (real experts’ specialties are messier than neat topics).*

## What is an example of Load Balancing?

If one expert gets 60% of all tokens, load balancing pushes the router to spread them out.

## Why does Load Balancing matter?

Balanced experts make MoE models train better and run faster.

## Related Concepts

- [Top-K Routing](https://getaimath.com/dictionary/top-k-routing/): Top-K routing sends each token to the K experts with the highest router scores.
- [Expert Capacity](https://getaimath.com/dictionary/expert-capacity/): Expert capacity is the maximum number of tokens one expert can handle in a batch.
- [Expert Selection](https://getaimath.com/dictionary/expert-selection/): Expert selection is choosing which specific experts will process a token.
- [Routing Collapse](https://getaimath.com/dictionary/routing-collapse/): Routing collapse is when an MoE router ends up sending almost all tokens to just a few experts, wasting the rest.
- [Total Parameters](https://getaimath.com/dictionary/total-parameters/): Total parameters are every parameter a model has, whether or not they are used for each token.
- [Shared Experts](https://getaimath.com/dictionary/shared-experts/): Shared experts are experts that process every token, alongside the routed experts that are picked per token.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/load-balancing/)
