arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.03531cs.CLcs.LG
收藏

面向超大规模模型的更快速 MoE LLM 推理

Faster MoE LLM Inference for Extremely Large Models

Wuhan University(武汉大学);Wuhan Second Ship Design And Research Institute(武汉第二船舶设计研究所);Shanghai Jiao Tong University(上海交通大学)

Haoqi Yang, Luohe Shi, Qiwei Li, Zuchao Li, Ping Wang, Bo Du, Mengjia Shen, Hai Zhao

AI总结:

本文研究细粒度 MoE 大语言模型推理效率,发现减少激活专家数可在轻微性能损失下显著提升吞吐量,而减少专家总数效率收益有限且性能下降严重,所提方法可在无性能损失下将吞吐量提升至少 10%。

摘要:

稀疏专家混合(MoE)大语言模型(LLMs)正逐渐成为超大规模模型的主流方法。现有针对 MoE 模型的优化工作主要集中在粗粒度 MoE 架构上。随着 DeepSeek 系列模型的出现,细粒度 MoE 模型日益受到关注,但相关研究仍然有限。因此,我们希望讨论不同服务负载下的效率动态。此外,细粒度模型允许部署者减少路由专家的数量,包括激活数量和总数量,这引出了一个问题:这种减少如何影响 MoE 效率与性能之间的权衡。我们的研究结果表明,虽然部署 MoE 模型面临更大的挑战,但它也提供了显著的优化机会。减少激活专家数量可以在某些场景下带来可观的效率提升,同时仅造成轻微的性能下降。减少专家总数量带来的效率提升有限,但会导致严重的性能下降。我们的方法可以在没有任何性能下降的情况下将吞吐量提高至少 10%。总体而言,我们得出结论:MoE 推理优化仍然是一个具有巨大探索和改进潜力的领域。

英文摘要:

Sparse Mixture of Experts (MoE) large language models (LLMs) are gradually becoming the mainstream approach for ultra-large-scale models. Existing optimization efforts for MoE models have focused primarily on coarse-grained MoE architectures. With the emergence of DeepSeek Models, fine-grained MoE models are gaining popularity, yet research on them remains limited. Therefore, we want to discuss the efficiency dynamic under different service loads. Additionally, fine-grained models allow deployers to reduce the number of routed experts, both activated counts and total counts, raising the question of how this reduction affects the trade-off between MoE efficiency and performance. Our findings indicate that while deploying MoE models presents greater challenges, it also offers significant optimization opportunities. Reducing the number of activated experts can lead to substantial efficiency improvements in certain scenarios, with only minor performance degradation. Reducing the total number of experts provides limited efficiency gains but results in severe performance degradation. Our method can increase throughput by at least 10\% without any performance degradation. Overall, we conclude that MoE inference optimization remains an area with substantial potential for exploration and improvement.

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

↑