← Back to LLMs Mind Map
⚡Flashcard Drill➔
⚡ LLMsID: moe-load-balance

MoE Load Balancing

负载均衡损失
🎯Core Definition
without constraints, the gate makes tokens pile onto a few experts, causing load imbalance and routing collapse (a few experts absorb nearly all signal). Mitigations: the auxiliary balance loss Laux=α⋅N∑i=1NfiPi\mathcal{L}_{\text{aux}} = \alpha \cdot N \sum_{i=1}^{N} f_i P_i, where fif_i is expert ii's fraction of tokens (actual utilization) and PiP_i its mean routing probability — minimizing the product encourages uniform routing; plus a per-expert capacity cap (capacity factor: max tokens per expert = capacity factor × average load), where overflow tokens are dropped or routed through a residual path (recompute/residual connection).
💡Use Cases
a standard component of every top-k MoE training run (Switch Transformer, Mixtral, DeepSeek-V3); the capacity cap is also needed at inference to bound per-batch compute and prevent a hot expert from bloating latency.
⚡Key Problems Solved
imbalance idles some experts and overloads others, wasting memory and compute; expert collapse reduces MoE to a few effective experts, no better than a Dense model of the same size; the balance loss gives every expert a training signal, and the capacity cap makes training/inference deterministic.
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep Dive
Core Def
Explain the core definition, underlying mechanism/math, and key principles of MoE Load Balancing.
Use Cases
In production engineering, what are the primary use cases for MoE Load Balancing and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
1
What are f_i, P_i, α, and N in the load-balancing loss?
2
Why does imbalance occur — what is expert/routing collapse?
3
What is the capacity factor — effects of it being too large or small?
4
How are overflow tokens handled?
5
Trade-offs of the aux-loss weight α being too large or small?
📖 In-depth Guide:📄 moe-architecture →
Updated 2026-08-12
🎯
Verify Mastery: Practice Exam Questions for "MoE Load Balancing"
Take pitfall multiple-choice questions with derivation options; mistakes are automatically logged.
🚀 Start Card Practice ➔
⚡
Test muscle memory on this topic via 3-Layer Flashcards
Active Recall: Mentally formulate Prompt ➔ Math Derivation ➔ Benchmark Implementation in 3 minutes.
🎯 Drill This Card Now➔
← Previous CardMoE Routing Top-kNext Card →Dense vs MoE

🔗 More LLMs Knowledge Cards

引用出处: TalentMe 450+ 工业级 AI 架构考点知识库 (Tech Vault) · 遵循 CC-BY-4.0 知识共享协议
URL: https://talentme.airsota.com/resources/tech/roadmap/mindmap/LLM/card/moe-load-balance