FlashMoE: Fast Distributed MoE in a Single Kernel

Authors: Osayamen Jonathan Aimuyo, Byungsoo Oh, Rachee Singh (Cornell) | Venue: NeurIPS 2025 | arXiv: 2506.04667 | PDF: FlashMoE_Fast_Distributed_MoE_Single_Kernel_2025.pdf

一句话总结

FlashMoE 用 一个 persistent GPU megakernel 融合 gate、dispatch、expert FFN、combine 与 设备端 NVSHMEM RDMA,以 Processor/Scheduler/Subscriber actor 模型 做 tile 级流水线,消除 CPU 调度与 33–550× kernel launch;在 8× H100 上相对 SOTA 达 更低延迟、5.7× 吞吐、93% SM 利用率(FlashMoE 用 FP32,基线 FP16)。

核心贡献

  1. 单 kernel 分布式 MoE:整层仅 1 次 launch(vs DeepSpeedMoE 550
  2. Actor 并发模型:OS block 内 Scheduler + Subscriber;其余 block 为 Processor(CUTLASS GEMM)
  3. Payload-efficient 通信:对称 tensor layout + in-place padding;不用集体 API 零填充上链
  4. 设备发起 one-sided RDMA:替代 bulk-synchronous AlltoAll,减轻 straggler

关键数字

指标
Kernel launches / layer (2×A100, 32 experts/GPU)FlashMoE 1 vs Megatron+DeepEP 432
SM utilization (2×A100)93.17% vs FasterMoE 9.67%
Throughput @ 8×H10017.7 MTokens/s (5.7× FasterMoE)
Latency @ 8 GPU, 16K tokensup to 6.4× vs Megatron-TE
Overlap efficiency
Layout memory overhead~ token buffer, ≤2% model memory

与 wiki 交叉引用

Citations

[1] FlashMoE_Fast_Distributed_MoE_Single_Kernel_2025.pdf — Aimuyo et al. (2025)