TL;DR
MonoMoE introduces a weight-major persistent megakernel designed specifically to accelerate the low-token regime of Mixture-of-Experts (MoE) decoding. By shifting the scheduling focus from tokens to expert weights and fusing the entire routed path into a single kernel, it eliminates expensive data-shuffling overheads and dramatically improves memory bandwidth utilization. This results in up to a 1.54× speedup for the MoE operator and up to an 18.7% reduction in end-to-end decoding latency in vLLM.
What Problem Does This Paper Address?
Mixture-of-Experts (MoE) models scale neural network capacity efficiently by activating only a sparse subset of "experts" for any given token. While highly effective for training and prefill stages, MoE layers become a massive bottleneck during autoregressive decoding (generation), accounting for up to 40% of end-to-end latency.
The core issue is that existing MoE kernels are token-major: they organize parallel GPU work around the token dimension. During decoding, the batch size is small, meaning only a few tokens are distributed across many experts. This causes severe inefficiencies:
- High Padding & Preprocessing: Token tiles end up mostly empty, forcing the system to waste cycles sorting tokens and padding matrices.
- Underutilized Memory Bandwidth: The GPU launches short-lived, low-concurrency grids that spend most of their time spinning up and tearing down memory pipelines rather than streaming data efficiently.
- Kernel Launch Overhead: The MoE forward pass is typically split into separate kernels (routing, quantization, projections, activation, reduction), repeatedly interrupting the critical weight-streaming path.
Methods
To solve these bottlenecks, the authors present MonoMoE, a system built on three core design principles:
- Weight-Major Decomposition (SwapAB): Instead of partitioning work by tokens, MonoMoE partitions work across expert-weight tiles. It places the entire decode-step token tile onto the Tensor Core's fine-grained $N$ dimension. This allows the GPU to exploit weight-matrix parallelism even when an expert receives only one or two tokens, eliminating off-chip token sorting and packing.
- Persistent Megakernel Fusion: MonoMoE fuses the entire routed MoE pipeline—including top-$k$ gating, activation quantization, gate/up projection, SiLU activation, down projection, and reduction—into a single persistent CUDA kernel launch.
- Asynchronous Overlap via Warp Specialization: Within each Cooperative Thread Array (CTA), threads are statically divided into calculation warps and prefetch warps. Using fine-grained readiness flags instead of global barriers, prefetch warps stream the next expert's weights and execute deferred epilogues (like activations and quantization) completely in parallel with the current Tensor Core matrix multiplications.
Datasets
The authors integrated MonoMoE into the vLLM serving framework and evaluated it using vLLM’s built-in Sonnet text workload (1,600 input tokens, 200 generated tokens, 200-token shared prefix). They tested four state-of-the-art MoE configurations using FP8 quantization:
- Qwen3.5-35B-A3B (Single GPU)
- Qwen3.5-122B-A10B (Single GPU)
- GLM-5.2 (8-way Tensor Parallelism)
- DeepSeek-V3.1 (8-way Tensor Parallelism)
Downstream task accuracy was validated using GSM8K (grade-school math reasoning) and HumanEval (Python code generation).
Key Insights and Ideas
- Inverting the Parallelism Axis: In decoding, tokens are scarce but weights are massive. Switching from token-major to weight-major scheduling ensures the GPU always has enough parallel work to saturate its streaming multiprocessors (SMs).
- Continuous Weight Streaming: By avoiding multi-kernel boundaries, MonoMoE keeps the memory pipeline continuously primed. Weights stay in flight, preventing the fill-and-drain transients that cripple short-lived GEMM performance.
- Logical Masking Over Physical Padding: Instead of physically rearranging and padding token features in global memory, MonoMoE keeps the original token tile dense on-chip and uses compact routing metadata to logically mask out unused Tensor Core lanes.
Key Results
- Kernel-Level Speedups: On an NVIDIA H200 GPU, MonoMoE accelerates the complete routed-MoE operator by 1.17–1.54× over vLLM’s optimized Triton Grouped GEMM and 2.20–3.84× over FlashMoE-FP8.
- End-to-End Serving Gains: MonoMoE reduces the mean time per output token (TPOT) by 9.9–18.7% on Qwen3.5-35B, 9.1–11.5% on Qwen3.5-122B, and 2.9–16.7% on GLM-5.2.
- Bandwidth Recovery: At a batch size of 1, MonoMoE successfully doubles the effective memory throughput compared to the Triton baseline (e.g., rising from 10.6% to 21.2% of peak DRAM bandwidth).
- Accuracy Parity: End-to-end evaluation on GSM8K and HumanEval confirmed that MonoMoE introduces no measurable accuracy degradation compared to standard FP8 implementations.
Limitations and Future Work
- Target Operating Regime: MonoMoE is strictly optimized for low token counts (typically batch sizes $B \le 8$). As the batch size grows, token-major approaches naturally gain enough parallelism to fill the GPU, making standard grouped or batched GEMMs more appropriate.
- Distributed Communication Fusion: The authors experimented with fusing distributed communication (Expert Parallelism and Tensor Parallelism) directly into the megakernel. However, for single-node, small-batch decode, NVLink is so fast that fusion yields no benefits over standard runtime execution due to persistent cross-rank synchronization overhead. Exploring communication overlap for larger scale-out interconnects remains an open direction.
Summary updated