Manuscript Offprint

arXiv:2610.26991

3D-MoE: Complementarity-Guided Hardware-Software Co-Design for MoE Decode on 3D-Stacked NMP

Yudong Pan, Lian Liu, Shixin Zhao, Yintao He, Kaiyan Chang, Tianhua Han, Chenyang Ai, Haonan Zhu, Mengdi Wang, Yinhe Han, Ying Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Yudong Pan*†, Lian Liu*†, Shixin Zhao*†, Yintao He*†, Kaiyan Chang*†, Tianhua Han*†, Chenyang Ai‡, Haonan Zhu*†, Mengdi Wang*†, Yinhe Han*† and Ying Wang*†§

*SKLP, Institute of Computing Technology, Chinese Academy of Sciences, Beijing, China

†University of Chinese Academy of Sciences, Beijing, China

‡University of Edinburgh, Edinburgh, United Kingdom

§Corresponding author: wangying2009@ict.ac.cn

Email: {panyudong23,liulian211,zhaoshixin18,hantianhua22,zhuhaonan24}@mails.ucas.ac.cn, {heyintao19z,wangmengdi,yinhes,wangying2009}@ict.ac.cn, changkaiyan@live.com, C.Ai-4@sms.ed.ac.uk

Abstract—Mixture-of-Experts (MoE) have become a mainstream way to scale Large Language Models (LLMs), because each token activates only a small subset of experts, reducing inference cost. However, MoE decode remains highly memory-bound and exhibits strongly skewed, time-varying expert loads. 3D-stacked DRAM near-memory processing (NMP) provides the bandwidth that decode demands, yet its tiled organization makes load balancing expensive: expert parallelism (EP) preserves locality but suffers from hotspot-induced imbalance, while more distributed strategies weaken locality and increase NoC traffic.

To address this locality-balance conflict, we observe that domain-specialized token routing creates offsetting expert-load fluctuations across decode steps, a property we call expert complementarity. Using this insight, we propose 3D-MoE, a hardware-software co-designed system for MoE decode on 3D-stacked NMP. 3D-MoE uses offline, one-time complementarity-guided grouping and locality-aware mapping to establish coarse-grained inter-group balance, handles residual intra-group hotspots through a lightweight Collaborative Memory-Network (CMN) that streams each hot expert's weight tiles once from its host DRAM channel to helper cores over a reconfigured local broadcast path, and uses cost-aware online remapping to remain robust to workload drift. Across MoE models, 3D-MoE achieves an average 4.63×4.63\times MoE-layer speedup over EP and improves end-to-end throughput by 1.58×−1.86×1.58\times-1.86\times over the strongest NMP baselines, with 2.11% additional logic-die area.

I. INTRODUCTION

Mixture-of-Experts (MoE) architectures have become mainstream for scaling Large Language Models (LLMs): each token activates only a small expert subset, decoupling model capacity from inference cost [10], [30]. Yet this sparsity makes autoregressive decoding highly memory-bound; each expert receives few tokens per step, producing small GEMMs with poor data reuse [88]. In our profiling, MoE layers account for 83–92% of end-to-end latency at batch size 64 and dominate serving latency [25]. Expert loads are also highly skewed and dynamic, with the hottest expert receiving over 20×20\times the step-average token count [13].

3D-stacked DRAM near-memory processing (NMP) is well matched to bandwidth-dominated MoE decode by serving expert weights directly from local stacked DRAM [14], [68], [80]. Yet its tiled organization creates a severe cost asymmetry: local accesses are fast, whereas remote accesses traverse the network-on-chip (NoC) and consume shared bandwidth. MoE deployment consequently faces a three-way tension among locality, load balance, and communication cost. Expert Parallelism (EP) best matches this structure by keeping expert weights local, but suffers from routing skew. Tensor Parallelism (TP) smooths load, yet turns every expert invocation into a distributed operation with synchronization and NoC overhead. Dynamic EP methods partially alleviate hotspots, but the difficulty of predicting expert loads and handling remote hotspots limits their benefits on NMP [8], [13]. The central challenge is therefore to retain EP's locality while mitigating its imbalance.

Our key observation is that MoE routing skew is not purely random. Although MoE training often includes load-balancing objectives, pre-trained models develop structured expert preferences, often reflected in domain-skewed activation patterns [56], [75]. As the request mix changes, demand shifts across expert subsets and induces offsetting variations in their decode-step loads. We call this trace-level load cancellation expert complementarity. This structural signal suggests an EP-friendly balancing mechanism: grouping complementary experts and mapping them to nearby NMP cores can stabilize aggregate group load without sacrificing weight locality.

Turning complementarity into a practical deployment primitive remains non-trivial. First, highly volatile step-level token routing obscures the useful complementarity signal, requiring a robust method to distinguish persistent relations from transient noise. Second, complementarity improves balance mainly at the group level, leaving transient hotspots within a group. Because a hot expert's weights remain pinned to its host core, nearby helper cores require repeated remote weight fetches or inefficient packet-routed one-to-many delivery. Third, the offline expert deployment derived from historical traces must remain robust under workload drift, calling for lightweight

Figure

(a) MoE architecture & procedure

(b) MoE inference latency breakdown

(c) roofline model of different devices

Fig. 1. MoE workflow, latency breakdown, and device roofline comparison.

online correction rather than frequent global re-optimization.

To address these challenges, we propose 3D-MoE, a hardware-software co-design for MoE decode on 3D-stacked NMP. 3D-MoE exploits complementarity hierarchically. First, it profiles decode-step expert loads on representative mixed workloads to filter transient routing noise and expose persistent complementary structure in the traces. It then performs one-time complementarity-guided expert grouping and mapping through a two-stage offline optimization that accounts for inter-group balance, expected residual collaboration cost, and communication-aware placement. Second, we introduce the Collaborative Memory-Network (CMN), a lightweight co-design of the memory controller and NoC that handles residual intra-group hotspots through a specialized “load once, broadcast to many” path: the host reads each hot expert’s weight tile once from local DRAM and streams it to helper cores over a temporary broadcast path created by lightweight NoC reconfiguration. Third, tiered cost-aware online remapping applies frequent low-cost adjustments while reserving higher-cost reconfigurations for long-term workload drift.

This paper makes the following four contributions:

  • We identify expert complementarity as a trace-level load-cancellation structure in MoE decode, and validate that it is sufficiently stable across datasets and time windows to support one-time offline deployment.

  • We formulate complementarity-guided expert grouping and locality-aware mapping as sequential optimization stages that balance inter-group load while accounting for intra-group collaboration and routing costs.

• We design CMN, a lightweight hardware fast path for residual intra-group hotspot assistance that reduces redundant DRAM reads and per-hop packet processing.

  • We integrate offline optimization, localized collaborative execution, and tiered online correction into 3D-MoE, achieving 4.63×4.63\times average MoE-layer speedup over EP and 1.58×−1.86×1.58\times-1.86\times end-to-end throughput gains over the strongest NMP baselines with only 2.11% area overhead.

Figure

Fig. 2. Expert activation analysis on Qwen3-30B-A3B. (a) Expert hit rates across domains. (b) Inter-layer variation.

Figure

Fig. 3. Stacked-DRAM NMP system organization.

References (87)