arXiv(opens in a new tab)cs.DCOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.01950

MoE-CORE: Coordinated Expert Offloading and Residency for Memory-Constrained MoE Inference

Ke Yang, Yongji Gao, Xushi Li, Kui Luo, Sicheng Zhang, Tianming Zhou, Keyi Liu, Shufang Lu, Aoxuan Chen, Jie Meng, Jingchun Gao, Dan Li, Xinkai You, Dan Li, Zhixiang Xia, Yan Shi, Yang Liu, Yanjia Zeng, Liangjun Feng

Ke Yang 3∗^{3*}, Yongji Gao 1,2∗^{1,2*}, Xushi Li 1,2†^{1,2\dagger}, Kui Luo 1^{1}, Sicheng Zhang 1,2^{1,2}, Tianming Zhou 1,2^{1,2}, Keyi Liu 1^{1}, Shufang Lu 1^{1}, Aoxuan Chen 1^{1}, Jie Meng 1^{1}, Jingchun Gao 1,2^{1,2}, Dan Li 1,2^{1,2}, Xinkai You 1^{1}, Dan Li 1^{1}, Zhixiang Xia 1,2^{1,2}, Yan Shi 4^{4}, Yang Liu 1^{1}, Yanjia Zeng 1^{1}, Liangjun Feng 1,2^{1,2}

1^{1}Huawei Technologies Co. Ltd

2^{2}Huawei Ascend Computing Technology Development

3^{3}University of Chinese Academy of Sciences

4^{4}Shanghai Jiao Tong University

yangke@iie.ac.cn keyi.liu@h-partners.com amy_sy@sjtu.edu.cn

{gaoyongji2, lixushi, luokui, zhangsicheng5, zhoutianming2, shufang.lu, chenaoxuan1, mengjie48, gaojingchun1, lidan276, youxinkai, xiazhixiang1, yang.liu8, zengyanjia, fengliangjun}@huawei.com

Abstract

Sparse expert activation reduces MoE models' computation, yet expert weights can exceed limited device memory. Offloading makes inference feasible on a compact AI appliance but exposes host-to-device transfers to the inference path. We present MoE-CORE, a system that coordinates expert offloading and residency for memory-constrained MoE inference. It stages complete expert layers in alternating buffers during prefill. During decode, it combines nonuniform layer-wise cache capacity, domain-informed initialization, routing-history-aware replacement, and cross-layer prefetching. The main configuration executes router-selected experts exactly; an optional score-based substitution path handles eligible low-score misses. The main comparison uses 1K-and 128-token output caps for MoE-CORE and vLLM Prefetch, respectively. Across five workloads per model, MoE-CORE records a mean time per output token (TPOT) of 38.0–44.8 ms versus 1268.9–1269.1 ms for the evaluated vLLM Prefetch configuration on DeepSeek-V4-Flash-W4A8; the corresponding values on GLM-5.2-W4A8C8 are 206.6–220.5 and 5941.5–5941.8 ms. Under an 84-GB NPU-memory cap, the best measured DeepSeek GSM8K configuration achieves a TPOT of 21.5 ms with approximate expert substitution and multi-token prediction (MTP) at depth 2. These results support coordinated expert residency and transfer scheduling under a device-memory constraint. The code is here.

1 Introduction

Mixture-of-Experts (MoE) architectures (Shazeer et al., 2017) have become an important approach to scaling the capacity of large language models (LLMs) without proportionally increasing per-token computation. By routing each token to activate only a small subset of experts, MoE models offer a favorable computation-to-capacity ratio and are therefore attractive for resource-constrained local and edge inference (Yi et al., 2025). Sparse activation, however, reduces computation rather than the amount of model weights that must remain accessible. Recent model families make this distinction increasingly consequential: DeepSeek-V4-Flash and DeepSeek-V4-Pro (DeepSeek-AI, 2026) contain 284B and 1.6T total parameters while activating 13B and 49B parameters per token, respectively; GLM-5.2 (GLM-5 Team, 2026) contains 744B total parameters with 40B active; and Kimi K3 scales to 2.8T total parameters with 104B active (Kimi-Team, 2026). These models also increasingly target Agent workloads such as long-horizon coding, tool use, and knowledge work. Deploying them as local Agent services therefore requires attention not only to sparse computation, but also to the storage capacity and memory cost of the full expert set.

This memory burden is particularly acute on compact, single-node AI appliances. These appliances integrate a host processor and memory with one or a small number of GPUs or NPUs, providing enterprises with a practical on-premises platform for deploying AI services close to private data while retaining local control over the serving en-

∗^{*}The two authors contributed equally to this work.

†^{\dagger}Corresponding author environment. However, the device-memory capacity of these systems is under increasing pressure from two directions: Growing MoE parameter counts increase the volume of weights, while long-context Agent tasks expand the KV cache with conversation histories, retrieved documents, tool outputs, and intermediate task state. Thus, these demands can prevent the complete set of model weights from residing in device memory, even though an AI appliance provides substantially more resources than a mobile or embedded edge device. Deploying LLMs on such systems therefore requires placing some of the model weights in host memory.

Expert offloading makes such deployments feasible by keeping some routed expert weights in host memory and transferring them to the device memory (GPUs or NPUs) when needed. Because expert weights account for a large fraction of an MoE model's parameters while each token activates only a small subset of experts, retaining inactive experts in host memory can substantially increase the model size supported by a fixed device-memory budget. This technique reduces device-memory demand, but loading a selected expert after routing places host-to-device (H2D) communication on the inference critical path. Existing techniques for reducing this cost can be grouped into four categories. (i) Activation-locality methods use routing traces or semantic history to identify experts that are likely to be reused and retain them in a device cache, as in MoE-Infinity and FineMoE (Xue et al., 2025; Yu et al., 2025). (ii) Auxiliary-predictor methods train a separate lightweight model to predict expert activations before the original router is reached. SiDA-MoE (Du et al., 2024) uses an offline-trained hash predictor, while ProMoE trains predictors for individual layers (Song et al., 2025). (iii) Cross-layer and phase-aware methods obtain expert information from later gates or reorganize transfers according to layer and inference phase. Fate (Fang et al., 2026b) and AdapMoE (Zhong et al., 2024a) use cross-layer gating with layer-aware expert management, whereas DuoServe-MoE (Zhang et al., 2026) separates prefill and decode transfer pipelines. (iv) Expert-substitution methods, including SMoE and BuddyMoE (Zhu et al., 2026; Wang et al., 2025a), avoid selected transfers in eligible cases by executing an already resident alternative expert. Together, these systems show that offloading latency can be addressed through caching, prediction, scheduling, and fallback mechanisms. However, these methods have been evaluated on short-context workloads, leaving the interaction between long contexts, expert residency, and offloading latency insufficiently characterized.

For memory-constrained MoE inference on a compact AI appliance, however, these mechanisms must operate as parts of a coordinated runtime rather than as isolated policies. This requirement raises three design questions:

Does equal per-layer cache allocation yield comparable expert hit rates across MoE layers?

Do expert popularity rankings differ across domain-specific workloads?

Are routing scores near the Top-k boundary close enough to motivate a resident alternative for an eligible low-score cache miss?

To address these questions, we present MoE-CORE, a coordinated expert-offloading system for memory-constrained MoE inference on compact, single-node AI appliances.

MoE-CORE assigns prefill and decode to different expert-offloading paths and reserves a separate device-memory region for each phase. For prefills, it stages the complete routed-expert weights of two consecutive MoE layers in two alternating buffers, overlapping the transfer of the next layer with computation of the current layer. Decode is the primary optimization target because it activates a sparse expert set at each iteration, yet an uncovered expert transfer can directly delay token generation.

During decoding, MoE-CORE first distributes the expert cache budget across all MoE layers according to a dynamic layer-wise cache allocator. Given a workload-domain hint from the serving application, an offline profile initializes each layer's cache with the corresponding hot experts. A routing-history-aware online cache then adapts this initial placement to the routing behavior observed during the current session. Because expert residency alone cannot eliminate all misses, a cross-layer prefetcher evaluates the next layer's router early and overlaps predicted expert transfers with useful computation. For residual misses, high-score experts remain on the exact loading path, whereas only eligible low-score experts may use resident substitutes selected by routing-score proximity.

Relative to Load on Demand (LoD), which allocates static per-layer expert caches only for decode and synchronously loads non-resident selected experts, MoE-CORE achieves mean time per output token (TPOT) speedups of up to 1.75×1.75 \times on

DeepSeek-V4-Flash-W4A8 and 1.15× on GLM-5.2-W4A8C8. MoE-CORE also records lower TPOT than the evaluated vLLM Prefetch configurations. Its best measured configuration achieves 21.5 ms TPOT with multi-token prediction (MTP) at depth 2.

Our contributions are as follows:

• We characterize layer-wise differences in cache coverage and workload-dependent expert rankings under a fixed cache configuration, and examine routing scores near the Top-k activation boundary.

• We design phase-specific expert-offloading paths for prefill and decode within a shared device-memory budget.

• We coordinate layer-aware cache allocation, domain-informed initialization, online cache adaptation, and cross-layer prefetching; optional score-based substitution handles eligible low-score residual misses while high-score misses retain exact loading.

• We demonstrate MoE-CORE’s effectiveness on five workloads with DeepSeek-V4-Flash-W4A8 and GLM-5.2-W4A8C8 on their respective AI-appliance platforms. It records lower TPOT than both LoD and the evaluated vLLM Prefetch configurations, while ablations isolate the effects of its cache-management and prefetching mechanisms.

References (21)