Manuscript Offprint

arXiv:2609.00407

DynaNDE: Dynamic Near-Data Expert Scheduling for Batched MoE Inference

Xiaoyang Lu, Belthangady Akash Vi Narayana Pai, Xian-He Sun

Abstract

Mixture-of-Experts (MoE) models enable efficient scaling of large language model (LLM) inference but suffer from substantial data-movement overhead when deployed on neural processing unit (NPU)-based systems. Near-Data Processing (NDP) provides a promising way to mitigate this bottleneck via cooperative NPU-NDP execution. However, existing NPU-NDP MoE systems do not fully account for hardware heterogeneity, dynamic expert-level concurrency, and temporal expert reuse during batched inference. This paper presents DynaNDE, a dynamic near-data expert scheduling framework that exploits NPU-NDP collaboration to accelerate batched MoE inference. DynaNDE introduces an analytical performance model that captures hardware heterogeneity, data-movement costs, and communication-computation overlap in cooperative NPU-NDP execution. Guided by this model, DynaNDE determines per-layer expert scheduling across the NPU and NDP while accounting for expert-level concurrency. DynaNDE also incorporates a reuse-aware runtime that avoids redundant parameter movement when experts reside in NPU memory. Experimental results show that DynaNDE achieves substantial throughput improvements over the state-of-the-art NPU-NDP MoE serving framework, with average speedups of 2.6× and 2.2× for the prefill and decoding stages, respectively.

1 Introduction

Large language models (LLMs) have achieved remarkable success across various applications, including natural language understanding [5, 26, 27], machine translation [1, 6], and code generation [2, 12, 20]. This success is primarily driven by the unprecedented growth in model size, which enables LLMs to capture rich contextual and semantic relationships. LLM inference typically imposes high computational demands. To support these computational demands, LLM inference commonly relies on specialized accelerators such as GPUs, TPUs, and neural processing units (NPUs). In this paper, we use NPU as a generic term for such compute accelerators. However, continuously scaling model capacity introduces substantial computational and memory demands, posing significant challenges for efficient deployment [30, 35].

Mixture-of-Experts (MoE) architectures [4, 8, 15, 33] have emerged as an efficient approach to scaling LLMs. Unlike traditional dense models that activate all parameters for every token, an MoE layer consists of multiple independent feed-forward networks (experts) and a lightweight gating function that selectively activates only a subset of experts for each input token. This conditional computation significantly increases model capacity without proportionally

Figure

Figure 1: Execution time breakdown of DeepSeek inference.

increasing computational cost. However, the large number of expert parameters greatly increases memory requirements, making it infeasible to host all experts in NPU memory. As a result, MoE inference typically relies on parameter offloading, where selected experts are sequentially fetched from external memory devices to NPU memory based on gating decisions [17, 28, 29]. While this approach alleviates the memory constraints of NPUs, the resulting expert-parameter transfers introduce substantial data-movement overhead, causing NPU stalls and degrading overall MoE inference performance. Figure 1 shows the execution time distribution of a profiled MoE inference workload, highlighting that expert parameter transfer dominates the overall latency.

Near-Data Processing (NDP) offers a promising solution to alleviate data-movement bottlenecks by integrating compute units directly within memory devices [24]. MoNDE [17] introduces an NPU-NDP cooperative framework for collaborative execution of expert computations to reduce data-movement overhead in MoE inference. Despite this advancement, MoNDE does not fully exploit the potential of NDP. Specifically, the heuristic scheduling mechanism used in MoNDE determines expert assignments between the NPU and NDP without a unified optimization that jointly considers hardware heterogeneity, expert-parameter and activation transfers, and dynamic expert-gating behaviors with expert-level concurrency inherent in batched MoE inference. This limitation results in sub-optimal scheduling and leaves the full performance potential of such heterogeneous systems unexplored. Furthermore, MoNDE overlooks expert reuse, failing to account for experts already residing in NPU memory and thereby causing redundant parameter transfers.

In this paper, we introduce DynaNDE, a dynamic near-data expert scheduling framework for efficient batched MoE inference in NPU-NDP systems. DynaNDE has the following key features.

  • Performance modeling. DynaNDE introduces a unified analytical performance model that jointly captures hardware heterogeneity, expert-parameter and activation transfers, and the overlaps between NPU and NDP execution.

The model provides quantitative guidance for dynamic scheduling decisions to minimize inference latency.

  • Runtime scheduling. Guided by the performance model, DynaNDE dynamically determines expert scheduling between the NPU and NDP at runtime based on the per-layer expert activations of the MoE model. This adaptive scheduling improves performance by leveraging NPU-NDP collaboration while accounting for expert-level concurrency inherent in batched MoE inference.

  • Reuse awareness. DynaNDE incorporates awareness of experts already residing in the NPU memory into the scheduling process. This mechanism avoids redundant parameter transfers, reducing communication overhead and improving scheduling efficiency.

  • Performance gains. DynaNDE achieves average speedups of 2.6× and 2.2× for the prefill and decoding stages, respectively, across models compared to MoNDE [17], the state-of-the-art NPU-NDP MoE serving framework.