Sieve: 动态专家感知的PIM加速用于演进的专家混合模型
Sieve: Dynamic Expert-Aware PIM Acceleration for Evolving Mixture-of-Experts Models
AI总结:
本文提出Sieve框架,通过动态调度专家执行,优化多GPU系统中PIM的效率,提升吞吐量和交互性。
摘要:
混合专家(MoE)已成为扩展大型语言模型(LLMs)的主要架构。然而,MoE推理的执行特性迅速变化,与现有处理-in-内存(PIM)系统假设不匹配。现有PIM系统依赖静态规则将内存密集型操作卸载到PIM,未考虑负载不平衡和跨GPU通信的综合影响。同时,现代MoE模型激活的专家更少,形成双峰专家分布:少量专家处理大量token,而长尾专家仅处理一两个token。我们发现现代MoE模型正朝双峰token-to-expert分布发展,量化专家间算力强度差异,并表明这种差异显著降低现有PIM系统效率。为此,我们提出一个调度器,用于多GPU系统中服务MoE模型,基于运行时token-to-expert分布将专家执行分配到GPU和PIM,同时考虑互连开销、内存带宽、GPU吞吐量和PIM吞吐量。此外,我们提出Sieve,一个运行时框架,利用调度器协调GPU及其附加的HBM-PIM堆栈的执行。Sieve重叠GPU计算、PIM计算和设备内通信,同时保持由专家并行性诱导的跨设备依赖。Sieve在基于Ramulator 2.0的周期精确模拟器上进行评估。与现有MoE PIM系统相比,Sieve在Qwen3.5-397B-A17B、GPT-OSS-120B和Qwen3-30B-A3B上分别提升了吞吐量、交互性1.3x、1.3x和1.6x。
英文摘要:
Mixture-of-Experts (MoE) has become a dominant architecture for scaling large language models (LLMs). However, the execution characteristics of MoE inference are changing rapidly and increasingly mismatch the assumptions underlying existing Processing-in-Memory (PIM) systems. Prior PIM systems for LLMs rely on static rules to offload memory-bound operations to PIM, without accounting for the combined effects of load imbalance and inter-GPU communication. Meanwhile, modern MoE models activate fewer experts out of increasingly many, creating a bimodal expert distribution: a small set of experts receives many tokens, while a long tail of experts receives only one or a few. We identify a trend in modern MoE models toward increasingly bimodal token-to-expert distributions, quantify the resulting disparity in arithmetic intensity across experts, and show that this disparity dramatically reduces the efficiency of state-of-the-art PIM systems for LLMs. To address this problem, we propose a scheduler for serving MoE models on multi-GPU systems with attached HBM-PIM stacks. Our scheduler partitions expert execution between GPU and PIM based on runtime token-to-expert distributions, while jointly considering interconnect overhead, memory bandwidth, GPU throughput, and PIM throughput. Moreover, we propose Sieve, a runtime framework that employs the scheduler to coordinate execution across GPUs and their attached HBM-PIM stacks. Sieve overlaps GPU computation, PIM computation, and intra- and inter-device communication while preserving cross-device dependencies induced by expert parallelism. Sieve is evaluated on our cycle-accurate simulator based on Ramulator 2.0. Compared to state-of-the-art PIM systems for MoE, Sieve improves both throughput and interactivity by 1.3x, 1.3x, and 1.6x on Qwen3.5-397B-A17B, GPT-OSS-120B, and Qwen3-30B-A3B, respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。