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

Gursimran Singh, Timothy T. L. Yu, Haley Li, Cheng Chen, Hanieh Sadri, Qintao Zhang, Yu Zhang, Ying Xiong, Yong Zhang, Zhenan FanarXiv 2025 · DOI

TL;DR

ElasticMoE is a novel framework designed to scale Mixture-of-Experts (MoE) models in the cloud with fine-grained precision and zero downtime. By decoupling memory management from inference execution and using virtual memory techniques to redistribute "experts," it achieves up to 9x lower scaling latency and 2x higher throughput during transitions compared to traditional methods.

The Challenge of Scaling MoE Models

Large Language Models (LLMs) using Mixture-of-Experts (MoE) architectures are highly efficient because they only activate a fraction of their parameters for any given request. However, serving them in the cloud is a logistical challenge due to "bursty" traffic patterns—spiking and dipping unpredictably.

Currently, cloud providers rely on two main scaling strategies, both of which are suboptimal for MoE models:

  1. Horizontal Scaling: Adding an entire new replica. For massive models like DeepSeek V3, a single replica might require 32+ NPUs. Adding another 32 NPUs for a small traffic bump is wasteful and slow, often taking minutes to boot.
  2. Vertical Scaling: Adding a few NPUs to an existing instance. This usually requires a "cold restart"—shutting down the service, reconfiguring hardware, and reloading weights—causing unacceptable downtime and dropped requests.
Comparison of scaling strategies: Horizontal, Vertical, and Elastic scaling.

ElasticMoE introduces "Elasticity": the ability to add or remove individual accelerators (like NPUs) on the fly without stopping the service.

Methods: Decoupling and Virtualization

The authors introduce a three-part architecture to solve the scaling bottleneck:

The ElasticMoE architecture featuring persistent HBM management and virtual expert remapping.
  • Decoupled HBM Management: The system is split into an HBM Management Module (HMM) and an Inference Management Module (IMM). The HMM keeps model weights and KV caches persistent in memory. When scaling, a new inference process simply "attaches" to existing memory using zero-copy IPC (Inter-Process Communication) handles.
  • Virtual Expert Management (vpage-remap): MoE experts are typically stored in large, contiguous memory blocks. ElasticMoE treats expert weights like "pages" in a virtual memory system, remapping the logical view of experts in $O(1)$ time without physical data movement.
  • Scale-While-Serve: High-bandwidth peer-to-peer (P2P) transfers move weights to new devices in the background. The old configuration serves traffic until the new one is ready, ensuring a seamless transition.

Experimental Setup

ElasticMoE was evaluated using three state-of-the-art MoE models to demonstrate scalability across different sizes:

  • DeepSeek V2 Lite: 16B parameters (64 experts).
  • Qwen 3-30B-A3B: 30.5B parameters (128 experts).
  • DeepSeek V3: A massive 671B parameter model (256 experts).

Testing was conducted on Huawei Ascend 910C NPUs within a CloudMatrix384 supernode, using synthetic workloads mimicking real-world bursty traffic.

Key Insights

  • Memory Persistence: Making the memory manager a long-running daemon avoids the "cold start" penalty of reloading weights from disk, which is often the slowest part of scaling.
  • Fixed Tensor Parallelism (TP): Keeping TP degree fixed while only adjusting Data Parallelism (DP) and Expert Parallelism (EP) simplifies scaling and allows perfect KV cache reuse on existing devices.
  • In-Place Efficiency: The zero-copy approach allows new instances to "borrow" memory from the old one, keeping peak memory usage nearly as low as a single-instance setup.

Key Results

  • Latency: ElasticMoE achieved ~9x lower scale-up latency than cold-restart baselines. Scaling events that used to take minutes now happen in seconds.
  • Throughput: During transitions, it maintained ~2x better throughput than vertical scaling methods because it never stops processing requests.
  • SLO Attainment: In bursty tests, ElasticMoE maintained a >90% Service Level Objective (SLO) attainment, while traditional methods saw performance collapse during reconfiguration.
  • Resource Efficiency: Fine-grained scaling (e.g., adding 2 NPUs instead of 32) significantly reduces the cost of over-provisioning.

Limitations and Future Work

  • Fixed TP: Currently, the minimum scaling unit is tied to the TP size (e.g., if TP=2, NPUs must be added in pairs).
  • Transition Capacity: A slight, temporary throughput dip occurs during the handover phase as the new instance warms up.
  • Future Directions: The authors suggest exploring dynamic TP scaling and more sophisticated request migration to further smooth performance transitions.

Summary updated

BibTeX
@misc{singh2025elasticmoe,
  author = {Gursimran Singh and Timothy T. L. Yu and Haley Li and Cheng Chen and Hanieh Sadri and Qintao Zhang and Yu Zhang and Ying Xiong and Yong Zhang and Zhenan Fan},
  title = {{ElasticMoE: An Efficient Auto Scaling Method for Mixture-of-Experts Models}},
  year = {2025},
  eprint = {2510.02613},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.02613},
}
Figure