AI & ML
Weave: Routing-Adaptive Runtime Warp Scheduling for MoE Megakernels
arXiv cs.DC0 views
arXiv:2611.27765v1 Announce Type: new Abstract: The Mixture-of-Experts (MoE) architecture is widely used in mainstream large language models. Under expert parallelism (EP), state-of-the-art systems fuse each MoE layer into a persistent megakernel for high performance. By the nature of EP, each GPU's communication and computation volumes vary with the routing result. However, prior work either fixes how GPU resources are divided between communication and computation at compile time (e.g., MegaMoE), or adapts to runtime dynamism only at coarse-grained SM granularity (e.g., mKernel), dedicating whole SMs to communication and leaving their Tensor Cores idle. At the finer warp granularity within each SM, static warp schedules can neither match routing-dependent loads nor prevent warps from idling while waiting for inputs or after finishing their assigned work. Therefore, we propose Weave, an MoE megakernel with three key designs. First, a spatial schedule allocates resources between communication and computation at both SM and warp granularities to match each GPU's load. Second, a temporal schedule switches warp roles as execution progresses, enlisting all warps at the start and end of a layer and selectively handing output scatter to idle communication warps. Third, a fused cost model jointly selects both schedules per GPU at launch from runtime routing statistics. Across all evaluated platforms, Weave outperforms the strongest baselines: under EP8 over DeepGEMM-MegaMoE, it speeds up the MoE layer by 1.30x geomean and up to 1.97x on SM103, and by 1.24x geomean and up to 1.72x on SM90; under EP16 on CDNA3, it beats the fastest official RCCL+AITER baseline by 1.44x geomean (up to 2.87x; 1.67x over vLLM).
Source:https://arxiv.org/abs/2611.27765PreviousAsynchronous Byzantine Lattice Agreement with Logarithmic Response Time and Optimal ResilienceNextTriAxialKV: Toward Extreme Low-Precision KV-Cache Quantization for Agentic Inference Tasks
Related posts
Why Does CLAUDE.md Keep Growing? Catastrophic Remembering in Agentic Coding
0arXiv cs.SE
Declarative Skills for AI Agents in Knowledge-Grounded Tool-Use Workflows
0arXiv cs.SE
Adaptive Determinantal Client Scheduling in Federated Learning
0arXiv cs.DC
Flying over The Uncertain Nature (FORTUNE): Intelligent and Humanistic 3D Path Planning for Low-Altitude Collaboration
0arXiv cs.DC
Learning in Symbiosis: Heterogeneous Federated Learning with ANNs and SNNs
0arXiv cs.DC
Drive Failure and Lifetime Simulation in the Backblaze Drive Statistics Corpus, 2013-2026
0arXiv cs.DC