Manuscript Offprint

arXiv:2609.08682

HDA-MoE: Hybrid Parallelism and Dynamic, Adaptive Scheduling for Mixture-of-Experts with 3D Near-Memory Processing

Haochen Huang, Shuzhang Zhong, Shengxuan Qiu, Zhe Zhang, Shuangchen Li, Cong Li, Dimin Niu, Hongzhong Zheng, Guangyu Sun, Runsheng Wang, Meng Li

Haochen Huang1,2^{1,2}, Shuzhang Zhong1,2,4,5^{1,2,4,5}, Shengxuan Qiu1,2,3^{1,2,3}, Zhe Zhang4,5^{4,5}, Shuangchen Li4,5^{4,5}, Cong Li2^{2}, Dimin Niu4,5^{4,5}, Hongzhong Zheng4,5^{4,5}, Guangyu Sun2^{2}, Runsheng Wang2,6,7^{2,6,7}, Meng Li1,2,7∗^{1,2,7*}

Abstract—Mixture-of-Experts (MoE) architectures have become a key technique for scaling Large Language Models (LLMs), enabling high model capacity with reduced computational cost. However, this efficiency comes at the expense of increased memory capacity and bandwidth demands. Recent 3D Near-Memory Processing (NMP) architectures, which vertically integrate memory and compute through hybrid bonding, provide high internal bandwidth and energy efficiency, making them attractive for accelerating MoE inference. Nevertheless, the distributed memory and compute organization of NMP systems introduces new challenges for mapping MoE workloads. Existing parallelization strategies, such as Tensor Parallelism (TP) and Expert Parallelism (EP), suffer from either high communication costs or unbalanced computation utilization, leading to inferior efficiency. In addition, the dynamic routing behavior of MoE models further complicates efficient deployment. To address these challenges, we present HDA-MoE, a framework that optimizes MoE execution on NMP architectures through hybrid parallel deployment and runtime scheduling. HDA-MoE integrates an offline hybrid parallel mapping algorithm with an online dynamic and adaptive scheduling mechanism to reduce communication overhead while improving computation utilization. Experimental results show that HDA-MoE achieves a speedup of 1.1×−3.4×1.1\times-3.4\times over TP, 1.1×−1.5×1.1\times-1.5\times over EP, 1.1×−3.7×1.1\times-3.7\times over the Hybrid TP-EP compute-balanced baseline, and 1.1×−1.3×1.1\times-1.3\times over HD-MoE. Source code is available at https://github.com/PKU-SEC-Lab/HDA-MoE-TCAD26.

Index Terms—Automated Deployment, Mixture-of-Experts, 3D Near-Memory Processing, Hardware-Aware Routing, NoC Simulation

I. INTRODUCTION

Recent advances in Mixture-of-Experts (MoE) have made it a widely used architecture for scaling Large Language Models (LLMs) [1], [2]. By activating only a small subset of experts for each token, MoE reduces computational cost while maintaining large model capacity. However, the sparse activation pattern introduces irregular memory accesses and often aggravates memory bottlenecks, especially on edge devices with limited bandwidth and small batch sizes.

Recent emerging 3D Near-Memory Processing (NMP) architectures provide a promising platform for such bandwidth-intensive workloads [3], [4]. By vertically stacking DRAM

Figure

Fig. 1. Comparison of expert placement and execution timelines under (a) tensor parallelism, (b) expert parallelism, and (c) hybrid parallelism.

on logic dies through high-bandwidth interconnects, NMP enables fine-grained parallel memory access and high internal bandwidth, making it well-suited for MoE inference.

However, deploying MoE models on NMP systems introduces new challenges. Unlike GPUs with large shared memory, NMP architectures consist of distributed memory banks connected by an on-chip network (NoC), requiring careful coordination between expert placement and communication. As shown in Fig. 1, Tensor Parallelism (TP) [5] partitions each expert across banks, improving load balance but incurring heavy all-reduce communication, whereas Expert Parallelism (EP) [6] places complete experts on different banks, reducing communication but suffering from workload imbalance.

Large GPU clusters can combine EP with expert replication to mitigate imbalance, as in DeepSeek-R1 deployment [1]. However, replication is less practical for memory-constrained 3D NMP, and dynamic expert activation further makes static deployment insufficient.

Recent offloading works study dynamic expert scheduling [7]–[9], where experts are loaded on demand and transfer latency dominates. They also observe temporal locality across adjacent layers, which can guide prefetching.

In addition, the contribution of different experts to the final output is often uneven. While a small subset of experts receives high routing scores and dominates the computation, many others have relatively low influence on the output [7], [9]–[11]. This suggests that certain experts may be interchangeable without significantly affecting model accuracy, providing opportunities to guide expert selection toward more balanced and communication-efficient execution.

Motivated by these challenges, we propose HDA-MoE, a hybrid parallelism and dynamic, adaptive scheduling framework for MoE inference on 3D NMP. As shown in Fig. 1(c), HDA-MoE uses EP for low-activation experts to reduce com-

∗^{*} Corresponding author: meng.li@pku.edu.cn

1^{1} Institute for Artificial Intelligence, Peking University, Beijing, China.

2^{2} School of Integrated Circuits, Peking University, Beijing, China.

3^{3} School of Electronics Engineering and Computer Science, Peking University, Beijing, China.

4^{4} Alibaba DAMO Academy, Beijing, China.

5^{5} DAMO Academy, Alibaba Group, Beijing Hupan Lab, Hangzhou.

6^{6} Institute of Electronic Design Automation, Peking University, Wuxi, China.

7^{7} Beijing Advanced Innovation Center for Integrated Circuits, Beijing, China.

Figure

(a) MoE Structure

(b) Tensor Parallel

(c) Expert Parallel

Fig. 2. Overview of the MoE architecture and two parallelization strategies.

munication and TP-style partitioning for frequent experts to improve utilization. It further introduces online dynamic placement and hardware-aware adaptive gating to handle dynamic activation patterns.

Building upon HD-MoE [12], this journal version adds hardware-aware gating, analyzes low-impact expert substitutability, expands system modeling, and extends evaluation with conference-baseline comparison, latency breakdown, accuracy, scalability, and sensitivity studies. Code and evaluation artifacts are available at https://github.com/PKU-SEC-Lab/HDA-MoE-TCAD26.

Our key contributions are summarized as follows:

• We build a unified performance model to estimate MoE computation and communication cost and guide deployment optimization.

• Automated Hybrid Parallelism. We develop a placement framework that combines TP and EP to jointly optimize workload balance and communication overhead.

• Dynamic Scheduling. We introduce runtime scheduling to reduce latency caused by short-term expert-activation fluctuations under a given routing pattern.

  • Hardware-aware Gating. We introduce hardware-aware gating to reduce routing-induced computation and communication bottlenecks with limited model perturbation.

• Extensive experiments demonstrate clear improvements in TBT and speedup over strong baseline methods.

References (52)