Abstract
Mixture-of-Experts (MoE) models have become a cornerstone for scaling large language models to trillions of parameters with sub-linear computational growth. However, the dynamic routing of tokens often leads to severe load imbalances across hardware devices, creating performance bottlenecks. We present Pro-Prophet, a systematic load-balancing framework that proactively predicts and mitigates these hotspots. By leveraging the temporal locality of token distributions, Pro-Prophet employs a locality-aware Planner for lightweight expert placement and a block-wise Scheduler to overlap communication with computation. Our evaluation demonstrates that Pro-Prophet achieves up to a 2.66x speedup over state-of-the-art baselines like DeepSpeed-MoE while maintaining model convergence.
Introduction
Training massive AI models is a race against time and hardware inefficiency. Mixture-of-Experts (MoE) models offer a solution by activating only a subset of parameters for each input, allowing for massive capacity without a linear explosion in FLOPs. Despite their theoretical efficiency, MoE models face a persistent "hotspot" problem: certain experts are frequently selected by the gating network, overwhelming specific GPUs while others remain underutilized. This load imbalance leads to significant wasted GPU cycles and stalls the training pipeline.
The Challenge of Load Imbalance
In standard Expert Parallelism (EP), experts are partitioned across different devices. During training, a gate network routes input tokens to the most relevant experts. In practice, real-world data distributions are rarely uniform. A small subset of "heavy-load" experts often handles a disproportionate share of the total input tokens.
Existing solutions typically fall into two categories:
- Algorithmic Adjustments: These methods use auxiliary losses to force balanced routing. However, this often constrains the model's representational power, potentially harming final accuracy or slowing convergence.
- System-Level Dynamic Placement: These systems move experts between GPUs to balance the load. The primary drawback is the massive communication overhead required to transfer model states (parameters, gradients, and optimizer states), which can outweigh the benefits of balancing.
The Pro-Prophet Framework
Pro-Prophet addresses these challenges through a two-pronged system-level approach that avoids the "accuracy tax" of algorithmic solutions.
1. The Pro-Prophet Planner
The core insight behind Pro-Prophet is Locality: the observation that token routing distributions remain remarkably stable across adjacent training iterations. The Planner exploits this temporal similarity to proactively manage load:
- Predictive Profiling: It profiles the current iteration's routing to estimate the load for the subsequent step.
- Lightweight Expert Placement: Instead of migrating entire model states, the Planner identifies overloaded experts and maps them to multiple devices. It only transfers necessary parameters (
Trans) and aggregates gradients (Agg), keeping heavy optimizer states stationary to minimize communication. - Greedy Search Optimization: To navigate the massive search space of possible placements, the Planner uses a performance model and a locality-based greedy algorithm to find the most communication-efficient strategy.
2. The Pro-Prophet Scheduler
Even with an optimized plan, the latency of parameter transfers can be significant. The Scheduler employs Block-wise Scheduling to hide this overhead:
- Granular Decomposition: MoE layers are broken down into sub-blocks.
- Latency Hiding: The system "pre-launches" parameter transfers for the next layer while the current layer is still performing computation.
- Interleaved Execution: Communication primitives are split into smaller chunks and interleaved with forward and backward passes, ensuring high GPU utilization.
Evaluation and Results
The researchers evaluated Pro-Prophet using five MoE-GPT model variants (ranging from Small to Deep-Medium) across three hardware clusters with varying interconnect bandwidths (HPWNV, HPNV, and LPWNV).
Key findings include:
- Performance Gains: Pro-Prophet achieved a 1.36x to 2.66x speedup over DeepSpeed-MoE and a 1.01x to 1.48x improvement over FasterMoE.
- Improved Balancing: The framework improved the "Balance Ratio" by up to 11.01x compared to FasterMoE, demonstrating its effectiveness in distributing workloads.
- Model Accuracy: The internal performance model maintained high fidelity, with a mean estimation error of less than 5%.
- Convergence: Because Pro-Prophet operates at the system level without modifying the loss function, it preserves the original model's convergence properties and final quality.
Conclusion
Pro-Prophet demonstrates that proactive, system-level load balancing is a highly effective strategy for scaling MoE training. By turning the "hotspot" problem into a predictable scheduling task through the lens of locality, it removes the trade-off between hardware efficiency and model accuracy. Future work will explore integrating Pro-Prophet with broader parallelism strategies like Pipeline Parallelism to further push the boundaries of large-scale model training.
Summary updated