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

通过自适应专家分配实现高效的CPU-GPU协同MoE推理

Efficient CPU-GPU collaborative MoE inference via Adaptive Expert Assignment

Wenhui Lv, Yunming Liao, Hongli Xu, Yang Xu, Junhao Cheng

AI总结:

该研究提出自适应专家分配系统,通过CPU-GPU协同分配MoE缺失专家,在不同GPU内存预算下,使MoE推理的预填充速度最高提升51.9%、解码吞吐量最高提升39.5%。

摘要:

混合专家(MoE)模型通过稀疏专家激活减少推理计算量,但其巨大的专家内存占用往往超出GPU容量,使得内存受限的推理场景必须进行专家卸载。然而,现有系统处理GPU缺失专家时,通常要么将其传输到GPU,产生大量PCIe传输延迟;要么在CPU上执行,导致较慢的CPU计算成为瓶颈。为解决这些局限,我们提出了\textit{Adaptive Expert Assignment}(自适应专家分配,\textit{method}),一种CPU-GPU协同的MoE推理系统,可自适应地将这些缺失专家分配给CPU或GPU以实现高效执行。通过利用专家的令牌负载差异,\textit{method}选择性地将高负载专家传输到GPU,同时在CPU上执行低负载专家。为最小化推理延迟,\textit{method}会自适应调整专家分配,以平衡CPU计算路径与GPU传输-计算路径,使两条执行路径尽可能早完成。在三个代表性MoE大语言模型(LLM)上进行的大量实验表明,在评估的批量大小下,与最强基线相比,\textit{method}的预填充速度最高提升51.9%,解码吞吐量最高提升39.5%,且在不同GPU内存预算下均能保持稳定增益。

英文摘要:

Mixture-of-Experts (MoE) models reduce inference computation through sparse expert activation, but their large expert memory footprint often exceeds GPU capacity, making expert offloading necessary for memory-constrained inference. However, existing systems typically handle GPU-missed experts by either transferring them to the GPU, incurring substantial PCIe transfer latency, or executing them on the CPU, making the slower CPU computation the bottleneck. To address these limitations, we present \method, a CPU-GPU collaborative MoE inference system that adaptively assigns these missed experts to the CPU or GPU for efficient execution. By exploiting differences in expert token-loads, \method selectively transfers high-load experts to the GPU while executing low-load experts on the CPU. To minimize inference latency, \method adaptively adjusts expert assignments to balance the CPU computation path against the GPU transfer-and-computation path, allowing both execution paths to complete as early as possible. Extensive experiments on three representative MoE LLMs show that \method improves prefill speed by up to 51.9\% and decode throughput by up to 39.5\% over the strongest baseline across the evaluated batch sizes, with consistent gains under different GPU-memory budgets.

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

↑