Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
102 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
6 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Towards MoE Deployment: Mitigating Inefficiencies in Mixture-of-Expert (MoE) Inference (2303.06182v2)

Published 10 Mar 2023 in cs.DC, cs.AR, cs.CL, and cs.LG

Abstract: Mixture-of-Experts (MoE) models have gained popularity in achieving 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 size and complex communication pattern. In this work, we provide a characterization of two MoE workloads, namely LLMing (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.23$\times$ for LM, 5.75-10.98$\times$ for MT Encoder and 2.58-5.71$\times$ for MT Decoder. It also reduces memory usage by up to 1.36$\times$ for LM and up to 1.1$\times$ 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 up to 1.47$\times$. We finally propose a load balancing methodology that provides additional scalability to the workload.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (9)
  1. Haiyang Huang (16 papers)
  2. Newsha Ardalani (17 papers)
  3. Anna Sun (11 papers)
  4. Liu Ke (7 papers)
  5. Hsien-Hsin S. Lee (16 papers)
  6. Anjali Sridhar (2 papers)
  7. Shruti Bhosale (18 papers)
  8. Carole-Jean Wu (62 papers)
  9. Benjamin Lee (23 papers)
Citations (13)