arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.26991cs.ARcs.AIcs.DC
收藏

3D-MoE:面向3D堆叠近内存处理(NMP)上MoE解码的互补性指导软硬件协同设计

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

SKLP, Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学);University of Edinburgh(爱丁堡大学)

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

AI总结:

3D-MoE是面向3D堆叠NMP上MoE解码的软硬件协同设计系统,利用专家互补性解决局部性与负载均衡冲突,通过分组映射、CMN处理热点及在线重映射,实现MoE层平均4.63倍加速,端到端吞吐量提升1.58-1.86倍。

摘要:

混合专家(MoE)已成为扩展大语言模型(LLM)的主流方式,因为每个token仅激活一小部分专家,从而降低推理成本。然而,MoE解码仍高度受内存限制,且呈现出强烈倾斜、随时间变化的专家负载。3D堆叠近内存处理(NMP)提供了解码所需的带宽,但其平铺结构使负载均衡成本高昂:专家并行(EP)保留了局部性,但存在热点引发的负载失衡;而更分布式的策略则削弱了局部性并增加了片上网络(NoC)流量。为解决这一局部性-负载均衡冲突,我们观察到领域专用的token路由会在解码步骤间产生相互抵消的专家负载波动,这一特性我们称之为专家互补性。基于这一见解,我们提出3D-MoE,一种面向3D堆叠NMP上MoE解码的软硬件协同设计系统。3D-MoE采用离线一次性互补性指导分组和局部性感知映射来建立粗粒度的组间均衡,通过轻量型协作内存-网络(CMN)处理剩余的组内热点,该网络通过重新配置的本地广播路径将每个热点专家的权重块从其主机DRAM通道流式传输至辅助核一次,并采用成本感知的在线重映射以应对工作负载漂移。在多个MoE模型上,3D-MoE相较于EP实现了平均4.63倍的MoE层加速,相较于最强的NMP基准,端到端吞吐量提升了1.58倍至1.86倍,同时仅增加2.11%的逻辑芯片面积。

英文摘要:

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$\times$ MoE-layer speedup over EP and improves end-to-end throughput by 1.58$\times$--1.86$\times$ over the strongest NMP baselines, with 2.11\% additional logic-die area.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

相关深度报道

↑