Activation-Aware Balancing of Fused CPU and GPU Expert Execution for Offline MoE Inference
Borui Xu, Weihao Cui, Yao Chen, Weiguo Liu, Xuanhua Shi, Bingsheng He
Abstract
Frontier Mixture-of-Experts (MoE) models do not fit in single commodity GPU memory, so their routed experts stay in host memory and the CPU and GPU compute them together. The expert activation pattern of an MoE call, characterized by the number of activated experts and the tokens routed to each, affects the relative efficiency of CPU and GPU execution. In offline throughput-oriented inference, context length limits how many sequences fit in GPU memory, causing activation patterns and the optimal CPU-GPU partition to vary across workloads. Existing approaches sum fixed per-expert CPU costs, although a fused CPU call shifts between memory-bound and compute-bound execution as the activation changes. As a result, they often transfer too many experts to the GPU. To address these limitations, we present HeteroMoE, an activation-aware expert scheduler that selects the CPU-GPU partition for each MoE call based on its live activation pattern and GPU cache state. Its roofline cost model captures the compute and memory limits of the fused CPU call and the PCIe weight transfers of the GPU branch, determining how many of the most heavily activated uncached experts to transfer. An engine with one synchronization per layer and optimized kernels runs this partition close to the measured hardware limits. On the H100 server, HeteroMoE outperforms the strongest baseline in end-to-end throughput by 1.45-4.40 on DeepSeek-R1 and 1.51-3.70 on Kimi-K2. On the A6000 server, it is 1.16-3.86 faster on DeepSeek-R1.
Create a lesson
Metadata
- Categories
- cs.DC, cs.PF
Related papers
Dependency-Aware Task Decomposition and Parallel Multi-LLM Execution on Serverless Workflows
Shared title terminologycs.DCJackson Beem, Amine Barrak
RankCast: Phase-Aware Rank Balancing in MoE Serving
Shared title terminologycs.DCKaidi Fu, Xu-Hao Lu, Pingwei Sun et al.
Reliability-aware AI Agent Execution in Collaborative Edge Computing: A World Model Approach
Shared title terminologycs.DCXiangchun Chen, Jiannong Cao, Longxiang Gao et al.
Norn: Context-Length-Aware Optimization of Weight and KV Cache Placement for Offloaded LLM Inference
Shared title terminologycs.DCNaoto Sugiura, Hiroki Matsutani
CGSpec: Consistency-Guided Speculative Decoding with Overlap-Aware Verification Scheduling for Edge-Cloud Inference
Shared title terminologycs.DCYuanbing Ouyang, Xiaoli Liu, Shirong Wei et al.
IsoMoE: Placement-Invariant Hybrid CPU-GPU MoE Inference with Lossless 12-bit Experts
Shared title terminologycs.DCHang Gu, Teng Wang, Zhendong Zheng et al.