Load Balancing › Summary

Michael BrenndoerferUpdated January 4, 20262 min read
Language AI HandbookAll chapters
Part 33 of 67Mixture of Experts
Chapter 243Load Balancing › Summary
Reading section 12 of 13 · Summary · 2 minSection 12 of 13 · 2 min

Book contents

Section 12 of 13 · 2 min read

Load Balancing › SummaryOne section · Sections in this chapter12 / 13 ↓
Reading tools Definitions & inline links

Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.

Article links

Make inline references clickable

Load balancing ensures that all experts in a Mixture of Experts model receive meaningful training signal and contribute to model predictions. Without explicit balancing mechanisms, MoE training exhibits rich-get-richer dynamics where initially preferred experts attract more tokens, receive more gradients, and become even more preferred. This positive feedback loop leads to expert collapse, a state where only one or two experts handle nearly all tokens and the architecture's capacity advantage is entirely lost.

Key load balance metrics include the load imbalance factor (measuring deviation from uniform allocation as a multiple of the ideal), coefficient of variation (quantifying spread in token fractions across all experts), and router entropy (capturing the concentration of routing probability mass. This provides the earliest warning signal). These metrics are complementary: LIF catches severe single-expert dominance, CV detects diffuse multi-expert imbalance, and entropy monitors the router's internal preferences before they manifest as hard routing changes. Monitoring all three gives the most complete picture of routing health.

The consequences of imbalance extend beyond wasted model capacity. In distributed training with expert parallelism, load imbalance creates stragglers that destroy parallel efficiency. A load imbalance factor of 2 halves throughput, and collapsed models may run at only 1E\frac{1}{E} efficiency despite having EE experts. This makes load imbalance a model quality problem and a basic obstacle to economical training at scale.

Capacity constraints provide one mechanism for limiting imbalance by rejecting tokens that would overflow an expert's quota. The capacity limit Kmax=⌊C⋅N/E⌋K_{\text{max}} = \lfloor C \cdot N/E \rfloor sets a soft ceiling that scales naturally with batch size and the number of experts. However, this approach drops tokens rather than preventing the router from developing imbalanced preferences in the first place. The auxiliary balancing loss and router z-loss covered in the next chapters address this by shaping the training objective itself, rewarding uniform routing and penalizing the sharp softmax outputs that accelerate collapse.