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

超越均匀专家:面向高效多设备MoE推理的成本感知专家执行

Beyond Uniform Experts: Cost-Aware Expert Execution for Efficient Multi-Device MoE Inference

Huawei Technologies Ltd(华为技术有限公司)

Hui Zang, Pengfei Xia, Hong Liu, Jiajia Chu, Tuo Hao, Minghao Chen, Rui Zhang, Ziyang Zhang

AI总结:

针对MoE推理中专家重要性不均与系统负载失衡问题,提出硬件引导的CAEE框架,通过轻量成本模型修剪低重要性高成本专家并补偿贡献,在DeepSeek-R1上实现8%-18%延迟降低且精度损失<1%。

摘要:

混合专家(MoE)架构通过稀疏激活使语言模型达到前所未有的规模。然而,其推理性能常受限于数据移动瓶颈。两个耦合挑战加剧了这一限制:(1)重要性无关成本:低贡献专家产生几乎均匀的内存和传输成本,导致成本效益比低,浪费关键带宽;(2)系统级不平衡:多设备部署普遍受限于最慢设备,意味着一个设备上的局部减少可能不会改善端到端延迟。我们提出成本感知专家执行(CAEE),一种硬件引导的运行时框架,联合优化令牌级专家重要性和系统级执行成本。CAEE使用轻量级校准成本模型估计硬件开销,选择性修剪低重要性高成本专家,并通过低开销补偿机制重新分配其贡献,避免额外数据移动。在671B DeepSeek-R1模型上的评估表明,CAEE可在多种部署设置(包括专家卸载和多设备系统上的设备内执行)下将端到端推理延迟降低8%-18%,同时保持模型精度下降小于1%。

英文摘要:

Mixture-of-Experts (MoE) architectures enable language models to achieve unprecedented scale via sparse activation. However, their inference performance is often limited by data movement bottlenecks. Two coupled challenges exacerbate this limtation: (1) Importance-Agnostic Cost: Low-contribution experts incur nearly uniform memory and transfer costs, resulting in a low cost-to-benefit ratio and wasting critical bandwidth; (2) System-Level Imbalance: Multi-device deployments are universally bottlenecked by the slowest device, meaning that local reductions on one device may yield no improvement in end-to-end latency. We propose Cost-Aware Expert Execution (CAEE), a hardware-guided runtime framework that jointly optimizes for token-level expert importance and system-level execution cost. CAEE uses lightweight, calibrated cost models to estimate hardware overhead, selectively prunes low-importance, high-cost experts, and redistributes their contributions via a low-overhead compensation mechanism, avoiding extra data movement. Evaluations on the 671B DeepSeek-R1 model show that CAEE can reduce end-to-end inference latency by 8\%-18\% across diverse deployment settings, including expert offloading and on-device execution on multi-device systems, while maintaining a model accuracy drop of less than 1\%.

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

↑