PapersMulti-sourceSelected

MegaFlux Skew-Resilient MoE Megakernels

MegaFlux: Skew-Resilient MoE Megakernels via Pipelined Expert Replication

Why we picked it

MegaFlux solves a critical bottleneck in MoE systems by dynamically replicating experts to balance GPU load while minimizing communication overhead. The pipelining approach hides 56-76% of replica-weight transfer costs in forward passes and 91-100% in backward passes, representing a significant efficiency gain for large-scale AI training. Developers working with MoE architectures can implement this solution through TensorRT-LLM's CuTeDSL to achieve substantial performance improvements without architectural changes.

MegaFlux addresses GPU stragglers in mixture-of-experts (MoE) megakernels by implementing pipelined expert replication.

Body

The system achieves 1.45× geometric-mean speedup for forward and 1.

28× for backward over fixed placement across 147 configurations on eight NVIDIA B200 GPUs.Peak performance reaches 2.

14× and 2.64× respectively.

When integrated into vLLM for DeepSeek-V4-Pro prefill, it delivers 1.13-1.

26× median end-to-end speedups.

Original · arXiv: DeepSeek

MegaFlux: Skew-Resilient MoE Megakernels via Pipelined Expert Replication

Mixture-of-experts (MoE) megakernels fuse expert-parallel communication with expert computation. However, under fixed expert placement, routing skew creates GPU stragglers: overloaded GPUs determine layer latency while others sit idle. Replicating hot experts can shift work to underloaded GPUs, but dynamic replicas introduce additional work: replicas must receive expert weights to execute and, during training, their partial weight gradients must be reduced at the expert owners. We present MegaFlux, which makes expert replication a runtime decision and pipelines the communication induced by replication within persistent MoE execution. An on-device planner jointly selects replica locations and assigns tile-aligned token blocks under a per-GPU replica budget, leaving router outputs unchanged. The forward and backward megakernels realize pipelined expert replication: replicas begin computation as their required weights arrive, while backward overlaps replica-gradient reduction with ongoing expert computation. MegaFlux extends TensorRT-LLM's CuTeDSL MegaMoE forward kernel and introduces a new backward MoE megakernel. Across 147 configurations per direction on eight NVIDIA B200 GPUs, MegaFlux achieves geometric-mean speedups of $1.45\times$ for forward and $1.28\times$ for backward over the same megakernels with fixed placement, peaking at $2.14\times$ and $2.64\times$. In ablations, pipelining hides $56$--$76$% of replica-weight transfer cost in forward and $91$--$100$% of combined weight-transfer and replica-gradient-reduction cost in backward, yielding up to $13.2$% and $26.7$% additional layer-latency reductions over the same replication plans with these operations executed separately. Integrated into vLLM for DeepSeek-V4-Pro prefill, MegaFlux delivers $1.13$--$1.26\times$ median end-to-end speedups over fixed placement.

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Papers" desk, focusing on China's AI industry and domestic foundation model ecosystem. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include MegaFlux, MoE, DeepSeek-V4-Pro, TensorRT-LLM.

Primary source verification: published directly by arXiv: DeepSeek with first-party authority. Cross-source corroboration: 10 independent sources have covered this development (including IT之家, The Straits Times: Business, kimmonismus), confirming industry-wide signal strength.