arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.19142cs.AR
收藏

A3D-MoE:通过3D异构集成加速采用混合专家架构的大语言模型

A3D-MoE: Acceleration of Large Language Models with Mixture of Experts via 3D Heterogeneous Integration

Wei-Hsing Huang, Janak Sharda, Cheng-Jhih Shih, Yuyao Kong, Faaiq Waqar, Pin-Jun Chen, Yingyan, Lin, Shimeng Yu

AI总结:

本文提出A3D-MoE 3D异构集成系统,通过自适应脉动阵列、统一3D数据流、操作融合调度和专家放置优化,提升MoE LLM推理性能。

摘要:

传统大语言模型(LLM)拥有数十GB至TB级的模型参数,由于计算期间需要将所有权重加载到片上处理单元,推理过程能耗极高且成本高昂。近年来,混合专家(Mixture-of-Experts,MoE)架构成为一种高效替代方案,有望通过每个token激活更少权重实现高效推理。然而,基于细粒度MoE的LLM面临若干挑战:1)运行时可变工作负载产生任意GEMV-GEMM比例,降低硬件利用率;2)用于LLM服务的传统MoE调度无法将注意力操作与MoE操作融合,导致延迟增加和硬件利用率下降;3)尽管比传统LLM更高效,但从DRAM加载专家仍消耗大量能量并需要可观的DRAM带宽。为解决这些挑战,我们提出:1)A3D-MoE,一个采用先进垂直集成技术的3D异构集成系统,可显著提升内存带宽,同时降低片上网络(NoC)开销和能耗;2)具有V-Cache高效数据复用和新型统一3D数据流的3D自适应GEMV-GEMM比例脉动阵列,以解决不同工作负载产生的任意GEMV-GEMM比例导致的硬件利用率下降问题;3)硬件资源感知的操作融合调度器,将注意力操作与MoE操作融合以提升硬件性能;4)MoE分数感知的HBM访问减少机制,采用奇偶专家放置方式,降低DRAM访问和带宽需求。评估结果表明,与最先进方案相比,A3D-MoE带来显著性能提升,将延迟降低1.8倍至2倍、能耗降低2倍至4倍,并将吞吐量提升1.44倍至1.8倍。

英文摘要:

Conventional large language models (LLMs) are equipped with dozens of GB to TB of model parameters, making inference highly energy-intensive and costly as all the weights need to be loaded to onboard processing elements during computation. Recently, the Mixture-of-Experts (MoE) architecture has emerged as an efficient alternative, promising efficient inference with less activated weights per token. Nevertheless, fine-grained MoE-based LLMs face several challenges: 1) Variable workloads during runtime create arbitrary GEMV-GEMM ratios that reduce hardware utilization, 2) Traditional MoE-based scheduling for LLM serving cannot fuse attention operations with MoE operations, leading to increased latency and decreased hardware utilization, and 3) Despite being more efficient than conventional LLMs, loading experts from DRAM still consumes significant energy and requires substantial DRAM bandwidth. Addressing these challenges, we propose: 1) A3D-MoE, a 3D Heterogeneous Integration system that employs state-of-the-art vertical integration technology to significantly enhance memory bandwidth while reducing Network-on-Chip (NoC) overhead and energy consumption. 2) A 3D-Adaptive GEMV-GEMM-ratio systolic array with V-Cache efficient data reuse and a novel unified 3D dataflow to solve the problem of reduced hardware utilization caused by arbitrary GEMV-GEMM ratios from different workloads, 3) A Hardware resource-aware operation fusion scheduler that fuses attention operations with MoE operations to enhance hardware performance, and 4) MoE Score-Aware HBM access reduction with even-odd expert placement that reduces DRAM access and bandwidth requirements. Our evaluation results indicate that A3D-MoE delivers significant performance enhancements, reducing latency by a factor of 1.8x to 2x and energy consumption by 2x to 4x, while improving throughput by 1.44x to 1.8x compared to the state-of-the-art.

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

↑