X-MoE: Enabling Scalable Training for Emerging Mixture-of-Experts Architectures on HPC Platforms

Yueming Yuan, Ahan Gupta, Jianping Li, Sajal Dash, Feiyi Wang, Minjia Zhang

Introduction

Mixture-of-Experts (MoE) architectures have emerged as a primary strategy for scaling Large Language Models (LLMs) efficiently. By activating only a subset of specialized sub-networks (experts) for each token, MoEs allow for massive parameter counts without a proportional increase in computational cost. However, a recent shift toward "expert-specialized" MoEs—characterized by hundreds of fine-grained experts and large top-$k$ routing—has exposed significant limitations in existing training frameworks.

The Challenge of Fine-Grained MoEs

Traditional MoE systems were designed for a small number of large experts. Modern architectures, such as DeepSeek-v3, utilize hundreds of tiny experts to improve model quality. This architectural shift introduces three primary bottlenecks:

  1. Memory Explosion: To maintain uniform expert workloads, current systems rely on dense matrices with extensive zero-padding. In fine-grained configurations, this padding can consume over 70% of activation memory.
  2. Communication Inefficiency: Routing tokens to multiple experts often results in redundant data transfers across inter-node networks, wasting bandwidth.
  3. Hardware Portability: Many state-of-the-art frameworks are tightly coupled with NVIDIA's CUDA ecosystem, hindering deployment on emerging HPC platforms like the AMD-powered Frontier supercomputer.
Comparison of traditional MoE (few experts, small top-k) vs. modern fine-grained MoE (many experts, large top-k) architectures.

X-MoE: System-Level Optimizations

To address these challenges, we present X-MoE, a training system optimized for expert-specialized MoEs on heterogeneous HPC platforms. X-MoE introduces three key innovations:

Padding-Free Token (PFT) Buffers

X-MoE replaces traditional dense matrices with a novel sparse data structure for expert routing. By eliminating zero-padding, X-MoE significantly reduces the activation memory footprint. These sparse workloads are managed via custom, hardware-agnostic kernels implemented in Triton, ensuring high performance across both NVIDIA and AMD GPUs.

Redundancy-Bypassing Dispatch (RBD)

To optimize communication, X-MoE employs a topology-aware hierarchical dispatch mechanism. It identifies "pilot" tokens for inter-node transfer and generates local replicas within destination nodes using high-speed intra-node interconnects (e.g., Infinity Fabric). This approach can reduce redundant data transfer by up to 75%.

Sequence-Sharded MoE Blocks (SSMB)

X-MoE utilizes a hybrid parallelism strategy that shards input sequences across GPU groups. Since MoE operations are token-independent, this sharding directly mitigates the activation memory bottleneck—the primary constraint in fine-grained MoEs—without the overhead of recomputation.

Performance and Scalability

X-MoE was evaluated on the Frontier supercomputer using up to 1,024 AMD MI250X GPUs. The system demonstrated exceptional scalability, successfully training a 545-billion parameter model. In contrast, industry-standard baselines like Tutel and DeepSpeed-MoE encountered Out-of-Memory (OOM) errors at significantly smaller scales.

Memory breakdown illustrating the shift from model state dominance in conventional MoEs to activation dominance in specialized MoE architectures.

Key results include:

  • Throughput Gains: X-MoE achieved a 1.42x speedup over Tutel and a 5.15x speedup over DeepSpeed-TED on a 55B parameter model.
  • Memory Efficiency: The PFT approach reduced per-layer activation memory from 2.81 GB to 1.21 GB, approaching theoretical minimums.
  • Communication Reduction: The RBD optimization reduced inter-node communication time by 52.5%, resulting in a 1.55x speedup during the dispatching phase.

Conclusion

X-MoE enables the training of next-generation MoE models at unprecedented scales on HPC platforms. By targeting the activation memory bottleneck and optimizing communication topology, X-MoE provides a portable, high-performance solution for the evolving landscape of large-scale AI. Future work will explore the integration of pipeline parallelism and the interaction between system-level kernels and dynamic load-balancing algorithms.

Summary updated

BibTeX
@inproceedings{yuan2025x,
  author = {Yueming Yuan and Ahan Gupta and Jianping Li and Sajal Dash and Feiyi Wang and Minjia Zhang},
  title = {{X-MoE: Enabling Scalable Training for Emerging Mixture-of-Experts Architectures on HPC Platforms}},
  booktitle = {SC},
  year = {2025},
  url = {https://openreview.net/forum?id=MkkzxSupvG},
}
Figure