Table of Contents
Fetching ...

ElasticMoE: An Efficient Auto Scaling Method for Mixture-of-Experts Models

Gursimran Singh, Timothy Yu, Haley Li, Cheng Chen, Hanieh Sadri, Qintao Zhang, Yu Zhang, Ying Xiong, Yong Zhang, Zhenan Fan

TL;DR

ElasticMoE tackles the challenge of autoscaling large MoE models in cloud environments by decoupling memory management from inference and enabling zero-downtime, fine-grained vertical scaling. The system hinges on three innovations: a persistent HBM Management Module that reuses weights and KV caches via zero-copy, high-bandwidth P2P transfers for rapid provisioning, and a virtual memory-based expert management scheme for rapid EP reconfiguration. Implemented as Coordinat or, HMM, and IMM, ElasticMoE supports scale-up and scale-down with concurrent serving and minimal peak memory, achieving up to 9x reductions in scale-up latency and about 2x throughput stability versus baselines. The approach demonstrates practical improvements in SLO attainment for bursty traffic on Ascend NPUs and offers a path to porting to CUDA, with identified limitations and directions for relaxing fixed TP and improving transition capacity.

Abstract

Mixture-of-Experts (MoE) models promise efficient scaling of large language models (LLMs) by activating only a small subset of experts per token, but their parallelized inference pipelines make elastic serving challenging. Existing strategies fall short: horizontal scaling provisions entire replicas of the current configuration, often tens to hundreds of accelerators, leading to coarse granularity, long provisioning delays, and costly overprovisioning. Vertical scaling offers finer adjustments but typically requires instance restarts, incurring downtime. These limitations make current approaches ill-suited for the bursty, short-lived traffic patterns common in cloud deployments. We present ElasticMoE, an elastic scaling framework for MoE LLMs that achieves fine-grained, low-latency, and zero-downtime scaling. ElasticMoE decouples inference execution from memory operations, enabling scaling steps to proceed concurrently with serving. An HBM Management Module (HMM) reuses weights and KV caches via zero-copy remapping, while high-bandwidth peer-to-peer transfers bring newly added accelerators online without interrupting service. A virtual memory based expert redistribution mechanism migrates MoE experts without costly buffer reallocations, reducing peak memory usage during expert parallelism reconfiguration. Our evaluation on Ascend NPUs with three popular MoE LLMs shows that ElasticMoE achieves up to 9x lower scale-up latency, up to 2x better throughput during scaling, and significantly improves SLO attainment compared to baselines. By enabling fine-grained, concurrent scaling with minimal disruption, ElasticMoE advances the practicality of deploying massive MoE LLMs in dynamic cloud environments.

ElasticMoE: An Efficient Auto Scaling Method for Mixture-of-Experts Models

TL;DR

ElasticMoE tackles the challenge of autoscaling large MoE models in cloud environments by decoupling memory management from inference and enabling zero-downtime, fine-grained vertical scaling. The system hinges on three innovations: a persistent HBM Management Module that reuses weights and KV caches via zero-copy, high-bandwidth P2P transfers for rapid provisioning, and a virtual memory-based expert management scheme for rapid EP reconfiguration. Implemented as Coordinat or, HMM, and IMM, ElasticMoE supports scale-up and scale-down with concurrent serving and minimal peak memory, achieving up to 9x reductions in scale-up latency and about 2x throughput stability versus baselines. The approach demonstrates practical improvements in SLO attainment for bursty traffic on Ascend NPUs and offers a path to porting to CUDA, with identified limitations and directions for relaxing fixed TP and improving transition capacity.

Abstract

Mixture-of-Experts (MoE) models promise efficient scaling of large language models (LLMs) by activating only a small subset of experts per token, but their parallelized inference pipelines make elastic serving challenging. Existing strategies fall short: horizontal scaling provisions entire replicas of the current configuration, often tens to hundreds of accelerators, leading to coarse granularity, long provisioning delays, and costly overprovisioning. Vertical scaling offers finer adjustments but typically requires instance restarts, incurring downtime. These limitations make current approaches ill-suited for the bursty, short-lived traffic patterns common in cloud deployments. We present ElasticMoE, an elastic scaling framework for MoE LLMs that achieves fine-grained, low-latency, and zero-downtime scaling. ElasticMoE decouples inference execution from memory operations, enabling scaling steps to proceed concurrently with serving. An HBM Management Module (HMM) reuses weights and KV caches via zero-copy remapping, while high-bandwidth peer-to-peer transfers bring newly added accelerators online without interrupting service. A virtual memory based expert redistribution mechanism migrates MoE experts without costly buffer reallocations, reducing peak memory usage during expert parallelism reconfiguration. Our evaluation on Ascend NPUs with three popular MoE LLMs shows that ElasticMoE achieves up to 9x lower scale-up latency, up to 2x better throughput during scaling, and significantly improves SLO attainment compared to baselines. By enabling fine-grained, concurrent scaling with minimal disruption, ElasticMoE advances the practicality of deploying massive MoE LLMs in dynamic cloud environments.

Paper Structure

This paper contains 62 sections, 15 figures, 3 tables.

Figures (15)

  • Figure 1: ElasticMoE (proposed) achieves better goodput (in terms of RPS) (a) and requires less hardware (b) due to more granular and flexible scaling for MoE models.
  • Figure 2: Comparison of scaling methods. Horizontal scaling adds a full replica, requiring coarse-grained capacity increases. Vertical scaling resizes an instance but requires cold restart incurring downtime. ElasticMoE scales in place, avoiding both inefficiency and downtime.
  • Figure 3: Key innovations of ElasticMoE: (i) decoupled HBM management from inference, (ii) zero-copy reuse of weights and KV-caches along with high-speed P2P transfers for reconfiguration, and (iii) virtual expert managemnt.
  • Figure 4: Boot-up and memory analysis: (a) instance initialization latency breakdown, and (b) per-device memory consumption for model weights across EP degrees.
  • Figure 5: System architecture of ElasticMoE with three components: (i) persistent HMM for weight and KV-cache management, (ii) Coordinator for scheduling, SLO monitoring, and scaling, and (iii) IMM with transient preloaded but selectively activated instances. Zero-copy sharing and high-bandwidth transfers enable fine-grained, low-latency scaling without downtime.
  • ...and 10 more figures