Lune

NeurIPS2024顶会

Toward Efficient Inference for Mixture of Experts

Haiyang Huang, Newsha Ardalani, Anna Y. Sun, Liu Ke, Shruti Bhosale, Hsien-Hsin S. Lee, Carole-Jean Wu, Benjamin Lee

摘要

Mixture-of-Experts (MoE) models have recently gained steam in achieving the state-of-the-art performance in a wide range of tasks in computer vision and natural language processing. They effectively expand the model capacity while incurring a minimal increase in computation cost during training. However, deploying such models for inference is difficult due to their large model size and complex communication pattern. In this work, we provide a characterization of two MoE workloads, namely Language Modeling (LM) and Machine Translation (MT) and identify their sources of inefficiencies at deployment. We propose three optimization techniques to mitigate sources of inefficiencies, namely (1) Dynamic gating, (2) Expert Buffering, and (3) Expert load balancing. We show that dynamic gating improves maximum throughput by 6.21-11.55 × for LM, 5.75-10.98 × for MT Encoder and 2.58-5.71 × for MT Decoder. It also reduces memory usage by up to 1.36 × for LM and up to 1.1 × for MT. We further propose Expert Buffering, a new caching mechanism that only keeps hot, active experts in GPU memory while buffering the rest in CPU memory. This reduces static memory allocation by 1.47 × . Finally, we propose a load balancing methodology that provides additional robustness to the workload. Our code is available at https://github.com/ hyhuang00/moe_inference .

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 14 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
  • Least-Loaded Expert Parallelism: Load Balancing An Imbalanced Mixture-of-Experts 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
  • STEM: Scaling Transformers with Embedding Modules 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
  • Scaling Vision with Sparse Mixture of Experts 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Scaling Vision with Sparse Mixture of Experts 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
  • GLaM: Efficient Scaling of Language Models with Mixture-of-Experts 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper14

  1. POD-Attention: Unlocking Full Prefill-Decode Overlap for Faster LLM InferenceAditya K. Kamath, Ramya Prabhu, Jayashree Mohan, Simon Peter 等ASPLOS 2025 · 24 次引用
  2. STEM: Scaling Transformers with Embedding ModulesRanajoy Sadhukhan, Sheng Cao, Harry Dong, Changsheng Zhao 等ICLR 2026 · 14 次引用
  3. Sparse Models, Sparse Safety: Unsafe Routes in Mixture-of-Experts LLMsYukun Jiang, Hai Huang, Mingjie Li, Yage Zhang 等ICML 2026 · 9 次引用
  4. In-Storage Acceleration of Retrieval Augmented Generation as a ServiceRohan Mahapatra, Harsha Santhanam, Christopher Priebe, Hanyang Xu 等ISCA 2025 · 9 次引用
  5. Least-Loaded Expert Parallelism: Load Balancing An Imbalanced Mixture-of-ExpertsXuan-Phi Nguyen, Shrey Pandit, Austin Xu, Caiming Xiong 等ICML 2026 · 5 次引用

它引用的 Paper18

  1. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
  2. Reformer: The Efficient TransformerNikita Kitaev, Lukasz Kaiser, Anselm LevskayaICLR 2020 · 2,878 次引用
  3. GShard: Scaling Giant Models with Conditional Computation and Automatic ShardingDmitry Lepikhin, HyoukJoong Lee, Yuanzhong Xu, Dehao Chen 等ICLR 2021 · 1,954 次引用
  4. Scaling Vision with Sparse Mixture of ExpertsCarlos Riquelme, Joan Puigcerver, Basil Mustafa, Maxim Neumann 等NeurIPS 2021 · 1,213 次引用
  5. GLaM: Efficient Scaling of Language Models with Mixture-of-ExpertsNan Du, Yanping Huang, Andrew M. Dai, Simon Tong 等ICML 2022 · 1,173 次引用

相关 Paper

  1. SMoE: An Algorithm-System Co-Design for Pushing MoE to the Edge via Expert SubstitutionGuoying Zhu, Meng Li, Haipeng Dai, Xuechen Liu 等ISCA 2026 · 4 次引用
  2. MoNDE: Mixture of Near-Data Experts for Large-Scale Sparse ModelsTaehyun Kim, Kwanseok Choi, Youngmock Cho, Jaehoon Cho 等DAC 2024 · 11 次引用
  3. Diff-MoE: Efficient Batched MoE Inference with Priority-Driven Differential Expert CachingKexin Li, Wenkan Huang, Qinggang Wang, Long Zheng 等SC 2025 · 3 次引用
  4. Pre-gated MoE: An Algorithm-System Co-Design for Fast and Scalable Mixture-of-Expert InferenceRanggi Hwang, Jianyu Wei, Shijie Cao, Changho Hwang 等ISCA 2024 · 48 次引用
  5. MoE-APEX: An Efficient MoE Inference System with Adaptive Precision Expert OffloadingPeng Tang, Jiacheng Liu, Xiaofeng Hou, Yifei Pu 等ASPLOS 2026 · 4 次引用
黄昏的海面,两侧是细线勾勒的悬崖