UniEP: Unified Expert-Parallel MoE MegaKernel for LLM Training
Size Zheng, Xuegui Zheng, Li-wen Chang, Jidong Zhai

TL;DR
UniEP introduces a unified system for expert parallelism in large language model training, combining communication and computation into MegaKernels for improved speed and stability.
Contribution
It unifies diverse expert parallelism strategies into MegaKernels, enabling automated, adaptable, and numerically stable large-scale LLM training.
Findings
Achieves 1.03×–1.38× speedup over state-of-the-art methods.
Effectively mitigates communication bottlenecks in GPU clusters.
Maintains strict numerical accuracy standards for production training.
Abstract
The exponential growth in Large Language Model (LLM) parameters has transformed model training into an increasingly resource-intensive endeavor. With the stagnation of Moore's Law and the widening disparity between computation throughput and communication bandwidth, expert parallelism (EP) has emerged as a critical strategy for scaling mixture-of-experts (MoE) models. However, despite numerous proposals for optimizing EP, ranging from communication compression to computation-communication overlap, adoption within production-grade frameworks like Megatron-LM remains conservative. Existing solutions often rely on ad-hoc, complex kernels that lack adaptability across diverse optimization configurations and frequently neglect numerical stability, failing to meet the strict precision requirements of large-scale training. In this paper, we introduce UniEP, a novel system that unifies…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
