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

混合专家模型推理优化技术综述

A Survey on Inference Optimization Techniques for Mixture of Experts Models

Chinese University of Hong Kong(香港中文大学)

Jiacheng Liu, Peng Tang, Wenfeng Wang, Yuhang Ren, Xiaofeng Hou, Pheng-Ann Heng, Minyi Guo, Chao Li

AI总结:

本文针对大规模MoE模型推理部署的资源、延迟与能效挑战,从模型级、系统级、硬件级三个层面系统梳理其推理优化技术,指出关键挑战与研究方向,并搭建了相关前沿进展共享仓库。

摘要:

大规模混合专家(Mixture of Experts, MoE)模型的出现是人工智能领域的一项重大进展,它通过条件计算提升了模型容量与计算效率。然而,在这些模型上进行部署与推理时,在计算资源、延迟和能效方面面临着严峻挑战。本综述全面分析了横跨整个系统栈的MoE模型优化技术。我们首先构建了一个分类框架,将优化方法划分为模型级、系统级和硬件级优化三类。在模型层面,我们研究了架构创新,包括高效专家设计、注意力机制、剪枝、量化与知识蒸馏等各类压缩技术,以及动态路由策略、专家合并方法等算法改进。在系统层面,我们探讨了支撑可扩展部署的分布式计算方法、负载均衡机制与高效调度算法。此外,我们深入研究了最大化吞吐量与能效的硬件专属优化及软硬件协同设计策略。本综述不仅对现有解决方案进行了结构化梳理,还指出了MoE推理优化领域的关键挑战与前沿研究方向。为持续更新并分享MoE推理优化研究的前沿进展,我们搭建了一个代码仓库,访问地址为https://github.com/MoE-Inf/awesome-moe-inference/。

英文摘要:

The emergence of large-scale Mixture of Experts (MoE) models represents a significant advancement in artificial intelligence, offering enhanced model capacity and computational efficiency through conditional computation. However, deploying and running inference on these models presents significant challenges in computational resources, latency, and energy efficiency. This comprehensive survey analyzes optimization techniques for MoE models across the entire system stack. We first establish a taxonomical framework that categorizes optimization approaches into model-level, system-level, and hardware-level optimizations. At the model level, we examine architectural innovations including efficient expert design, attention mechanisms, various compression techniques such as pruning, quantization, and knowledge distillation, as well as algorithm improvement including dynamic routing strategies and expert merging methods. At the system level, we investigate distributed computing approaches, load balancing mechanisms, and efficient scheduling algorithms that enable scalable deployment. Furthermore, we delve into hardware-specific optimizations and co-design strategies that maximize throughput and energy efficiency. This survey provides both a structured overview of existing solutions and identifies key challenges and promising research directions in MoE inference optimization. To facilitate ongoing updates and the sharing of cutting-edge advances in MoE inference optimization research, we have established a repository accessible at https://github.com/MoE-Inf/awesome-moe-inference/.

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

↑