TLDR: HybridEP is a framework designed to optimize Mixture-of-Experts (MoE) model training across multiple data centers, specifically addressing the limitations of Expert Parallelism (EP) under constrained bandwidth. It achieves this by dynamically transforming the spatial placement of experts to reduce data communication traffic and frequency. The framework uses a stream-based model to determine the optimal balance between data and expert transmission, incorporating techniques like domain-based partitioning for communication topology and parameter-efficient migration with expert compression and asynchronous communication. Experimental results show HybridEP outperforms existing MoE training systems by up to 5.6 times and achieves significant speedups in large-scale simulations.
Large language models (LLMs) are becoming increasingly powerful, driving the need for even larger and more complex AI architectures. One popular approach to scaling these massive models is the Mixture-of-Experts (MoE) architecture. MoE models work by activating only a small subset of specialized “experts” for each piece of data, allowing for models with trillions of parameters without a proportional increase in computational cost.
However, as these models grow, training them within a single data center (DC) becomes challenging due to limitations in power and infrastructure. This has led to a shift towards a more flexible approach: training across multiple, interconnected data centers. While this cross-datacenter (cross-DC) paradigm offers many benefits, it introduces a significant hurdle for MoE models, specifically concerning a core component called Expert Parallelism (EP).
Expert Parallelism faces severe scalability issues when training across different data centers, primarily because of the limited bandwidth connecting these locations. Traditional EP optimization methods try to hide communication time by overlapping it with computation. This strategy is largely ineffective in low-bandwidth cross-DC scenarios, where data communication takes much longer than computation. This bottleneck has become a major roadblock to the continued growth and efficiency of MoE models.
To tackle this critical challenge, researchers have proposed a new framework called HybridEP. This innovative system is designed to optimize Expert Parallelism under constrained bandwidth conditions. The fundamental idea behind HybridEP is to dynamically change the physical location of experts to reduce both the amount of data that needs to be sent and how often it needs to be sent. This minimizes the communication overheads that plague EP in cross-DC settings.
Finding the perfect balance for this dynamic placement is complex because it creates a mixed communication pattern involving both data and experts. To address this, HybridEP employs a sophisticated stream-based model. This model helps determine the optimal proportion of transmission between experts and data, ensuring the most efficient use of available bandwidth.
Guided by this model, HybridEP incorporates two key techniques:
Domain-Based Partition
This technique constructs a specific communication topology at the GPU level. It introduces the concept of an “expert domain,” which is a group of data centers that primarily use a communication pattern called All-Gather (AG) for experts within the domain. Communication between different expert domains, however, uses an All-to-All (A2A) pattern for data. This clear separation helps manage and optimize the complex communication patterns in hierarchical hardware architectures.
Also Read:
- Smarter Routing: A New Approach to Balancing Expertise and Efficiency in AI Models
- SymphonySMoE: Enhancing AI Model Robustness Through Expert Social Networks
Parameter-Efficient Migration
This technique further refines the communication topology by making expert transmission even more lightweight. It leverages the observation that expert weights are highly compressible and often contain redundant information. HybridEP divides experts into a “shared” part (common knowledge) and a “residual” part (specific differences). The residual part is then compressed using a technique called Top-k and transmitted. This significantly reduces the traffic associated with expert migration. Additionally, HybridEP uses an asynchronous communicator, which allows experts to be transmitted independently and ahead of time, overlapping this communication with other computations and reducing synchronization delays.
The experimental results for HybridEP are highly promising. It has been shown to outperform existing state-of-the-art MoE training systems by up to 5.6 times under constrained bandwidth conditions. Furthermore, large-scale simulations involving 1000 data centers demonstrated that HybridEP can achieve up to a 1.45 times speedup across various bandwidths. This indicates that HybridEP is a more general and scalable approach to Expert Parallelism.
In essence, HybridEP offers a robust solution to a pressing problem in large-scale AI training. By intelligently managing and optimizing communication patterns for Mixture-of-Experts models across distributed data centers, it paves the way for continued growth and efficiency in the development of next-generation AI. For more in-depth technical details, you can refer to the full research paper here.


